@gbmtech/aurora-ui 0.4.45 → 0.4.47
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/alert-dialog.cjs +1 -1
- package/dist/cjs/components/alert-dialog.cjs.map +1 -1
- package/dist/cjs/components/alert-dialog.d.ts +14 -13
- package/dist/cjs/components/alert-dialog.d.ts.map +1 -1
- package/dist/cjs/components/app-layout/index.cjs +1 -1
- package/dist/cjs/components/app-layout/index.cjs.map +1 -1
- package/dist/cjs/components/app-layout/sidebar/index.cjs +1 -1
- package/dist/cjs/components/app-layout/sidebar/index.cjs.map +1 -1
- package/dist/cjs/components/autocomplete/autocomplete-input.cjs +1 -1
- package/dist/cjs/components/autocomplete/autocomplete-input.cjs.map +1 -1
- package/dist/cjs/components/autocomplete/autocomplete-input.d.ts +1 -1
- package/dist/cjs/components/autocomplete/autocomplete-input.d.ts.map +1 -1
- package/dist/cjs/components/combobox.cjs +1 -1
- package/dist/cjs/components/combobox.cjs.map +1 -1
- package/dist/cjs/components/data-table/index.cjs +1 -1
- package/dist/cjs/components/data-table/index.cjs.map +1 -1
- package/dist/cjs/components/dialog.cjs +1 -1
- package/dist/cjs/components/dialog.cjs.map +1 -1
- package/dist/cjs/components/dialog.d.ts +25 -17
- package/dist/cjs/components/dialog.d.ts.map +1 -1
- package/dist/esm/components/alert-dialog.d.ts +14 -13
- package/dist/esm/components/alert-dialog.d.ts.map +1 -1
- package/dist/esm/components/alert-dialog.js +1 -1
- package/dist/esm/components/alert-dialog.js.map +1 -1
- package/dist/esm/components/app-layout/sidebar/index.js +2 -1
- package/dist/esm/components/app-layout/sidebar/index.js.map +1 -0
- package/dist/esm/components/autocomplete/autocomplete-input.d.ts +1 -1
- package/dist/esm/components/autocomplete/autocomplete-input.d.ts.map +1 -1
- package/dist/esm/components/autocomplete/autocomplete-input.js +1 -1
- package/dist/esm/components/autocomplete/autocomplete-input.js.map +1 -1
- package/dist/esm/components/combobox.js +1 -1
- package/dist/esm/components/combobox.js.map +1 -1
- package/dist/esm/components/dialog.d.ts +25 -17
- package/dist/esm/components/dialog.d.ts.map +1 -1
- package/dist/esm/components/dialog.js +1 -1
- package/dist/esm/components/dialog.js.map +1 -1
- package/dist/esm/lib/index.js +1 -1
- package/dist/styles/index.css +59 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var a in t)__webpack_require__.o(t,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AlertDialog:()=>AlertDialog,AlertDialogCancel:()=>AlertDialogCancel,AlertDialogHeader:()=>AlertDialogHeader,AlertDialogAction:()=>AlertDialogAction,AlertDialogFooter:()=>AlertDialogFooter,
|
|
2
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var a in t)__webpack_require__.o(t,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AlertDialog:()=>AlertDialog,AlertDialogCancel:()=>AlertDialogCancel,AlertDialogHeader:()=>AlertDialogHeader,AlertDialogAction:()=>AlertDialogAction,AlertDialogFooter:()=>AlertDialogFooter,AlertDialogOverlay:()=>AlertDialogOverlay,AlertDialogTitle:()=>AlertDialogTitle,AlertDialogPortal:()=>AlertDialogPortal,AlertDialogTrigger:()=>AlertDialogTrigger,AlertDialogDescription:()=>AlertDialogDescription,AlertDialogContent:()=>AlertDialogContent,AlertDialogBody:()=>AlertDialogBody});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_alert_dialog_namespaceObject=require("@radix-ui/react-alert-dialog"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),external_button_cjs_namespaceObject=require("./button.cjs");function AlertDialog(e){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Root,{"data-slot":"alert-dialog",...e})}function AlertDialogTrigger(e){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function AlertDialogPortal(e){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Portal,{"data-slot":"alert-dialog-portal",...e})}function AlertDialogOverlay({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,utils_cjs_namespaceObject.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",e),...t})}function AlertDialogContent({className:e,classNames:t,...a}){return(0,jsx_runtime_namespaceObject.jsxs)(AlertDialogPortal,{children:[(0,jsx_runtime_namespaceObject.jsx)(AlertDialogOverlay,{"data-slot":"alert-dialog-overlay",className:t?.overlay}),(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Content,{className:(0,utils_cjs_namespaceObject.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg",t?.content),"data-slot":"alert-dialog-content",...a})]})}function AlertDialogHeader({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,utils_cjs_namespaceObject.cn)("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"alert-dialog-header",...t})}function AlertDialogBody({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("main",{className:(0,utils_cjs_namespaceObject.cn)("overflow-auto px-6 py-2",e),"data-slot":"alert-dialog-body",...t})}function AlertDialogFooter({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,utils_cjs_namespaceObject.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),"data-slot":"alert-dialog-footer",...t})}function AlertDialogTitle({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Title,{className:(0,utils_cjs_namespaceObject.cn)("font-semibold text-lg",e),"data-slot":"alert-dialog-title",...t})}function AlertDialogDescription({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Description,{className:(0,utils_cjs_namespaceObject.cn)("text-muted-foreground text-sm",e),"data-slot":"alert-dialog-description",...t})}function AlertDialogAction({className:e,size:t,variant:a,...r}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Action,{className:(0,external_button_cjs_namespaceObject.buttonVariants)({className:e,size:t,variant:a}),"data-slot":"alert-dialog-action",...r})}function AlertDialogCancel({className:e,size:t,variant:a="outline",...r}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Cancel,{className:(0,external_button_cjs_namespaceObject.buttonVariants)({className:e,size:t,variant:a}),"data-slot":"alert-dialog-cancel",...r})}for(var __webpack_i__ in exports.AlertDialog=__webpack_exports__.AlertDialog,exports.AlertDialogAction=__webpack_exports__.AlertDialogAction,exports.AlertDialogBody=__webpack_exports__.AlertDialogBody,exports.AlertDialogCancel=__webpack_exports__.AlertDialogCancel,exports.AlertDialogContent=__webpack_exports__.AlertDialogContent,exports.AlertDialogDescription=__webpack_exports__.AlertDialogDescription,exports.AlertDialogFooter=__webpack_exports__.AlertDialogFooter,exports.AlertDialogHeader=__webpack_exports__.AlertDialogHeader,exports.AlertDialogOverlay=__webpack_exports__.AlertDialogOverlay,exports.AlertDialogPortal=__webpack_exports__.AlertDialogPortal,exports.AlertDialogTitle=__webpack_exports__.AlertDialogTitle,exports.AlertDialogTrigger=__webpack_exports__.AlertDialogTrigger,__webpack_exports__)-1===["AlertDialog","AlertDialogAction","AlertDialogBody","AlertDialogCancel","AlertDialogContent","AlertDialogDescription","AlertDialogFooter","AlertDialogHeader","AlertDialogOverlay","AlertDialogPortal","AlertDialogTitle","AlertDialogTrigger"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
3
3
|
//# sourceMappingURL=alert-dialog.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components\\alert-dialog.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/alert-dialog.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\r\n\r\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog'\r\nimport { ComponentProps, JSX } from 'react'\r\n\r\nimport { VariantProps, cn } from '@/lib/utils'\r\nimport { buttonVariants } from './button'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialog\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialog({\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Root>): JSX.Element {\r\n return <AlertDialogPrimitive.Root data-slot=\"alert-dialog\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogTrigger\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogTrigger({\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Trigger>): JSX.Element {\r\n return (\r\n <AlertDialogPrimitive.Trigger data-slot=\"alert-dialog-trigger\" {...props} />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogPortal\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogPortal({\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Portal>): JSX.Element {\r\n return (\r\n <AlertDialogPrimitive.Portal data-slot=\"alert-dialog-portal\" {...props} />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogContent\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogContent({\r\n className,\r\n classNames,\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Content> & {\r\n classNames?: {\r\n content?: string\r\n overlay?: string\r\n }\r\n}): JSX.Element {\r\n return (\r\n <AlertDialogPortal>\r\n <AlertDialogPrimitive.Overlay\r\n data-slot=\"alert-dialog-overlay\"\r\n className={cn(\r\n 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/40 data-[state=closed]:animate-out data-[state=open]:animate-in',\r\n classNames?.overlay\r\n )}\r\n />\r\n\r\n <AlertDialogPrimitive.Content\r\n className={cn(\r\n 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg',\r\n classNames?.content\r\n )}\r\n data-slot=\"alert-dialog-content\"\r\n {...props}\r\n />\r\n </AlertDialogPortal>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogHeader\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogHeader({\r\n className,\r\n ...props\r\n}: ComponentProps<'div'>): JSX.Element {\r\n return (\r\n <div\r\n className={cn('flex flex-col gap-2 text-center sm:text-left', className)}\r\n data-slot=\"alert-dialog-header\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogBody\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogBody({\r\n className,\r\n ...props\r\n}: ComponentProps<'div'>): JSX.Element {\r\n return (\r\n <main\r\n className={cn('overflow-auto px-6 py-2', className)}\r\n data-slot=\"alert-dialog-body\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogFooter\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogFooter({\r\n className,\r\n ...props\r\n}: ComponentProps<'div'>): JSX.Element {\r\n return (\r\n <div\r\n className={cn(\r\n 'flex flex-col-reverse gap-2 sm:flex-row sm:justify-end',\r\n className\r\n )}\r\n data-slot=\"alert-dialog-footer\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogTitle\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogTitle({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Title>): JSX.Element {\r\n return (\r\n <AlertDialogPrimitive.Title\r\n className={cn('font-semibold text-lg', className)}\r\n data-slot=\"alert-dialog-title\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogDescription\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogDescription({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Description>): JSX.Element {\r\n return (\r\n <AlertDialogPrimitive.Description\r\n className={cn('text-muted-foreground text-sm', className)}\r\n data-slot=\"alert-dialog-description\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogAction\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogAction({\r\n className,\r\n size,\r\n variant,\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Action> & {\r\n size?: VariantProps<typeof buttonVariants>['size']\r\n variant?: VariantProps<typeof buttonVariants>['variant']\r\n}): JSX.Element {\r\n return (\r\n <AlertDialogPrimitive.Action\r\n className={buttonVariants({ className, size, variant })}\r\n data-slot=\"alert-dialog-action\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogCancel\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogCancel({\r\n className,\r\n size,\r\n variant = 'secondary',\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Cancel> & {\r\n size?: VariantProps<typeof buttonVariants>['size']\r\n variant?: VariantProps<typeof buttonVariants>['variant']\r\n}): JSX.Element {\r\n return (\r\n <AlertDialogPrimitive.Cancel\r\n className={buttonVariants({ className, size, variant })}\r\n data-slot=\"alert-dialog-cancel\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport {\r\n AlertDialog,\r\n AlertDialogPortal,\r\n AlertDialogTrigger,\r\n AlertDialogContent,\r\n AlertDialogHeader,\r\n AlertDialogBody,\r\n AlertDialogFooter,\r\n AlertDialogTitle,\r\n AlertDialogDescription,\r\n AlertDialogAction,\r\n AlertDialogCancel,\r\n}\r\n"],"names":["__webpack_require__","e","Object","Symbol","AlertDialog","props","AlertDialogPrimitive","AlertDialogTrigger","AlertDialogPortal","AlertDialogContent","className","classNames","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","size","variant","buttonVariants","AlertDialogCancel"],"mappings":";+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,EAGxF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,IACpB,oBAAOG,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,iyBCMA,SAASG,YAAY,CACnB,GAAGC,EAC8C,EACjD,MAAO,oCAACC,mCAAAA,IAAyB,EAAC,YAAU,e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YAAU,qBACT,GAAGL,CAAK,EAGf,CAMA,SAASY,uBAAuB,CAC9BP,UAAAA,CAAS,CACT,GAAGL,EACqD,EACxD,MACE,oCAACC,mCAAAA,WAAgC,EAC/B,UAAWM,GAAAA,0BAAAA,EAAAA,EAAG,gCAAiCF,GAC/C,YAAU,2BACT,GAAGL,CAAK,EAGf,CAMA,SAASa,kBAAkB,CACzBR,UAAAA,CAAS,CACTS,KAAAA,CAAI,CACJC,QAAAA,CAAO,CACP,GAAGf,EAIJ,EACC,MACE,oCAACC,mCAAAA,MAA2B,EAC1B,UAAWe,GAAAA,oCAAAA,cAAAA,EAAe,CAAEX,UAAAA,EAAWS,KAAAA,EAAMC,QAAAA,CAAQ,GACrD,YAAU,sBACT,GAAGf,CAAK,EAGf,CAMA,SAASiB,kBAAkB,CACzBZ,UAAAA,CAAS,CACTS,KAAAA,CAAI,CACJC,QAAAA,EAAU,WAAW,CACrB,GAAGf,EAIJ,EACC,MACE,oCAACC,mCAAAA,MAA2B,EAC1B,UAAWe,GAAAA,oCAAAA,cAAAA,EAAe,CAAEX,UAAAA,EAAWS,KAAAA,EAAMC,QAAAA,CAAQ,GACrD,YAAU,sBACT,GAAGf,CAAK,EAGf,C"}
|
|
1
|
+
{"version":3,"file":"components\\alert-dialog.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/alert-dialog.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\r\n\r\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog'\r\nimport { ComponentProps } from 'react'\r\n\r\nimport { VariantProps, cn } from '@/lib/utils'\r\nimport { buttonVariants } from './button'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialog\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialog(props: ComponentProps<typeof AlertDialogPrimitive.Root>) {\r\n return <AlertDialogPrimitive.Root data-slot=\"alert-dialog\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogTrigger\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogTrigger(\r\n props: ComponentProps<typeof AlertDialogPrimitive.Trigger>\r\n) {\r\n return (\r\n <AlertDialogPrimitive.Trigger data-slot=\"alert-dialog-trigger\" {...props} />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogPortal\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogPortal(\r\n props: ComponentProps<typeof AlertDialogPrimitive.Portal>\r\n) {\r\n return (\r\n <AlertDialogPrimitive.Portal data-slot=\"alert-dialog-portal\" {...props} />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogOverlay\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogOverlay({\r\n className,\r\n ...props\r\n}: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>) {\r\n return (\r\n <AlertDialogPrimitive.Overlay\r\n data-slot=\"alert-dialog-overlay\"\r\n className={cn(\r\n 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in',\r\n className\r\n )}\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogContent\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogContent({\r\n className,\r\n classNames,\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Content> & {\r\n classNames?: {\r\n content?: string\r\n overlay?: string\r\n }\r\n}) {\r\n return (\r\n <AlertDialogPortal>\r\n <AlertDialogOverlay\r\n data-slot=\"alert-dialog-overlay\"\r\n className={classNames?.overlay}\r\n />\r\n\r\n <AlertDialogPrimitive.Content\r\n className={cn(\r\n 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg',\r\n classNames?.content\r\n )}\r\n data-slot=\"alert-dialog-content\"\r\n {...props}\r\n />\r\n </AlertDialogPortal>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogHeader\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogHeader({ className, ...props }: ComponentProps<'div'>) {\r\n return (\r\n <div\r\n className={cn('flex flex-col gap-2 text-center sm:text-left', className)}\r\n data-slot=\"alert-dialog-header\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogBody\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogBody({ className, ...props }: ComponentProps<'div'>) {\r\n return (\r\n <main\r\n className={cn('overflow-auto px-6 py-2', className)}\r\n data-slot=\"alert-dialog-body\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogFooter\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogFooter({ className, ...props }: ComponentProps<'div'>) {\r\n return (\r\n <div\r\n className={cn(\r\n 'flex flex-col-reverse gap-2 sm:flex-row sm:justify-end',\r\n className\r\n )}\r\n data-slot=\"alert-dialog-footer\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogTitle\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogTitle({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Title>) {\r\n return (\r\n <AlertDialogPrimitive.Title\r\n className={cn('font-semibold text-lg', className)}\r\n data-slot=\"alert-dialog-title\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogDescription\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogDescription({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Description>) {\r\n return (\r\n <AlertDialogPrimitive.Description\r\n className={cn('text-muted-foreground text-sm', className)}\r\n data-slot=\"alert-dialog-description\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogAction\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogAction({\r\n className,\r\n size,\r\n variant,\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Action> & {\r\n size?: VariantProps<typeof buttonVariants>['size']\r\n variant?: VariantProps<typeof buttonVariants>['variant']\r\n}) {\r\n return (\r\n <AlertDialogPrimitive.Action\r\n className={buttonVariants({ className, size, variant })}\r\n data-slot=\"alert-dialog-action\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogCancel\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogCancel({\r\n className,\r\n size,\r\n variant = 'outline',\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Cancel> & {\r\n size?: VariantProps<typeof buttonVariants>['size']\r\n variant?: VariantProps<typeof buttonVariants>['variant']\r\n}) {\r\n return (\r\n <AlertDialogPrimitive.Cancel\r\n className={buttonVariants({ className, size, variant })}\r\n data-slot=\"alert-dialog-cancel\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport {\r\n AlertDialog,\r\n AlertDialogPortal,\r\n AlertDialogOverlay,\r\n AlertDialogTrigger,\r\n AlertDialogContent,\r\n AlertDialogHeader,\r\n AlertDialogBody,\r\n AlertDialogFooter,\r\n AlertDialogTitle,\r\n AlertDialogDescription,\r\n AlertDialogAction,\r\n AlertDialogCancel,\r\n}\r\n"],"names":["__webpack_require__","e","Object","Symbol","AlertDialog","props","AlertDialogPrimitive","AlertDialogTrigger","AlertDialogPortal","AlertDialogOverlay","className","cn","AlertDialogContent","classNames","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","size","variant","buttonVariants","AlertDialogCancel"],"mappings":";+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,EAGxF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,IACpB,oBAAOG,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,20BCMA,SAASG,YAAYC,CAAuD,EAC1E,MAAO,oCAACC,mCAAAA,IAAyB,EAAC,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AAAA,CAAS,CACT,GAAGL,EAC+C,EAClD,MACE,oCAACC,mCAAAA,KAA0B,EACzB,UAAWK,GAAAA,0BAAAA,EAAAA,EAAG,wBAAyBD,GACvC,YAAU,qBACT,GAAGL,CAAK,EAGf,CAMA,SAASa,uBAAuB,CAC9BR,UAAAA,CAAS,CACT,GAAGL,EACqD,EACxD,MACE,oCAACC,mCAAAA,WAAgC,EAC/B,UAAWK,GAAAA,0BAAAA,EAAAA,EAAG,gCAAiCD,GAC/C,YAAU,2BACT,GAAGL,CAAK,EAGf,CAMA,SAASc,kBAAkB,CACzBT,UAAAA,CAAS,CACTU,KAAAA,CAAI,CACJC,QAAAA,CAAO,CACP,GAAGhB,EAIJ,EACC,MACE,oCAACC,mCAAAA,MAA2B,EAC1B,UAAWgB,GAAAA,oCAAAA,cAAAA,EAAe,CAAEZ,UAAAA,EAAWU,KAAAA,EAAMC,QAAAA,CAAQ,GACrD,YAAU,sBACT,GAAGhB,CAAK,EAGf,CAMA,SAASkB,kBAAkB,CACzBb,UAAAA,CAAS,CACTU,KAAAA,CAAI,CACJC,QAAAA,EAAU,SAAS,CACnB,GAAGhB,EAIJ,EACC,MACE,oCAACC,mCAAAA,MAA2B,EAC1B,UAAWgB,GAAAA,oCAAAA,cAAAA,EAAe,CAAEZ,UAAAA,EAAWU,KAAAA,EAAMC,QAAAA,CAAQ,GACrD,YAAU,sBACT,GAAGhB,CAAK,EAGf,C"}
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
2
|
-
import { ComponentProps
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
3
|
import { VariantProps } from '../lib/utils';
|
|
4
4
|
import { buttonVariants } from './button';
|
|
5
|
-
declare function AlertDialog(
|
|
6
|
-
declare function AlertDialogTrigger(
|
|
7
|
-
declare function AlertDialogPortal(
|
|
5
|
+
declare function AlertDialog(props: ComponentProps<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function AlertDialogTrigger(props: ComponentProps<typeof AlertDialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function AlertDialogPortal(props: ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
declare function AlertDialogContent({ className, classNames, ...props }: ComponentProps<typeof AlertDialogPrimitive.Content> & {
|
|
9
10
|
classNames?: {
|
|
10
11
|
content?: string;
|
|
11
12
|
overlay?: string;
|
|
12
13
|
};
|
|
13
|
-
}): JSX.Element;
|
|
14
|
-
declare function AlertDialogHeader({ className, ...props }: ComponentProps<'div'>): JSX.Element;
|
|
15
|
-
declare function AlertDialogBody({ className, ...props }: ComponentProps<'div'>): JSX.Element;
|
|
16
|
-
declare function AlertDialogFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element;
|
|
17
|
-
declare function AlertDialogTitle({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Title>): JSX.Element;
|
|
18
|
-
declare function AlertDialogDescription({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Description>): JSX.Element;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function AlertDialogHeader({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function AlertDialogBody({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function AlertDialogFooter({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function AlertDialogTitle({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function AlertDialogDescription({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
declare function AlertDialogAction({ className, size, variant, ...props }: ComponentProps<typeof AlertDialogPrimitive.Action> & {
|
|
20
21
|
size?: VariantProps<typeof buttonVariants>['size'];
|
|
21
22
|
variant?: VariantProps<typeof buttonVariants>['variant'];
|
|
22
|
-
}): JSX.Element;
|
|
23
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
declare function AlertDialogCancel({ className, size, variant, ...props }: ComponentProps<typeof AlertDialogPrimitive.Cancel> & {
|
|
24
25
|
size?: VariantProps<typeof buttonVariants>['size'];
|
|
25
26
|
variant?: VariantProps<typeof buttonVariants>['variant'];
|
|
26
|
-
}): JSX.Element;
|
|
27
|
-
export { AlertDialog, AlertDialogPortal, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogBody, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
27
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogBody, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
28
29
|
//# sourceMappingURL=alert-dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/alert-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAA;AACpE,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/alert-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAA;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,EAAE,YAAY,EAAM,MAAM,aAAa,CA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,CAAC,WAAW,CAAC,2CAQzD;AAMD,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,IAAI,EACJ,OAAO,EACP,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,GAAG;IACtD,IAAI,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;IAClD,OAAO,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC,SAAS,CAAC,CAAA;CACzD,2CAQA;AAMD,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,IAAI,EACJ,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,GAAG;IACtD,IAAI,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;IAClD,OAAO,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC,SAAS,CAAC,CAAA;CACzD,2CAQA;AAMD,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAClB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"@/components/app-layout/app-layout-breadcrumb":function(e){e.exports=require("./app-layout-breadcrumb.cjs")},"@/components/app-layout/app-layout-content":function(e){e.exports=require("./app-layout-content.cjs")},"@/components/app-layout/app-layout-filters":function(e){e.exports=require("./app-layout-filters.cjs")},"@/components/app-layout/app-layout-header":function(e){e.exports=require("./app-layout-header.cjs")},"@/components/app-layout/app-layout-provider":function(e){e.exports=require("./app-layout-provider.cjs")},"@/components/app-layout/app-layout":function(e){e.exports=require("./app-layout.cjs")},"@/components/app-layout/sidebar":function(e){e.exports=require("./sidebar/index.cjs")},"@/components/app-layout/sidebar/sidebar-icons":function(e){e.exports=require("./sidebar/sidebar-icons.cjs")}},__webpack_module_cache__={};function __webpack_require__(e){var _=__webpack_module_cache__[e];if(void 0!==_)return _.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};for(var __webpack_i__ in(()=>{__webpack_require__.r(__webpack_exports__);var e=__webpack_require__("@/components/app-layout/sidebar"),_={};for(var r in e)"default"!==r&&(_[r]=(function(_){return e[_]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var a=__webpack_require__("@/components/app-layout/sidebar/sidebar-icons"),_={};for(var r in a)"default"!==r&&(_[r]=(function(e){return a[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var p=__webpack_require__("@/components/app-layout/app-layout"),_={};for(var r in p)"default"!==r&&(_[r]=(function(e){return p[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var o=__webpack_require__("@/components/app-layout/app-layout-provider"),_={};for(var r in o)"default"!==r&&(_[r]=(function(e){return o[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var t=__webpack_require__("@/components/app-layout/app-layout-header"),_={};for(var r in t)"default"!==r&&(_[r]=(function(e){return t[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var u=__webpack_require__("@/components/app-layout/app-layout-content"),_={};for(var r in u)"default"!==r&&(_[r]=(function(e){return u[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var n=__webpack_require__("@/components/app-layout/app-layout-breadcrumb"),_={};for(var r in n)"default"!==r&&(_[r]=(function(e){return n[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var c=__webpack_require__("@/components/app-layout/app-layout-filters"),_={};for(var r in c)"default"!==r&&(_[r]=(function(e){return c[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_)})(),__webpack_exports__)exports[__webpack_i__]=__webpack_exports__[__webpack_i__];Object.defineProperty(exports,"__esModule",{value:!0});
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"@/components/app-layout/app-layout-breadcrumb":function(e){e.exports=require("./app-layout-breadcrumb.cjs")},"@/components/app-layout/app-layout-content":function(e){e.exports=require("./app-layout-content.cjs")},"@/components/app-layout/app-layout-filters":function(e){e.exports=require("./app-layout-filters.cjs")},"@/components/app-layout/app-layout-header":function(e){e.exports=require("./app-layout-header.cjs")},"@/components/app-layout/app-layout-provider":function(e){e.exports=require("./app-layout-provider.cjs")},"@/components/app-layout/app-layout":function(e){e.exports=require("./app-layout.cjs")},"@/components/app-layout/sidebar":function(e){e.exports=require("./sidebar/index.cjs")},"@/components/app-layout/sidebar/sidebar-icons?8727":function(e){e.exports=require("./sidebar/sidebar-icons.cjs")}},__webpack_module_cache__={};function __webpack_require__(e){var _=__webpack_module_cache__[e];if(void 0!==_)return _.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};for(var __webpack_i__ in(()=>{__webpack_require__.r(__webpack_exports__);var e=__webpack_require__("@/components/app-layout/sidebar"),_={};for(var r in e)"default"!==r&&(_[r]=(function(_){return e[_]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var a=__webpack_require__("@/components/app-layout/sidebar/sidebar-icons?8727"),_={};for(var r in a)"default"!==r&&(_[r]=(function(e){return a[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var p=__webpack_require__("@/components/app-layout/app-layout"),_={};for(var r in p)"default"!==r&&(_[r]=(function(e){return p[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var o=__webpack_require__("@/components/app-layout/app-layout-provider"),_={};for(var r in o)"default"!==r&&(_[r]=(function(e){return o[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var t=__webpack_require__("@/components/app-layout/app-layout-header"),_={};for(var r in t)"default"!==r&&(_[r]=(function(e){return t[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var u=__webpack_require__("@/components/app-layout/app-layout-content"),_={};for(var r in u)"default"!==r&&(_[r]=(function(e){return u[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var n=__webpack_require__("@/components/app-layout/app-layout-breadcrumb"),_={};for(var r in n)"default"!==r&&(_[r]=(function(e){return n[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var c=__webpack_require__("@/components/app-layout/app-layout-filters"),_={};for(var r in c)"default"!==r&&(_[r]=(function(e){return c[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_)})(),__webpack_exports__)exports[__webpack_i__]=__webpack_exports__[__webpack_i__];Object.defineProperty(exports,"__esModule",{value:!0});
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components\\app-layout\\index.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/compat_get_default_export","webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object"],"sourcesContent":["// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};"],"names":["__webpack_require__","e","Object","Symbol"],"mappings":"
|
|
1
|
+
{"version":3,"file":"components\\app-layout\\index.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/compat_get_default_export","webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object"],"sourcesContent":["// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};"],"names":["__webpack_require__","e","Object","Symbol"],"mappings":"qyCACAA,oBAAoB,CAAC,CAAG,AAAC,IACxB,IAAI,EAAS,GAAU,EAAO,UAAU,CACvC,IAAO,EAAO,OAAU,CACxB,IAAO,EAER,OADAA,oBAAoB,CAAC,CAAC,EAAQ,CAAE,EAAG,CAAO,GACnC,CACR,ECPAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"@/components/app-layout/sidebar/app-sidebar":function(e){e.exports=require("./app-sidebar.cjs")},"@/components/app-layout/sidebar/logo":function(e){e.exports=require("./logo.cjs")},"@/components/app-layout/sidebar/nav-modules":function(e){e.exports=require("./nav-modules.cjs")},"@/components/app-layout/sidebar/nav-sub-item":function(e){e.exports=require("./nav-sub-item.cjs")},"@/components/app-layout/sidebar/nav-user":function(e){e.exports=require("./nav-user.cjs")},"
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"@/components/app-layout/sidebar/app-sidebar":function(e){e.exports=require("./app-sidebar.cjs")},"@/components/app-layout/sidebar/logo":function(e){e.exports=require("./logo.cjs")},"@/components/app-layout/sidebar/nav-modules":function(e){e.exports=require("./nav-modules.cjs")},"@/components/app-layout/sidebar/nav-sub-item":function(e){e.exports=require("./nav-sub-item.cjs")},"@/components/app-layout/sidebar/nav-user":function(e){e.exports=require("./nav-user.cjs")},"@/components/app-layout/sidebar/sidebar-icons?5a26":function(e){e.exports=require("./sidebar-icons.cjs")},"@/components/app-layout/sidebar/sidebar":function(e){e.exports=require("./sidebar.cjs")}},__webpack_module_cache__={};function __webpack_require__(e){var _=__webpack_module_cache__[e];if(void 0!==_)return _.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};for(var __webpack_i__ in(()=>{__webpack_require__.r(__webpack_exports__);var e=__webpack_require__("@/components/app-layout/sidebar/sidebar"),_={};for(var r in e)"default"!==r&&(_[r]=(function(_){return e[_]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var a=__webpack_require__("@/components/app-layout/sidebar/app-sidebar"),_={};for(var r in a)"default"!==r&&(_[r]=(function(e){return a[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var o=__webpack_require__("@/components/app-layout/sidebar/nav-modules"),_={};for(var r in o)"default"!==r&&(_[r]=(function(e){return o[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var p=__webpack_require__("@/components/app-layout/sidebar/nav-sub-item"),_={};for(var r in p)"default"!==r&&(_[r]=(function(e){return p[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var t=__webpack_require__("@/components/app-layout/sidebar/nav-user"),_={};for(var r in t)"default"!==r&&(_[r]=(function(e){return t[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var n=__webpack_require__("@/components/app-layout/sidebar/sidebar-icons?5a26"),_={};for(var r in n)"default"!==r&&(_[r]=(function(e){return n[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var i=__webpack_require__("@/components/app-layout/sidebar/logo"),_={};for(var r in i)"default"!==r&&(_[r]=(function(e){return i[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_)})(),__webpack_exports__)exports[__webpack_i__]=__webpack_exports__[__webpack_i__];Object.defineProperty(exports,"__esModule",{value:!0});
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components\\app-layout\\sidebar\\index.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/compat_get_default_export","webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object"],"sourcesContent":["// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};"],"names":["__webpack_require__","e","Object","Symbol"],"mappings":"
|
|
1
|
+
{"version":3,"file":"components\\app-layout\\sidebar\\index.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/compat_get_default_export","webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object"],"sourcesContent":["// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};"],"names":["__webpack_require__","e","Object","Symbol"],"mappings":"ipCACAA,oBAAoB,CAAC,CAAG,AAAC,IACxB,IAAI,EAAS,GAAU,EAAO,UAAU,CACvC,IAAO,EAAO,OAAU,CACxB,IAAO,EAER,OADAA,oBAAoB,CAAC,CAAC,EAAQ,CAAE,EAAG,CAAO,GACnC,CACR,ECPAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var t in _)__webpack_require__.o(_,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:_[t]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AutoCompleteInput:()=>AutoCompleteInput});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var t in _)__webpack_require__.o(_,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:_[t]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AutoCompleteInput:()=>AutoCompleteInput});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_cmdk_namespaceObject=require("cmdk"),index_cjs_namespaceObject=require("../../lib/index.cjs"),react_namespaceObject=require("@phosphor-icons/react"),external_autocomplete_context_cjs_namespaceObject=require("./autocomplete-context.cjs");function AutoCompleteInput({className:e,..._}){let{value:t,onValueChange:r,onOpenChange:a,inputRef:c}=(0,external_autocomplete_context_cjs_namespaceObject.useAutoCompleteContext)();return(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"relative","cmdk-input-wrapper":"","data-slot":"command-input-wrapper",children:[(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.MagnifyingGlassIcon,{className:"-translate-1/2 absolute top-1/2 left-6 size-4 shrink-0 opacity-50"}),(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Input,{className:(0,index_cjs_namespaceObject.cn)("flex h-10 w-full rounded-md border px-3 pl-10 text-base outline-hidden placeholder:text-muted-foreground disabled:opacity-50",e),..._,ref:c,value:_.value??t,onValueChange:function(e){r?.(e),_.onValueChange?.(e)},"data-slot":"command-input",onFocus:()=>a(!0),onBlur:()=>a(!1)})]})}for(var __webpack_i__ in exports.AutoCompleteInput=__webpack_exports__.AutoCompleteInput,__webpack_exports__)-1===["AutoCompleteInput"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
2
2
|
//# sourceMappingURL=autocomplete-input.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components\\autocomplete\\autocomplete-input.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/autocomplete/autocomplete-input.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import type { ComponentPropsWithoutRef } from 'react'\n\nimport { CommandInput } from '../command'\nimport { useAutoCompleteContext } from './autocomplete-context'\n\nfunction AutoCompleteInput(\n props: ComponentPropsWithoutRef<typeof CommandInput
|
|
1
|
+
{"version":3,"file":"components\\autocomplete\\autocomplete-input.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/autocomplete/autocomplete-input.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { Command as CommandPrimitive } from 'cmdk'\nimport type { ComponentPropsWithoutRef } from 'react'\n\nimport { cn } from '@/lib'\nimport { MagnifyingGlassIcon } from '@phosphor-icons/react'\nimport { CommandInput } from '../command'\nimport { useAutoCompleteContext } from './autocomplete-context'\n\nfunction AutoCompleteInput({\n className,\n ...props\n}: ComponentPropsWithoutRef<typeof CommandInput>) {\n const { value, onValueChange, onOpenChange, inputRef } =\n useAutoCompleteContext()\n\n function handleChange(value: string) {\n onValueChange?.(value)\n props.onValueChange?.(value)\n }\n\n return (\n <div\n className=\"relative\"\n cmdk-input-wrapper=\"\"\n data-slot=\"command-input-wrapper\"\n >\n <MagnifyingGlassIcon className=\"-translate-1/2 absolute top-1/2 left-6 size-4 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n className={cn(\n 'flex h-10 w-full rounded-md border px-3 pl-10 text-base outline-hidden placeholder:text-muted-foreground disabled:opacity-50',\n className\n )}\n {...props}\n ref={inputRef}\n value={props.value ?? value}\n onValueChange={handleChange}\n data-slot=\"command-input\"\n onFocus={() => onOpenChange(true)}\n onBlur={() => onOpenChange(false)}\n />\n </div>\n )\n}\n\nexport { AutoCompleteInput }\n"],"names":["__webpack_require__","e","Object","Symbol","AutoCompleteInput","className","props","value","onValueChange","onOpenChange","inputRef","useAutoCompleteContext","Magn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 -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { CommandInput } from '../command';
|
|
3
|
-
declare function AutoCompleteInput(props: ComponentPropsWithoutRef<typeof CommandInput>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function AutoCompleteInput({ className, ...props }: ComponentPropsWithoutRef<typeof CommandInput>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { AutoCompleteInput };
|
|
5
5
|
//# sourceMappingURL=autocomplete-input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete-input.d.ts","sourceRoot":"","sources":["../../../../src/components/autocomplete/autocomplete-input.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"autocomplete-input.d.ts","sourceRoot":"","sources":["../../../../src/components/autocomplete/autocomplete-input.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAA;AAIrD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAGzC,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,wBAAwB,CAAC,OAAO,YAAY,CAAC,2CA+B/C;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var c in a)__webpack_require__.o(a,c)&&!__webpack_require__.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ComboBox:()=>ComboBox});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),external_button_cjs_namespaceObject=require("./button.cjs"),external_command_cjs_namespaceObject=require("./command.cjs"),external_popover_cjs_namespaceObject=require("./popover.cjs"),external_scroll_area_cjs_namespaceObject=require("./scroll-area.cjs"),ComboBox=({items:e,name:a,value:c,valueIcon:r,language:t="pt-br",disabled:_=!1,onValueChange:n})=>{let[s,o]=(0,external_react_namespaceObject.useState)(!1),[p,m]=(0,external_react_namespaceObject.useState)(""),l=e?.filter(e=>e.label.toLowerCase().includes(p?.toLowerCase()));return(0,jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.Popover,{open:s,onOpenChange:o,children:[(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverTrigger,{
|
|
2
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var c in a)__webpack_require__.o(a,c)&&!__webpack_require__.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ComboBox:()=>ComboBox});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),external_button_cjs_namespaceObject=require("./button.cjs"),external_command_cjs_namespaceObject=require("./command.cjs"),external_popover_cjs_namespaceObject=require("./popover.cjs"),external_scroll_area_cjs_namespaceObject=require("./scroll-area.cjs"),ComboBox=({items:e,name:a,value:c,valueIcon:r,language:t="pt-br",disabled:_=!1,onValueChange:n})=>{let[s,o]=(0,external_react_namespaceObject.useState)(!1),[p,m]=(0,external_react_namespaceObject.useState)(""),l=e?.filter(e=>e.label.toLowerCase().includes(p?.toLowerCase()));return(0,jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.Popover,{open:s,onOpenChange:o,children:[(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverTrigger,{className:"group",asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button,{variant:"outline",role:"combobox",disabled:_,className:(0,utils_cjs_namespaceObject.cn)("h-12 w-full justify-between",!c&&"text-dark-gray/50"),onClick:e=>e.stopPropagation(),children:[(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"flex flex-row items-center gap-4 truncate",children:[c&&r&&(0,jsx_runtime_namespaceObject.jsx)("span",{children:r}),c?(0,jsx_runtime_namespaceObject.jsx)("p",{className:"font-normal",children:e?.find(e=>e.value===c)?.label}):(0,jsx_runtime_namespaceObject.jsx)("p",{className:"text-muted-foreground",children:"pt-br"===t?"Selecione uma op\xe7\xe3o":"en-us"===t?"Select an option":"Seleccione una opci\xf3"})]}),(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CaretDownIcon,{weight:"bold",className:"h-4 w-4 text-dark-gray group-data-[state=open]:rotate-180"})]})}),(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverContent,{className:"w-full min-w-[var(--radix-popover-trigger-width)] p-0",align:"start",children:(0,jsx_runtime_namespaceObject.jsxs)(external_command_cjs_namespaceObject.Command,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_command_cjs_namespaceObject.CommandInput,{name:a,value:p,onValueChange:m,placeholder:"pt-br"===t?"Digite para buscar...":"en-us"===t?"Type to search...":"Buscar por palabra clave..."}),(0,jsx_runtime_namespaceObject.jsx)(external_scroll_area_cjs_namespaceObject.ScrollArea,{className:"h-[200px] overflow-y-auto",children:l?.length===0?(0,jsx_runtime_namespaceObject.jsx)(external_command_cjs_namespaceObject.CommandEmpty,{children:"pt-br"===t?"Nenhuma op\xe7\xe3o encontrada":"en-us"===t?"No options found":"No se encontraron opciones"}):(0,jsx_runtime_namespaceObject.jsx)(external_command_cjs_namespaceObject.CommandGroup,{children:l?.map(e=>(0,jsx_runtime_namespaceObject.jsxs)(external_command_cjs_namespaceObject.CommandItem,{value:e.label,onSelect:()=>{n&&n(e.value),o(!1)},children:[(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CheckIcon,{className:(0,utils_cjs_namespaceObject.cn)("mr-2 h-4 w-4",e.value===c?"opacity-100":"opacity-0")}),!!e.icon&&(0,jsx_runtime_namespaceObject.jsx)("span",{className:"mr-2",children:e.icon}),e.label]},e.value))})})]})})]})};for(var __webpack_i__ in exports.ComboBox=__webpack_exports__.ComboBox,__webpack_exports__)-1===["ComboBox"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
3
3
|
//# sourceMappingURL=combobox.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components\\combobox.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/combobox.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\r\n\r\nimport {
|
|
1
|
+
{"version":3,"file":"components\\combobox.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/combobox.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\r\n\r\nimport { CaretDownIcon, CheckIcon } from '@phosphor-icons/react'\r\nimport { useState } from 'react'\r\n\r\nimport { cn } from '@/lib/utils'\r\n\r\nimport { Button } from './button'\r\nimport {\r\n Command,\r\n CommandEmpty,\r\n CommandGroup,\r\n CommandInput,\r\n CommandItem,\r\n} from './command'\r\nimport { Popover, PopoverContent, PopoverTrigger } from './popover'\r\nimport { ScrollArea } from './scroll-area'\r\n\r\ninterface ComboBoxProps {\r\n name?: string\r\n value: string | number | undefined\r\n language?: 'pt-br' | 'en-us' | 'es'\r\n valueIcon?: React.ReactNode\r\n items: { value: string; label: string; icon?: React.ReactNode }[]\r\n disabled?: boolean\r\n onValueChange?: (value: string) => void\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Checkbox\r\n * -------------------------------------------------------------------------- */\r\n\r\nconst ComboBox = ({\r\n items,\r\n name,\r\n value,\r\n valueIcon,\r\n language = 'pt-br',\r\n disabled = false,\r\n onValueChange,\r\n}: ComboBoxProps) => {\r\n const [open, setOpen] = useState(false)\r\n const [search, setSearch] = useState('')\r\n\r\n const filteredItems = items?.filter(item =>\r\n item.label.toLowerCase().includes(search?.toLowerCase())\r\n )\r\n\r\n return (\r\n <Popover open={open} onOpenChange={setOpen}>\r\n <PopoverTrigger className=\"group\" asChild>\r\n <Button\r\n variant=\"outline\"\r\n role=\"combobox\"\r\n disabled={disabled}\r\n className={cn(\r\n 'h-12 w-full justify-between',\r\n !value && 'text-dark-gray/50'\r\n )}\r\n onClick={e => e.stopPropagation()}\r\n >\r\n <div className=\"flex flex-row items-center gap-4 truncate\">\r\n {value && valueIcon && <span>{valueIcon}</span>}\r\n {value ? (\r\n <p className=\"font-normal\">\r\n {items?.find(item => item.value === value)?.label}\r\n </p>\r\n ) : (\r\n <p className=\"text-muted-foreground\">\r\n {language === 'pt-br'\r\n ? 'Selecione uma opção'\r\n : language === 'en-us'\r\n ? 'Select an option'\r\n : 'Seleccione una opció'}\r\n </p>\r\n )}\r\n </div>\r\n <CaretDownIcon\r\n weight=\"bold\"\r\n className=\"h-4 w-4 text-dark-gray group-data-[state=open]:rotate-180\"\r\n />\r\n </Button>\r\n </PopoverTrigger>\r\n <PopoverContent\r\n className=\"w-full min-w-[var(--radix-popover-trigger-width)] p-0\"\r\n align=\"start\"\r\n >\r\n <Command>\r\n <CommandInput\r\n name={name}\r\n value={search}\r\n onValueChange={setSearch}\r\n placeholder={\r\n language === 'pt-br'\r\n ? 'Digite para buscar...'\r\n : language === 'en-us'\r\n ? 'Type to search...'\r\n : 'Buscar por palabra clave...'\r\n }\r\n />\r\n <ScrollArea className=\"h-[200px] overflow-y-auto\">\r\n {filteredItems?.length === 0 ? (\r\n <CommandEmpty>\r\n {language === 'pt-br'\r\n ? 'Nenhuma opção encontrada'\r\n : language === 'en-us'\r\n ? 'No options found'\r\n : 'No se encontraron opciones'}\r\n </CommandEmpty>\r\n ) : (\r\n <CommandGroup>\r\n {filteredItems?.map(item => (\r\n <CommandItem\r\n key={item.value}\r\n value={item.label}\r\n onSelect={() => {\r\n if (onValueChange) onValueChange(item.value)\r\n setOpen(false)\r\n }}\r\n >\r\n <CheckIcon\r\n className={cn(\r\n 'mr-2 h-4 w-4',\r\n item.value === value ? 'opacity-100' : 'opacity-0'\r\n )}\r\n />\r\n {!!item.icon && <span className=\"mr-2\">{item.icon}</span>}\r\n {item.label}\r\n </CommandItem>\r\n ))}\r\n </CommandGroup>\r\n )}\r\n </ScrollArea>\r\n </Command>\r\n </PopoverContent>\r\n </Popover>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { ComboBox }\r\n"],"names":["__webpack_require__","e","Object","Symbol","ComboBox","items","name","value","valueIcon","language","disabled","onValueChange","open","setOpen","useState","search","setSearch","filteredItems","item","Popover","PopoverTrigger","Button","cn","CaretDownIcon","PopoverContent","Command","CommandInput","ScrollArea","CommandEmpty","CommandGroup","CommandItem","CheckIcon"],"mappings":";+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,EAGxF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,IACpB,oBAAOG,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OA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CACX,KAAMpB,EACN,MAAOS,EACP,cAAeC,EACf,YACEP,UAAAA,EACI,wBACAA,UAAAA,EACE,oBACA,6B,GAGV,oCAACkB,yCAAAA,UAAUA,CAAAA,CAAC,UAAU,4B,SACnBV,GAAe,SAAW,EACzB,oCAACW,qCAAAA,YAAYA,CAAAA,C,SACVnB,UAAAA,EACG,iCACAA,UAAAA,EACE,mBACA,4B,GAGR,oCAACoB,qCAAAA,YAAYA,CAAAA,C,SACVZ,GAAe,IAAIC,GAClB,qCAACY,qCAAAA,WAAWA,CAAAA,CAEV,MAAOZ,EAAK,KAAK,CACjB,SAAU,KACJP,GAAeA,EAAcO,EAAK,KAAK,EAC3CL,EAAQ,GACV,E,UAEA,oCAACkB,sBAAAA,SAASA,CAAAA,CACR,UAAWT,GAAAA,0BAAAA,EAAAA,EACT,eACAJ,EAAK,KAAK,GAAKX,EAAQ,cAAgB,Y,GAG1C,CAAC,CAACW,EAAK,IAAI,EAAI,oCAAC,QAAK,UAAU,O,SAAQA,EAAK,IAAI,GAChDA,EAAK,KAAK,C,EAdNA,EAAK,KAAK,E,YAwBnC,E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"./data-table-action-bar":function(e){e.exports=require("./data-table-action-bar.cjs")},"./data-table-advanced-toolbar":function(e){e.exports=require("./data-table-advanced-toolbar.cjs")},"./data-table-column-header":function(e){e.exports=require("./data-table-column-header.cjs")},"./data-table-date-filter":function(e){e.exports=require("./data-table-date-filter.cjs")},"./data-table-faceted-filter":function(e){e.exports=require("./data-table-faceted-filter.cjs")},"./data-table-filter-list":function(e){e.exports=require("./data-table-filter-list.cjs")},"./data-table-filter-menu":function(e){e.exports=require("./data-table-filter-menu.cjs")},"./data-table-pagination":function(e){e.exports=require("./data-table-pagination.cjs")},"./data-table-range-filter":function(e){e.exports=require("./data-table-range-filter.cjs")},"./data-table-skeleton":function(e){e.exports=require("./data-table-skeleton.cjs")},"./data-table-slider-filter":function(e){e.exports=require("./data-table-slider-filter.cjs")},"./data-table-sort-list":function(e){e.exports=require("./data-table-sort-list.cjs")},"./data-table-toolbar":function(e){e.exports=require("./data-table-toolbar.cjs")},"
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"./data-table-action-bar":function(e){e.exports=require("./data-table-action-bar.cjs")},"./data-table-advanced-toolbar":function(e){e.exports=require("./data-table-advanced-toolbar.cjs")},"./data-table-column-header":function(e){e.exports=require("./data-table-column-header.cjs")},"./data-table-date-filter":function(e){e.exports=require("./data-table-date-filter.cjs")},"./data-table-faceted-filter":function(e){e.exports=require("./data-table-faceted-filter.cjs")},"./data-table-filter-list":function(e){e.exports=require("./data-table-filter-list.cjs")},"./data-table-filter-menu":function(e){e.exports=require("./data-table-filter-menu.cjs")},"./data-table-pagination":function(e){e.exports=require("./data-table-pagination.cjs")},"./data-table-range-filter":function(e){e.exports=require("./data-table-range-filter.cjs")},"./data-table-skeleton":function(e){e.exports=require("./data-table-skeleton.cjs")},"./data-table-slider-filter":function(e){e.exports=require("./data-table-slider-filter.cjs")},"./data-table-sort-list":function(e){e.exports=require("./data-table-sort-list.cjs")},"./data-table-toolbar":function(e){e.exports=require("./data-table-toolbar.cjs")},"@/components/data-table/data-table-view-options":function(e){e.exports=require("./data-table-view-options.cjs")},"./data-table":function(e){e.exports=require("./data-table.cjs")}},__webpack_module_cache__={};function __webpack_require__(e){var _=__webpack_module_cache__[e];if(void 0!==_)return _.exports;var a=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](a,a.exports,__webpack_require__),a.exports}__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var a in _)__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:_[a]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};for(var __webpack_i__ in(()=>{__webpack_require__.r(__webpack_exports__);var e=__webpack_require__("./data-table-action-bar"),_={};for(var a in e)"default"!==a&&(_[a]=(function(_){return e[_]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var r=__webpack_require__("./data-table-advanced-toolbar"),_={};for(var a in r)"default"!==a&&(_[a]=(function(e){return r[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var t=__webpack_require__("./data-table-column-header"),_={};for(var a in t)"default"!==a&&(_[a]=(function(e){return t[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var i=__webpack_require__("./data-table-date-filter"),_={};for(var a in i)"default"!==a&&(_[a]=(function(e){return i[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var n=__webpack_require__("./data-table-faceted-filter"),_={};for(var a in n)"default"!==a&&(_[a]=(function(e){return n[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var o=__webpack_require__("./data-table-filter-list"),_={};for(var a in o)"default"!==a&&(_[a]=(function(e){return o[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var u=__webpack_require__("./data-table-filter-menu"),_={};for(var a in u)"default"!==a&&(_[a]=(function(e){return u[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var c=__webpack_require__("./data-table-pagination"),_={};for(var a in c)"default"!==a&&(_[a]=(function(e){return c[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var b=__webpack_require__("./data-table-range-filter"),_={};for(var a in b)"default"!==a&&(_[a]=(function(e){return b[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var d=__webpack_require__("./data-table-skeleton"),_={};for(var a in d)"default"!==a&&(_[a]=(function(e){return d[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var p=__webpack_require__("./data-table-slider-filter"),_={};for(var a in p)"default"!==a&&(_[a]=(function(e){return p[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var l=__webpack_require__("./data-table-sort-list"),_={};for(var a in l)"default"!==a&&(_[a]=(function(e){return l[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var f=__webpack_require__("./data-table-toolbar"),_={};for(var a in f)"default"!==a&&(_[a]=(function(e){return f[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var s=__webpack_require__("@/components/data-table/data-table-view-options"),_={};for(var a in s)"default"!==a&&(_[a]=(function(e){return s[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var w=__webpack_require__("./data-table"),_={};for(var a in w)"default"!==a&&(_[a]=(function(e){return w[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_)})(),__webpack_exports__)exports[__webpack_i__]=__webpack_exports__[__webpack_i__];Object.defineProperty(exports,"__esModule",{value:!0});
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components\\data-table\\index.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/compat_get_default_export","webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object"],"sourcesContent":["// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};"],"names":["__webpack_require__","e","Object","Symbol"],"mappings":"
|
|
1
|
+
{"version":3,"file":"components\\data-table\\index.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/compat_get_default_export","webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object"],"sourcesContent":["// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};"],"names":["__webpack_require__","e","Object","Symbol"],"mappings":"8zDACAA,oBAAoB,CAAC,CAAG,AAAC,IACxB,IAAI,EAAS,GAAU,EAAO,UAAU,CACvC,IAAO,EAAO,OAAU,CACxB,IAAO,EAER,OADAA,oBAAoB,CAAC,CAAC,EAAQ,CAAE,EAAG,CAAO,GACnC,CACR,ECPAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAACD,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var t in a)__webpack_require__.o(a,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DialogHeader:()=>DialogHeader,DialogClose:()=>DialogClose,Dialog:()=>Dialog,DialogFooter:()=>DialogFooter,DialogContent:()=>DialogContent,DialogBody:()=>DialogBody,DialogDescription:()=>DialogDescription,DialogTrigger:()=>DialogTrigger,DialogTitle:()=>DialogTitle});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),react_dialog_namespaceObject=require("@radix-ui/react-dialog"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),external_button_cjs_namespaceObject=require("./button.cjs");function Dialog(
|
|
2
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var t in a)__webpack_require__.o(a,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DialogHeader:()=>DialogHeader,DialogClose:()=>DialogClose,Dialog:()=>Dialog,DialogFooter:()=>DialogFooter,DialogContent:()=>DialogContent,DialogBody:()=>DialogBody,DialogDescription:()=>DialogDescription,DialogPortal:()=>DialogPortal,DialogTrigger:()=>DialogTrigger,DialogOverlay:()=>DialogOverlay,DialogTitle:()=>DialogTitle});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),react_dialog_namespaceObject=require("@radix-ui/react-dialog"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),external_button_cjs_namespaceObject=require("./button.cjs");function Dialog(e){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Root,{"data-slot":"dialog",...e})}function DialogTrigger(e){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Trigger,{"data-slot":"dialog-trigger",...e})}function DialogPortal({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Portal,{"data-slot":"dialog-portal",...e})}function DialogClose({className:e,size:a,variant:t="outline",...o}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Close,{className:(0,external_button_cjs_namespaceObject.buttonVariants)({className:e,size:a,variant:t}),"data-slot":"dialog-close",...o})}function DialogOverlay({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Overlay,{className:(0,utils_cjs_namespaceObject.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",e),"data-slot":"dialog-overlay",...a})}function DialogContent({children:e,className:a,classNames:t,...o}){return(0,jsx_runtime_namespaceObject.jsxs)(DialogPortal,{children:[(0,jsx_runtime_namespaceObject.jsx)(DialogOverlay,{className:t?.overlay}),(0,jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Content,{className:(0,utils_cjs_namespaceObject.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg sm:rounded-lg",t?.content),"data-slot":"dialog-content-wrapper",...o,children:[e,(0,jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Close,{className:(0,external_button_cjs_namespaceObject.buttonVariants)({className:["absolute top-2.5 right-2.5 size-7",t?.close],size:"icon",variant:"ghost"}),children:[(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.XIcon,{className:"size-4"}),(0,jsx_runtime_namespaceObject.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function DialogHeader({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,utils_cjs_namespaceObject.cn)("flex flex-col space-y-1.5 text-center sm:text-left",e),"data-slot":"dialog-header",...a})}function DialogBody({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("main",{className:(0,utils_cjs_namespaceObject.cn)("py-2",e),"data-slot":"dialog-body",...a})}function DialogFooter({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("footer",{className:(0,utils_cjs_namespaceObject.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),"data-slot":"dialog-footer",...a})}function DialogTitle({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Title,{className:(0,utils_cjs_namespaceObject.cn)("font-semibold text-lg leading-none tracking-tight",e),"data-slot":"dialog-title",...a})}function DialogDescription({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Description,{className:(0,utils_cjs_namespaceObject.cn)("text-gray-600 text-sm",e),"data-slot":"dialog-description",...a})}for(var __webpack_i__ in Dialog.displayName="Dialog",DialogTrigger.displayName="DialogTrigger",DialogPortal.displayName="DialogPortal",DialogClose.displayName="DialogClose",DialogOverlay.displayName="DialogOverlay",DialogContent.displayName="DialogContent",DialogHeader.displayName="DialogHeader",DialogBody.displayName="DialogBody",DialogFooter.displayName="DialogFooter",DialogTitle.displayName="DialogTitle",DialogDescription.displayName="DialogDescription",exports.Dialog=__webpack_exports__.Dialog,exports.DialogBody=__webpack_exports__.DialogBody,exports.DialogClose=__webpack_exports__.DialogClose,exports.DialogContent=__webpack_exports__.DialogContent,exports.DialogDescription=__webpack_exports__.DialogDescription,exports.DialogFooter=__webpack_exports__.DialogFooter,exports.DialogHeader=__webpack_exports__.DialogHeader,exports.DialogOverlay=__webpack_exports__.DialogOverlay,exports.DialogPortal=__webpack_exports__.DialogPortal,exports.DialogTitle=__webpack_exports__.DialogTitle,exports.DialogTrigger=__webpack_exports__.DialogTrigger,__webpack_exports__)-1===["Dialog","DialogBody","DialogClose","DialogContent","DialogDescription","DialogFooter","DialogHeader","DialogOverlay","DialogPortal","DialogTitle","DialogTrigger"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
3
3
|
//# sourceMappingURL=dialog.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components\\dialog.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/dialog.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\r\n\r\nimport { X } from '@phosphor-icons/react'\r\nimport * as DialogPrimitive from '@radix-ui/react-dialog'\r\nimport { ComponentProps, JSX } from 'react'\r\n\r\nimport { VariantProps, cn } from '@/lib/utils'\r\nimport { buttonVariants } from './button'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Dialog\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Dialog({\r\n ...props\r\n}: ComponentProps<typeof DialogPrimitive.Root>): JSX.Element {\r\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />\r\n}\r\nDialog.displayName = 'Dialog'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogTrigger\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogTrigger({\r\n ...props\r\n}: ComponentProps<typeof DialogPrimitive.Trigger>): JSX.Element {\r\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />\r\n}\r\nDialogTrigger.displayName = 'DialogTrigger'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogContent\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogContent({\r\n children,\r\n className,\r\n classNames,\r\n ...props\r\n}: ComponentProps<typeof DialogPrimitive.Content> & {\r\n classNames?: {\r\n close?: string\r\n content?: string\r\n overlay?: string\r\n }\r\n}): JSX.Element {\r\n return (\r\n <DialogPrimitive.Portal>\r\n <DialogPrimitive.Overlay\r\n className={cn(\r\n 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/40 backdrop-blur-sm data-[state=closed]:animate-out data-[state=open]:animate-in',\r\n classNames?.overlay\r\n )}\r\n />\r\n <DialogPrimitive.Content\r\n className={cn(\r\n 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:rounded-lg',\r\n classNames?.content\r\n )}\r\n data-slot=\"dialog-content-wrapper\"\r\n {...props}\r\n >\r\n {children}\r\n <DialogPrimitive.Close\r\n className={buttonVariants({\r\n className: ['absolute top-2.5 right-2.5 size-7', classNames?.close],\r\n size: 'icon',\r\n variant: 'ghost',\r\n })}\r\n >\r\n <X className=\"size-4\" />\r\n <span className=\"sr-only\">Close</span>\r\n </DialogPrimitive.Close>\r\n </DialogPrimitive.Content>\r\n </DialogPrimitive.Portal>\r\n )\r\n}\r\nDialogContent.displayName = 'DialogContent'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogHeader\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogHeader({\r\n className,\r\n ...props\r\n}: ComponentProps<'div'>): JSX.Element {\r\n return (\r\n <header\r\n className={cn(\r\n 'flex flex-col space-y-1.5 text-center sm:text-left',\r\n className\r\n )}\r\n data-slot=\"dialog-header\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogHeader.displayName = 'DialogHeader'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogBody\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogBody({\r\n className,\r\n ...props\r\n}: ComponentProps<'div'>): JSX.Element {\r\n return (\r\n <main\r\n className={cn('py-2', className)}\r\n data-slot=\"dialog-body\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogBody.displayName = 'DialogBody'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogFooter\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogFooter({\r\n className,\r\n ...props\r\n}: ComponentProps<'div'>): JSX.Element {\r\n return (\r\n <footer\r\n className={cn(\r\n 'flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2',\r\n className\r\n )}\r\n data-slot=\"dialog-footer\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogFooter.displayName = 'DialogFooter'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogTitle\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogTitle({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof DialogPrimitive.Title>): JSX.Element {\r\n return (\r\n <DialogPrimitive.Title\r\n className={cn(\r\n 'font-semibold text-lg leading-none tracking-tight',\r\n className\r\n )}\r\n data-slot=\"dialog-title\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogTitle.displayName = 'DialogTitle'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogDescription\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogDescription({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof DialogPrimitive.Description>): JSX.Element {\r\n return (\r\n <DialogPrimitive.Description\r\n className={cn('text-gray-600 text-sm', className)}\r\n data-slot=\"dialog-description\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogDescription.displayName = 'DialogDescription'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogClose\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogClose({\r\n className,\r\n size,\r\n variant = 'outline',\r\n ...props\r\n}: Omit<ComponentProps<typeof DialogPrimitive.Close>, 'ref'> & {\r\n size?: VariantProps<typeof buttonVariants>['size']\r\n variant?: VariantProps<typeof buttonVariants>['variant']\r\n}): JSX.Element {\r\n return (\r\n <DialogPrimitive.Close\r\n className={buttonVariants({ className, size, variant })}\r\n data-slot=\"dialog-close\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogClose.displayName = 'DialogClose'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport {\r\n Dialog,\r\n DialogTrigger,\r\n DialogContent,\r\n DialogHeader,\r\n DialogBody,\r\n DialogFooter,\r\n DialogTitle,\r\n DialogDescription,\r\n DialogClose,\r\n}\r\n"],"names":["__webpack_require__","e","Object","Symbol","Dialog","props","DialogPrimitive","DialogTrigger","DialogContent","children","className","classNames","cn","buttonVariants","X","DialogHeader","DialogBody","DialogFooter","DialogTitle","DialogDescription","DialogClose","size","variant"],"mappings":";+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,EAGxF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,IACpB,oBAAOG,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS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AGL,EACmB,EACtB,MACE,oCAAC,UACC,UAAWO,GAAAA,0BAAAA,EAAAA,EACT,gEACAF,GAEF,YAAU,gBACT,GAAGL,CAAK,EAGf,CAOA,SAASa,YAAY,CACnBR,UAAAA,CAAS,CACT,GAAGL,EAC0C,EAC7C,MACE,oCAACC,6BAAAA,KAAqB,EACpB,UAAWM,GAAAA,0BAAAA,EAAAA,EACT,oDACAF,GAEF,YAAU,eACT,GAAGL,CAAK,EAGf,CAOA,SAASc,kBAAkB,CACzBT,UAAAA,CAAS,CACT,GAAGL,EACgD,EACnD,MACE,oCAACC,6BAAAA,WAA2B,EAC1B,UAAWM,GAAAA,0BAAAA,EAAAA,EAAG,wBAAyBF,GACvC,YAAU,qBACT,GAAGL,CAAK,EAGf,CAOA,SAASe,YAAY,CACnBV,UAAAA,CAAS,CACTW,KAAAA,CAAI,CACJC,QAAAA,EAAU,SAAS,CACnB,GAAGjB,EAIJ,EACC,MACE,oCAACC,6BAAAA,KAAqB,EACpB,UAAWO,GAAAA,oCAAAA,cAAAA,EAAe,CAAEH,UAAAA,EAAWW,KAAAA,EAAMC,QAAAA,CAAQ,GACrD,YAAU,eACT,GAAGjB,CAAK,EAGf,C,yBArLAD,OAAO,WAAW,CAAG,SAWrBG,cAAc,WAAW,CAAG,gBAiD5BC,cAAc,WAAW,CAAG,gBAqB5BO,aAAa,WAAW,CAAG,eAkB3BC,WAAW,WAAW,CAAG,aAqBzBC,aAAa,WAAW,CAAG,eAqB3BC,YAAY,WAAW,CAAG,cAkB1BC,kBAAkB,WAAW,CAAG,oBAuBhCC,YAAY,WAAW,CAAG,c"}
|
|
1
|
+
{"version":3,"file":"components\\dialog.cjs","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object","webpack://@gbmtech/aurora-ui/./src/components/dialog.tsx"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\r\n\r\nimport { XIcon } from '@phosphor-icons/react'\r\nimport * as DialogPrimitive from '@radix-ui/react-dialog'\r\nimport { ComponentProps } from 'react'\r\n\r\nimport { VariantProps, cn } from '@/lib/utils'\r\nimport { buttonVariants } from './button'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Dialog\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Dialog(props: ComponentProps<typeof DialogPrimitive.Root>) {\r\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />\r\n}\r\nDialog.displayName = 'Dialog'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogTrigger\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogTrigger(props: ComponentProps<typeof DialogPrimitive.Trigger>) {\r\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />\r\n}\r\nDialogTrigger.displayName = 'DialogTrigger'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogPortal\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogPortal({\r\n ...props\r\n}: React.ComponentProps<typeof DialogPrimitive.Portal>) {\r\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />\r\n}\r\nDialogPortal.displayName = 'DialogPortal'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogClose\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogClose({\r\n className,\r\n size,\r\n variant = 'outline',\r\n ...props\r\n}: Omit<ComponentProps<typeof DialogPrimitive.Close>, 'ref'> & {\r\n size?: VariantProps<typeof buttonVariants>['size']\r\n variant?: VariantProps<typeof buttonVariants>['variant']\r\n}) {\r\n return (\r\n <DialogPrimitive.Close\r\n className={buttonVariants({ className, size, variant })}\r\n data-slot=\"dialog-close\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogClose.displayName = 'DialogClose'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogPortal\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogOverlay({\r\n className,\r\n ...props\r\n}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\r\n return (\r\n <DialogPrimitive.Overlay\r\n className={cn(\r\n 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in',\r\n className\r\n )}\r\n data-slot=\"dialog-overlay\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogOverlay.displayName = 'DialogOverlay'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogContent\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogContent({\r\n children,\r\n className,\r\n classNames,\r\n ...props\r\n}: ComponentProps<typeof DialogPrimitive.Content> & {\r\n classNames?: {\r\n close?: string\r\n content?: string\r\n overlay?: string\r\n }\r\n}) {\r\n return (\r\n <DialogPortal>\r\n <DialogOverlay className={classNames?.overlay} />\r\n <DialogPrimitive.Content\r\n className={cn(\r\n 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg sm:rounded-lg',\r\n classNames?.content\r\n )}\r\n data-slot=\"dialog-content-wrapper\"\r\n {...props}\r\n >\r\n {children}\r\n <DialogPrimitive.Close\r\n className={buttonVariants({\r\n className: ['absolute top-2.5 right-2.5 size-7', classNames?.close],\r\n size: 'icon',\r\n variant: 'ghost',\r\n })}\r\n >\r\n <XIcon className=\"size-4\" />\r\n <span className=\"sr-only\">Close</span>\r\n </DialogPrimitive.Close>\r\n </DialogPrimitive.Content>\r\n </DialogPortal>\r\n )\r\n}\r\nDialogContent.displayName = 'DialogContent'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogHeader\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogHeader({ className, ...props }: ComponentProps<'div'>) {\r\n return (\r\n <div\r\n className={cn(\r\n 'flex flex-col space-y-1.5 text-center sm:text-left',\r\n className\r\n )}\r\n data-slot=\"dialog-header\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogHeader.displayName = 'DialogHeader'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogBody\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogBody({ className, ...props }: ComponentProps<'div'>) {\r\n return (\r\n <main\r\n className={cn('py-2', className)}\r\n data-slot=\"dialog-body\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogBody.displayName = 'DialogBody'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogFooter\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogFooter({ className, ...props }: ComponentProps<'div'>) {\r\n return (\r\n <footer\r\n className={cn(\r\n 'flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2',\r\n className\r\n )}\r\n data-slot=\"dialog-footer\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogFooter.displayName = 'DialogFooter'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogTitle\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogTitle({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof DialogPrimitive.Title>) {\r\n return (\r\n <DialogPrimitive.Title\r\n className={cn(\r\n 'font-semibold text-lg leading-none tracking-tight',\r\n className\r\n )}\r\n data-slot=\"dialog-title\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogTitle.displayName = 'DialogTitle'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogDescription\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogDescription({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof DialogPrimitive.Description>) {\r\n return (\r\n <DialogPrimitive.Description\r\n className={cn('text-gray-600 text-sm', className)}\r\n data-slot=\"dialog-description\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogDescription.displayName = 'DialogDescription'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport {\r\n Dialog,\r\n DialogTrigger,\r\n DialogContent,\r\n DialogHeader,\r\n DialogBody,\r\n DialogFooter,\r\n DialogTitle,\r\n DialogDescription,\r\n DialogClose,\r\n DialogPortal,\r\n DialogOverlay,\r\n}\r\n"],"names":["__webpack_require__","e","Object","Symbol","Dialog","props","DialogPrimitive","DialogTrigger","DialogPortal","DialogClose","className","size","variant","buttonVariants","DialogOverlay","cn","DialogContent","children","classNames","XIcon","DialogHeader","DialogBody","DialogFooter","DialogTitle","DialogDescription"],"mappings":";+PAAAA,CAAAA,oBAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAAO,EACLD,oBAAoB,CAAC,CAAC,EAAY,IAAQ,CAACA,oBAAoB,CAAC,CAACC,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,EAGxF,ECNAD,oBAAoB,CAAC,CAAG,CAAC,EAAK,IAAUE,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClFF,oBAAoB,CAAC,CAAG,IACpB,oBAAOG,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,WAAW,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CAAG,eAqB3BC,YAAY,WAAW,CAAG,cAkB1BC,kBAAkB,WAAW,CAAG,oB"}
|
|
@@ -1,51 +1,59 @@
|
|
|
1
1
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
2
|
-
import { ComponentProps
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
3
|
import { VariantProps } from '../lib/utils';
|
|
4
4
|
import { buttonVariants } from './button';
|
|
5
|
-
declare function Dialog(
|
|
5
|
+
declare function Dialog(props: ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare namespace Dialog {
|
|
7
7
|
var displayName: string;
|
|
8
8
|
}
|
|
9
|
-
declare function DialogTrigger(
|
|
9
|
+
declare function DialogTrigger(props: ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
declare namespace DialogTrigger {
|
|
11
11
|
var displayName: string;
|
|
12
12
|
}
|
|
13
|
+
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare namespace DialogPortal {
|
|
15
|
+
var displayName: string;
|
|
16
|
+
}
|
|
17
|
+
declare function DialogClose({ className, size, variant, ...props }: Omit<ComponentProps<typeof DialogPrimitive.Close>, 'ref'> & {
|
|
18
|
+
size?: VariantProps<typeof buttonVariants>['size'];
|
|
19
|
+
variant?: VariantProps<typeof buttonVariants>['variant'];
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare namespace DialogClose {
|
|
22
|
+
var displayName: string;
|
|
23
|
+
}
|
|
24
|
+
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare namespace DialogOverlay {
|
|
26
|
+
var displayName: string;
|
|
27
|
+
}
|
|
13
28
|
declare function DialogContent({ children, className, classNames, ...props }: ComponentProps<typeof DialogPrimitive.Content> & {
|
|
14
29
|
classNames?: {
|
|
15
30
|
close?: string;
|
|
16
31
|
content?: string;
|
|
17
32
|
overlay?: string;
|
|
18
33
|
};
|
|
19
|
-
}): JSX.Element;
|
|
34
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
20
35
|
declare namespace DialogContent {
|
|
21
36
|
var displayName: string;
|
|
22
37
|
}
|
|
23
|
-
declare function DialogHeader({ className, ...props }: ComponentProps<'div'>): JSX.Element;
|
|
38
|
+
declare function DialogHeader({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
24
39
|
declare namespace DialogHeader {
|
|
25
40
|
var displayName: string;
|
|
26
41
|
}
|
|
27
|
-
declare function DialogBody({ className, ...props }: ComponentProps<'div'>): JSX.Element;
|
|
42
|
+
declare function DialogBody({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
28
43
|
declare namespace DialogBody {
|
|
29
44
|
var displayName: string;
|
|
30
45
|
}
|
|
31
|
-
declare function DialogFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element;
|
|
46
|
+
declare function DialogFooter({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
32
47
|
declare namespace DialogFooter {
|
|
33
48
|
var displayName: string;
|
|
34
49
|
}
|
|
35
|
-
declare function DialogTitle({ className, ...props }: ComponentProps<typeof DialogPrimitive.Title>): JSX.Element;
|
|
50
|
+
declare function DialogTitle({ className, ...props }: ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
36
51
|
declare namespace DialogTitle {
|
|
37
52
|
var displayName: string;
|
|
38
53
|
}
|
|
39
|
-
declare function DialogDescription({ className, ...props }: ComponentProps<typeof DialogPrimitive.Description>): JSX.Element;
|
|
54
|
+
declare function DialogDescription({ className, ...props }: ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
40
55
|
declare namespace DialogDescription {
|
|
41
56
|
var displayName: string;
|
|
42
57
|
}
|
|
43
|
-
|
|
44
|
-
size?: VariantProps<typeof buttonVariants>['size'];
|
|
45
|
-
variant?: VariantProps<typeof buttonVariants>['variant'];
|
|
46
|
-
}): JSX.Element;
|
|
47
|
-
declare namespace DialogClose {
|
|
48
|
-
var displayName: string;
|
|
49
|
-
}
|
|
50
|
-
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogBody, DialogFooter, DialogTitle, DialogDescription, DialogClose, };
|
|
58
|
+
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogBody, DialogFooter, DialogTitle, DialogDescription, DialogClose, DialogPortal, DialogOverlay, };
|
|
51
59
|
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/dialog.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/dialog.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,EAAE,YAAY,EAAM,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAMzC,iBAAS,MAAM,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAEjE;kBAFQ,MAAM;;;AASf,iBAAS,aAAa,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,2CAE3E;kBAFQ,aAAa;;;AAStB,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,2CAErD;kBAJQ,YAAY;;;AAWrB,iBAAS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AC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAW9C;kBAdQ,WAAW;;;AAqBpB,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,2CAQpD;kBAXQ,iBAAiB;;;AAkB1B,OAAO,EACL,MAAM,EACN,aAAa,EACb,aAAa,EACb,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,aAAa,GACd,CAAA"}
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
2
|
-
import { ComponentProps
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
3
|
import { VariantProps } from '../lib/utils';
|
|
4
4
|
import { buttonVariants } from './button';
|
|
5
|
-
declare function AlertDialog(
|
|
6
|
-
declare function AlertDialogTrigger(
|
|
7
|
-
declare function AlertDialogPortal(
|
|
5
|
+
declare function AlertDialog(props: ComponentProps<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function AlertDialogTrigger(props: ComponentProps<typeof AlertDialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function AlertDialogPortal(props: ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
declare function AlertDialogContent({ className, classNames, ...props }: ComponentProps<typeof AlertDialogPrimitive.Content> & {
|
|
9
10
|
classNames?: {
|
|
10
11
|
content?: string;
|
|
11
12
|
overlay?: string;
|
|
12
13
|
};
|
|
13
|
-
}): JSX.Element;
|
|
14
|
-
declare function AlertDialogHeader({ className, ...props }: ComponentProps<'div'>): JSX.Element;
|
|
15
|
-
declare function AlertDialogBody({ className, ...props }: ComponentProps<'div'>): JSX.Element;
|
|
16
|
-
declare function AlertDialogFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element;
|
|
17
|
-
declare function AlertDialogTitle({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Title>): JSX.Element;
|
|
18
|
-
declare function AlertDialogDescription({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Description>): JSX.Element;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function AlertDialogHeader({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function AlertDialogBody({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function AlertDialogFooter({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function AlertDialogTitle({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function AlertDialogDescription({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
declare function AlertDialogAction({ className, size, variant, ...props }: ComponentProps<typeof AlertDialogPrimitive.Action> & {
|
|
20
21
|
size?: VariantProps<typeof buttonVariants>['size'];
|
|
21
22
|
variant?: VariantProps<typeof buttonVariants>['variant'];
|
|
22
|
-
}): JSX.Element;
|
|
23
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
declare function AlertDialogCancel({ className, size, variant, ...props }: ComponentProps<typeof AlertDialogPrimitive.Cancel> & {
|
|
24
25
|
size?: VariantProps<typeof buttonVariants>['size'];
|
|
25
26
|
variant?: VariantProps<typeof buttonVariants>['variant'];
|
|
26
|
-
}): JSX.Element;
|
|
27
|
-
export { AlertDialog, AlertDialogPortal, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogBody, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
27
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogBody, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
28
29
|
//# sourceMappingURL=alert-dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/alert-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAA;AACpE,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/alert-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAA;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,EAAE,YAAY,EAAM,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAMzC,iBAAS,WAAW,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,2CAE3E;AAMD,iBAAS,kBAAkB,CACzB,KAAK,EAAE,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,2CAK3D;AAMD,iBAAS,iBAAiB,CACxB,KAAK,EAAE,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,2CAK1D;AAMD,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,2CAW3D;AAMD,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,UAAU,EACV,GAAG,KAAK,EAC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,CAAC,MAAM,CAAC,CAAA;IAClD,OAAO,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC,SAAS,CAAC,CAAA;CACzD,2CAQA;AAMD,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAClB,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import*as t from"react/jsx-runtime";import*as a from"@radix-ui/react-alert-dialog";import*as e from"../lib/utils.js";import*as o from"./button.js";function l(
|
|
2
|
+
import*as t from"react/jsx-runtime";import*as a from"@radix-ui/react-alert-dialog";import*as e from"../lib/utils.js";import*as o from"./button.js";function l(e){return(0,t.jsx)(a.Root,{"data-slot":"alert-dialog",...e})}function r(e){return(0,t.jsx)(a.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function n(e){return(0,t.jsx)(a.Portal,{"data-slot":"alert-dialog-portal",...e})}function s({className:o,...l}){return(0,t.jsx)(a.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,e.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",o),...l})}function i({className:o,classNames:l,...r}){return(0,t.jsxs)(n,{children:[(0,t.jsx)(s,{"data-slot":"alert-dialog-overlay",className:l?.overlay}),(0,t.jsx)(a.Content,{className:(0,e.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg",l?.content),"data-slot":"alert-dialog-content",...r})]})}function d({className:a,...o}){return(0,t.jsx)("div",{className:(0,e.cn)("flex flex-col gap-2 text-center sm:text-left",a),"data-slot":"alert-dialog-header",...o})}function c({className:a,...o}){return(0,t.jsx)("main",{className:(0,e.cn)("overflow-auto px-6 py-2",a),"data-slot":"alert-dialog-body",...o})}function g({className:a,...o}){return(0,t.jsx)("div",{className:(0,e.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",a),"data-slot":"alert-dialog-footer",...o})}function u({className:o,...l}){return(0,t.jsx)(a.Title,{className:(0,e.cn)("font-semibold text-lg",o),"data-slot":"alert-dialog-title",...l})}function m({className:o,...l}){return(0,t.jsx)(a.Description,{className:(0,e.cn)("text-muted-foreground text-sm",o),"data-slot":"alert-dialog-description",...l})}function f({className:e,size:l,variant:r,...n}){return(0,t.jsx)(a.Action,{className:(0,o.buttonVariants)({className:e,size:l,variant:r}),"data-slot":"alert-dialog-action",...n})}function x({className:e,size:l,variant:r="outline",...n}){return(0,t.jsx)(a.Cancel,{className:(0,o.buttonVariants)({className:e,size:l,variant:r}),"data-slot":"alert-dialog-cancel",...n})}export{l as AlertDialog,f as AlertDialogAction,c as AlertDialogBody,x as AlertDialogCancel,i as AlertDialogContent,m as AlertDialogDescription,g as AlertDialogFooter,d as AlertDialogHeader,s as AlertDialogOverlay,n as AlertDialogPortal,u as AlertDialogTitle,r as AlertDialogTrigger};
|
|
3
3
|
//# sourceMappingURL=alert-dialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components\\alert-dialog.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/alert-dialog.tsx"],"sourcesContent":["\r\n\r\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog'\r\nimport { ComponentProps, JSX } from 'react'\r\n\r\nimport { VariantProps, cn } from '@/lib/utils'\r\nimport { buttonVariants } from './button'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialog\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialog({\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Root>): JSX.Element {\r\n return <AlertDialogPrimitive.Root data-slot=\"alert-dialog\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogTrigger\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogTrigger({\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Trigger>): JSX.Element {\r\n return (\r\n <AlertDialogPrimitive.Trigger data-slot=\"alert-dialog-trigger\" {...props} />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogPortal\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogPortal({\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Portal>): JSX.Element {\r\n return (\r\n <AlertDialogPrimitive.Portal data-slot=\"alert-dialog-portal\" {...props} />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogContent\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogContent({\r\n className,\r\n classNames,\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Content> & {\r\n classNames?: {\r\n content?: string\r\n overlay?: string\r\n }\r\n}): JSX.Element {\r\n return (\r\n <AlertDialogPortal>\r\n <AlertDialogPrimitive.Overlay\r\n data-slot=\"alert-dialog-overlay\"\r\n className={cn(\r\n 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/40 data-[state=closed]:animate-out data-[state=open]:animate-in',\r\n classNames?.overlay\r\n )}\r\n />\r\n\r\n <AlertDialogPrimitive.Content\r\n className={cn(\r\n 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg',\r\n classNames?.content\r\n )}\r\n data-slot=\"alert-dialog-content\"\r\n {...props}\r\n />\r\n </AlertDialogPortal>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogHeader\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogHeader({\r\n className,\r\n ...props\r\n}: ComponentProps<'div'>): JSX.Element {\r\n return (\r\n <div\r\n className={cn('flex flex-col gap-2 text-center sm:text-left', className)}\r\n data-slot=\"alert-dialog-header\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogBody\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogBody({\r\n className,\r\n ...props\r\n}: ComponentProps<'div'>): JSX.Element {\r\n return (\r\n <main\r\n className={cn('overflow-auto px-6 py-2', className)}\r\n data-slot=\"alert-dialog-body\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogFooter\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogFooter({\r\n className,\r\n ...props\r\n}: ComponentProps<'div'>): JSX.Element {\r\n return (\r\n <div\r\n className={cn(\r\n 'flex flex-col-reverse gap-2 sm:flex-row sm:justify-end',\r\n className\r\n )}\r\n data-slot=\"alert-dialog-footer\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogTitle\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogTitle({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Title>): JSX.Element {\r\n return (\r\n <AlertDialogPrimitive.Title\r\n className={cn('font-semibold text-lg', className)}\r\n data-slot=\"alert-dialog-title\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogDescription\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogDescription({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Description>): JSX.Element {\r\n return (\r\n <AlertDialogPrimitive.Description\r\n className={cn('text-muted-foreground text-sm', className)}\r\n data-slot=\"alert-dialog-description\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogAction\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogAction({\r\n className,\r\n size,\r\n variant,\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Action> & {\r\n size?: VariantProps<typeof buttonVariants>['size']\r\n variant?: VariantProps<typeof buttonVariants>['variant']\r\n}): JSX.Element {\r\n return (\r\n <AlertDialogPrimitive.Action\r\n className={buttonVariants({ className, size, variant })}\r\n data-slot=\"alert-dialog-action\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogCancel\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogCancel({\r\n className,\r\n size,\r\n variant = 'secondary',\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Cancel> & {\r\n size?: VariantProps<typeof buttonVariants>['size']\r\n variant?: VariantProps<typeof buttonVariants>['variant']\r\n}): JSX.Element {\r\n return (\r\n <AlertDialogPrimitive.Cancel\r\n className={buttonVariants({ className, size, variant })}\r\n data-slot=\"alert-dialog-cancel\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport {\r\n AlertDialog,\r\n AlertDialogPortal,\r\n AlertDialogTrigger,\r\n AlertDialogContent,\r\n AlertDialogHeader,\r\n AlertDialogBody,\r\n AlertDialogFooter,\r\n AlertDialogTitle,\r\n AlertDialogDescription,\r\n AlertDialogAction,\r\n AlertDialogCancel,\r\n}\r\n"],"names":["AlertDialog","props","AlertDialogPrimitive","AlertDialogTrigger","AlertDialogPortal","AlertDialogContent","className","classNames","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","size","variant","buttonVariants","AlertDialogCancel"],"mappings":";mJAYA,SAASA,EAAY,CACnB,GAAGC,EAC8C,EACjD,MAAO,UAACC,EAAAA,IAAyB,EAAC,YAAU,eAAgB,GAAGD,CAAK,EACtE,CAMA,SAASE,EAAmB,CAC1B,GAAGF,EACiD,EACpD,MACE,UAACC,EAAAA,OAA4B,EAAC,YAAU,uBAAwB,GAAGD,CAAK,EAE5E,CAMA,SAASG,EAAkB,CACzB,GAAGH,EACgD,EACnD,MACE,UAACC,EAAAA,MAA2B,EAAC,YAAU,sBAAuB,GAAGD,CAAK,EAE1E,CAMA,SAASI,EAAmB,CAC1BC,UAAAA,CAAS,CACTC,WAAAA,CAAU,CACV,GAAGN,EAMJ,EACC,MACE,WAACG,EAAAA,C,UACC,UAACF,EAAAA,OAA4B,EAC3B,YAAU,uBACV,UAAWM,GAAAA,EAAAA,EAAAA,EACT,yJACAD,GAAY,Q,GAIhB,UAACL,EAAAA,OAA4B,EAC3B,UAAWM,GAAAA,EAAAA,EAAAA,EACT,0WACAD,GAAY,SAEd,YAAU,uBACT,GAAGN,CAAK,KAIjB,CAMA,SAASQ,EAAkB,CACzBH,UAAAA,CAAS,CACT,GAAGL,EACmB,EACtB,MACE,UAAC,OACC,UAAWO,GAAAA,EAAAA,EAAAA,EAAG,+CAAgDF,GAC9D,YAAU,sBACT,GAAGL,CAAK,EAGf,CAMA,SAASS,EAAgB,CACvBJ,UAAAA,CAAS,CACT,GAAGL,EACmB,EACtB,MACE,UAAC,QACC,UAAWO,GAAAA,EAAAA,EAAAA,EAAG,0BAA2BF,GACzC,YAAU,oBACT,GAAGL,CAAK,EAGf,CAMA,SAASU,EAAkB,CACzBL,UAAAA,CAAS,CACT,GAAGL,EACmB,EACtB,MACE,UAAC,OACC,UAAWO,GAAAA,EAAAA,EAAAA,EACT,yDACAF,GAEF,YAAU,sBACT,GAAGL,CAAK,EAGf,CAMA,SAASW,EAAiB,CACxBN,UAAAA,CAAS,CACT,GAAGL,EAC+C,EAClD,MACE,UAACC,EAAAA,KAA0B,EACzB,UAAWM,GAAAA,EAAAA,EAAAA,EAAG,wBAAyBF,GACvC,YAAU,qBACT,GAAGL,CAAK,EAGf,CAMA,SAASY,EAAuB,CAC9BP,UAAAA,CAAS,CACT,GAAGL,EACqD,EACxD,MACE,UAACC,EAAAA,WAAgC,EAC/B,UAAWM,GAAAA,EAAAA,EAAAA,EAAG,gCAAiCF,GAC/C,YAAU,2BACT,GAAGL,CAAK,EAGf,CAMA,SAASa,EAAkB,CACzBR,UAAAA,CAAS,CACTS,KAAAA,CAAI,CACJC,QAAAA,CAAO,CACP,GAAGf,EAIJ,EACC,MACE,UAACC,EAAAA,MAA2B,EAC1B,UAAWe,GAAAA,EAAAA,cAAAA,EAAe,CAAEX,UAAAA,EAAWS,KAAAA,EAAMC,QAAAA,CAAQ,GACrD,YAAU,sBACT,GAAGf,CAAK,EAGf,CAMA,SAASiB,EAAkB,CACzBZ,UAAAA,CAAS,CACTS,KAAAA,CAAI,CACJC,QAAAA,EAAU,WAAW,CACrB,GAAGf,EAIJ,EACC,MACE,UAACC,EAAAA,MAA2B,EAC1B,UAAWe,GAAAA,EAAAA,cAAAA,EAAe,CAAEX,UAAAA,EAAWS,KAAAA,EAAMC,QAAAA,CAAQ,GACrD,YAAU,sBACT,GAAGf,CAAK,EAGf,Q"}
|
|
1
|
+
{"version":3,"file":"components\\alert-dialog.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/alert-dialog.tsx"],"sourcesContent":["\r\n\r\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog'\r\nimport { ComponentProps } from 'react'\r\n\r\nimport { VariantProps, cn } from '@/lib/utils'\r\nimport { buttonVariants } from './button'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialog\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialog(props: ComponentProps<typeof AlertDialogPrimitive.Root>) {\r\n return <AlertDialogPrimitive.Root data-slot=\"alert-dialog\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogTrigger\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogTrigger(\r\n props: ComponentProps<typeof AlertDialogPrimitive.Trigger>\r\n) {\r\n return (\r\n <AlertDialogPrimitive.Trigger data-slot=\"alert-dialog-trigger\" {...props} />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogPortal\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogPortal(\r\n props: ComponentProps<typeof AlertDialogPrimitive.Portal>\r\n) {\r\n return (\r\n <AlertDialogPrimitive.Portal data-slot=\"alert-dialog-portal\" {...props} />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogOverlay\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogOverlay({\r\n className,\r\n ...props\r\n}: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>) {\r\n return (\r\n <AlertDialogPrimitive.Overlay\r\n data-slot=\"alert-dialog-overlay\"\r\n className={cn(\r\n 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in',\r\n className\r\n )}\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogContent\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogContent({\r\n className,\r\n classNames,\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Content> & {\r\n classNames?: {\r\n content?: string\r\n overlay?: string\r\n }\r\n}) {\r\n return (\r\n <AlertDialogPortal>\r\n <AlertDialogOverlay\r\n data-slot=\"alert-dialog-overlay\"\r\n className={classNames?.overlay}\r\n />\r\n\r\n <AlertDialogPrimitive.Content\r\n className={cn(\r\n 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg',\r\n classNames?.content\r\n )}\r\n data-slot=\"alert-dialog-content\"\r\n {...props}\r\n />\r\n </AlertDialogPortal>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogHeader\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogHeader({ className, ...props }: ComponentProps<'div'>) {\r\n return (\r\n <div\r\n className={cn('flex flex-col gap-2 text-center sm:text-left', className)}\r\n data-slot=\"alert-dialog-header\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogBody\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogBody({ className, ...props }: ComponentProps<'div'>) {\r\n return (\r\n <main\r\n className={cn('overflow-auto px-6 py-2', className)}\r\n data-slot=\"alert-dialog-body\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogFooter\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogFooter({ className, ...props }: ComponentProps<'div'>) {\r\n return (\r\n <div\r\n className={cn(\r\n 'flex flex-col-reverse gap-2 sm:flex-row sm:justify-end',\r\n className\r\n )}\r\n data-slot=\"alert-dialog-footer\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogTitle\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogTitle({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Title>) {\r\n return (\r\n <AlertDialogPrimitive.Title\r\n className={cn('font-semibold text-lg', className)}\r\n data-slot=\"alert-dialog-title\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogDescription\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogDescription({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Description>) {\r\n return (\r\n <AlertDialogPrimitive.Description\r\n className={cn('text-muted-foreground text-sm', className)}\r\n data-slot=\"alert-dialog-description\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogAction\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogAction({\r\n className,\r\n size,\r\n variant,\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Action> & {\r\n size?: VariantProps<typeof buttonVariants>['size']\r\n variant?: VariantProps<typeof buttonVariants>['variant']\r\n}) {\r\n return (\r\n <AlertDialogPrimitive.Action\r\n className={buttonVariants({ className, size, variant })}\r\n data-slot=\"alert-dialog-action\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: AlertDialogCancel\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction AlertDialogCancel({\r\n className,\r\n size,\r\n variant = 'outline',\r\n ...props\r\n}: ComponentProps<typeof AlertDialogPrimitive.Cancel> & {\r\n size?: VariantProps<typeof buttonVariants>['size']\r\n variant?: VariantProps<typeof buttonVariants>['variant']\r\n}) {\r\n return (\r\n <AlertDialogPrimitive.Cancel\r\n className={buttonVariants({ className, size, variant })}\r\n data-slot=\"alert-dialog-cancel\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport {\r\n AlertDialog,\r\n AlertDialogPortal,\r\n AlertDialogOverlay,\r\n AlertDialogTrigger,\r\n AlertDialogContent,\r\n AlertDialogHeader,\r\n AlertDialogBody,\r\n AlertDialogFooter,\r\n AlertDialogTitle,\r\n AlertDialogDescription,\r\n AlertDialogAction,\r\n AlertDialogCancel,\r\n}\r\n"],"names":["AlertDialog","props","AlertDialogPrimitive","AlertDialogTrigger","AlertDialogPortal","AlertDialogOverlay","className","cn","AlertDialogContent","classNames","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","size","variant","buttonVariants","AlertDialogCancel"],"mappings":";mJAYA,SAASA,EAAYC,CAAuD,EAC1E,MAAO,UAACC,EAAAA,IAAyB,EAAC,YAAU,eAAgB,GAAGD,CAAK,EACtE,CAMA,SAASE,EACPF,CAA0D,EAE1D,MACE,UAACC,EAAAA,OAA4B,EAAC,YAAU,uBAAwB,GAAGD,CAAK,EAE5E,CAMA,SAASG,EACPH,CAAyD,EAEzD,MACE,UAACC,EAAAA,MAA2B,EAAC,YAAU,sBAAuB,GAAGD,CAAK,EAE1E,CAMA,SAASI,EAAmB,CAC1BC,UAAAA,CAAS,CACT,GAAGL,EACuD,EAC1D,MACE,UAACC,EAAAA,OAA4B,EAC3B,YAAU,uBACV,UAAWK,GAAAA,EAAAA,EAAAA,EACT,yJACAD,GAED,GAAGL,CAAK,EAGf,CAMA,SAASO,EAAmB,CAC1BF,UAAAA,CAAS,CACTG,WAAAA,CAAU,CACV,GAAGR,EAMJ,EACC,MACE,WAACG,EAAAA,C,UACC,UAACC,EAAAA,CACC,YAAU,uBACV,UAAWI,GAAY,O,GAGzB,UAACP,EAAAA,OAA4B,EAC3B,UAAWK,GAAAA,EAAAA,EAAAA,EACT,8WACAE,GAAY,SAEd,YAAU,uBACT,GAAGR,CAAK,KAIjB,CAMA,SAASS,EAAkB,CAAEJ,UAAAA,CAAS,CAAE,GAAGL,EAA8B,EACvE,MACE,UAAC,OACC,UAAWM,GAAAA,EAAAA,EAAAA,EAAG,+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AU,sBACT,GAAGhB,CAAK,EAGf,Q"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import*as r from"./nav-sub-item.js";import*as e from"./sidebar-icons.js";export*from"./sidebar.js";export*from"./app-sidebar.js";export*from"./nav-modules.js";export*from"./nav-user.js";export*from"./logo.js";var o={"./nav-sub-item":function(e){e.exports=r},"./sidebar-icons":function(r){r.exports=e}},t={};function n(r){var e=t[r];if(void 0!==e)return e.exports;var a=t[r]={exports:{}};return o[r](a,a.exports,n),a.exports}n.d=(r,e)=>{for(var o in e)n.o(e,o)&&!n.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:e[o]})},n.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),n.r=r=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var a={};n.r(a);var i=n("./nav-sub-item"),s={};for(var f in i)"default"!==f&&(s[f]=(function(r){return i[r]}).bind(0,f));n.d(a,s);var p=n("./sidebar-icons"),s={};for(var f in p)"default"!==f&&(s[f]=(function(r){return p[r]}).bind(0,f));n.d(a,s);
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components\\app-layout\\sidebar\\index.js","sources":["webpack://@gbmtech/aurora-ui/webpack/runtime/define_property_getters","webpack://@gbmtech/aurora-ui/webpack/runtime/has_own_property","webpack://@gbmtech/aurora-ui/webpack/runtime/make_namespace_object"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};"],"names":["Object","Symbol"],"mappings":"waAAA,EAAoB,CAAC,CAAG,CAAC,EAAS,KACjC,IAAI,IAAI,KAAO,EACL,EAAoB,CAAC,CAAC,EAAY,IAAQ,CAAC,EAAoB,CAAC,CAAC,EAAS,IACzEA,OAAO,cAAc,CAAC,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNA,EAAoB,CAAC,CAAG,CAAC,EAAK,IAAUA,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClF,EAAoB,CAAC,CAAG,AAAC,IACrB,AAAkB,aAAlB,OAAOC,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAAC,EAASC,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAAC,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { CommandInput } from '../command';
|
|
3
|
-
declare function AutoCompleteInput(props: ComponentPropsWithoutRef<typeof CommandInput>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function AutoCompleteInput({ className, ...props }: ComponentPropsWithoutRef<typeof CommandInput>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { AutoCompleteInput };
|
|
5
5
|
//# sourceMappingURL=autocomplete-input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete-input.d.ts","sourceRoot":"","sources":["../../../../src/components/autocomplete/autocomplete-input.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"autocomplete-input.d.ts","sourceRoot":"","sources":["../../../../src/components/autocomplete/autocomplete-input.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAA;AAIrD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAGzC,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,wBAAwB,CAAC,OAAO,YAAY,CAAC,2CA+B/C;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as e from"react/jsx-runtime";import*as t from"cmdk";import*as o from"../../lib/index.js";import*as a from"@phosphor-icons/react";import*as n from"./autocomplete-context.js";function r({className:r,...s}){let{value:l,onValueChange:m,onOpenChange:i,inputRef:p}=(0,n.useAutoCompleteContext)();return(0,e.jsxs)("div",{className:"relative","cmdk-input-wrapper":"","data-slot":"command-input-wrapper",children:[(0,e.jsx)(a.MagnifyingGlassIcon,{className:"-translate-1/2 absolute top-1/2 left-6 size-4 shrink-0 opacity-50"}),(0,e.jsx)(t.Command.Input,{className:(0,o.cn)("flex h-10 w-full rounded-md border px-3 pl-10 text-base outline-hidden placeholder:text-muted-foreground disabled:opacity-50",r),...s,ref:p,value:s.value??l,onValueChange:function(e){m?.(e),s.onValueChange?.(e)},"data-slot":"command-input",onFocus:()=>i(!0),onBlur:()=>i(!1)})]})}export{r as AutoCompleteInput};
|
|
2
2
|
//# sourceMappingURL=autocomplete-input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components\\autocomplete\\autocomplete-input.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/autocomplete/autocomplete-input.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef } from 'react'\n\nimport { CommandInput } from '../command'\nimport { useAutoCompleteContext } from './autocomplete-context'\n\nfunction AutoCompleteInput(\n props: ComponentPropsWithoutRef<typeof CommandInput
|
|
1
|
+
{"version":3,"file":"components\\autocomplete\\autocomplete-input.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/autocomplete/autocomplete-input.tsx"],"sourcesContent":["import { Command as CommandPrimitive } from 'cmdk'\nimport type { ComponentPropsWithoutRef } from 'react'\n\nimport { cn } from '@/lib'\nimport { MagnifyingGlassIcon } from '@phosphor-icons/react'\nimport { CommandInput } from '../command'\nimport { useAutoCompleteContext } from './autocomplete-context'\n\nfunction AutoCompleteInput({\n className,\n ...props\n}: ComponentPropsWithoutRef<typeof CommandInput>) {\n const { value, onValueChange, onOpenChange, inputRef } =\n useAutoCompleteContext()\n\n function handleChange(value: string) {\n onValueChange?.(value)\n props.onValueChange?.(value)\n }\n\n return (\n <div\n className=\"relative\"\n cmdk-input-wrapper=\"\"\n data-slot=\"command-input-wrapper\"\n >\n <MagnifyingGlassIcon className=\"-translate-1/2 absolute top-1/2 left-6 size-4 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n className={cn(\n 'flex h-10 w-full rounded-md border px-3 pl-10 text-base outline-hidden placeholder:text-muted-foreground disabled:opacity-50',\n className\n )}\n {...props}\n ref={inputRef}\n value={props.value ?? value}\n onValueChange={handleChange}\n data-slot=\"command-input\"\n onFocus={() => onOpenChange(true)}\n onBlur={() => onOpenChange(false)}\n />\n </div>\n )\n}\n\nexport { AutoCompleteInput }\n"],"names":["AutoCompleteInput","className","props","value","onValueChange","onOpenChange","inputRef","useAutoCompleteContext","MagnifyingGlassIcon","CommandPrimitive","cn"],"mappings":"oLAQA,SAASA,EAAkB,CACzBC,UAAAA,CAAS,CACT,GAAGC,EAC2C,EAC9C,GAAM,CAAEC,MAAAA,CAAK,CAAEC,cAAAA,CAAa,CAAEC,aAAAA,CAAY,CAAEC,SAAAA,CAAQ,CAAE,CACpDC,AAAAA,GAAAA,EAAAA,sBAAAA,AAAAA,IAOF,MACE,WAAC,OACC,UAAU,WACV,qBAAmB,GACnB,YAAU,wB,UAEV,UAACC,EAAAA,mBAAmBA,CAAAA,CAAC,UAAU,mE,GAC/B,UAACC,EAAAA,OAAAA,CAAAA,KAAsB,EACrB,UAAWC,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EACT,+HACAT,GAED,GAAGC,CAAK,CACT,IAAKI,EACL,MAAOJ,EAAM,KAAK,EAAIC,EACtB,cApBN,SAAsBA,CAAa,EACjCC,IAAgBD,GAChBD,EAAM,aAAa,GAAGC,EACxB,EAkBM,YAAU,gBACV,QAAS,IAAME,EAAa,IAC5B,OAAQ,IAAMA,EAAa,G,KAInC,Q"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import*as e from"react/jsx-runtime";import*as
|
|
2
|
+
import*as e from"react/jsx-runtime";import*as o from"@phosphor-icons/react";import*as a from"react";import*as r from"../lib/utils.js";import*as s from"./button.js";import*as n from"./command.js";import*as t from"./popover.js";import*as l from"./scroll-area.js";let c=({items:c,name:i,value:m,valueIcon:p,language:d="pt-br",disabled:u=!1,onValueChange:h})=>{let[x,j]=(0,a.useState)(!1),[f,b]=(0,a.useState)(""),g=c?.filter(e=>e.label.toLowerCase().includes(f?.toLowerCase()));return(0,e.jsxs)(t.Popover,{open:x,onOpenChange:j,children:[(0,e.jsx)(t.PopoverTrigger,{className:"group",asChild:!0,children:(0,e.jsxs)(s.Button,{variant:"outline",role:"combobox",disabled:u,className:(0,r.cn)("h-12 w-full justify-between",!m&&"text-dark-gray/50"),onClick:e=>e.stopPropagation(),children:[(0,e.jsxs)("div",{className:"flex flex-row items-center gap-4 truncate",children:[m&&p&&(0,e.jsx)("span",{children:p}),m?(0,e.jsx)("p",{className:"font-normal",children:c?.find(e=>e.value===m)?.label}):(0,e.jsx)("p",{className:"text-muted-foreground",children:"pt-br"===d?"Selecione uma op\xe7\xe3o":"en-us"===d?"Select an option":"Seleccione una opci\xf3"})]}),(0,e.jsx)(o.CaretDownIcon,{weight:"bold",className:"h-4 w-4 text-dark-gray group-data-[state=open]:rotate-180"})]})}),(0,e.jsx)(t.PopoverContent,{className:"w-full min-w-[var(--radix-popover-trigger-width)] p-0",align:"start",children:(0,e.jsxs)(n.Command,{children:[(0,e.jsx)(n.CommandInput,{name:i,value:f,onValueChange:b,placeholder:"pt-br"===d?"Digite para buscar...":"en-us"===d?"Type to search...":"Buscar por palabra clave..."}),(0,e.jsx)(l.ScrollArea,{className:"h-[200px] overflow-y-auto",children:g?.length===0?(0,e.jsx)(n.CommandEmpty,{children:"pt-br"===d?"Nenhuma op\xe7\xe3o encontrada":"en-us"===d?"No options found":"No se encontraron opciones"}):(0,e.jsx)(n.CommandGroup,{children:g?.map(a=>(0,e.jsxs)(n.CommandItem,{value:a.label,onSelect:()=>{h&&h(a.value),j(!1)},children:[(0,e.jsx)(o.CheckIcon,{className:(0,r.cn)("mr-2 h-4 w-4",a.value===m?"opacity-100":"opacity-0")}),!!a.icon&&(0,e.jsx)("span",{className:"mr-2",children:a.icon}),a.label]},a.value))})})]})})]})};export{c as ComboBox};
|
|
3
3
|
//# sourceMappingURL=combobox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components\\combobox.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/combobox.tsx"],"sourcesContent":["\r\n\r\nimport {
|
|
1
|
+
{"version":3,"file":"components\\combobox.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/combobox.tsx"],"sourcesContent":["\r\n\r\nimport { CaretDownIcon, CheckIcon } from '@phosphor-icons/react'\r\nimport { useState } from 'react'\r\n\r\nimport { cn } from '@/lib/utils'\r\n\r\nimport { Button } from './button'\r\nimport {\r\n Command,\r\n CommandEmpty,\r\n CommandGroup,\r\n CommandInput,\r\n CommandItem,\r\n} from './command'\r\nimport { Popover, PopoverContent, PopoverTrigger } from './popover'\r\nimport { ScrollArea } from './scroll-area'\r\n\r\ninterface ComboBoxProps {\r\n name?: string\r\n value: string | number | undefined\r\n language?: 'pt-br' | 'en-us' | 'es'\r\n valueIcon?: React.ReactNode\r\n items: { value: string; label: string; icon?: React.ReactNode }[]\r\n disabled?: boolean\r\n onValueChange?: (value: string) => void\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Checkbox\r\n * -------------------------------------------------------------------------- */\r\n\r\nconst ComboBox = ({\r\n items,\r\n name,\r\n value,\r\n valueIcon,\r\n language = 'pt-br',\r\n disabled = false,\r\n onValueChange,\r\n}: ComboBoxProps) => {\r\n const [open, setOpen] = useState(false)\r\n const [search, setSearch] = useState('')\r\n\r\n const filteredItems = items?.filter(item =>\r\n item.label.toLowerCase().includes(search?.toLowerCase())\r\n )\r\n\r\n return (\r\n <Popover open={open} onOpenChange={setOpen}>\r\n <PopoverTrigger className=\"group\" asChild>\r\n <Button\r\n variant=\"outline\"\r\n role=\"combobox\"\r\n disabled={disabled}\r\n className={cn(\r\n 'h-12 w-full justify-between',\r\n !value && 'text-dark-gray/50'\r\n )}\r\n onClick={e => e.stopPropagation()}\r\n >\r\n <div className=\"flex flex-row items-center gap-4 truncate\">\r\n {value && valueIcon && <span>{valueIcon}</span>}\r\n {value ? (\r\n <p className=\"font-normal\">\r\n {items?.find(item => item.value === value)?.label}\r\n </p>\r\n ) : (\r\n <p className=\"text-muted-foreground\">\r\n {language === 'pt-br'\r\n ? 'Selecione uma opção'\r\n : language === 'en-us'\r\n ? 'Select an option'\r\n : 'Seleccione una opció'}\r\n </p>\r\n )}\r\n </div>\r\n <CaretDownIcon\r\n weight=\"bold\"\r\n className=\"h-4 w-4 text-dark-gray group-data-[state=open]:rotate-180\"\r\n />\r\n </Button>\r\n </PopoverTrigger>\r\n <PopoverContent\r\n className=\"w-full min-w-[var(--radix-popover-trigger-width)] p-0\"\r\n align=\"start\"\r\n >\r\n <Command>\r\n <CommandInput\r\n name={name}\r\n value={search}\r\n onValueChange={setSearch}\r\n placeholder={\r\n language === 'pt-br'\r\n ? 'Digite para buscar...'\r\n : language === 'en-us'\r\n ? 'Type to search...'\r\n : 'Buscar por palabra clave...'\r\n }\r\n />\r\n <ScrollArea className=\"h-[200px] overflow-y-auto\">\r\n {filteredItems?.length === 0 ? (\r\n <CommandEmpty>\r\n {language === 'pt-br'\r\n ? 'Nenhuma opção encontrada'\r\n : language === 'en-us'\r\n ? 'No options found'\r\n : 'No se encontraron opciones'}\r\n </CommandEmpty>\r\n ) : (\r\n <CommandGroup>\r\n {filteredItems?.map(item => (\r\n <CommandItem\r\n key={item.value}\r\n value={item.label}\r\n onSelect={() => {\r\n if (onValueChange) onValueChange(item.value)\r\n setOpen(false)\r\n }}\r\n >\r\n <CheckIcon\r\n className={cn(\r\n 'mr-2 h-4 w-4',\r\n item.value === value ? 'opacity-100' : 'opacity-0'\r\n )}\r\n />\r\n {!!item.icon && <span className=\"mr-2\">{item.icon}</span>}\r\n {item.label}\r\n </CommandItem>\r\n ))}\r\n </CommandGroup>\r\n )}\r\n </ScrollArea>\r\n </Command>\r\n </PopoverContent>\r\n </Popover>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { ComboBox }\r\n"],"names":["ComboBox","items","name","value","valueIcon","language","disabled","onValueChange","open","setOpen","useState","search","setSearch","filteredItems","item","Popover","PopoverTrigger","Button","cn","e","CaretDownIcon","PopoverContent","Command","CommandInput","ScrollArea","CommandEmpty","CommandGroup","CommandItem","CheckIcon"],"mappings":";qQAgCA,IAAMA,EAAW,CAAC,CAChBC,MAAAA,CAAK,CACLC,KAAAA,CAAI,CACJC,MAAAA,CAAK,CACLC,UAAAA,CAAS,CACTC,SAAAA,EAAW,OAAO,CAClBC,SAAAA,EAAW,EAAK,CAChBC,cAAAA,CAAa,CACC,IACd,GAAM,CAACC,EAAMC,EAAQ,CAAGC,GAAAA,EAAAA,QAAAA,EAAS,IAC3B,CAACC,EAAQC,EAAU,CAAGF,GAAAA,EAAAA,QAAAA,EAAS,IAE/BG,EAAgBZ,GAAO,OAAOa,GAClCA,EAAK,KAAK,CAAC,WAAW,GAAG,QAAQ,CAACH,GAAQ,gBAG5C,MACE,WAACI,EAAAA,OAAOA,CAAAA,CAAC,KAAMP,EAAM,aAAcC,E,UACjC,UAACO,EAAAA,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QA,EAAK,IAAI,GAChDA,EAAK,KAAK,C,EAdNA,EAAK,KAAK,E,YAwBnC,S"}
|
|
@@ -1,51 +1,59 @@
|
|
|
1
1
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
2
|
-
import { ComponentProps
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
3
|
import { VariantProps } from '../lib/utils';
|
|
4
4
|
import { buttonVariants } from './button';
|
|
5
|
-
declare function Dialog(
|
|
5
|
+
declare function Dialog(props: ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare namespace Dialog {
|
|
7
7
|
var displayName: string;
|
|
8
8
|
}
|
|
9
|
-
declare function DialogTrigger(
|
|
9
|
+
declare function DialogTrigger(props: ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
declare namespace DialogTrigger {
|
|
11
11
|
var displayName: string;
|
|
12
12
|
}
|
|
13
|
+
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare namespace DialogPortal {
|
|
15
|
+
var displayName: string;
|
|
16
|
+
}
|
|
17
|
+
declare function DialogClose({ className, size, variant, ...props }: Omit<ComponentProps<typeof DialogPrimitive.Close>, 'ref'> & {
|
|
18
|
+
size?: VariantProps<typeof buttonVariants>['size'];
|
|
19
|
+
variant?: VariantProps<typeof buttonVariants>['variant'];
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare namespace DialogClose {
|
|
22
|
+
var displayName: string;
|
|
23
|
+
}
|
|
24
|
+
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare namespace DialogOverlay {
|
|
26
|
+
var displayName: string;
|
|
27
|
+
}
|
|
13
28
|
declare function DialogContent({ children, className, classNames, ...props }: ComponentProps<typeof DialogPrimitive.Content> & {
|
|
14
29
|
classNames?: {
|
|
15
30
|
close?: string;
|
|
16
31
|
content?: string;
|
|
17
32
|
overlay?: string;
|
|
18
33
|
};
|
|
19
|
-
}): JSX.Element;
|
|
34
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
20
35
|
declare namespace DialogContent {
|
|
21
36
|
var displayName: string;
|
|
22
37
|
}
|
|
23
|
-
declare function DialogHeader({ className, ...props }: ComponentProps<'div'>): JSX.Element;
|
|
38
|
+
declare function DialogHeader({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
24
39
|
declare namespace DialogHeader {
|
|
25
40
|
var displayName: string;
|
|
26
41
|
}
|
|
27
|
-
declare function DialogBody({ className, ...props }: ComponentProps<'div'>): JSX.Element;
|
|
42
|
+
declare function DialogBody({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
28
43
|
declare namespace DialogBody {
|
|
29
44
|
var displayName: string;
|
|
30
45
|
}
|
|
31
|
-
declare function DialogFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element;
|
|
46
|
+
declare function DialogFooter({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
32
47
|
declare namespace DialogFooter {
|
|
33
48
|
var displayName: string;
|
|
34
49
|
}
|
|
35
|
-
declare function DialogTitle({ className, ...props }: ComponentProps<typeof DialogPrimitive.Title>): JSX.Element;
|
|
50
|
+
declare function DialogTitle({ className, ...props }: ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
36
51
|
declare namespace DialogTitle {
|
|
37
52
|
var displayName: string;
|
|
38
53
|
}
|
|
39
|
-
declare function DialogDescription({ className, ...props }: ComponentProps<typeof DialogPrimitive.Description>): JSX.Element;
|
|
54
|
+
declare function DialogDescription({ className, ...props }: ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
40
55
|
declare namespace DialogDescription {
|
|
41
56
|
var displayName: string;
|
|
42
57
|
}
|
|
43
|
-
|
|
44
|
-
size?: VariantProps<typeof buttonVariants>['size'];
|
|
45
|
-
variant?: VariantProps<typeof buttonVariants>['variant'];
|
|
46
|
-
}): JSX.Element;
|
|
47
|
-
declare namespace DialogClose {
|
|
48
|
-
var displayName: string;
|
|
49
|
-
}
|
|
50
|
-
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogBody, DialogFooter, DialogTitle, DialogDescription, DialogClose, };
|
|
58
|
+
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogBody, DialogFooter, DialogTitle, DialogDescription, DialogClose, DialogPortal, DialogOverlay, };
|
|
51
59
|
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/dialog.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/dialog.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,EAAE,YAAY,EAAM,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAMzC,iBAAS,MAAM,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAEjE;kBAFQ,MAAM;;;AASf,iBAAS,aAAa,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,2CAE3E;kBAFQ,aAAa;;;AAStB,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,2CAErD;kBAJQ,YAAY;;;AAWrB,iBA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CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAW9C;kBAdQ,WAAW;;;AAqBpB,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,2CAQpD;kBAXQ,iBAAiB;;;AAkB1B,OAAO,EACL,MAAM,EACN,aAAa,EACb,aAAa,EACb,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,aAAa,GACd,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import*as a from"react/jsx-runtime";import*as t from"@phosphor-icons/react";import*as e from"@radix-ui/react-dialog";import*as o from"../lib/utils.js";import*as s from"./button.js";function l(
|
|
2
|
+
import*as a from"react/jsx-runtime";import*as t from"@phosphor-icons/react";import*as e from"@radix-ui/react-dialog";import*as o from"../lib/utils.js";import*as s from"./button.js";function l(t){return(0,a.jsx)(e.Root,{"data-slot":"dialog",...t})}function i(t){return(0,a.jsx)(e.Trigger,{"data-slot":"dialog-trigger",...t})}function n({...t}){return(0,a.jsx)(e.Portal,{"data-slot":"dialog-portal",...t})}function r({className:t,size:o,variant:l="outline",...i}){return(0,a.jsx)(e.Close,{className:(0,s.buttonVariants)({className:t,size:o,variant:l}),"data-slot":"dialog-close",...i})}function d({className:t,...s}){return(0,a.jsx)(e.Overlay,{className:(0,o.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",t),"data-slot":"dialog-overlay",...s})}function c({children:l,className:i,classNames:r,...c}){return(0,a.jsxs)(n,{children:[(0,a.jsx)(d,{className:r?.overlay}),(0,a.jsxs)(e.Content,{className:(0,o.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg sm:rounded-lg",r?.content),"data-slot":"dialog-content-wrapper",...c,children:[l,(0,a.jsxs)(e.Close,{className:(0,s.buttonVariants)({className:["absolute top-2.5 right-2.5 size-7",r?.close],size:"icon",variant:"ghost"}),children:[(0,a.jsx)(t.XIcon,{className:"size-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function g({className:t,...e}){return(0,a.jsx)("div",{className:(0,o.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),"data-slot":"dialog-header",...e})}function m({className:t,...e}){return(0,a.jsx)("main",{className:(0,o.cn)("py-2",t),"data-slot":"dialog-body",...e})}function u({className:t,...e}){return(0,a.jsx)("footer",{className:(0,o.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),"data-slot":"dialog-footer",...e})}function p({className:t,...s}){return(0,a.jsx)(e.Title,{className:(0,o.cn)("font-semibold text-lg leading-none tracking-tight",t),"data-slot":"dialog-title",...s})}function x({className:t,...s}){return(0,a.jsx)(e.Description,{className:(0,o.cn)("text-gray-600 text-sm",t),"data-slot":"dialog-description",...s})}l.displayName="Dialog",i.displayName="DialogTrigger",n.displayName="DialogPortal",r.displayName="DialogClose",d.displayName="DialogOverlay",c.displayName="DialogContent",g.displayName="DialogHeader",m.displayName="DialogBody",u.displayName="DialogFooter",p.displayName="DialogTitle",x.displayName="DialogDescription";export{l as Dialog,m as DialogBody,r as DialogClose,c as DialogContent,x as DialogDescription,u as DialogFooter,g as DialogHeader,d as DialogOverlay,n as DialogPortal,p as DialogTitle,i as DialogTrigger};
|
|
3
3
|
//# sourceMappingURL=dialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components\\dialog.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/dialog.tsx"],"sourcesContent":["\r\n\r\nimport { X } from '@phosphor-icons/react'\r\nimport * as DialogPrimitive from '@radix-ui/react-dialog'\r\nimport { ComponentProps, JSX } from 'react'\r\n\r\nimport { VariantProps, cn } from '@/lib/utils'\r\nimport { buttonVariants } from './button'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Dialog\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Dialog({\r\n ...props\r\n}: ComponentProps<typeof DialogPrimitive.Root>): JSX.Element {\r\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />\r\n}\r\nDialog.displayName = 'Dialog'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogTrigger\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogTrigger({\r\n ...props\r\n}: ComponentProps<typeof DialogPrimitive.Trigger>): JSX.Element {\r\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />\r\n}\r\nDialogTrigger.displayName = 'DialogTrigger'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogContent\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogContent({\r\n children,\r\n className,\r\n classNames,\r\n ...props\r\n}: ComponentProps<typeof DialogPrimitive.Content> & {\r\n classNames?: {\r\n close?: string\r\n content?: string\r\n overlay?: string\r\n }\r\n}): JSX.Element {\r\n return (\r\n <DialogPrimitive.Portal>\r\n <DialogPrimitive.Overlay\r\n className={cn(\r\n 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/40 backdrop-blur-sm data-[state=closed]:animate-out data-[state=open]:animate-in',\r\n classNames?.overlay\r\n )}\r\n />\r\n <DialogPrimitive.Content\r\n className={cn(\r\n 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:rounded-lg',\r\n classNames?.content\r\n )}\r\n data-slot=\"dialog-content-wrapper\"\r\n {...props}\r\n >\r\n {children}\r\n <DialogPrimitive.Close\r\n className={buttonVariants({\r\n className: ['absolute top-2.5 right-2.5 size-7', classNames?.close],\r\n size: 'icon',\r\n variant: 'ghost',\r\n })}\r\n >\r\n <X className=\"size-4\" />\r\n <span className=\"sr-only\">Close</span>\r\n </DialogPrimitive.Close>\r\n </DialogPrimitive.Content>\r\n </DialogPrimitive.Portal>\r\n )\r\n}\r\nDialogContent.displayName = 'DialogContent'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogHeader\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogHeader({\r\n className,\r\n ...props\r\n}: ComponentProps<'div'>): JSX.Element {\r\n return (\r\n <header\r\n className={cn(\r\n 'flex flex-col space-y-1.5 text-center sm:text-left',\r\n className\r\n )}\r\n data-slot=\"dialog-header\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogHeader.displayName = 'DialogHeader'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogBody\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogBody({\r\n className,\r\n ...props\r\n}: ComponentProps<'div'>): JSX.Element {\r\n return (\r\n <main\r\n className={cn('py-2', className)}\r\n data-slot=\"dialog-body\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogBody.displayName = 'DialogBody'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogFooter\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogFooter({\r\n className,\r\n ...props\r\n}: ComponentProps<'div'>): JSX.Element {\r\n return (\r\n <footer\r\n className={cn(\r\n 'flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2',\r\n className\r\n )}\r\n data-slot=\"dialog-footer\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogFooter.displayName = 'DialogFooter'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogTitle\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogTitle({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof DialogPrimitive.Title>): JSX.Element {\r\n return (\r\n <DialogPrimitive.Title\r\n className={cn(\r\n 'font-semibold text-lg leading-none tracking-tight',\r\n className\r\n )}\r\n data-slot=\"dialog-title\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogTitle.displayName = 'DialogTitle'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogDescription\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogDescription({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof DialogPrimitive.Description>): JSX.Element {\r\n return (\r\n <DialogPrimitive.Description\r\n className={cn('text-gray-600 text-sm', className)}\r\n data-slot=\"dialog-description\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogDescription.displayName = 'DialogDescription'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogClose\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogClose({\r\n className,\r\n size,\r\n variant = 'outline',\r\n ...props\r\n}: Omit<ComponentProps<typeof DialogPrimitive.Close>, 'ref'> & {\r\n size?: VariantProps<typeof buttonVariants>['size']\r\n variant?: VariantProps<typeof buttonVariants>['variant']\r\n}): JSX.Element {\r\n return (\r\n <DialogPrimitive.Close\r\n className={buttonVariants({ className, size, variant })}\r\n data-slot=\"dialog-close\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogClose.displayName = 'DialogClose'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport {\r\n Dialog,\r\n DialogTrigger,\r\n DialogContent,\r\n DialogHeader,\r\n DialogBody,\r\n DialogFooter,\r\n DialogTitle,\r\n DialogDescription,\r\n DialogClose,\r\n}\r\n"],"names":["Dialog","props","DialogPrimitive","DialogTrigger","DialogContent","children","className","classNames","cn","buttonVariants","X","DialogHeader","DialogBody","DialogFooter","DialogTitle","DialogDescription","DialogClose","size","variant"],"mappings":";qLAaA,SAASA,EAAO,CACd,GAAGC,EACyC,EAC5C,MAAO,UAACC,EAAAA,IAAoB,EAAC,YAAU,SAAU,GAAGD,CAAK,EAC3D,CAOA,SAASE,EAAc,CACrB,GAAGF,EAC4C,EAC/C,MAAO,UAACC,EAAAA,OAAuB,EAAC,YAAU,iBAAkB,GAAGD,CAAK,EACtE,CAOA,SAASG,EAAc,CACrBC,SAAAA,CAAQ,CACRC,UAAAA,CAAS,CACTC,WAAAA,CAAU,CACV,GAAGN,EAOJ,EACC,MACE,WAACC,EAAAA,MAAsB,E,UACrB,UAACA,EAAAA,OAAuB,EACtB,UAAWM,GAAAA,EAAAA,EAAAA,EACT,0KACAD,GAAY,Q,GAGhB,WAACL,EAAAA,OAAuB,EACtB,UAAWM,GAAAA,EAAAA,EAAAA,EACT,sVACAD,GAAY,SAEd,YAAU,yBACT,GAAGN,CAAK,C,UAERI,EACD,WAACH,EAAAA,KAAqB,EACpB,UAAWO,GAAAA,EAAAA,cAAAA,EAAe,CACxB,UAAW,CAAC,oCAAqCF,GAAY,MAAM,CACnE,KAAM,OACN,QAAS,OACX,G,UAEA,UAACG,EAAAA,CAACA,CAAAA,CAAC,UAAU,Q,GACb,UAAC,QAAK,UAAU,U,SAAU,O,WAKpC,CAOA,SAASC,EAAa,CACpBL,UAAAA,CAAS,CACT,GAAGL,EACmB,EACtB,MACE,UAAC,UACC,UAAWO,GAAAA,EAAAA,EAAAA,EACT,qDACAF,GAEF,YAAU,gBACT,GAAGL,CAAK,EAGf,CAOA,SAASW,EAAW,CAClBN,UAAAA,CAAS,CACT,GAAGL,EACmB,EACtB,MACE,UAAC,QACC,UAAWO,GAAAA,EAAAA,EAAAA,EAAG,OAAQF,GACtB,YAAU,cACT,GAAGL,CAAK,EAGf,CAOA,SAASY,EAAa,CACpBP,UAAAA,CAAS,CACT,GAAGL,EACmB,EACtB,MACE,UAAC,UACC,UAAWO,GAAAA,EAAAA,EAAAA,EACT,gEACAF,GAEF,YAAU,gBACT,GAAGL,CAAK,EAGf,CAOA,SAASa,EAAY,CACnBR,UAAAA,CAAS,CACT,GAAGL,EAC0C,EAC7C,MACE,UAACC,EAAAA,KAAqB,EACpB,UAAWM,GAAAA,EAAAA,EAAAA,EACT,oDACAF,GAEF,YAAU,eACT,GAAGL,CAAK,EAGf,CAOA,SAASc,EAAkB,CACzBT,UAAAA,CAAS,CACT,GAAGL,EACgD,EACnD,MACE,UAACC,EAAAA,WAA2B,EAC1B,UAAWM,GAAAA,EAAAA,EAAAA,EAAG,wBAAyBF,GACvC,YAAU,qBACT,GAAGL,CAAK,EAGf,CAOA,SAASe,EAAY,CACnBV,UAAAA,CAAS,CACTW,KAAAA,CAAI,CACJC,QAAAA,EAAU,SAAS,CACnB,GAAGjB,EAIJ,EACC,MACE,UAACC,EAAAA,KAAqB,EACpB,UAAWO,GAAAA,EAAAA,cAAAA,EAAe,CAAEH,UAAAA,EAAWW,KAAAA,EAAMC,QAAAA,CAAQ,GACrD,YAAU,eACT,GAAGjB,CAAK,EAGf,CArLAD,EAAO,WAAW,CAAG,SAWrBG,EAAc,WAAW,CAAG,gBAiD5BC,EAAc,WAAW,CAAG,gBAqB5BO,EAAa,WAAW,CAAG,eAkB3BC,EAAW,WAAW,CAAG,aAqBzBC,EAAa,WAAW,CAAG,eAqB3BC,EAAY,WAAW,CAAG,cAkB1BC,EAAkB,WAAW,CAAG,oBAuBhCC,EAAY,WAAW,CAAG,qB"}
|
|
1
|
+
{"version":3,"file":"components\\dialog.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/dialog.tsx"],"sourcesContent":["\r\n\r\nimport { XIcon } from '@phosphor-icons/react'\r\nimport * as DialogPrimitive from '@radix-ui/react-dialog'\r\nimport { ComponentProps } from 'react'\r\n\r\nimport { VariantProps, cn } from '@/lib/utils'\r\nimport { buttonVariants } from './button'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Dialog\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Dialog(props: ComponentProps<typeof DialogPrimitive.Root>) {\r\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />\r\n}\r\nDialog.displayName = 'Dialog'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogTrigger\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogTrigger(props: ComponentProps<typeof DialogPrimitive.Trigger>) {\r\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />\r\n}\r\nDialogTrigger.displayName = 'DialogTrigger'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogPortal\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogPortal({\r\n ...props\r\n}: React.ComponentProps<typeof DialogPrimitive.Portal>) {\r\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />\r\n}\r\nDialogPortal.displayName = 'DialogPortal'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogClose\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogClose({\r\n className,\r\n size,\r\n variant = 'outline',\r\n ...props\r\n}: Omit<ComponentProps<typeof DialogPrimitive.Close>, 'ref'> & {\r\n size?: VariantProps<typeof buttonVariants>['size']\r\n variant?: VariantProps<typeof buttonVariants>['variant']\r\n}) {\r\n return (\r\n <DialogPrimitive.Close\r\n className={buttonVariants({ className, size, variant })}\r\n data-slot=\"dialog-close\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogClose.displayName = 'DialogClose'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogPortal\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogOverlay({\r\n className,\r\n ...props\r\n}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\r\n return (\r\n <DialogPrimitive.Overlay\r\n className={cn(\r\n 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in',\r\n className\r\n )}\r\n data-slot=\"dialog-overlay\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogOverlay.displayName = 'DialogOverlay'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogContent\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogContent({\r\n children,\r\n className,\r\n classNames,\r\n ...props\r\n}: ComponentProps<typeof DialogPrimitive.Content> & {\r\n classNames?: {\r\n close?: string\r\n content?: string\r\n overlay?: string\r\n }\r\n}) {\r\n return (\r\n <DialogPortal>\r\n <DialogOverlay className={classNames?.overlay} />\r\n <DialogPrimitive.Content\r\n className={cn(\r\n 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg sm:rounded-lg',\r\n classNames?.content\r\n )}\r\n data-slot=\"dialog-content-wrapper\"\r\n {...props}\r\n >\r\n {children}\r\n <DialogPrimitive.Close\r\n className={buttonVariants({\r\n className: ['absolute top-2.5 right-2.5 size-7', classNames?.close],\r\n size: 'icon',\r\n variant: 'ghost',\r\n })}\r\n >\r\n <XIcon className=\"size-4\" />\r\n <span className=\"sr-only\">Close</span>\r\n </DialogPrimitive.Close>\r\n </DialogPrimitive.Content>\r\n </DialogPortal>\r\n )\r\n}\r\nDialogContent.displayName = 'DialogContent'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogHeader\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogHeader({ className, ...props }: ComponentProps<'div'>) {\r\n return (\r\n <div\r\n className={cn(\r\n 'flex flex-col space-y-1.5 text-center sm:text-left',\r\n className\r\n )}\r\n data-slot=\"dialog-header\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogHeader.displayName = 'DialogHeader'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogBody\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogBody({ className, ...props }: ComponentProps<'div'>) {\r\n return (\r\n <main\r\n className={cn('py-2', className)}\r\n data-slot=\"dialog-body\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogBody.displayName = 'DialogBody'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogFooter\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogFooter({ className, ...props }: ComponentProps<'div'>) {\r\n return (\r\n <footer\r\n className={cn(\r\n 'flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2',\r\n className\r\n )}\r\n data-slot=\"dialog-footer\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogFooter.displayName = 'DialogFooter'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogTitle\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogTitle({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof DialogPrimitive.Title>) {\r\n return (\r\n <DialogPrimitive.Title\r\n className={cn(\r\n 'font-semibold text-lg leading-none tracking-tight',\r\n className\r\n )}\r\n data-slot=\"dialog-title\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogTitle.displayName = 'DialogTitle'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DialogDescription\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DialogDescription({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof DialogPrimitive.Description>) {\r\n return (\r\n <DialogPrimitive.Description\r\n className={cn('text-gray-600 text-sm', className)}\r\n data-slot=\"dialog-description\"\r\n {...props}\r\n />\r\n )\r\n}\r\nDialogDescription.displayName = 'DialogDescription'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport {\r\n Dialog,\r\n DialogTrigger,\r\n DialogContent,\r\n DialogHeader,\r\n DialogBody,\r\n DialogFooter,\r\n DialogTitle,\r\n DialogDescription,\r\n DialogClose,\r\n DialogPortal,\r\n DialogOverlay,\r\n}\r\n"],"names":["Dialog","props","DialogPrimitive","DialogTrigger","DialogPortal","DialogClose","className","size","variant","buttonVariants","DialogOverlay","cn","DialogContent","children","classNames","XIcon","DialogHeader","DialogBody","DialogFooter","DialogTitle","DialogDescription"],"mappings":";qLAaA,SAASA,EAAOC,CAAkD,EAChE,MAAO,UAACC,EAAAA,IAAoB,EAAC,YAAU,SAAU,GAAGD,CAAK,EAC3D,CAOA,SAASE,EAAcF,CAAqD,EAC1E,MAAO,UAACC,EAAAA,OAAuB,EAAC,YAAU,iBAAkB,GAAGD,CAAK,EACtE,CAOA,SAASG,EAAa,CACpB,GAAGH,EACiD,EACpD,MAAO,UAACC,EAAAA,MAAsB,EAAC,YAAU,gBAAiB,GAAGD,CAAK,EACpE,CAOA,SAASI,EAAY,CACnBC,UAAAA,CAAS,CACTC,KAAAA,CAAI,CACJC,QAAAA,EAAU,SAAS,CACnB,GAAGP,EAIJ,EACC,MACE,UAACC,EAAAA,KAAqB,EACpB,UAAWO,GAAAA,EAAAA,cAAAA,EAAe,CAAEH,UAAAA,EAAWC,KAAAA,EAAMC,QAAAA,CAAQ,GACrD,YAAU,eACT,GAAGP,CAAK,EAGf,CAOA,SAASS,EAAc,CACrBJ,UAAAA,CAAS,CACT,GAAGL,EACkD,EACrD,MACE,UAACC,EAAAA,OAAuB,EACtB,UAAWS,GAAAA,EAAAA,EAAAA,EACT,yJACAL,GAEF,YAAU,iBACT,GAAGL,CAAK,EAGf,CAOA,SAASW,EAAc,CACrBC,SAAAA,CAAQ,CACRP,UAAAA,CAAS,CACTQ,WAAAA,CAAU,CACV,GAAGb,EAOJ,EACC,MACE,WAACG,EAAAA,C,UACC,UAACM,EAAAA,CAAc,UAAWI,GAAY,O,GACtC,WAACZ,EAAAA,OAAuB,EACtB,UAAWS,GAAAA,EAAAA,EAAAA,EACT,0XACAG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AW,CAAG,gBA4C5BE,EAAc,WAAW,CAAG,gBAkB5BI,EAAa,WAAW,CAAG,eAe3BC,EAAW,WAAW,CAAG,aAkBzBC,EAAa,WAAW,CAAG,eAqB3BC,EAAY,WAAW,CAAG,cAkB1BC,EAAkB,WAAW,CAAG,2B"}
|
package/dist/esm/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import*as t from"./data-table-config.js";export*from"./format.js";export*from"./utils.js";var r={"@/lib/data-table-config":function(r){r.exports=t}},o={};!function t(a){var e=o[a];if(void 0!==e)return e.exports;var i=o[a]={exports:{}};return r[a](i,i.exports,t),i.exports}("@/lib/data-table-config");
|
package/dist/styles/index.css
CHANGED
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
--color-gbm-black: #191919;
|
|
114
114
|
--color-gbm-gray: #40464f;
|
|
115
115
|
|
|
116
|
-
--color-header: #
|
|
116
|
+
--color-header: #F6F8F9;
|
|
117
117
|
--color-stroke: #dae0e7;
|
|
118
118
|
--color-section: #cfd7dc;
|
|
119
119
|
|
|
@@ -252,3 +252,61 @@
|
|
|
252
252
|
@apply bg-background text-foreground;
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Animation Repeat
|
|
258
|
+
* -----------------------------------------------------------------------------
|
|
259
|
+
* Controls the number of repetitions of the animation.
|
|
260
|
+
*/
|
|
261
|
+
@utility animation-repeat-infinite {
|
|
262
|
+
animation-iteration-count: infinite;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
@utility animation-repeat-initial {
|
|
266
|
+
animation-iteration-count: initial;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
@utility animation-repeat-* {
|
|
270
|
+
animation-iteration-count: --value(integer, [integer]);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Animation Delay
|
|
275
|
+
* -----------------------------------------------------------------------------
|
|
276
|
+
* Adjust the delay time before the animation starts.
|
|
277
|
+
*/
|
|
278
|
+
@utility animation-delay-initial {
|
|
279
|
+
animation-delay: initial;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
@utility animation-delay-* {
|
|
283
|
+
animation-delay: calc(--value(integer) * 1ms);
|
|
284
|
+
animation-delay: --value([*]);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Animation Duration
|
|
289
|
+
* -----------------------------------------------------------------------------
|
|
290
|
+
* Defines the duration of the animation execution.
|
|
291
|
+
*/
|
|
292
|
+
@utility animation-duration-initial {
|
|
293
|
+
animation-duration: initial;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
@utility animation-duration-* {
|
|
297
|
+
animation-duration: calc(--value(integer) * 1ms);
|
|
298
|
+
animation-duration: --value([*]);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Rotate Animations
|
|
303
|
+
* -----------------------------------------------------------------------------
|
|
304
|
+
* Adjust the rotation angle of the element when it appears or disappears.
|
|
305
|
+
*/
|
|
306
|
+
@utility spin-in-* {
|
|
307
|
+
--tw-enter-rotate: calc(1deg * --value(integer));
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
@utility spin-out-* {
|
|
311
|
+
--tw-exit-rotate: calc(1deg * --value(integer));
|
|
312
|
+
}
|