@ethisyscore/plugin-ui 1.16.0 → 1.18.0

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.
Files changed (37) hide show
  1. package/dist/components/layout/index.cjs +130 -0
  2. package/dist/components/layout/index.cjs.map +1 -0
  3. package/dist/components/layout/index.d.cts +48 -0
  4. package/dist/components/layout/index.d.ts +48 -0
  5. package/dist/components/layout/index.js +127 -0
  6. package/dist/components/layout/index.js.map +1 -0
  7. package/dist/components/shared/index.cjs +222 -0
  8. package/dist/components/shared/index.cjs.map +1 -0
  9. package/dist/components/shared/index.d.cts +88 -0
  10. package/dist/components/shared/index.d.ts +88 -0
  11. package/dist/components/shared/index.js +215 -0
  12. package/dist/components/shared/index.js.map +1 -0
  13. package/dist/components/ui/index.cjs +229 -0
  14. package/dist/components/ui/index.cjs.map +1 -0
  15. package/dist/components/ui/index.d.cts +13 -0
  16. package/dist/components/ui/index.d.ts +13 -0
  17. package/dist/components/ui/index.js +12 -0
  18. package/dist/components/ui/index.js.map +1 -0
  19. package/dist/icons/index.cjs +43589 -0
  20. package/dist/icons/index.cjs.map +1 -0
  21. package/dist/icons/index.d.cts +1427 -0
  22. package/dist/icons/index.d.ts +1427 -0
  23. package/dist/icons/index.js +43115 -0
  24. package/dist/icons/index.js.map +1 -0
  25. package/dist/platform-react/index.cjs +246 -0
  26. package/dist/platform-react/index.cjs.map +1 -0
  27. package/dist/platform-react/index.d.cts +740 -0
  28. package/dist/platform-react/index.d.ts +740 -0
  29. package/dist/platform-react/index.js +229 -0
  30. package/dist/platform-react/index.js.map +1 -0
  31. package/dist/types/index.cjs +4 -0
  32. package/dist/types/index.cjs.map +1 -0
  33. package/dist/types/index.d.cts +53 -0
  34. package/dist/types/index.d.ts +53 -0
  35. package/dist/types/index.js +3 -0
  36. package/dist/types/index.js.map +1 -0
  37. package/package.json +45 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/ui/Dialog.tsx","../../../src/components/shared/ConfirmActionDialog.tsx","../../../src/icons/nexture/ni-bin-empty.tsx","../../../src/icons/nexture-icons.tsx","../../../src/components/shared/ConfirmDeleteDialog.tsx","../../../src/components/shared/toast.ts"],"names":["MuiDialog","jsxs","DialogTitle","DialogContent","jsx","DialogContentText","DialogActions","Button","Fragment","CircularProgress","Box"],"mappings":";;;;;;AAQO,SAAS,OAAO,KAAA,EAAoB;AACzC,EAAA,sCAAQA,eAAA,EAAA,EAAU,iBAAA,EAAiB,MAAC,mBAAA,EAAmB,IAAA,EAAE,GAAG,KAAA,EAAO,CAAA;AACrE;ACmCO,SAAS,mBAAA,CAAoB;AAAA,EAClC,IAAA;AAAA,EACA,YAAA;AAAA,EACA,SAAA;AAAA,EACA,SAAA,GAAY,KAAA;AAAA,EACZ,MAAA;AAAA,EACA,IAAA;AAAA,EACA,cAAA,GAAiB,SAAA;AAAA,EACjB,QAAA;AAAA,EACA;AACF,CAAA,EAA6B;AAC3B,EAAA,MAAM,WAAA,GAAc,OAAO,WAAA,IAAe,oCAAA;AAC1C,EAAA,MAAM,SAAA,GAAY,OAAO,SAAA,IAAa,QAAA;AACtC,EAAA,MAAM,UAAA,GAAa,OAAO,UAAA,IAAc,SAAA;AACxC,EAAA,MAAM,UAAA,GAAa,OAAO,UAAA,IAAc,eAAA;AAExC,EAAA,MAAM,cAAc,MAAM;AACxB,IAAA,IAAI,CAAC,SAAA,EAAW,YAAA,CAAa,KAAK,CAAA;AAAA,EACpC,CAAA;AAEA,EAAA,uBACEC,eAAA,CAAC,MAAA,EAAA,EAAO,IAAA,EAAY,OAAA,EAAS,WAAA,EAAa,UAAS,IAAA,EAAK,SAAA,EAAS,IAAA,EAAC,IAAA,EAAK,aAAA,EACrE,QAAA,EAAA;AAAA,oBAAAA,eAAA,CAACC,oBAAA,EAAA,EAAY,WAAU,yBAAA,EACpB,QAAA,EAAA;AAAA,MAAA,IAAA;AAAA,MACA,MAAA,CAAO;AAAA,KAAA,EACV,CAAA;AAAA,oC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ACF,CAAA;AAAA,IACA,gBAAA;AAAA,IACA,cAAA;AAAA,IACA;AAAA,GACF;AACF","file":"index.cjs","sourcesContent":["import { Dialog as MuiDialog, type DialogProps } from \"@mui/material\";\n\n/**\n * MUI `Dialog` with the scroll-lock + focus-restore overrides plugin surfaces\n * need (AB#4808): MUI's defaults reset the page to top when a dialog opened from\n * below the fold closes. Everything else is the stock `Dialog` — this is the one\n * `components/ui` wrapper that isn't a pure re-export.\n */\nexport function Dialog(props: DialogProps) {\n return <MuiDialog disableScrollLock disableRestoreFocus {...props} />;\n}\n","import type { ReactNode } from \"react\";\nimport {\n Button,\n CircularProgress,\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle,\n} from \"../ui\";\n\nexport interface ConfirmActionLabels {\n title: string;\n description?: ReactNode;\n btnCancel?: string;\n btnConfirm?: string;\n btnLoading?: string;\n}\n\ninterface ConfirmActionDialogProps {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n onConfirm: () => void;\n isLoading?: boolean;\n labels: ConfirmActionLabels;\n icon?: ReactNode;\n confirmVariant?: \"default\" | \"destructive\";\n className?: string;\n /** Optional body content rendered between the description and footer (e.g. a Textarea). */\n children?: ReactNode;\n /** Additional disable condition for the confirm button (e.g. empty required field). */\n disableConfirm?: boolean;\n}\n\n/**\n * Generic action confirmation dialog.\n * Use `labels` to customise title, description and button text.\n * `labels.description` accepts a string or any ReactNode (e.g. JSX with <strong>).\n *\n * Pass `children` to render additional body content (e.g. a Textarea) between the\n * description and the footer. Use `disableConfirm` to conditionally disable the confirm\n * button (e.g. when a required field is empty).\n *\n * For delete confirmations, prefer `ConfirmDeleteDialog` instead.\n */\nexport function ConfirmActionDialog({\n open,\n onOpenChange,\n onConfirm,\n isLoading = false,\n labels,\n icon,\n confirmVariant = \"default\",\n children,\n disableConfirm,\n}: ConfirmActionDialogProps) {\n const description = labels.description ?? \"Are you sure you want to continue?\";\n const btnCancel = labels.btnCancel ?? \"Cancel\";\n const btnConfirm = labels.btnConfirm ?? \"Confirm\";\n const btnLoading = labels.btnLoading ?? \"Processing...\";\n\n const handleClose = () => {\n if (!isLoading) onOpenChange(false);\n };\n\n return (\n <Dialog open={open} onClose={handleClose} maxWidth=\"xs\" fullWidth role=\"alertdialog\">\n <DialogTitle className=\"flex items-center gap-2\">\n {icon}\n {labels.title}\n </DialogTitle>\n <DialogContent>\n {typeof description === \"string\" ? (\n <DialogContentText>{description}</DialogContentText>\n ) : (\n <DialogContentText component=\"div\">{description}</DialogContentText>\n )}\n {children}\n </DialogContent>\n <DialogActions>\n <Button onClick={handleClose} disabled={isLoading}>\n {btnCancel}\n </Button>\n <Button\n variant=\"contained\"\n color={confirmVariant === \"destructive\" ? \"error\" : \"primary\"}\n onClick={onConfirm}\n disabled={isLoading || disableConfirm}\n >\n {isLoading ? (\n <>\n <CircularProgress size={16} color=\"inherit\" className=\"mr-2\" />\n {btnLoading}\n </>\n ) : (\n btnConfirm\n )}\n </Button>\n </DialogActions>\n </Dialog>\n );\n}\n","import { NextureIconsProps, sizeHelper, strokeSizeHelper } from \"../nexture-icons\";\n\nexport default function NiBinEmpty({ className, variant = \"outlined\", size = \"medium\" }: NextureIconsProps) {\n const iconSize = sizeHelper(size);\n const iconStrokeWidth = strokeSizeHelper(iconSize);\n if (variant === \"outlined\") {\n return (\n <svg\n width={iconSize}\n height={iconSize}\n className={className}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M6 6L5.48806 9.58357C5.16413 11.8511 5.14395 14.1516 5.42806 16.4245L5.51601 17.1281C5.80316 19.4253 7.56538 21.2609 9.84894 21.6415V21.6415C11.2732 21.8789 12.7268 21.8789 14.1511 21.6415V21.6415C16.4346 21.2609 18.1968 19.4253 18.484 17.1281L18.5719 16.4245C18.856 14.1516 18.8359 11.8511 18.5119 9.58357L18 6\"\n stroke=\"currentColor\"\n strokeWidth={iconStrokeWidth}\n strokeLinecap=\"round\"\n />\n <path\n d=\"M15 5L14.9062 4.43717C14.7408 3.4451 14.6582 2.94906 14.3711 2.60286C14.2462 2.45218 14.0957 2.32469 13.9265 2.22623C13.5378 2 13.035 2 12.0292 2L11.9708 2C10.965 2 10.4622 2 10.0735 2.22623C9.90431 2.32469 9.75381 2.45219 9.62888 2.60286C9.34182 2.94906 9.25915 3.4451 9.09381 4.43717L9 5\"\n stroke=\"currentColor\"\n strokeWidth={iconStrokeWidth}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M20 6L18.2017 5.77522C14.0833 5.26041 9.91673 5.26041 5.79826 5.77522L4 6\"\n stroke=\"currentColor\"\n strokeWidth={iconStrokeWidth}\n strokeLinecap=\"round\"\n />\n </svg>\n );\n } else {\n return (\n <svg\n width={iconSize}\n height={iconSize}\n className={className}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9.74018 5.12304C9.6721 5.53152 9.28536 5.80813 8.8769 5.74023C8.46843 5.67215 8.19181 5.28541 8.25971 4.87695L8.35444 4.31347C8.43472 3.83178 8.50246 3.41913 8.59077 3.08593C8.68246 2.74003 8.81179 2.41337 9.0517 2.12402C9.23282 1.90562 9.45102 1.72085 9.69623 1.57812C10.0211 1.38906 10.3644 1.31483 10.7206 1.28125C11.0639 1.24892 11.4822 1.25 11.9706 1.25L12.0292 1.25C12.5177 1.25 12.936 1.24892 13.2792 1.28125C13.6355 1.31483 13.9788 1.38906 14.3037 1.57812C14.5489 1.72085 14.7671 1.90562 14.9482 2.12402C15.1881 2.41337 15.3174 2.74003 15.4091 3.08593C15.4974 3.41913 15.5652 3.83177 15.6455 4.31347L15.7402 4.87695L15.749 4.95312C15.7732 5.33241 15.506 5.6764 15.123 5.74023C14.74 5.80389 14.3763 5.56494 14.2763 5.19824L14.2597 5.12304L14.166 4.56054C14.081 4.05049 14.025 3.71896 13.9589 3.46972C13.8964 3.23378 13.8409 3.13889 13.7939 3.08203C13.7252 2.99916 13.6418 2.92817 13.5488 2.87402C13.4849 2.83695 13.3818 2.79831 13.1386 2.77539C12.8819 2.75121 12.5462 2.75 12.0292 2.75L11.9706 2.75C11.4537 2.75 11.1179 2.75121 10.8613 2.77539C10.6181 2.79831 10.515 2.83695 10.4511 2.87402C10.3581 2.92817 10.2747 2.99916 10.206 3.08203C10.1589 3.13889 10.1035 3.23378 10.041 3.46972C9.97489 3.71896 9.91894 4.05049 9.83393 4.56054L9.74018 5.12304Z\"\n fill=\"currentColor\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M5.94819 5.00114C9.96612 4.51861 14.0279 4.51807 18.0459 5.00016C18.1288 5.01011 18.212 5.02008 18.2949 5.03043L20.0927 5.25504L20.1689 5.26872C20.5391 5.35382 20.792 5.70788 20.7441 6.09293C20.6958 6.47814 20.3633 6.75806 19.9834 6.74918L19.9072 6.7443L18.8447 6.61051L19.2548 9.4777C19.5881 11.8107 19.6086 14.1783 19.3164 16.5168L19.2285 17.2209C18.9001 19.8471 16.8851 21.9459 14.2744 22.381C12.7685 22.632 11.2314 22.632 9.72554 22.381C7.11486 21.9458 5.09978 19.8471 4.77144 17.2209L4.68355 16.5168C4.39132 14.1783 4.41185 11.8107 4.74507 9.4777L5.15425 6.61051L4.09273 6.7443L4.01655 6.74918C3.63657 6.75805 3.30414 6.47813 3.25581 6.09293C3.20471 5.68211 3.49633 5.30642 3.90718 5.25504L5.70503 5.03043C5.78598 5.02032 5.86721 5.01086 5.94819 5.00114Z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n }\n}\n","import NiAI from \"./nexture/ni-ai\";\nimport NiAirBalloon from \"./nexture/ni-air-balloon\";\nimport NiAnchor from \"./nexture/ni-anchor\";\nimport NiAnnouncement from \"./nexture/ni-announcement\";\nimport NiAntenna from \"./nexture/ni-antenna\";\nimport NiArchive from \"./nexture/ni-archive\";\nimport NiArchiveCheck from \"./nexture/ni-archive-check\";\nimport NiArrowCircleLeft from \"./nexture/ni-arrow-circle-left\";\nimport NiArrowCircleRight from \"./nexture/ni-arrow-circle-right\";\nimport NiArrowDown from \"./nexture/ni-arrow-down\";\nimport NiArrowDownLeft from \"./nexture/ni-arrow-down-left\";\nimport NiArrowDownLeftSquare from \"./nexture/ni-arrow-down-left-square\";\nimport NiArrowDownRight from \"./nexture/ni-arrow-down-right\";\nimport NiArrowDownRightSquare from \"./nexture/ni-arrow-down-right-square\";\nimport NiArrowDownSquare from \"./nexture/ni-arrow-down-square\";\nimport NiArrowHistory from \"./nexture/ni-arrow-history\";\nimport NiArrowInDown from \"./nexture/ni-arrow-in-down\";\nimport NiArrowInLeft from \"./nexture/ni-arrow-in-left\";\nimport NiArrowInRight from \"./nexture/ni-arrow-in-right\";\nimport NiArrowInUp from \"./nexture/ni-arrow-in-up\";\nimport NiArrowLeft from \"./nexture/ni-arrow-left\";\nimport NiArrowLeftRight from \"./nexture/ni-arrow-left-right\";\nimport NiArrowLeftSquare from \"./nexture/ni-arrow-left-square\";\nimport NiArrowOutDown from \"./nexture/ni-arrow-out-down\";\nimport NiArrowOutLeft from \"./nexture/ni-arrow-out-left\";\nimport NiArrowOutRight from \"./nexture/ni-arrow-out-right\";\nimport NiArrowOutUp from \"./nexture/ni-arrow-out-up\";\nimport NiArrowRight from \"./nexture/ni-arrow-right\";\nimport NiArrowRightSquare from \"./nexture/ni-arrow-right-square\";\nimport NiArrowUp from \"./nexture/ni-arrow-up\";\nimport NiArrowUpDown from \"./nexture/ni-arrow-up-down\";\nimport NiArrowUpLeft from \"./nexture/ni-arrow-up-left\";\nimport NiArrowUpLeftSquare from \"./nexture/ni-arrow-up-left-square\";\nimport NiArrowUpRight from \"./nexture/ni-arrow-up-right\";\nimport NiArrowUpRightSquare from \"./nexture/ni-arrow-up-right-square\";\nimport NiArrowUpSquare from \"./nexture/ni-arrow-up-square\";\nimport NiAt from \"./nexture/ni-at\";\nimport NiBadge from \"./nexture/ni-badge\";\nimport NiBadgeCheck from \"./nexture/ni-badge-check\";\nimport NiBag from \"./nexture/ni-bag\";\nimport NiBandAid from \"./nexture/ni-band-aid\";\nimport NiBarcode from \"./nexture/ni-barcode\";\nimport NiBasket from \"./nexture/ni-basket\";\nimport NiBatteryCharging from \"./nexture/ni-battery-charging\";\nimport NiBatteryEmpty from \"./nexture/ni-battery-empty\";\nimport NiBatteryFull from \"./nexture/ni-battery-full\";\nimport NiBell from \"./nexture/ni-bell\";\nimport NiBellInactive from \"./nexture/ni-bell-inactive\";\nimport NiBinEmpty from \"./nexture/ni-bin-empty\";\nimport NiBinFull from \"./nexture/ni-bin-full\";\nimport NiBloodCells from \"./nexture/ni-blood-cells\";\nimport NiBluetooth from \"./nexture/ni-bluetooth\";\nimport NiBook from \"./nexture/ni-book\";\nimport NiBookmark from \"./nexture/ni-bookmark\";\nimport NiBookmarkSingle from \"./nexture/ni-bookmark-single\";\nimport NiBraces from \"./nexture/ni-braces\";\nimport NiBrackets from \"./nexture/ni-brackets\";\nimport NiBrain from \"./nexture/ni-brain\";\nimport NiBrainCircuit from \"./nexture/ni-brain-circuit\";\nimport NiBriefcase from \"./nexture/ni-briefcase\";\nimport NiBrush from \"./nexture/ni-brush\";\nimport NiBrushArt from \"./nexture/ni-brush-art\";\nimport NiBrushArtSquare from \"./nexture/ni-brush-art-square\";\nimport NiBug from \"./nexture/ni-bug\";\nimport NiBuilding from \"./nexture/ni-building\";\nimport NiBulbOff from \"./nexture/ni-bulb-off\";\nimport NiBulbOn from \"./nexture/ni-bulb-on\";\nimport NiButton from \"./nexture/ni-button\";\nimport NiButtonGroup from \"./nexture/ni-button-group\";\nimport NiButtonLarge from \"./nexture/ni-button-large\";\nimport NiCake from \"./nexture/ni-cake\";\nimport NiCalendar from \"./nexture/ni-calendar\";\nimport NiCalendarClock from \"./nexture/ni-calendar-clock\";\nimport NiCamera from \"./nexture/ni-camera\";\nimport NiCar from \"./nexture/ni-car\";\nimport NiCartArrow from \"./nexture/ni-cart-arrow\";\nimport NiCartCross from \"./nexture/ni-cart-cross\";\nimport NiCartEmpty from \"./nexture/ni-cart-empty\";\nimport NiCartMinus from \"./nexture/ni-cart-minus\";\nimport NiCartPlus from \"./nexture/ni-cart-plus\";\nimport NiCatalog from \"./nexture/ni-catalog\";\nimport NiCells from \"./nexture/ni-cells\";\nimport NiCellsPlus from \"./nexture/ni-cells-plus\";\nimport NiChange from \"./nexture/ni-change\";\nimport NiChartBar from \"./nexture/ni-chart-bar\";\nimport NiChartCandleSticks from \"./nexture/ni-chart-candle-sticks\";\nimport NiChartFunnel from \"./nexture/ni-chart-funnel\";\nimport NiChartHeatmap from \"./nexture/ni-chart-heatmap\";\nimport NiChartLine from \"./nexture/ni-chart-line\";\nimport NiChartLineBar from \"./nexture/ni-chart-line-bar\";\nimport NiChartPie from \"./nexture/ni-chart-pie\";\nimport NiChartPolar from \"./nexture/ni-chart-polar\";\nimport NiChartRadar from \"./nexture/ni-chart-radar\";\nimport NiChartScatter from \"./nexture/ni-chart-scatter\";\nimport NiCheck from \"./nexture/ni-check\";\nimport NiCheckFull from \"./nexture/ni-check-full\";\nimport NiCheckSquare from \"./nexture/ni-check-square\";\nimport NiChef from \"./nexture/ni-chef\";\nimport NiChevronDown from \"./nexture/ni-chevron-down\";\nimport NiChevronDownSmall from \"./nexture/ni-chevron-down-small\";\nimport NiChevronLeft from \"./nexture/ni-chevron-left\";\nimport NiChevronLeftRightReverseSmall from \"./nexture/ni-chevron-left-right-reverse-small\";\nimport NiChevronLeftRightSmall from \"./nexture/ni-chevron-left-right-small\";\nimport NiChevronLeftSmall from \"./nexture/ni-chevron-left-small\";\nimport NiChevronRight from \"./nexture/ni-chevron-right\";\nimport NiChevronRightSmall from \"./nexture/ni-chevron-right-small\";\nimport NiChevronUp from \"./nexture/ni-chevron-up\";\nimport NiChevronUpDownReverseSmall from \"./nexture/ni-chevron-up-down-reverse-small\";\nimport NiChevronUpDownSmall from \"./nexture/ni-chevron-up-down-small\";\nimport NiChevronUpSmall from \"./nexture/ni-chevron-up-small\";\nimport NiCholesterol from \"./nexture/ni-cholesterol\";\nimport NiCircle from \"./nexture/ni-circle\";\nimport NiClipboard from \"./nexture/ni-clipboard\";\nimport NiClock from \"./nexture/ni-clock\";\nimport NiCloud from \"./nexture/ni-cloud\";\nimport NiCloudPartly from \"./nexture/ni-cloud-partly\";\nimport NiCloudRain from \"./nexture/ni-cloud-rain\";\nimport NiCloudSnow from \"./nexture/ni-cloud-snow\";\nimport NiCloudThunder from \"./nexture/ni-cloud-thunder\";\nimport NiCode from \"./nexture/ni-code\";\nimport NiCoffee from \"./nexture/ni-coffee\";\nimport NiCoin from \"./nexture/ni-coin\";\nimport NiCollapse from \"./nexture/ni-collapse\";\nimport NiCollapseIn from \"./nexture/ni-collapse-in\";\nimport NiCols from \"./nexture/ni-cols\";\nimport NiCompass from \"./nexture/ni-compass\";\nimport NiController from \"./nexture/ni-controller\";\nimport NiCopyright from \"./nexture/ni-copyright\";\nimport NiCpu from \"./nexture/ni-cpu\";\nimport NiCreditCard from \"./nexture/ni-credit-card\";\nimport NiCrop from \"./nexture/ni-crop\";\nimport NiCross from \"./nexture/ni-cross\";\nimport NiCrossFull from \"./nexture/ni-cross-full\";\nimport NiCrossHexagon from \"./nexture/ni-cross-hexagon\";\nimport NiCrossSquare from \"./nexture/ni-cross-square\";\nimport NiCrosshair from \"./nexture/ni-crosshair\";\nimport NiCrown from \"./nexture/ni-crown\";\nimport NiCursor from \"./nexture/ni-cursor\";\nimport NiDashboard from \"./nexture/ni-dashboard\";\nimport NiDatabase from \"./nexture/ni-database\";\nimport NiDevops from \"./nexture/ni-devops\";\nimport NiDiagram from \"./nexture/ni-diagram\";\nimport NiDice from \"./nexture/ni-dice\";\nimport NiDirectory from \"./nexture/ni-directory\";\nimport NiDocumentArchive from \"./nexture/ni-document-archive\";\nimport NiDocumentChart from \"./nexture/ni-document-chart\";\nimport NiDocumentCheck from \"./nexture/ni-document-check\";\nimport NiDocumentCode from \"./nexture/ni-document-code\";\nimport NiDocumentCross from \"./nexture/ni-document-cross\";\nimport NiDocumentFull from \"./nexture/ni-document-full\";\nimport NiDocumentImage from \"./nexture/ni-document-image\";\nimport NiDocumentMinus from \"./nexture/ni-document-minus\";\nimport NiDocumentNumber from \"./nexture/ni-document-number\";\nimport NiDocumentPlus from \"./nexture/ni-document-plus\";\nimport NiDocumentVideo from \"./nexture/ni-document-video\";\nimport NiDollar from \"./nexture/ni-dollar\";\nimport NiDollarSquare from \"./nexture/ni-dollar-square\";\nimport NiDotsSquare from \"./nexture/ni-dots-square\";\nimport NiDownloadCloud from \"./nexture/ni-download-cloud\";\nimport NiDragHorizontal from \"./nexture/ni-drag-horizontal\";\nimport NiDragVertical from \"./nexture/ni-drag-vertical\";\nimport NiDrink from \"./nexture/ni-drink\";\nimport NiDrop from \"./nexture/ni-drop\";\nimport NiDuplicate from \"./nexture/ni-duplicate\";\nimport NiEllipsisHorizontal from \"./nexture/ni-ellipsis-horizontal\";\nimport NiEllipsisVertical from \"./nexture/ni-ellipsis-vertical\";\nimport NiEmail from \"./nexture/ni-email\";\nimport NiEmailOpen from \"./nexture/ni-email-open\";\nimport NiEndDownSmall from \"./nexture/ni-end-down-small\";\nimport NiEndLeftSmall from \"./nexture/ni-end-left-small\";\nimport NiEndRightSmall from \"./nexture/ni-end-right-small\";\nimport NiEndUpSmall from \"./nexture/ni-end-up-small\";\nimport NiEnterDown from \"./nexture/ni-enter-down\";\nimport NiEnterLeft from \"./nexture/ni-enter-left\";\nimport NiEnterReverseDown from \"./nexture/ni-enter-reverse-down\";\nimport NiEnterReverseLeft from \"./nexture/ni-enter-reverse-left\";\nimport NiEnterReverseRight from \"./nexture/ni-enter-reverse-right\";\nimport NiEnterReverseUp from \"./nexture/ni-enter-reverse-up\";\nimport NiEnterRight from \"./nexture/ni-enter-right\";\nimport NiEnterUp from \"./nexture/ni-enter-up\";\nimport NiEquals from \"./nexture/ni-equals\";\nimport NiEqualsFull from \"./nexture/ni-equals-full\";\nimport NiEraser from \"./nexture/ni-eraser\";\nimport NiEuro from \"./nexture/ni-euro\";\nimport NiEuroSquare from \"./nexture/ni-euro-square\";\nimport NiExclamationHexagon from \"./nexture/ni-exclamation-hexagon\";\nimport NiExclamationSquare from \"./nexture/ni-exclamation-square\";\nimport NiExpand from \"./nexture/ni-expand\";\nimport NiExpandFull from \"./nexture/ni-expand-full\";\nimport NiExpandOut from \"./nexture/ni-expand-out\";\nimport NiExpandSquare from \"./nexture/ni-expand-square\";\nimport NiExternal from \"./nexture/ni-external\";\nimport NiEyeClose from \"./nexture/ni-eye-close\";\nimport NiEyeInactive from \"./nexture/ni-eye-inactive\";\nimport NiEyeOpen from \"./nexture/ni-eye-open\";\nimport NiFaceFrown from \"./nexture/ni-face-frown\";\nimport NiFaceFrownMore from \"./nexture/ni-face-frown-more\";\nimport NiFaceNeutral from \"./nexture/ni-face-neutral\";\nimport NiFaceSmile from \"./nexture/ni-face-smile\";\nimport NiFaceSmileMore from \"./nexture/ni-face-smile-more\";\nimport NiFemale from \"./nexture/ni-female\";\nimport NiFilter from \"./nexture/ni-filter\";\nimport NiFilterCross from \"./nexture/ni-filter-cross\";\nimport NiFilterMinus from \"./nexture/ni-filter-minus\";\nimport NiFilterPlus from \"./nexture/ni-filter-plus\";\nimport NiFingerprint from \"./nexture/ni-fingerprint\";\nimport NiFire from \"./nexture/ni-fire\";\nimport NiFirstAid from \"./nexture/ni-first-aid\";\nimport NiFitness from \"./nexture/ni-fitness\";\nimport NiFlag from \"./nexture/ni-flag\";\nimport NiFlash from \"./nexture/ni-flash\";\nimport NiFlask from \"./nexture/ni-flask\";\nimport NiFloppyDisk from \"./nexture/ni-floppy-disk\";\nimport NiFolder from \"./nexture/ni-folder\";\nimport NiFolderCheck from \"./nexture/ni-folder-check\";\nimport NiFolderCross from \"./nexture/ni-folder-cross\";\nimport NiFolderMinus from \"./nexture/ni-folder-minus\";\nimport NiFolderPlus from \"./nexture/ni-folder-plus\";\nimport NiForwardDownSmall from \"./nexture/ni-forward-down-small\";\nimport NiForwardLeftSmall from \"./nexture/ni-forward-left-small\";\nimport NiForwardRightSmall from \"./nexture/ni-forward-right-small\";\nimport NiForwardUpSmall from \"./nexture/ni-forward-up-small\";\nimport NiGay from \"./nexture/ni-gay\";\nimport NiGerm from \"./nexture/ni-germ\";\nimport NiGogo from \"./nexture/ni-gogo\";\nimport NiGold from \"./nexture/ni-gold\";\nimport NiGpu from \"./nexture/ni-gpu\";\nimport NiGraduation from \"./nexture/ni-graduation\";\nimport NiGroup from \"./nexture/ni-group\";\nimport NiHeadphones from \"./nexture/ni-headphones\";\nimport NiHeadset from \"./nexture/ni-headset\";\nimport NiHeadsetMic from \"./nexture/ni-headset-mic\";\nimport NiHealth from \"./nexture/ni-health\";\nimport NiHeart from \"./nexture/ni-heart\";\nimport NiHeartRate from \"./nexture/ni-heart-rate\";\nimport NiHearts from \"./nexture/ni-hearts\";\nimport NiHome from \"./nexture/ni-home\";\nimport NiInbox from \"./nexture/ni-inbox\";\nimport NiInfoSquare from \"./nexture/ni-info-square\";\nimport NiInjection from \"./nexture/ni-injection\";\nimport NiInput from \"./nexture/ni-input\";\nimport NiIntegration from \"./nexture/ni-integration\";\nimport NiInternal from \"./nexture/ni-internal\";\nimport NiIv from \"./nexture/ni-iv\";\nimport NiJoin from \"./nexture/ni-join\";\nimport NiKey from \"./nexture/ni-key\";\nimport NiKeyboard from \"./nexture/ni-keyboard\";\nimport NiKnobs from \"./nexture/ni-knobs\";\nimport NiLaptop from \"./nexture/ni-laptop\";\nimport NiLaw from \"./nexture/ni-law\";\nimport NiLayout from \"./nexture/ni-layout\";\nimport NiLike from \"./nexture/ni-like\";\nimport NiLink from \"./nexture/ni-link\";\nimport NiLinkBroken from \"./nexture/ni-link-broken\";\nimport NiList from \"./nexture/ni-list\";\nimport NiListCheck from \"./nexture/ni-list-check\";\nimport NiListChevronDown from \"./nexture/ni-list-chevron-down\";\nimport NiListCircle from \"./nexture/ni-list-circle\";\nimport NiListCross from \"./nexture/ni-list-cross\";\nimport NiListNumber from \"./nexture/ni-list-number\";\nimport NiListSquare from \"./nexture/ni-list-square\";\nimport NiLoader from \"./nexture/ni-loader\";\nimport NiLock from \"./nexture/ni-lock\";\nimport NiLuggage from \"./nexture/ni-luggage\";\nimport NiLungs from \"./nexture/ni-lungs\";\nimport NiMagicWand from \"./nexture/ni-magic-wand\";\nimport NiMale from \"./nexture/ni-male\";\nimport NiMap from \"./nexture/ni-map\";\nimport NiMasonary from \"./nexture/ni-masonary\";\nimport NiMedal from \"./nexture/ni-medal\";\nimport NiMenu from \"./nexture/ni-menu\";\nimport NiMenuLeft from \"./nexture/ni-menu-left\";\nimport NiMenuRight from \"./nexture/ni-menu-right\";\nimport NiMenuSplit from \"./nexture/ni-menu-split\";\nimport NiMenuSplitDot from \"./nexture/ni-menu-split-dot\";\nimport NiMenuSplitDotReverse from \"./nexture/ni-menu-split-dot-reverse\";\nimport NiMenuSplitReverse from \"./nexture/ni-menu-split-reverse\";\nimport NiMessage from \"./nexture/ni-message\";\nimport NiMessageCheck from \"./nexture/ni-message-check\";\nimport NiMessageCross from \"./nexture/ni-message-cross\";\nimport NiMessageDots from \"./nexture/ni-message-dots\";\nimport NiMessageFilled from \"./nexture/ni-message-filled\";\nimport NiMessageGrammar from \"./nexture/ni-message-grammar\";\nimport NiMessagePlus from \"./nexture/ni-message-plus\";\nimport NiMessages from \"./nexture/ni-messages\";\nimport NiMicrophone from \"./nexture/ni-microphone\";\nimport NiMinus from \"./nexture/ni-minus\";\nimport NiMinusFull from \"./nexture/ni-minus-full\";\nimport NiMinusSquare from \"./nexture/ni-minus-square\";\nimport NiMoney from \"./nexture/ni-money\";\nimport NiMoneyBag from \"./nexture/ni-money-bag\";\nimport NiMoon from \"./nexture/ni-moon\";\nimport NiMountain from \"./nexture/ni-mountain\";\nimport NiMouse from \"./nexture/ni-mouse\";\nimport NiMove from \"./nexture/ni-move\";\nimport NiMusic from \"./nexture/ni-music\";\nimport NiNetwork from \"./nexture/ni-network\";\nimport NiNext from \"./nexture/ni-next\";\nimport NiOxygen from \"./nexture/ni-oxygen\";\nimport NiPaintBucket from \"./nexture/ni-paint-bucket\";\nimport NiPaintRoller from \"./nexture/ni-paint-roller\";\nimport NiPalette from \"./nexture/ni-palette\";\nimport NiPaperclip from \"./nexture/ni-paperclip\";\nimport NiParentheses from \"./nexture/ni-parentheses\";\nimport NiPath from \"./nexture/ni-path\";\nimport NiPause from \"./nexture/ni-pause\";\nimport NiPen from \"./nexture/ni-pen\";\nimport NiPenSquare from \"./nexture/ni-pen-square\";\nimport NiPercent from \"./nexture/ni-percent\";\nimport NiPhone from \"./nexture/ni-phone\";\nimport NiPhoneHandset from \"./nexture/ni-phone-handset\";\nimport NiPhoneHandsetCheck from \"./nexture/ni-phone-handset-check\";\nimport NiPhoneHandsetOff from \"./nexture/ni-phone-handset-off\";\nimport NiPhoneHandsetOn from \"./nexture/ni-phone-handset-on\";\nimport NiPin from \"./nexture/ni-pin\";\nimport NiPinCheck from \"./nexture/ni-pin-check\";\nimport NiPinCross from \"./nexture/ni-pin-cross\";\nimport NiPinPlus from \"./nexture/ni-pin-plus\";\nimport NiPine from \"./nexture/ni-pine\";\nimport NiPivot from \"./nexture/ni-pivot\";\nimport NiPlane from \"./nexture/ni-plane\";\nimport NiPlay from \"./nexture/ni-play\";\nimport NiPlug from \"./nexture/ni-plug\";\nimport NiPlus from \"./nexture/ni-plus\";\nimport NiPlusFull from \"./nexture/ni-plus-full\";\nimport NiPlusSquare from \"./nexture/ni-plus-square\";\nimport NiPolitics from \"./nexture/ni-politics\";\nimport NiPound from \"./nexture/ni-pound\";\nimport NiPoundSquare from \"./nexture/ni-pound-square\";\nimport NiPower from \"./nexture/ni-power\";\nimport NiPresentation from \"./nexture/ni-presentation\";\nimport NiPrevious from \"./nexture/ni-previous\";\nimport NiPrinter from \"./nexture/ni-printer\";\nimport NiProgress from \"./nexture/ni-progress\";\nimport NiPullRequestClosed from \"./nexture/ni-pull-request-closed\";\nimport NiPullRequestDraft from \"./nexture/ni-pull-request-draft\";\nimport NiPullRequestMerged from \"./nexture/ni-pull-request-merged\";\nimport NiPullRequestOpen from \"./nexture/ni-pull-request-open\";\nimport NiPulse from \"./nexture/ni-pulse\";\nimport NiPushPin from \"./nexture/ni-push-pin\";\nimport NiPushPinLeft from \"./nexture/ni-push-pin-left\";\nimport NiPushPinRight from \"./nexture/ni-push-pin-right\";\nimport NiPuzzle from \"./nexture/ni-puzzle\";\nimport NiQuestionHexagon from \"./nexture/ni-question-hexagon\";\nimport NiRadio from \"./nexture/ni-radio\";\nimport NiRankFour from \"./nexture/ni-rank-four\";\nimport NiRankOne from \"./nexture/ni-rank-one\";\nimport NiRankThree from \"./nexture/ni-rank-three\";\nimport NiRankTwo from \"./nexture/ni-rank-two\";\nimport NiReceipt from \"./nexture/ni-receipt\";\nimport NiRecord from \"./nexture/ni-record\";\nimport NiRefresh from \"./nexture/ni-refresh\";\nimport NiReligion from \"./nexture/ni-religion\";\nimport NiResearch from \"./nexture/ni-research\";\nimport NiRevenue from \"./nexture/ni-revenue\";\nimport NiReverseLeft from \"./nexture/ni-reverse-left\";\nimport NiReverseRight from \"./nexture/ni-reverse-right\";\nimport NiRobot from \"./nexture/ni-robot\";\nimport NiRocket from \"./nexture/ni-rocket\";\nimport NiRouter from \"./nexture/ni-router\";\nimport NiRows from \"./nexture/ni-rows\";\nimport NiSafe from \"./nexture/ni-safe\";\nimport NiScale from \"./nexture/ni-scale\";\nimport NiScalpel from \"./nexture/ni-scalpel\";\nimport NiScissors from \"./nexture/ni-scissors\";\nimport NiScreen from \"./nexture/ni-screen\";\nimport NiScriptSub from \"./nexture/ni-script-sub\";\nimport NiScriptSuper from \"./nexture/ni-script-super\";\nimport NiSdCard from \"./nexture/ni-sd-card\";\nimport NiSearch from \"./nexture/ni-search\";\nimport NiSelect from \"./nexture/ni-select\";\nimport NiSendDown from \"./nexture/ni-send-down\";\nimport NiSendDownLeft from \"./nexture/ni-send-down-left\";\nimport NiSendDownRight from \"./nexture/ni-send-down-right\";\nimport NiSendLeft from \"./nexture/ni-send-left\";\nimport NiSendRight from \"./nexture/ni-send-right\";\nimport NiSendUp from \"./nexture/ni-send-up\";\nimport NiSendUpLeft from \"./nexture/ni-send-up-left\";\nimport NiSendUpRight from \"./nexture/ni-send-up-right\";\nimport NiServer from \"./nexture/ni-server\";\nimport NiSettings from \"./nexture/ni-settings\";\nimport NiShare from \"./nexture/ni-share\";\nimport NiShield from \"./nexture/ni-shield\";\nimport NiShieldCheck from \"./nexture/ni-shield-check\";\nimport NiShieldCross from \"./nexture/ni-shield-cross\";\nimport NiShrinkFull from \"./nexture/ni-shrink-full\";\nimport NiShrinkSquare from \"./nexture/ni-shrink-square\";\nimport NiShuffle from \"./nexture/ni-shuffle\";\nimport NiSign from \"./nexture/ni-sign\";\nimport NiSignalLeftRight from \"./nexture/ni-signal-left-right\";\nimport NiSignalRight from \"./nexture/ni-signal-right\";\nimport NiSignalUp from \"./nexture/ni-signal-up\";\nimport NiSigns from \"./nexture/ni-signs\";\nimport NiSlashHexagon from \"./nexture/ni-slash-hexagon\";\nimport NiSlider from \"./nexture/ni-slider\";\nimport NiSnow from \"./nexture/ni-snow\";\nimport NiSoundCross from \"./nexture/ni-sound-cross\";\nimport NiSoundOff from \"./nexture/ni-sound-off\";\nimport NiSoundOn from \"./nexture/ni-sound-on\";\nimport NiSoundPlus from \"./nexture/ni-sound-plus\";\nimport NiSparkle from \"./nexture/ni-sparkle\";\nimport NiSpinner from \"./nexture/ni-spinner\";\nimport NiSquare from \"./nexture/ni-square\";\nimport NiSquircle from \"./nexture/ni-squircle\";\nimport NiStar from \"./nexture/ni-star\";\nimport NiStars from \"./nexture/ni-stars\";\nimport NiStomach from \"./nexture/ni-stomach\";\nimport NiStopwatch from \"./nexture/ni-stopwatch\";\nimport NiStore from \"./nexture/ni-store\";\nimport NiStructure from \"./nexture/ni-structure\";\nimport NiSum from \"./nexture/ni-sum\";\nimport NiSun from \"./nexture/ni-sun\";\nimport NiSwap from \"./nexture/ni-swap\";\nimport NiSwitch from \"./nexture/ni-switch\";\nimport NiTablet from \"./nexture/ni-tablet\";\nimport NiTag from \"./nexture/ni-tag\";\nimport NiTelescope from \"./nexture/ni-telescope\";\nimport NiTemperature from \"./nexture/ni-temperature\";\nimport NiTent from \"./nexture/ni-tent\";\nimport NiTerminal from \"./nexture/ni-terminal\";\nimport NiTextBold from \"./nexture/ni-text-bold\";\nimport NiTextCenter from \"./nexture/ni-text-center\";\nimport NiTextFont from \"./nexture/ni-text-font\";\nimport NiTextItalic from \"./nexture/ni-text-italic\";\nimport NiTextJustify from \"./nexture/ni-text-justify\";\nimport NiTextLeft from \"./nexture/ni-text-left\";\nimport NiTextQuote from \"./nexture/ni-text-quote\";\nimport NiTextRight from \"./nexture/ni-text-right\";\nimport NiTextStrikethrough from \"./nexture/ni-text-strikethrough\";\nimport NiTextUnderline from \"./nexture/ni-text-underline\";\nimport NiTextarea from \"./nexture/ni-textarea\";\nimport NiTicket from \"./nexture/ni-ticket\";\nimport NiTimeline from \"./nexture/ni-timeline\";\nimport NiTooth from \"./nexture/ni-tooth\";\nimport NiToyBoat from \"./nexture/ni-toy-boat\";\nimport NiToySky from \"./nexture/ni-toy-sky\";\nimport NiToyStacking from \"./nexture/ni-toy-stacking\";\nimport NiTrade from \"./nexture/ni-trade\";\nimport NiTree from \"./nexture/ni-tree\";\nimport NiTrendDown from \"./nexture/ni-trend-down\";\nimport NiTrendUp from \"./nexture/ni-trend-up\";\nimport NiTriangleDown from \"./nexture/ni-triangle-down\";\nimport NiTriangleLeft from \"./nexture/ni-triangle-left\";\nimport NiTriangleRight from \"./nexture/ni-triangle-right\";\nimport NiTriangleUp from \"./nexture/ni-triangle-up\";\nimport NiTrophy from \"./nexture/ni-trophy\";\nimport NiTruck from \"./nexture/ni-truck\";\nimport NiTubes from \"./nexture/ni-tubes\";\nimport NiUngroup from \"./nexture/ni-ungroup\";\nimport NiUnlike from \"./nexture/ni-unlike\";\nimport NiUnlock from \"./nexture/ni-unlock\";\nimport NiUploadCloud from \"./nexture/ni-upload-cloud\";\nimport NiUser from \"./nexture/ni-user\";\nimport NiUserCheck from \"./nexture/ni-user-check\";\nimport NiUserCross from \"./nexture/ni-user-cross\";\nimport NiUserMinus from \"./nexture/ni-user-minus\";\nimport NiUserPlus from \"./nexture/ni-user-plus\";\nimport NiUsers from \"./nexture/ni-users\";\nimport NiVerified from \"./nexture/ni-verified\";\nimport NiWallet from \"./nexture/ni-wallet\";\nimport NiWalletCrypto from \"./nexture/ni-wallet-crypto\";\nimport NiWatch from \"./nexture/ni-watch\";\nimport NiWeightScale from \"./nexture/ni-weight-scale\";\nimport NiWind from \"./nexture/ni-wind\";\nimport NiWorld from \"./nexture/ni-world\";\nimport NiZoomIn from \"./nexture/ni-zoom-in\";\nimport NiZoomOut from \"./nexture/ni-zoom-out\";\n\nexport const IconMap = {\n NiAI,\n NiAirBalloon,\n NiAnchor,\n NiAnnouncement,\n NiAntenna,\n NiArchiveCheck,\n NiArchive,\n NiArrowCircleLeft,\n NiArrowCircleRight,\n NiArrowDownLeftSquare,\n NiArrowDownLeft,\n NiArrowDownRightSquare,\n NiArrowDownRight,\n NiArrowDownSquare,\n NiArrowDown,\n NiArrowHistory,\n NiArrowInDown,\n NiArrowInLeft,\n NiArrowInRight,\n NiArrowInUp,\n NiArrowLeftRight,\n NiArrowLeftSquare,\n NiArrowLeft,\n NiArrowOutDown,\n NiArrowOutLeft,\n NiArrowOutRight,\n NiArrowOutUp,\n NiArrowRightSquare,\n NiArrowRight,\n NiArrowUpDown,\n NiArrowUpLeftSquare,\n NiArrowUpLeft,\n NiArrowUpRightSquare,\n NiArrowUpRight,\n NiArrowUpSquare,\n NiArrowUp,\n NiAt,\n NiBadgeCheck,\n NiBadge,\n NiBag,\n NiBandAid,\n NiBarcode,\n NiBasket,\n NiBatteryCharging,\n NiBatteryEmpty,\n NiBatteryFull,\n NiBellInactive,\n NiBell,\n NiBinEmpty,\n NiBinFull,\n NiBloodCells,\n NiBluetooth,\n NiBook,\n NiBookmarkSingle,\n NiBookmark,\n NiBraces,\n NiBrackets,\n NiBrain,\n NiBrainCircuit,\n NiBriefcase,\n NiBrushArtSquare,\n NiBrushArt,\n NiBrush,\n NiBug,\n NiBuilding,\n NiBulbOff,\n NiBulbOn,\n NiButton,\n NiButtonGroup,\n NiButtonLarge,\n NiCake,\n NiCalendar,\n NiCalendarClock,\n NiCamera,\n NiCar,\n NiCartArrow,\n NiCartCross,\n NiCartEmpty,\n NiCartMinus,\n NiCartPlus,\n NiCatalog,\n NiCellsPlus,\n NiCells,\n NiChange,\n NiChartBar,\n NiChartCandleSticks,\n NiChartFunnel,\n NiChartHeatmap,\n NiChartLineBar,\n NiChartLine,\n NiChartPie,\n NiChartPolar,\n NiChartRadar,\n NiChartScatter,\n NiCheckSquare,\n NiCheck,\n NiCheckFull,\n NiChef,\n NiChevronDownSmall,\n NiChevronDown,\n NiChevronLeftRightReverseSmall,\n NiChevronLeftRightSmall,\n NiChevronLeftSmall,\n NiChevronLeft,\n NiChevronRightSmall,\n NiChevronRight,\n NiChevronUpDownReverseSmall,\n NiChevronUpDownSmall,\n NiChevronUpSmall,\n NiChevronUp,\n NiCholesterol,\n NiCircle,\n NiClipboard,\n NiClock,\n NiCloudPartly,\n NiCloudRain,\n NiCloudSnow,\n NiCloudThunder,\n NiCloud,\n NiCode,\n NiCoffee,\n NiCoin,\n NiCollapse,\n NiCollapseIn,\n NiCols,\n NiCompass,\n NiController,\n NiCopyright,\n NiCpu,\n NiCreditCard,\n NiCrop,\n NiCrossHexagon,\n NiCrossSquare,\n NiCross,\n NiCrossFull,\n NiCrosshair,\n NiCrown,\n NiCursor,\n NiDashboard,\n NiDatabase,\n NiDevops,\n NiDiagram,\n NiDice,\n NiDirectory,\n NiDocumentArchive,\n NiDocumentChart,\n NiDocumentCheck,\n NiDocumentCode,\n NiDocumentCross,\n NiDocumentFull,\n NiDocumentImage,\n NiDocumentMinus,\n NiDocumentNumber,\n NiDocumentPlus,\n NiDocumentVideo,\n NiDollarSquare,\n NiDollar,\n NiDotsSquare,\n NiDownloadCloud,\n NiDragHorizontal,\n NiDragVertical,\n NiDrink,\n NiDrop,\n NiDuplicate,\n NiEllipsisHorizontal,\n NiEllipsisVertical,\n NiEmailOpen,\n NiEmail,\n NiEndDownSmall,\n NiEndLeftSmall,\n NiEndRightSmall,\n NiEndUpSmall,\n NiEnterDown,\n NiEnterLeft,\n NiEnterReverseDown,\n NiEnterReverseLeft,\n NiEnterReverseRight,\n NiEnterReverseUp,\n NiEnterRight,\n NiEnterUp,\n NiEquals,\n NiEqualsFull,\n NiEraser,\n NiEuroSquare,\n NiEuro,\n NiExclamationHexagon,\n NiExclamationSquare,\n NiExpandOut,\n NiExpandSquare,\n NiExpandFull,\n NiExpand,\n NiExternal,\n NiEyeClose,\n NiEyeInactive,\n NiEyeOpen,\n NiFaceFrownMore,\n NiFaceFrown,\n NiFaceNeutral,\n NiFaceSmileMore,\n NiFaceSmile,\n NiFemale,\n NiFilterCross,\n NiFilterMinus,\n NiFilterPlus,\n NiFilter,\n NiFingerprint,\n NiFire,\n NiFirstAid,\n NiFitness,\n NiFlag,\n NiFlash,\n NiFlask,\n NiFloppyDisk,\n NiFolderCheck,\n NiFolderCross,\n NiFolderMinus,\n NiFolderPlus,\n NiFolder,\n NiForwardDownSmall,\n NiForwardLeftSmall,\n NiForwardRightSmall,\n NiForwardUpSmall,\n NiGay,\n NiGerm,\n NiGogo,\n NiGold,\n NiGpu,\n NiGroup,\n NiGraduation,\n NiHeadphones,\n NiHeadset,\n NiHeadsetMic,\n NiHealth,\n NiHeart,\n NiHeartRate,\n NiHearts,\n NiHome,\n NiInbox,\n NiInfoSquare,\n NiInjection,\n NiInput,\n NiIntegration,\n NiInternal,\n NiIv,\n NiJoin,\n NiKey,\n NiKeyboard,\n NiKnobs,\n NiLaptop,\n NiLayout,\n NiLaw,\n NiLike,\n NiLinkBroken,\n NiLink,\n NiListCheck,\n NiListChevronDown,\n NiListCircle,\n NiListCross,\n NiListNumber,\n NiListSquare,\n NiList,\n NiLungs,\n NiLoader,\n NiLock,\n NiLuggage,\n NiMagicWand,\n NiMale,\n NiMap,\n NiMasonary,\n NiMedal,\n NiMenu,\n NiMenuLeft,\n NiMenuRight,\n NiMenuSplitDotReverse,\n NiMenuSplitDot,\n NiMenuSplitReverse,\n NiMenuSplit,\n NiMessageCheck,\n NiMessageCross,\n NiMessageDots,\n NiMessageFilled,\n NiMessageGrammar,\n NiMessagePlus,\n NiMessage,\n NiMessages,\n NiMicrophone,\n NiMinus,\n NiMinusFull,\n NiMinusSquare,\n NiMoneyBag,\n NiMoney,\n NiMoon,\n NiMountain,\n NiMouse,\n NiMove,\n NiMusic,\n NiNetwork,\n NiNext,\n NiOxygen,\n NiPaintBucket,\n NiPaintRoller,\n NiPalette,\n NiPaperclip,\n NiParentheses,\n NiPath,\n NiPause,\n NiPenSquare,\n NiPen,\n NiPercent,\n NiPhoneHandsetCheck,\n NiPhoneHandsetOff,\n NiPhoneHandsetOn,\n NiPhoneHandset,\n NiPhone,\n NiPinCheck,\n NiPinCross,\n NiPinPlus,\n NiPin,\n NiPine,\n NiPivot,\n NiPlane,\n NiPlay,\n NiPlug,\n NiPlusSquare,\n NiPlus,\n NiPlusFull,\n NiPolitics,\n NiPoundSquare,\n NiPound,\n NiPower,\n NiPresentation,\n NiPrevious,\n NiPrinter,\n NiProgress,\n NiPullRequestClosed,\n NiPullRequestDraft,\n NiPullRequestMerged,\n NiPullRequestOpen,\n NiPulse,\n NiPushPin,\n NiPushPinLeft,\n NiPushPinRight,\n NiPuzzle,\n NiQuestionHexagon,\n NiRankOne,\n NiRankTwo,\n NiRankThree,\n NiRankFour,\n NiRadio,\n NiReceipt,\n NiRecord,\n NiRefresh,\n NiReligion,\n NiResearch,\n NiRevenue,\n NiReverseLeft,\n NiReverseRight,\n NiRobot,\n NiRocket,\n NiRouter,\n NiRows,\n NiSafe,\n NiScale,\n NiScalpel,\n NiScissors,\n NiScreen,\n NiScriptSub,\n NiScriptSuper,\n NiSdCard,\n NiSearch,\n NiSelect,\n NiSendDownLeft,\n NiSendDownRight,\n NiSendDown,\n NiSendLeft,\n NiSendRight,\n NiSendUpLeft,\n NiSendUpRight,\n NiSendUp,\n NiServer,\n NiSettings,\n NiShare,\n NiShieldCheck,\n NiShieldCross,\n NiShield,\n NiShrinkSquare,\n NiShrinkFull,\n NiShuffle,\n NiSign,\n NiSignalLeftRight,\n NiSignalRight,\n NiSignalUp,\n NiSigns,\n NiSlashHexagon,\n NiSlider,\n NiSnow,\n NiSoundCross,\n NiSoundOff,\n NiSoundOn,\n NiSoundPlus,\n NiSparkle,\n NiSpinner,\n NiSquare,\n NiSquircle,\n NiStar,\n NiStars,\n NiStopwatch,\n NiStore,\n NiStomach,\n NiStructure,\n NiSum,\n NiSun,\n NiSwap,\n NiSwitch,\n NiTablet,\n NiTag,\n NiTelescope,\n NiTemperature,\n NiTent,\n NiTerminal,\n NiTextBold,\n NiTextCenter,\n NiTextFont,\n NiTextItalic,\n NiTextJustify,\n NiTextLeft,\n NiTextQuote,\n NiTextRight,\n NiTextStrikethrough,\n NiTextUnderline,\n NiTextarea,\n NiTicket,\n NiTimeline,\n NiTooth,\n NiToyBoat,\n NiToySky,\n NiToyStacking,\n NiTrade,\n NiTree,\n NiTrendDown,\n NiTrendUp,\n NiTriangleDown,\n NiTriangleLeft,\n NiTriangleRight,\n NiTriangleUp,\n NiTrophy,\n NiTruck,\n NiTubes,\n NiUngroup,\n NiUnlike,\n NiUnlock,\n NiUploadCloud,\n NiUserCheck,\n NiUserCross,\n NiUserMinus,\n NiUserPlus,\n NiUser,\n NiUsers,\n NiVerified,\n NiWalletCrypto,\n NiWallet,\n NiWatch,\n NiWeightScale,\n NiWind,\n NiWorld,\n NiZoomIn,\n NiZoomOut,\n};\n\nexport type IconName = keyof typeof IconMap;\nexport type IconSize = \"large\" | \"medium\" | \"small\" | \"tiny\" | number;\nexport type IconVariant = \"outlined\" | \"contained\";\n\nexport type NextureIconsProps = {\n variant?: IconVariant;\n className?: string;\n size?: IconSize;\n strokeWidth?: number;\n oneTone?: boolean;\n};\n\nexport type NextureIconsPropsComponent = NextureIconsProps & {\n icon: IconName;\n};\n\nconst NextureIcons: React.FC<NextureIconsPropsComponent> = ({\n icon,\n size = 20,\n variant = \"outlined\",\n className,\n strokeWidth = 1.5,\n oneTone = false,\n}) => {\n const IconComponent = IconMap[icon];\n if (!IconComponent) {\n console.warn(`Icon \"${icon}\" not found in IconMap.`);\n return null;\n }\n return (\n <IconComponent variant={variant} size={size} className={className} strokeWidth={strokeWidth} oneTone={oneTone} />\n );\n};\n\nexport const sizeHelper = (size: NextureIconsProps[\"size\"]) => {\n if (typeof size === \"number\") {\n return size;\n } else if (size === \"large\") {\n return 24;\n } else if (size === \"small\" || size === \"tiny\") {\n return 16;\n } else {\n return 20;\n }\n};\n\nexport const strokeSizeHelper = (size: number) => {\n if (size === 32) {\n return 1.15;\n } else if (size >= 20) {\n return 1.5;\n } else {\n return 1.75;\n }\n};\n\nexport default NextureIcons;\n","import type { ReactNode } from \"react\";\nimport {\n Box,\n Button,\n CircularProgress,\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle,\n} from \"../ui\";\nimport { NiBinEmpty } from \"../../icons\";\n\nexport interface ConfirmDeleteLabels {\n title?: string;\n description?: ReactNode;\n btnCancel?: string;\n btnConfirm?: string;\n btnDeleting?: string;\n}\n\ninterface ConfirmDeleteDialogProps {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n onConfirm: () => void;\n isDeleting: boolean;\n labels?: ConfirmDeleteLabels;\n className?: string;\n}\n\n/**\n * Generic delete confirmation dialog.\n * Use `labels` to customise title, description and button text.\n * `labels.description` accepts a string or any ReactNode (e.g. JSX with <strong>).\n */\nexport function ConfirmDeleteDialog({\n open,\n onOpenChange,\n onConfirm,\n isDeleting,\n labels,\n}: ConfirmDeleteDialogProps) {\n const title = labels?.title ?? \"Delete?\";\n const description = labels?.description ?? \"Are you sure? This action cannot be undone.\";\n const btnCancel = labels?.btnCancel ?? \"Cancel\";\n const btnConfirm = labels?.btnConfirm ?? \"Delete\";\n const btnDeleting = labels?.btnDeleting ?? \"Deleting...\";\n\n const handleClose = () => {\n if (!isDeleting) onOpenChange(false);\n };\n\n return (\n <Dialog open={open} onClose={handleClose} maxWidth=\"xs\" fullWidth role=\"alertdialog\">\n <DialogTitle className=\"flex items-center gap-2\">\n <Box component=\"span\" sx={{ color: \"error.main\", display: \"inline-flex\" }}>\n <NiBinEmpty size=\"medium\" />\n </Box>\n {title}\n </DialogTitle>\n <DialogContent>\n {typeof description === \"string\" ? (\n <DialogContentText>{description}</DialogContentText>\n ) : (\n <DialogContentText component=\"div\">{description}</DialogContentText>\n )}\n </DialogContent>\n <DialogActions>\n <Button onClick={handleClose} disabled={isDeleting}>\n {btnCancel}\n </Button>\n <Button variant=\"contained\" color=\"error\" onClick={onConfirm} disabled={isDeleting}>\n {isDeleting ? (\n <>\n <CircularProgress size={16} color=\"inherit\" className=\"mr-2\" />\n {btnDeleting}\n </>\n ) : (\n btnConfirm\n )}\n </Button>\n </DialogActions>\n </Dialog>\n );\n}\n","/**\n * Host toast bridge — the ergonomic surface a lifted monolith `useToast()`\n * expects, shipped alongside the other shared composites so a plugin's\n * `components/shared/*` (and its `use-toast` alias) resolve here.\n *\n * PlatformReact pages can't import the host's toaster (it's an app-global\n * singleton, not in the host module registry), so these dispatch the\n * `ethisys:toast` CustomEvent the host's toast listener (`useExtensionToast`)\n * forwards to its toaster — the same wire contract as the lower-level\n * `@ethisyscore/components-react` `showToast` primitive (kept self-contained\n * here to avoid a load-bearing cross-package import for a one-line dispatch).\n * Outside a host that wired the listener (mock/dev), every call is a harmless\n * no-op, so a plugin keeps its lifted `showSuccessToast(...)` call sites.\n */\ntype ToastVariant = \"default\" | \"success\" | \"error\" | \"warning\";\n\nfunction dispatchToast(title: string, description: string | undefined, variant: ToastVariant): void {\n if (typeof window === \"undefined\" || title.length === 0) {\n return;\n }\n window.dispatchEvent(new CustomEvent(\"ethisys:toast\", { detail: { title, description, variant } }));\n}\n\nexport function showSuccessToast(title: string, description?: string): void {\n dispatchToast(title, description, \"success\");\n}\n\nexport function showErrorToast(title: string, description?: string): void {\n dispatchToast(title, description, \"error\");\n}\n\nexport function showWarningToast(title: string, description?: string): void {\n dispatchToast(title, description, \"warning\");\n}\n\n/**\n * Options accepted by the `toast(...)` returned from {@link useToast}. Both `title`\n * and `description` are optional, but at least one must be set — `toast({ description })`\n * shows the description as the message (mirroring the monolith); `toast({})` is a no-op.\n */\nexport interface ToastOptions {\n /** Primary line. Falls back to {@link ToastOptions.description} when absent/empty. */\n title?: string;\n /** Secondary line — or the message itself when no `title` is given. */\n description?: string;\n /** `\"destructive\"`/`\"error\"` → error; `\"warning\"`/`\"success\"` map directly; else default. */\n variant?: string;\n}\n\n/**\n * Hook mirror of the monolith's `useToast()` surface, so a lifted\n * `const { toast } = useToast()` (and `showSuccessToast`/`showErrorToast`) keeps\n * working unchanged once `@/hooks/common/utility/use-toast` is aliased here.\n */\nexport function useToast() {\n return {\n toast: (opts: ToastOptions): void => {\n const variant: ToastVariant =\n opts.variant === \"destructive\" || opts.variant === \"error\"\n ? \"error\"\n : opts.variant === \"warning\"\n ? \"warning\"\n : opts.variant === \"success\"\n ? \"success\"\n : \"default\";\n // `title` is the primary line; fall back to `description` so `toast({ description })`\n // shows it (mirroring the monolith) instead of silently no-op'ing. Both absent → no-op.\n if (opts.title) {\n dispatchToast(opts.title, opts.description, variant);\n } else if (opts.description) {\n dispatchToast(opts.description, undefined, variant);\n }\n },\n showSuccessToast,\n showErrorToast,\n showWarningToast,\n };\n}\n"]}
@@ -0,0 +1,88 @@
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
3
+
4
+ interface ConfirmActionLabels {
5
+ title: string;
6
+ description?: ReactNode;
7
+ btnCancel?: string;
8
+ btnConfirm?: string;
9
+ btnLoading?: string;
10
+ }
11
+ interface ConfirmActionDialogProps {
12
+ open: boolean;
13
+ onOpenChange: (open: boolean) => void;
14
+ onConfirm: () => void;
15
+ isLoading?: boolean;
16
+ labels: ConfirmActionLabels;
17
+ icon?: ReactNode;
18
+ confirmVariant?: "default" | "destructive";
19
+ className?: string;
20
+ /** Optional body content rendered between the description and footer (e.g. a Textarea). */
21
+ children?: ReactNode;
22
+ /** Additional disable condition for the confirm button (e.g. empty required field). */
23
+ disableConfirm?: boolean;
24
+ }
25
+ /**
26
+ * Generic action confirmation dialog.
27
+ * Use `labels` to customise title, description and button text.
28
+ * `labels.description` accepts a string or any ReactNode (e.g. JSX with <strong>).
29
+ *
30
+ * Pass `children` to render additional body content (e.g. a Textarea) between the
31
+ * description and the footer. Use `disableConfirm` to conditionally disable the confirm
32
+ * button (e.g. when a required field is empty).
33
+ *
34
+ * For delete confirmations, prefer `ConfirmDeleteDialog` instead.
35
+ */
36
+ declare function ConfirmActionDialog({ open, onOpenChange, onConfirm, isLoading, labels, icon, confirmVariant, children, disableConfirm, }: ConfirmActionDialogProps): react.JSX.Element;
37
+
38
+ interface ConfirmDeleteLabels {
39
+ title?: string;
40
+ description?: ReactNode;
41
+ btnCancel?: string;
42
+ btnConfirm?: string;
43
+ btnDeleting?: string;
44
+ }
45
+ interface ConfirmDeleteDialogProps {
46
+ open: boolean;
47
+ onOpenChange: (open: boolean) => void;
48
+ onConfirm: () => void;
49
+ isDeleting: boolean;
50
+ labels?: ConfirmDeleteLabels;
51
+ className?: string;
52
+ }
53
+ /**
54
+ * Generic delete confirmation dialog.
55
+ * Use `labels` to customise title, description and button text.
56
+ * `labels.description` accepts a string or any ReactNode (e.g. JSX with <strong>).
57
+ */
58
+ declare function ConfirmDeleteDialog({ open, onOpenChange, onConfirm, isDeleting, labels, }: ConfirmDeleteDialogProps): react.JSX.Element;
59
+
60
+ declare function showSuccessToast(title: string, description?: string): void;
61
+ declare function showErrorToast(title: string, description?: string): void;
62
+ declare function showWarningToast(title: string, description?: string): void;
63
+ /**
64
+ * Options accepted by the `toast(...)` returned from {@link useToast}. Both `title`
65
+ * and `description` are optional, but at least one must be set — `toast({ description })`
66
+ * shows the description as the message (mirroring the monolith); `toast({})` is a no-op.
67
+ */
68
+ interface ToastOptions {
69
+ /** Primary line. Falls back to {@link ToastOptions.description} when absent/empty. */
70
+ title?: string;
71
+ /** Secondary line — or the message itself when no `title` is given. */
72
+ description?: string;
73
+ /** `"destructive"`/`"error"` → error; `"warning"`/`"success"` map directly; else default. */
74
+ variant?: string;
75
+ }
76
+ /**
77
+ * Hook mirror of the monolith's `useToast()` surface, so a lifted
78
+ * `const { toast } = useToast()` (and `showSuccessToast`/`showErrorToast`) keeps
79
+ * working unchanged once `@/hooks/common/utility/use-toast` is aliased here.
80
+ */
81
+ declare function useToast(): {
82
+ toast: (opts: ToastOptions) => void;
83
+ showSuccessToast: typeof showSuccessToast;
84
+ showErrorToast: typeof showErrorToast;
85
+ showWarningToast: typeof showWarningToast;
86
+ };
87
+
88
+ export { ConfirmActionDialog, type ConfirmActionLabels, ConfirmDeleteDialog, type ConfirmDeleteLabels, type ToastOptions, showErrorToast, showSuccessToast, showWarningToast, useToast };
@@ -0,0 +1,88 @@
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
3
+
4
+ interface ConfirmActionLabels {
5
+ title: string;
6
+ description?: ReactNode;
7
+ btnCancel?: string;
8
+ btnConfirm?: string;
9
+ btnLoading?: string;
10
+ }
11
+ interface ConfirmActionDialogProps {
12
+ open: boolean;
13
+ onOpenChange: (open: boolean) => void;
14
+ onConfirm: () => void;
15
+ isLoading?: boolean;
16
+ labels: ConfirmActionLabels;
17
+ icon?: ReactNode;
18
+ confirmVariant?: "default" | "destructive";
19
+ className?: string;
20
+ /** Optional body content rendered between the description and footer (e.g. a Textarea). */
21
+ children?: ReactNode;
22
+ /** Additional disable condition for the confirm button (e.g. empty required field). */
23
+ disableConfirm?: boolean;
24
+ }
25
+ /**
26
+ * Generic action confirmation dialog.
27
+ * Use `labels` to customise title, description and button text.
28
+ * `labels.description` accepts a string or any ReactNode (e.g. JSX with <strong>).
29
+ *
30
+ * Pass `children` to render additional body content (e.g. a Textarea) between the
31
+ * description and the footer. Use `disableConfirm` to conditionally disable the confirm
32
+ * button (e.g. when a required field is empty).
33
+ *
34
+ * For delete confirmations, prefer `ConfirmDeleteDialog` instead.
35
+ */
36
+ declare function ConfirmActionDialog({ open, onOpenChange, onConfirm, isLoading, labels, icon, confirmVariant, children, disableConfirm, }: ConfirmActionDialogProps): react.JSX.Element;
37
+
38
+ interface ConfirmDeleteLabels {
39
+ title?: string;
40
+ description?: ReactNode;
41
+ btnCancel?: string;
42
+ btnConfirm?: string;
43
+ btnDeleting?: string;
44
+ }
45
+ interface ConfirmDeleteDialogProps {
46
+ open: boolean;
47
+ onOpenChange: (open: boolean) => void;
48
+ onConfirm: () => void;
49
+ isDeleting: boolean;
50
+ labels?: ConfirmDeleteLabels;
51
+ className?: string;
52
+ }
53
+ /**
54
+ * Generic delete confirmation dialog.
55
+ * Use `labels` to customise title, description and button text.
56
+ * `labels.description` accepts a string or any ReactNode (e.g. JSX with <strong>).
57
+ */
58
+ declare function ConfirmDeleteDialog({ open, onOpenChange, onConfirm, isDeleting, labels, }: ConfirmDeleteDialogProps): react.JSX.Element;
59
+
60
+ declare function showSuccessToast(title: string, description?: string): void;
61
+ declare function showErrorToast(title: string, description?: string): void;
62
+ declare function showWarningToast(title: string, description?: string): void;
63
+ /**
64
+ * Options accepted by the `toast(...)` returned from {@link useToast}. Both `title`
65
+ * and `description` are optional, but at least one must be set — `toast({ description })`
66
+ * shows the description as the message (mirroring the monolith); `toast({})` is a no-op.
67
+ */
68
+ interface ToastOptions {
69
+ /** Primary line. Falls back to {@link ToastOptions.description} when absent/empty. */
70
+ title?: string;
71
+ /** Secondary line — or the message itself when no `title` is given. */
72
+ description?: string;
73
+ /** `"destructive"`/`"error"` → error; `"warning"`/`"success"` map directly; else default. */
74
+ variant?: string;
75
+ }
76
+ /**
77
+ * Hook mirror of the monolith's `useToast()` surface, so a lifted
78
+ * `const { toast } = useToast()` (and `showSuccessToast`/`showErrorToast`) keeps
79
+ * working unchanged once `@/hooks/common/utility/use-toast` is aliased here.
80
+ */
81
+ declare function useToast(): {
82
+ toast: (opts: ToastOptions) => void;
83
+ showSuccessToast: typeof showSuccessToast;
84
+ showErrorToast: typeof showErrorToast;
85
+ showWarningToast: typeof showWarningToast;
86
+ };
87
+
88
+ export { ConfirmActionDialog, type ConfirmActionLabels, ConfirmDeleteDialog, type ConfirmDeleteLabels, type ToastOptions, showErrorToast, showSuccessToast, showWarningToast, useToast };
@@ -0,0 +1,215 @@
1
+ import { DialogTitle, DialogContent, DialogContentText, DialogActions, Button, CircularProgress, Box, Dialog as Dialog$1 } from '@mui/material';
2
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
3
+
4
+ // src/components/ui/index.ts
5
+ function Dialog(props) {
6
+ return /* @__PURE__ */ jsx(Dialog$1, { disableScrollLock: true, disableRestoreFocus: true, ...props });
7
+ }
8
+ function ConfirmActionDialog({
9
+ open,
10
+ onOpenChange,
11
+ onConfirm,
12
+ isLoading = false,
13
+ labels,
14
+ icon,
15
+ confirmVariant = "default",
16
+ children,
17
+ disableConfirm
18
+ }) {
19
+ const description = labels.description ?? "Are you sure you want to continue?";
20
+ const btnCancel = labels.btnCancel ?? "Cancel";
21
+ const btnConfirm = labels.btnConfirm ?? "Confirm";
22
+ const btnLoading = labels.btnLoading ?? "Processing...";
23
+ const handleClose = () => {
24
+ if (!isLoading) onOpenChange(false);
25
+ };
26
+ return /* @__PURE__ */ jsxs(Dialog, { open, onClose: handleClose, maxWidth: "xs", fullWidth: true, role: "alertdialog", children: [
27
+ /* @__PURE__ */ jsxs(DialogTitle, { className: "flex items-center gap-2", children: [
28
+ icon,
29
+ labels.title
30
+ ] }),
31
+ /* @__PURE__ */ jsxs(DialogContent, { children: [
32
+ typeof description === "string" ? /* @__PURE__ */ jsx(DialogContentText, { children: description }) : /* @__PURE__ */ jsx(DialogContentText, { component: "div", children: description }),
33
+ children
34
+ ] }),
35
+ /* @__PURE__ */ jsxs(DialogActions, { children: [
36
+ /* @__PURE__ */ jsx(Button, { onClick: handleClose, disabled: isLoading, children: btnCancel }),
37
+ /* @__PURE__ */ jsx(
38
+ Button,
39
+ {
40
+ variant: "contained",
41
+ color: confirmVariant === "destructive" ? "error" : "primary",
42
+ onClick: onConfirm,
43
+ disabled: isLoading || disableConfirm,
44
+ children: isLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [
45
+ /* @__PURE__ */ jsx(CircularProgress, { size: 16, color: "inherit", className: "mr-2" }),
46
+ btnLoading
47
+ ] }) : btnConfirm
48
+ }
49
+ )
50
+ ] })
51
+ ] });
52
+ }
53
+ function NiBinEmpty({ className, variant = "outlined", size = "medium" }) {
54
+ const iconSize = sizeHelper(size);
55
+ const iconStrokeWidth = strokeSizeHelper(iconSize);
56
+ if (variant === "outlined") {
57
+ return /* @__PURE__ */ jsxs(
58
+ "svg",
59
+ {
60
+ width: iconSize,
61
+ height: iconSize,
62
+ className,
63
+ viewBox: "0 0 24 24",
64
+ fill: "none",
65
+ xmlns: "http://www.w3.org/2000/svg",
66
+ children: [
67
+ /* @__PURE__ */ jsx(
68
+ "path",
69
+ {
70
+ d: "M6 6L5.48806 9.58357C5.16413 11.8511 5.14395 14.1516 5.42806 16.4245L5.51601 17.1281C5.80316 19.4253 7.56538 21.2609 9.84894 21.6415V21.6415C11.2732 21.8789 12.7268 21.8789 14.1511 21.6415V21.6415C16.4346 21.2609 18.1968 19.4253 18.484 17.1281L18.5719 16.4245C18.856 14.1516 18.8359 11.8511 18.5119 9.58357L18 6",
71
+ stroke: "currentColor",
72
+ strokeWidth: iconStrokeWidth,
73
+ strokeLinecap: "round"
74
+ }
75
+ ),
76
+ /* @__PURE__ */ jsx(
77
+ "path",
78
+ {
79
+ d: "M15 5L14.9062 4.43717C14.7408 3.4451 14.6582 2.94906 14.3711 2.60286C14.2462 2.45218 14.0957 2.32469 13.9265 2.22623C13.5378 2 13.035 2 12.0292 2L11.9708 2C10.965 2 10.4622 2 10.0735 2.22623C9.90431 2.32469 9.75381 2.45219 9.62888 2.60286C9.34182 2.94906 9.25915 3.4451 9.09381 4.43717L9 5",
80
+ stroke: "currentColor",
81
+ strokeWidth: iconStrokeWidth,
82
+ strokeLinecap: "round",
83
+ strokeLinejoin: "round"
84
+ }
85
+ ),
86
+ /* @__PURE__ */ jsx(
87
+ "path",
88
+ {
89
+ d: "M20 6L18.2017 5.77522C14.0833 5.26041 9.91673 5.26041 5.79826 5.77522L4 6",
90
+ stroke: "currentColor",
91
+ strokeWidth: iconStrokeWidth,
92
+ strokeLinecap: "round"
93
+ }
94
+ )
95
+ ]
96
+ }
97
+ );
98
+ } else {
99
+ return /* @__PURE__ */ jsxs(
100
+ "svg",
101
+ {
102
+ width: iconSize,
103
+ height: iconSize,
104
+ className,
105
+ viewBox: "0 0 24 24",
106
+ fill: "none",
107
+ xmlns: "http://www.w3.org/2000/svg",
108
+ children: [
109
+ /* @__PURE__ */ jsx(
110
+ "path",
111
+ {
112
+ d: "M9.74018 5.12304C9.6721 5.53152 9.28536 5.80813 8.8769 5.74023C8.46843 5.67215 8.19181 5.28541 8.25971 4.87695L8.35444 4.31347C8.43472 3.83178 8.50246 3.41913 8.59077 3.08593C8.68246 2.74003 8.81179 2.41337 9.0517 2.12402C9.23282 1.90562 9.45102 1.72085 9.69623 1.57812C10.0211 1.38906 10.3644 1.31483 10.7206 1.28125C11.0639 1.24892 11.4822 1.25 11.9706 1.25L12.0292 1.25C12.5177 1.25 12.936 1.24892 13.2792 1.28125C13.6355 1.31483 13.9788 1.38906 14.3037 1.57812C14.5489 1.72085 14.7671 1.90562 14.9482 2.12402C15.1881 2.41337 15.3174 2.74003 15.4091 3.08593C15.4974 3.41913 15.5652 3.83177 15.6455 4.31347L15.7402 4.87695L15.749 4.95312C15.7732 5.33241 15.506 5.6764 15.123 5.74023C14.74 5.80389 14.3763 5.56494 14.2763 5.19824L14.2597 5.12304L14.166 4.56054C14.081 4.05049 14.025 3.71896 13.9589 3.46972C13.8964 3.23378 13.8409 3.13889 13.7939 3.08203C13.7252 2.99916 13.6418 2.92817 13.5488 2.87402C13.4849 2.83695 13.3818 2.79831 13.1386 2.77539C12.8819 2.75121 12.5462 2.75 12.0292 2.75L11.9706 2.75C11.4537 2.75 11.1179 2.75121 10.8613 2.77539C10.6181 2.79831 10.515 2.83695 10.4511 2.87402C10.3581 2.92817 10.2747 2.99916 10.206 3.08203C10.1589 3.13889 10.1035 3.23378 10.041 3.46972C9.97489 3.71896 9.91894 4.05049 9.83393 4.56054L9.74018 5.12304Z",
113
+ fill: "currentColor"
114
+ }
115
+ ),
116
+ /* @__PURE__ */ jsx(
117
+ "path",
118
+ {
119
+ fillRule: "evenodd",
120
+ clipRule: "evenodd",
121
+ d: "M5.94819 5.00114C9.96612 4.51861 14.0279 4.51807 18.0459 5.00016C18.1288 5.01011 18.212 5.02008 18.2949 5.03043L20.0927 5.25504L20.1689 5.26872C20.5391 5.35382 20.792 5.70788 20.7441 6.09293C20.6958 6.47814 20.3633 6.75806 19.9834 6.74918L19.9072 6.7443L18.8447 6.61051L19.2548 9.4777C19.5881 11.8107 19.6086 14.1783 19.3164 16.5168L19.2285 17.2209C18.9001 19.8471 16.8851 21.9459 14.2744 22.381C12.7685 22.632 11.2314 22.632 9.72554 22.381C7.11486 21.9458 5.09978 19.8471 4.77144 17.2209L4.68355 16.5168C4.39132 14.1783 4.41185 11.8107 4.74507 9.4777L5.15425 6.61051L4.09273 6.7443L4.01655 6.74918C3.63657 6.75805 3.30414 6.47813 3.25581 6.09293C3.20471 5.68211 3.49633 5.30642 3.90718 5.25504L5.70503 5.03043C5.78598 5.02032 5.86721 5.01086 5.94819 5.00114Z",
122
+ fill: "currentColor"
123
+ }
124
+ )
125
+ ]
126
+ }
127
+ );
128
+ }
129
+ }
130
+ var sizeHelper = (size) => {
131
+ if (typeof size === "number") {
132
+ return size;
133
+ } else if (size === "large") {
134
+ return 24;
135
+ } else if (size === "small" || size === "tiny") {
136
+ return 16;
137
+ } else {
138
+ return 20;
139
+ }
140
+ };
141
+ var strokeSizeHelper = (size) => {
142
+ if (size === 32) {
143
+ return 1.15;
144
+ } else if (size >= 20) {
145
+ return 1.5;
146
+ } else {
147
+ return 1.75;
148
+ }
149
+ };
150
+ function ConfirmDeleteDialog({
151
+ open,
152
+ onOpenChange,
153
+ onConfirm,
154
+ isDeleting,
155
+ labels
156
+ }) {
157
+ const title = labels?.title ?? "Delete?";
158
+ const description = labels?.description ?? "Are you sure? This action cannot be undone.";
159
+ const btnCancel = labels?.btnCancel ?? "Cancel";
160
+ const btnConfirm = labels?.btnConfirm ?? "Delete";
161
+ const btnDeleting = labels?.btnDeleting ?? "Deleting...";
162
+ const handleClose = () => {
163
+ if (!isDeleting) onOpenChange(false);
164
+ };
165
+ return /* @__PURE__ */ jsxs(Dialog, { open, onClose: handleClose, maxWidth: "xs", fullWidth: true, role: "alertdialog", children: [
166
+ /* @__PURE__ */ jsxs(DialogTitle, { className: "flex items-center gap-2", children: [
167
+ /* @__PURE__ */ jsx(Box, { component: "span", sx: { color: "error.main", display: "inline-flex" }, children: /* @__PURE__ */ jsx(NiBinEmpty, { size: "medium" }) }),
168
+ title
169
+ ] }),
170
+ /* @__PURE__ */ jsx(DialogContent, { children: typeof description === "string" ? /* @__PURE__ */ jsx(DialogContentText, { children: description }) : /* @__PURE__ */ jsx(DialogContentText, { component: "div", children: description }) }),
171
+ /* @__PURE__ */ jsxs(DialogActions, { children: [
172
+ /* @__PURE__ */ jsx(Button, { onClick: handleClose, disabled: isDeleting, children: btnCancel }),
173
+ /* @__PURE__ */ jsx(Button, { variant: "contained", color: "error", onClick: onConfirm, disabled: isDeleting, children: isDeleting ? /* @__PURE__ */ jsxs(Fragment, { children: [
174
+ /* @__PURE__ */ jsx(CircularProgress, { size: 16, color: "inherit", className: "mr-2" }),
175
+ btnDeleting
176
+ ] }) : btnConfirm })
177
+ ] })
178
+ ] });
179
+ }
180
+
181
+ // src/components/shared/toast.ts
182
+ function dispatchToast(title, description, variant) {
183
+ if (typeof window === "undefined" || title.length === 0) {
184
+ return;
185
+ }
186
+ window.dispatchEvent(new CustomEvent("ethisys:toast", { detail: { title, description, variant } }));
187
+ }
188
+ function showSuccessToast(title, description) {
189
+ dispatchToast(title, description, "success");
190
+ }
191
+ function showErrorToast(title, description) {
192
+ dispatchToast(title, description, "error");
193
+ }
194
+ function showWarningToast(title, description) {
195
+ dispatchToast(title, description, "warning");
196
+ }
197
+ function useToast() {
198
+ return {
199
+ toast: (opts) => {
200
+ const variant = opts.variant === "destructive" || opts.variant === "error" ? "error" : opts.variant === "warning" ? "warning" : opts.variant === "success" ? "success" : "default";
201
+ if (opts.title) {
202
+ dispatchToast(opts.title, opts.description, variant);
203
+ } else if (opts.description) {
204
+ dispatchToast(opts.description, void 0, variant);
205
+ }
206
+ },
207
+ showSuccessToast,
208
+ showErrorToast,
209
+ showWarningToast
210
+ };
211
+ }
212
+
213
+ export { ConfirmActionDialog, ConfirmDeleteDialog, showErrorToast, showSuccessToast, showWarningToast, useToast };
214
+ //# sourceMappingURL=index.js.map
215
+ //# sourceMappingURL=index.js.map