brd-ui-kit 0.1.75 → 0.1.76
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/brd-ui-kit.css +1 -1
- package/dist/calendar-B5QCV34E.cjs +2 -0
- package/dist/{calendar-DReGV_22.cjs.map → calendar-B5QCV34E.cjs.map} +1 -1
- package/dist/{calendar-C0DXP3T-.js → calendar-Ba3kHG6w.js} +264 -270
- package/dist/{calendar-C0DXP3T-.js.map → calendar-Ba3kHG6w.js.map} +1 -1
- package/dist/{calendar-locale-CP2pxhFK.cjs → calendar-locale-BHyNJPb2.cjs} +2 -2
- package/dist/{calendar-locale-CP2pxhFK.cjs.map → calendar-locale-BHyNJPb2.cjs.map} +1 -1
- package/dist/{calendar-locale-DJf03PI9.js → calendar-locale-DQ9wj0zF.js} +2 -2
- package/dist/{calendar-locale-DJf03PI9.js.map → calendar-locale-DQ9wj0zF.js.map} +1 -1
- package/dist/chart-9H_9wEfR.cjs +63 -0
- package/dist/{chart-C69jBlXa.cjs.map → chart-9H_9wEfR.cjs.map} +1 -1
- package/dist/{chart-CAPCe8o5.js → chart-DFbmMKiQ.js} +2956 -2951
- package/dist/{chart-CAPCe8o5.js.map → chart-DFbmMKiQ.js.map} +1 -1
- package/dist/components/basic-chart/basic-chart.d.ts +1 -1
- package/dist/components/basic-table/basic-table.d.ts +5 -5
- package/dist/components/data-table/data-table-actions-column.d.ts +3 -3
- package/dist/components/data-table/data-table-bulk-actions.d.ts +3 -3
- package/dist/components/data-table/data-table-column-visibility.d.ts +2 -2
- package/dist/components/data-table/data-table-filter.d.ts +2 -2
- package/dist/components/data-table/data-table-row-actions-column.d.ts +3 -3
- package/dist/components/data-table/use-data-table-editable-rows.d.ts +5 -5
- package/dist/components/input-field/input-field.d.ts +3 -3
- package/dist/components/input-phone/input-phone.d.ts +4 -4
- package/dist/components/popover-modal/popover-modal.d.ts +4 -4
- package/dist/components/select-field/select-field.d.ts +2 -2
- package/dist/components/ui/avatar/avatar.d.ts +7 -7
- package/dist/components/ui/badge/badge.d.ts +2 -2
- package/dist/components/ui/button/button.d.ts +3 -3
- package/dist/components/ui/calendar/calendar.d.ts +6 -6
- package/dist/components/ui/calendar/calendar.styles.d.ts +1 -1
- package/dist/components/ui/card/card.d.ts +13 -13
- package/dist/components/ui/chart/chart.d.ts +23 -21
- package/dist/components/ui/checkbox/checkbox.d.ts +4 -4
- package/dist/components/ui/combobox/combobox.d.ts +6 -6
- package/dist/components/ui/dialog/dialog.d.ts +11 -11
- package/dist/components/ui/drawer/drawer.d.ts +11 -11
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +40 -40
- package/dist/components/ui/icon/icon.d.ts +3 -3
- package/dist/components/ui/input/input.d.ts +2 -2
- package/dist/components/ui/input-group/input-group.d.ts +7 -7
- package/dist/components/ui/label/label.d.ts +4 -4
- package/dist/components/ui/pagination/pagination.d.ts +8 -8
- package/dist/components/ui/popover/popover.d.ts +8 -8
- package/dist/components/ui/progress/progress.d.ts +4 -4
- package/dist/components/ui/radio-group/radio-group.d.ts +7 -7
- package/dist/components/ui/select/select.d.ts +11 -11
- package/dist/components/ui/select-calendar-menu/select-calendar-menu.d.ts +4 -4
- package/dist/components/ui/separator/separator.d.ts +4 -4
- package/dist/components/ui/switch/switch.d.ts +4 -4
- package/dist/components/ui/table/table.d.ts +17 -17
- package/dist/components/ui/tabs/tabs.d.ts +8 -8
- package/dist/components/ui/tooltip/tooltip.d.ts +8 -8
- package/dist/components/ui/typography/typography.d.ts +174 -174
- package/dist/components-avatar-uploader-avatar-uploader.cjs +2 -2
- package/dist/components-avatar-uploader-avatar-uploader.cjs.map +1 -1
- package/dist/components-avatar-uploader-avatar-uploader.js +35 -36
- package/dist/components-avatar-uploader-avatar-uploader.js.map +1 -1
- package/dist/components-basic-avatar-basic-avatar.cjs +1 -1
- package/dist/components-basic-avatar-basic-avatar.js +3 -3
- package/dist/components-basic-chart-basic-chart.cjs +2 -2
- package/dist/components-basic-chart-basic-chart.cjs.map +1 -1
- package/dist/components-basic-chart-basic-chart.js +106 -108
- package/dist/components-basic-chart-basic-chart.js.map +1 -1
- package/dist/components-basic-table-basic-table.cjs +2 -2
- package/dist/components-basic-table-basic-table.cjs.map +1 -1
- package/dist/components-basic-table-basic-table.js +232 -231
- package/dist/components-basic-table-basic-table.js.map +1 -1
- package/dist/components-data-table-data-table-actions-column.cjs +1 -1
- package/dist/components-data-table-data-table-actions-column.cjs.map +1 -1
- package/dist/components-data-table-data-table-actions-column.js +5 -6
- package/dist/components-data-table-data-table-actions-column.js.map +1 -1
- package/dist/components-data-table-data-table-bulk-actions.cjs +1 -1
- package/dist/components-data-table-data-table-bulk-actions.cjs.map +1 -1
- package/dist/components-data-table-data-table-bulk-actions.js +9 -9
- package/dist/components-data-table-data-table-bulk-actions.js.map +1 -1
- package/dist/components-data-table-data-table-column-visibility.cjs +1 -1
- package/dist/components-data-table-data-table-column-visibility.cjs.map +1 -1
- package/dist/components-data-table-data-table-column-visibility.js +1 -1
- package/dist/components-data-table-data-table-column-visibility.js.map +1 -1
- package/dist/components-data-table-data-table-filter.cjs +1 -1
- package/dist/components-data-table-data-table-filter.cjs.map +1 -1
- package/dist/components-data-table-data-table-filter.js +15 -15
- package/dist/components-data-table-data-table-filter.js.map +1 -1
- package/dist/components-data-table-data-table-row-actions-column.cjs +1 -1
- package/dist/components-data-table-data-table-row-actions-column.cjs.map +1 -1
- package/dist/components-data-table-data-table-row-actions-column.js +19 -20
- package/dist/components-data-table-data-table-row-actions-column.js.map +1 -1
- package/dist/components-data-table-use-data-table-editable-rows.cjs +1 -1
- package/dist/components-data-table-use-data-table-editable-rows.cjs.map +1 -1
- package/dist/components-data-table-use-data-table-editable-rows.js +88 -90
- package/dist/components-data-table-use-data-table-editable-rows.js.map +1 -1
- package/dist/components-input-contact-input-contact.cjs +1 -1
- package/dist/components-input-contact-input-contact.cjs.map +1 -1
- package/dist/components-input-contact-input-contact.js +8 -8
- package/dist/components-input-field-input-field.cjs +1 -1
- package/dist/components-input-field-input-field.cjs.map +1 -1
- package/dist/components-input-field-input-field.js +18 -19
- package/dist/components-input-field-input-field.js.map +1 -1
- package/dist/components-input-password-input-password.cjs +1 -1
- package/dist/components-input-password-input-password.cjs.map +1 -1
- package/dist/components-input-password-input-password.js +4 -4
- package/dist/components-input-phone-input-phone.cjs.map +1 -1
- package/dist/components-input-phone-input-phone.js.map +1 -1
- package/dist/components-popover-modal-popover-modal.cjs +1 -1
- package/dist/components-popover-modal-popover-modal.cjs.map +1 -1
- package/dist/components-popover-modal-popover-modal.js +40 -29
- package/dist/components-popover-modal-popover-modal.js.map +1 -1
- package/dist/components-select-field-select-field.cjs.map +1 -1
- package/dist/components-select-field-select-field.js.map +1 -1
- package/dist/components-ui-avatar-avatar.cjs +1 -1
- package/dist/components-ui-avatar-avatar.cjs.map +1 -1
- package/dist/components-ui-avatar-avatar.js +12 -13
- package/dist/components-ui-avatar-avatar.js.map +1 -1
- package/dist/components-ui-badge-badge.cjs +1 -1
- package/dist/components-ui-badge-badge.cjs.map +1 -1
- package/dist/components-ui-badge-badge.js +10 -11
- package/dist/components-ui-badge-badge.js.map +1 -1
- package/dist/components-ui-button-button.cjs +1 -1
- package/dist/components-ui-button-button.cjs.map +1 -1
- package/dist/components-ui-button-button.js +10 -11
- package/dist/components-ui-button-button.js.map +1 -1
- package/dist/components-ui-button-button.styles.cjs +4 -4
- package/dist/components-ui-button-button.styles.cjs.map +1 -1
- package/dist/components-ui-button-button.styles.js +4 -4
- package/dist/components-ui-button-button.styles.js.map +1 -1
- package/dist/components-ui-calendar-calendar.cjs +1 -1
- package/dist/components-ui-calendar-calendar.js +1 -1
- package/dist/components-ui-calendar-calendar.styles.cjs +1 -1
- package/dist/components-ui-calendar-calendar.styles.cjs.map +1 -1
- package/dist/components-ui-calendar-calendar.styles.js +1 -1
- package/dist/components-ui-calendar-calendar.styles.js.map +1 -1
- package/dist/components-ui-calendar.cjs +1 -1
- package/dist/components-ui-calendar.js +2 -2
- package/dist/components-ui-card-card.cjs +1 -1
- package/dist/components-ui-card-card.cjs.map +1 -1
- package/dist/components-ui-card-card.js +10 -11
- package/dist/components-ui-card-card.js.map +1 -1
- package/dist/components-ui-chart-chart.cjs +1 -1
- package/dist/components-ui-chart-chart.js +1 -1
- package/dist/components-ui-chart.cjs +1 -1
- package/dist/components-ui-chart.js +1 -1
- package/dist/components-ui-checkbox-checkbox.cjs +1 -1
- package/dist/components-ui-checkbox-checkbox.cjs.map +1 -1
- package/dist/components-ui-checkbox-checkbox.js +11 -12
- package/dist/components-ui-checkbox-checkbox.js.map +1 -1
- package/dist/components-ui-combobox-combobox.cjs +5 -5
- package/dist/components-ui-combobox-combobox.cjs.map +1 -1
- package/dist/components-ui-combobox-combobox.js +1477 -1479
- package/dist/components-ui-combobox-combobox.js.map +1 -1
- package/dist/components-ui-dialog-dialog.cjs +1 -1
- package/dist/components-ui-dialog-dialog.cjs.map +1 -1
- package/dist/components-ui-dialog-dialog.js +4 -5
- package/dist/components-ui-dialog-dialog.js.map +1 -1
- package/dist/components-ui-drawer-drawer.cjs +2 -2
- package/dist/components-ui-drawer-drawer.cjs.map +1 -1
- package/dist/components-ui-drawer-drawer.js +16 -19
- package/dist/components-ui-drawer-drawer.js.map +1 -1
- package/dist/components-ui-dropdown-menu-dropdown-menu.cjs +2 -2
- package/dist/components-ui-dropdown-menu-dropdown-menu.cjs.map +1 -1
- package/dist/components-ui-dropdown-menu-dropdown-menu.js +45 -46
- package/dist/components-ui-dropdown-menu-dropdown-menu.js.map +1 -1
- package/dist/components-ui-icon-icon.cjs +1 -1
- package/dist/components-ui-icon-icon.cjs.map +1 -1
- package/dist/components-ui-icon-icon.js +54 -61733
- package/dist/components-ui-icon-icon.js.map +1 -1
- package/dist/components-ui-input-group-input-group.cjs +1 -1
- package/dist/components-ui-input-group-input-group.cjs.map +1 -1
- package/dist/components-ui-input-group-input-group.js +12 -13
- package/dist/components-ui-input-group-input-group.js.map +1 -1
- package/dist/components-ui-input-input.cjs +1 -1
- package/dist/components-ui-input-input.cjs.map +1 -1
- package/dist/components-ui-input-input.js +2 -3
- package/dist/components-ui-input-input.js.map +1 -1
- package/dist/components-ui-label-label.cjs +1 -1
- package/dist/components-ui-label-label.cjs.map +1 -1
- package/dist/components-ui-label-label.js +1 -1
- package/dist/components-ui-label-label.js.map +1 -1
- package/dist/components-ui-pagination-pagination.cjs +1 -1
- package/dist/components-ui-pagination-pagination.cjs.map +1 -1
- package/dist/components-ui-pagination-pagination.js +0 -1
- package/dist/components-ui-pagination-pagination.js.map +1 -1
- package/dist/components-ui-popover-popover.cjs +1 -1
- package/dist/components-ui-popover-popover.cjs.map +1 -1
- package/dist/components-ui-popover-popover.js +14 -19
- package/dist/components-ui-popover-popover.js.map +1 -1
- package/dist/components-ui-progress-progress.cjs +1 -1
- package/dist/components-ui-progress-progress.cjs.map +1 -1
- package/dist/components-ui-progress-progress.js +1 -1
- package/dist/components-ui-progress-progress.js.map +1 -1
- package/dist/components-ui-radio-group-radio-group.cjs +1 -1
- package/dist/components-ui-radio-group-radio-group.cjs.map +1 -1
- package/dist/components-ui-radio-group-radio-group.js +0 -1
- package/dist/components-ui-radio-group-radio-group.js.map +1 -1
- package/dist/components-ui-select-calendar-menu-select-calendar-menu.cjs +1 -1
- package/dist/components-ui-select-calendar-menu-select-calendar-menu.cjs.map +1 -1
- package/dist/components-ui-select-calendar-menu-select-calendar-menu.js +53 -47
- package/dist/components-ui-select-calendar-menu-select-calendar-menu.js.map +1 -1
- package/dist/components-ui-select-select.cjs +1 -1
- package/dist/components-ui-select-select.cjs.map +1 -1
- package/dist/components-ui-select-select.js +21 -22
- package/dist/components-ui-select-select.js.map +1 -1
- package/dist/components-ui-separator-separator.cjs +1 -1
- package/dist/components-ui-separator-separator.cjs.map +1 -1
- package/dist/components-ui-separator-separator.js +11 -12
- package/dist/components-ui-separator-separator.js.map +1 -1
- package/dist/components-ui-switch-switch.cjs +1 -1
- package/dist/components-ui-switch-switch.cjs.map +1 -1
- package/dist/components-ui-switch-switch.js +6 -7
- package/dist/components-ui-switch-switch.js.map +1 -1
- package/dist/components-ui-table-table.cjs +1 -1
- package/dist/components-ui-table-table.cjs.map +1 -1
- package/dist/components-ui-table-table.js +0 -1
- package/dist/components-ui-table-table.js.map +1 -1
- package/dist/components-ui-tabs-tabs.cjs +2 -2
- package/dist/components-ui-tabs-tabs.cjs.map +1 -1
- package/dist/components-ui-tabs-tabs.js +16 -16
- package/dist/components-ui-tabs-tabs.js.map +1 -1
- package/dist/components-ui-tooltip-tooltip.cjs +1 -1
- package/dist/components-ui-tooltip-tooltip.cjs.map +1 -1
- package/dist/components-ui-tooltip-tooltip.js +9 -10
- package/dist/components-ui-tooltip-tooltip.js.map +1 -1
- package/dist/components-ui-typography-typography.cjs +1 -1
- package/dist/components-ui-typography-typography.cjs.map +1 -1
- package/dist/components-ui-typography-typography.js +7 -7
- package/dist/components-ui-typography-typography.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/calendar-DReGV_22.cjs +0 -2
- package/dist/chart-C69jBlXa.cjs +0 -63
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),N=require("@radix-ui/react-dialog")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),N=require("@radix-ui/react-dialog"),l=require("./lib-utils.cjs"),i=require("./components-ui-dialog-dialog.styles.cjs"),u=require("./components-ui-icon-icon.cjs");function y(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const s=y(N),C=s.Root,j=s.Trigger,c=s.Portal,x=s.Close,r=({className:e,...a})=>o.jsx(s.Overlay,{className:l.cn(...i.dialogOverlayClassNames,e),...a});r.displayName=s.Overlay.displayName;const g=({className:e,children:a,showCloseButton:t=!0,...n})=>o.jsxs(c,{children:[o.jsx(r,{}),o.jsxs(s.Content,{className:l.cn(...i.dialogContentClassNames,e),...n,children:[a,t&&o.jsxs(s.Close,{className:l.cn(...i.dialogCloseClassNames),children:[o.jsx(u.Icon,{type:"x"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]});g.displayName=s.Content.displayName;const d=({className:e,...a})=>o.jsx("div",{className:l.cn(...i.dialogHeaderClassNames,e),...a});d.displayName="DialogHeader";const m=({className:e,...a})=>o.jsx("div",{className:l.cn(...i.dialogFooterClassNames,e),...a});m.displayName="DialogFooter";const D=({className:e,...a})=>o.jsx(s.Title,{className:l.cn(...i.dialogTitleClassNames,e),...a});D.displayName=s.Title.displayName;const p=({className:e,...a})=>o.jsx(s.Description,{className:l.cn(...i.dialogDescriptionClassNames,e),...a});p.displayName=s.Description.displayName;exports.Dialog=C;exports.DialogClose=x;exports.DialogContent=g;exports.DialogDescription=p;exports.DialogFooter=m;exports.DialogHeader=d;exports.DialogOverlay=r;exports.DialogPortal=c;exports.DialogTitle=D;exports.DialogTrigger=j;
|
|
2
2
|
//# sourceMappingURL=components-ui-dialog-dialog.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-dialog-dialog.cjs","sources":["../src/components/ui/dialog/dialog.tsx"],"sourcesContent":["import * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport
|
|
1
|
+
{"version":3,"file":"components-ui-dialog-dialog.cjs","sources":["../src/components/ui/dialog/dialog.tsx"],"sourcesContent":["import * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, HTMLAttributes } from \"react\";\n\nimport { cn } from \"@/lib/utils\";\nimport {\n dialogCloseClassNames,\n dialogContentClassNames,\n dialogDescriptionClassNames,\n dialogFooterClassNames,\n dialogHeaderClassNames,\n dialogOverlayClassNames,\n dialogTitleClassNames,\n} from \"./dialog.styles\";\nimport { Icon } from \"../icon\";\n\ntype DialogOverlayProps = ComponentPropsWithRef<typeof DialogPrimitive.Overlay>;\ntype DialogContentProps = ComponentPropsWithRef<typeof DialogPrimitive.Content> & {\n showCloseButton?: boolean;\n};\ntype DialogTitleProps = ComponentPropsWithRef<typeof DialogPrimitive.Title>;\ntype DialogDescriptionProps = ComponentPropsWithRef<typeof DialogPrimitive.Description>;\n\nconst Dialog = DialogPrimitive.Root;\nconst DialogTrigger = DialogPrimitive.Trigger;\nconst DialogPortal = DialogPrimitive.Portal;\nconst DialogClose = DialogPrimitive.Close;\n\nconst DialogOverlay = ({ className, ...props }: DialogOverlayProps) => (\n <DialogPrimitive.Overlay\n className={cn(...dialogOverlayClassNames, className)}\n {...props}\n />\n);\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst DialogContent = ({\n className,\n children,\n showCloseButton = true,\n ...props\n}: DialogContentProps) => (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n className={cn(...dialogContentClassNames, className)}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close className={cn(...dialogCloseClassNames)}>\n <Icon type=\"x\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogPortal>\n);\nDialogContent.displayName = DialogPrimitive.Content.displayName;\n\nconst DialogHeader = ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(...dialogHeaderClassNames, className)}\n {...props}\n />\n);\nDialogHeader.displayName = \"DialogHeader\";\n\nconst DialogFooter = ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(...dialogFooterClassNames, className)}\n {...props}\n />\n);\nDialogFooter.displayName = \"DialogFooter\";\n\nconst DialogTitle = ({ className, ...props }: DialogTitleProps) => (\n <DialogPrimitive.Title\n className={cn(...dialogTitleClassNames, className)}\n {...props}\n />\n);\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\n\nconst DialogDescription = ({ className, ...props }: DialogDescriptionProps) => (\n <DialogPrimitive.Description\n className={cn(...dialogDescriptionClassNames, className)}\n {...props}\n />\n);\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n};\n"],"names":["Dialog","DialogPrimitive","DialogTrigger","DialogPortal","DialogClose","DialogOverlay","className","props","jsx","cn","dialogOverlayClassNames","DialogContent","children","showCloseButton","jsxs","dialogContentClassNames","dialogCloseClassNames","Icon","DialogHeader","dialogHeaderClassNames","DialogFooter","dialogFooterClassNames","DialogTitle","dialogTitleClassNames","DialogDescription","dialogDescriptionClassNames"],"mappings":"ijBAsBMA,EAASC,EAAgB,KACzBC,EAAgBD,EAAgB,QAChCE,EAAeF,EAAgB,OAC/BG,EAAcH,EAAgB,MAE9BI,EAAgB,CAAC,CAAE,UAAAC,EAAW,GAAGC,KACrCC,EAAAA,IAACP,EAAgB,QAAhB,CACC,UAAWQ,EAAAA,GAAG,GAAGC,EAAAA,wBAAyBJ,CAAS,EAClD,GAAGC,CAAA,CACN,EAEFF,EAAc,YAAcJ,EAAgB,QAAQ,YAEpD,MAAMU,EAAgB,CAAC,CACrB,UAAAL,EACA,SAAAM,EACA,gBAAAC,EAAkB,GAClB,GAAGN,CACL,WACGJ,EAAA,CACC,SAAA,CAAAK,EAAAA,IAACH,EAAA,EAAc,EACfS,EAAAA,KAACb,EAAgB,QAAhB,CACC,UAAWQ,EAAAA,GAAG,GAAGM,EAAAA,wBAAyBT,CAAS,EAClD,GAAGC,EAEH,SAAA,CAAAK,EACAC,UACEZ,EAAgB,MAAhB,CAAsB,UAAWQ,KAAG,GAAGO,uBAAqB,EAC3D,SAAA,CAAAR,EAAAA,IAACS,EAAAA,KAAA,CAAK,KAAK,GAAA,CAAI,EACfT,EAAAA,IAAC,OAAA,CAAK,UAAU,UAAU,SAAA,OAAA,CAAK,CAAA,CAAA,CACjC,CAAA,CAAA,CAAA,CAEJ,CAAA,CACF,EAEFG,EAAc,YAAcV,EAAgB,QAAQ,YAEpD,MAAMiB,EAAe,CAAC,CAAE,UAAAZ,EAAW,GAAGC,KACpCC,EAAAA,IAAC,MAAA,CACC,UAAWC,EAAAA,GAAG,GAAGU,EAAAA,uBAAwBb,CAAS,EACjD,GAAGC,CAAA,CACN,EAEFW,EAAa,YAAc,eAE3B,MAAME,EAAe,CAAC,CAAE,UAAAd,EAAW,GAAGC,KACpCC,EAAAA,IAAC,MAAA,CACC,UAAWC,EAAAA,GAAG,GAAGY,EAAAA,uBAAwBf,CAAS,EACjD,GAAGC,CAAA,CACN,EAEFa,EAAa,YAAc,eAE3B,MAAME,EAAc,CAAC,CAAE,UAAAhB,EAAW,GAAGC,KACnCC,EAAAA,IAACP,EAAgB,MAAhB,CACC,UAAWQ,EAAAA,GAAG,GAAGc,EAAAA,sBAAuBjB,CAAS,EAChD,GAAGC,CAAA,CACN,EAEFe,EAAY,YAAcrB,EAAgB,MAAM,YAEhD,MAAMuB,EAAoB,CAAC,CAAE,UAAAlB,EAAW,GAAGC,KACzCC,EAAAA,IAACP,EAAgB,YAAhB,CACC,UAAWQ,EAAAA,GAAG,GAAGgB,EAAAA,4BAA6BnB,CAAS,EACtD,GAAGC,CAAA,CACN,EAEFiB,EAAkB,YAAcvB,EAAgB,YAAY"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as a from "@radix-ui/react-dialog";
|
|
3
|
-
import "react";
|
|
4
3
|
import { cn as l } from "./lib-utils.js";
|
|
5
4
|
import { dialogCloseClassNames as n, dialogContentClassNames as c, dialogDescriptionClassNames as d, dialogFooterClassNames as N, dialogHeaderClassNames as g, dialogOverlayClassNames as p, dialogTitleClassNames as D } from "./components-ui-dialog-dialog.styles.js";
|
|
6
5
|
import { Icon as y } from "./components-ui-icon-icon.js";
|
|
7
|
-
const
|
|
6
|
+
const j = a.Root, u = a.Trigger, C = a.Portal, I = a.Close, t = ({ className: s, ...o }) => /* @__PURE__ */ e(
|
|
8
7
|
a.Overlay,
|
|
9
8
|
{
|
|
10
9
|
className: l(...p, s),
|
|
@@ -68,8 +67,8 @@ const x = ({ className: s, ...o }) => /* @__PURE__ */ e(
|
|
|
68
67
|
);
|
|
69
68
|
x.displayName = a.Description.displayName;
|
|
70
69
|
export {
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
j as Dialog,
|
|
71
|
+
I as DialogClose,
|
|
73
72
|
v as DialogContent,
|
|
74
73
|
x as DialogDescription,
|
|
75
74
|
f as DialogFooter,
|
|
@@ -77,6 +76,6 @@ export {
|
|
|
77
76
|
t as DialogOverlay,
|
|
78
77
|
C as DialogPortal,
|
|
79
78
|
h as DialogTitle,
|
|
80
|
-
|
|
79
|
+
u as DialogTrigger
|
|
81
80
|
};
|
|
82
81
|
//# sourceMappingURL=components-ui-dialog-dialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-dialog-dialog.js","sources":["../src/components/ui/dialog/dialog.tsx"],"sourcesContent":["import * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport
|
|
1
|
+
{"version":3,"file":"components-ui-dialog-dialog.js","sources":["../src/components/ui/dialog/dialog.tsx"],"sourcesContent":["import * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, HTMLAttributes } from \"react\";\n\nimport { cn } from \"@/lib/utils\";\nimport {\n dialogCloseClassNames,\n dialogContentClassNames,\n dialogDescriptionClassNames,\n dialogFooterClassNames,\n dialogHeaderClassNames,\n dialogOverlayClassNames,\n dialogTitleClassNames,\n} from \"./dialog.styles\";\nimport { Icon } from \"../icon\";\n\ntype DialogOverlayProps = ComponentPropsWithRef<typeof DialogPrimitive.Overlay>;\ntype DialogContentProps = ComponentPropsWithRef<typeof DialogPrimitive.Content> & {\n showCloseButton?: boolean;\n};\ntype DialogTitleProps = ComponentPropsWithRef<typeof DialogPrimitive.Title>;\ntype DialogDescriptionProps = ComponentPropsWithRef<typeof DialogPrimitive.Description>;\n\nconst Dialog = DialogPrimitive.Root;\nconst DialogTrigger = DialogPrimitive.Trigger;\nconst DialogPortal = DialogPrimitive.Portal;\nconst DialogClose = DialogPrimitive.Close;\n\nconst DialogOverlay = ({ className, ...props }: DialogOverlayProps) => (\n <DialogPrimitive.Overlay\n className={cn(...dialogOverlayClassNames, className)}\n {...props}\n />\n);\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst DialogContent = ({\n className,\n children,\n showCloseButton = true,\n ...props\n}: DialogContentProps) => (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n className={cn(...dialogContentClassNames, className)}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close className={cn(...dialogCloseClassNames)}>\n <Icon type=\"x\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogPortal>\n);\nDialogContent.displayName = DialogPrimitive.Content.displayName;\n\nconst DialogHeader = ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(...dialogHeaderClassNames, className)}\n {...props}\n />\n);\nDialogHeader.displayName = \"DialogHeader\";\n\nconst DialogFooter = ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(...dialogFooterClassNames, className)}\n {...props}\n />\n);\nDialogFooter.displayName = \"DialogFooter\";\n\nconst DialogTitle = ({ className, ...props }: DialogTitleProps) => (\n <DialogPrimitive.Title\n className={cn(...dialogTitleClassNames, className)}\n {...props}\n />\n);\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\n\nconst DialogDescription = ({ className, ...props }: DialogDescriptionProps) => (\n <DialogPrimitive.Description\n className={cn(...dialogDescriptionClassNames, className)}\n {...props}\n />\n);\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n};\n"],"names":["Dialog","DialogPrimitive","DialogTrigger","DialogPortal","DialogClose","DialogOverlay","className","props","jsx","cn","dialogOverlayClassNames","DialogContent","children","showCloseButton","jsxs","dialogContentClassNames","dialogCloseClassNames","Icon","DialogHeader","dialogHeaderClassNames","DialogFooter","dialogFooterClassNames","DialogTitle","dialogTitleClassNames","DialogDescription","dialogDescriptionClassNames"],"mappings":";;;;;AAsBA,MAAMA,IAASC,EAAgB,MACzBC,IAAgBD,EAAgB,SAChCE,IAAeF,EAAgB,QAC/BG,IAAcH,EAAgB,OAE9BI,IAAgB,CAAC,EAAE,WAAAC,GAAW,GAAGC,QACrC,gBAAAC;AAAA,EAACP,EAAgB;AAAA,EAAhB;AAAA,IACC,WAAWQ,EAAG,GAAGC,GAAyBJ,CAAS;AAAA,IAClD,GAAGC;AAAA,EAAA;AACN;AAEFF,EAAc,cAAcJ,EAAgB,QAAQ;AAEpD,MAAMU,IAAgB,CAAC;AAAA,EACrB,WAAAL;AAAA,EACA,UAAAM;AAAA,EACA,iBAAAC,IAAkB;AAAA,EAClB,GAAGN;AACL,wBACGJ,GAAA,EACC,UAAA;AAAA,EAAA,gBAAAK,EAACH,GAAA,EAAc;AAAA,EACf,gBAAAS;AAAA,IAACb,EAAgB;AAAA,IAAhB;AAAA,MACC,WAAWQ,EAAG,GAAGM,GAAyBT,CAAS;AAAA,MAClD,GAAGC;AAAA,MAEH,UAAA;AAAA,QAAAK;AAAA,QACAC,uBACEZ,EAAgB,OAAhB,EAAsB,WAAWQ,EAAG,GAAGO,CAAqB,GAC3D,UAAA;AAAA,UAAA,gBAAAR,EAACS,GAAA,EAAK,MAAK,IAAA,CAAI;AAAA,UACf,gBAAAT,EAAC,QAAA,EAAK,WAAU,WAAU,UAAA,QAAA,CAAK;AAAA,QAAA,EAAA,CACjC;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAEJ,EAAA,CACF;AAEFG,EAAc,cAAcV,EAAgB,QAAQ;AAEpD,MAAMiB,IAAe,CAAC,EAAE,WAAAZ,GAAW,GAAGC,QACpC,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAG,GAAGU,GAAwBb,CAAS;AAAA,IACjD,GAAGC;AAAA,EAAA;AACN;AAEFW,EAAa,cAAc;AAE3B,MAAME,IAAe,CAAC,EAAE,WAAAd,GAAW,GAAGC,QACpC,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAG,GAAGY,GAAwBf,CAAS;AAAA,IACjD,GAAGC;AAAA,EAAA;AACN;AAEFa,EAAa,cAAc;AAE3B,MAAME,IAAc,CAAC,EAAE,WAAAhB,GAAW,GAAGC,QACnC,gBAAAC;AAAA,EAACP,EAAgB;AAAA,EAAhB;AAAA,IACC,WAAWQ,EAAG,GAAGc,GAAuBjB,CAAS;AAAA,IAChD,GAAGC;AAAA,EAAA;AACN;AAEFe,EAAY,cAAcrB,EAAgB,MAAM;AAEhD,MAAMuB,IAAoB,CAAC,EAAE,WAAAlB,GAAW,GAAGC,QACzC,gBAAAC;AAAA,EAACP,EAAgB;AAAA,EAAhB;AAAA,IACC,WAAWQ,EAAG,GAAGgB,GAA6BnB,CAAS;AAAA,IACtD,GAAGC;AAAA,EAAA;AACN;AAEFiB,EAAkB,cAAcvB,EAAgB,YAAY;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index-fTTv8YY8.cjs"),d=require("./lib-utils.cjs");function l({...r}){return e.jsx(t.Drawer.Root,{"data-slot":"drawer",...r})}function c({...r}){return e.jsx(t.Drawer.Trigger,{"data-slot":"drawer-trigger",...r})}function o({...r}){return e.jsx(t.Drawer.Portal,{"data-slot":"drawer-portal",...r})}function u({...r}){return e.jsx(t.Drawer.Close,{"data-slot":"drawer-close",...r})}function i({className:r,...a}){return e.jsx(t.Drawer.Overlay,{"data-slot":"drawer-overlay",className:d.cn(`data-open:animate-in data-open:fade-in-0 data-closed:animate-out
|
|
2
2
|
data-closed:fade-out-0 fixed inset-0 z-50 bg-black/10
|
|
3
3
|
supports-backdrop-filter:backdrop-blur-xs`,r),...a})}function w({className:r,children:a,...n}){return e.jsxs(o,{"data-slot":"drawer-portal",children:[e.jsx(i,{}),e.jsxs(t.Drawer.Content,{"data-slot":"drawer-content",className:d.cn(`group/drawer-content bg-popover text-popover-foreground fixed z-50 flex h-auto
|
|
4
4
|
flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
group-data-[vaul-drawer-direction=bottom]/drawer-content:block`}),a]})]})}function s({className:r,...a}){return e.jsx("div",{"data-slot":"drawer-header",className:d.cn(`flex flex-col gap-0.5 p-4
|
|
27
27
|
group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center
|
|
28
28
|
group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-0.5
|
|
29
|
-
md:text-left`,r),...a})}function x({className:r,...a}){return e.jsx("div",{"data-slot":"drawer-footer",className:d.cn("mt-auto flex flex-col gap-2 p-4",r),...a})}function m({className:r,...a}){return e.jsx(t.Drawer.Title,{"data-slot":"drawer-title",className:d.cn("text-foreground text-base font-medium",r),...a})}function v({className:r,...a}){return e.jsx(t.Drawer.Description,{"data-slot":"drawer-description",className:d.cn("text-muted-foreground text-sm",r),...a})}exports.Drawer=l;exports.DrawerClose=
|
|
29
|
+
md:text-left`,r),...a})}function x({className:r,...a}){return e.jsx("div",{"data-slot":"drawer-footer",className:d.cn("mt-auto flex flex-col gap-2 p-4",r),...a})}function m({className:r,...a}){return e.jsx(t.Drawer.Title,{"data-slot":"drawer-title",className:d.cn("text-foreground text-base font-medium",r),...a})}function v({className:r,...a}){return e.jsx(t.Drawer.Description,{"data-slot":"drawer-description",className:d.cn("text-muted-foreground text-sm",r),...a})}exports.Drawer=l;exports.DrawerClose=u;exports.DrawerContent=w;exports.DrawerDescription=v;exports.DrawerFooter=x;exports.DrawerHeader=s;exports.DrawerOverlay=i;exports.DrawerPortal=o;exports.DrawerTitle=m;exports.DrawerTrigger=c;
|
|
30
30
|
//# sourceMappingURL=components-ui-drawer-drawer.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-drawer-drawer.cjs","sources":["../src/components/ui/drawer/drawer.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"components-ui-drawer-drawer.cjs","sources":["../src/components/ui/drawer/drawer.tsx"],"sourcesContent":["import type { ComponentProps } from \"react\";\nimport { Drawer as DrawerPrimitive } from \"vaul\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Drawer({ ...props }: ComponentProps<typeof DrawerPrimitive.Root>) {\n return (\n <DrawerPrimitive.Root\n data-slot=\"drawer\"\n {...props}\n />\n );\n}\n\nfunction DrawerTrigger({ ...props }: ComponentProps<typeof DrawerPrimitive.Trigger>) {\n return (\n <DrawerPrimitive.Trigger\n data-slot=\"drawer-trigger\"\n {...props}\n />\n );\n}\n\nfunction DrawerPortal({ ...props }: ComponentProps<typeof DrawerPrimitive.Portal>) {\n return (\n <DrawerPrimitive.Portal\n data-slot=\"drawer-portal\"\n {...props}\n />\n );\n}\n\nfunction DrawerClose({ ...props }: ComponentProps<typeof DrawerPrimitive.Close>) {\n return (\n <DrawerPrimitive.Close\n data-slot=\"drawer-close\"\n {...props}\n />\n );\n}\n\nfunction DrawerOverlay({\n className,\n ...props\n}: ComponentProps<typeof DrawerPrimitive.Overlay>) {\n return (\n <DrawerPrimitive.Overlay\n data-slot=\"drawer-overlay\"\n className={cn(\n `data-open:animate-in data-open:fade-in-0 data-closed:animate-out\n data-closed:fade-out-0 fixed inset-0 z-50 bg-black/10\n supports-backdrop-filter:backdrop-blur-xs`,\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DrawerContent({\n className,\n children,\n ...props\n}: ComponentProps<typeof DrawerPrimitive.Content>) {\n return (\n <DrawerPortal data-slot=\"drawer-portal\">\n <DrawerOverlay />\n <DrawerPrimitive.Content\n data-slot=\"drawer-content\"\n className={cn(\n `group/drawer-content bg-popover text-popover-foreground fixed z-50 flex h-auto\n flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0\n data-[vaul-drawer-direction=bottom]:bottom-0\n data-[vaul-drawer-direction=bottom]:mt-24\n data-[vaul-drawer-direction=bottom]:max-h-[80vh]\n data-[vaul-drawer-direction=bottom]:rounded-t-xl\n data-[vaul-drawer-direction=bottom]:border-t\n data-[vaul-drawer-direction=left]:inset-y-0\n data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4\n data-[vaul-drawer-direction=left]:rounded-r-xl\n data-[vaul-drawer-direction=left]:border-r\n data-[vaul-drawer-direction=right]:inset-y-0\n data-[vaul-drawer-direction=right]:right-0\n data-[vaul-drawer-direction=right]:w-3/4\n data-[vaul-drawer-direction=right]:rounded-l-xl\n data-[vaul-drawer-direction=right]:border-l\n data-[vaul-drawer-direction=top]:inset-x-0\n data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24\n data-[vaul-drawer-direction=top]:max-h-[80vh]\n data-[vaul-drawer-direction=top]:rounded-b-xl\n data-[vaul-drawer-direction=top]:border-b\n data-[vaul-drawer-direction=left]:sm:max-w-sm\n data-[vaul-drawer-direction=right]:sm:max-w-sm`,\n className,\n )}\n {...props}\n >\n <div\n className=\"bg-muted mx-auto mt-4 hidden h-1 w-[100px] shrink-0 rounded-full\n group-data-[vaul-drawer-direction=bottom]/drawer-content:block\"\n />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n );\n}\n\nfunction DrawerHeader({ className, ...props }: ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"drawer-header\"\n className={cn(\n `flex flex-col gap-0.5 p-4\n group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center\n group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-0.5\n md:text-left`,\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DrawerFooter({ className, ...props }: ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"drawer-footer\"\n className={cn(\"mt-auto flex flex-col gap-2 p-4\", className)}\n {...props}\n />\n );\n}\n\nfunction DrawerTitle({\n className,\n ...props\n}: ComponentProps<typeof DrawerPrimitive.Title>) {\n return (\n <DrawerPrimitive.Title\n data-slot=\"drawer-title\"\n className={cn(\"text-foreground text-base font-medium\", className)}\n {...props}\n />\n );\n}\n\nfunction DrawerDescription({\n className,\n ...props\n}: ComponentProps<typeof DrawerPrimitive.Description>) {\n return (\n <DrawerPrimitive.Description\n data-slot=\"drawer-description\"\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n );\n}\n\nexport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerOverlay,\n DrawerPortal,\n DrawerTitle,\n DrawerTrigger,\n};\n"],"names":["Drawer","props","jsx","DrawerPrimitive","DrawerTrigger","DrawerPortal","DrawerClose","DrawerOverlay","className","cn","DrawerContent","children","jsxs","DrawerHeader","DrawerFooter","DrawerTitle","DrawerDescription"],"mappings":"oLAKA,SAASA,EAAO,CAAE,GAAGC,GAAsD,CACzE,OACEC,EAAAA,IAACC,EAAAA,OAAgB,KAAhB,CACC,YAAU,SACT,GAAGF,CAAA,CAAA,CAGV,CAEA,SAASG,EAAc,CAAE,GAAGH,GAAyD,CACnF,OACEC,EAAAA,IAACC,EAAAA,OAAgB,QAAhB,CACC,YAAU,iBACT,GAAGF,CAAA,CAAA,CAGV,CAEA,SAASI,EAAa,CAAE,GAAGJ,GAAwD,C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,EACzD,GAAGP,CAAA,CAAA,CAGV,CAEA,SAASc,EAAY,CACnB,UAAAP,EACA,GAAGP,CACL,EAAiD,CAC/C,OACEC,EAAAA,IAACC,EAAAA,OAAgB,MAAhB,CACC,YAAU,eACV,UAAWM,EAAAA,GAAG,wCAAyCD,CAAS,EAC/D,GAAGP,CAAA,CAAA,CAGV,CAEA,SAASe,EAAkB,CACzB,UAAAR,EACA,GAAGP,CACL,EAAuD,CACrD,OACEC,EAAAA,IAACC,EAAAA,OAAgB,YAAhB,CACC,YAAU,qBACV,UAAWM,EAAAA,GAAG,gCAAiCD,CAAS,EACvD,GAAGP,CAAA,CAAA,CAGV"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
2
|
import { D as e } from "./index-C6N9aMq_.js";
|
|
4
3
|
import { cn as d } from "./lib-utils.js";
|
|
5
|
-
function
|
|
4
|
+
function s({ ...r }) {
|
|
6
5
|
return /* @__PURE__ */ a(
|
|
7
6
|
e.Root,
|
|
8
7
|
{
|
|
@@ -11,9 +10,7 @@ function m({ ...r }) {
|
|
|
11
10
|
}
|
|
12
11
|
);
|
|
13
12
|
}
|
|
14
|
-
function
|
|
15
|
-
...r
|
|
16
|
-
}) {
|
|
13
|
+
function m({ ...r }) {
|
|
17
14
|
return /* @__PURE__ */ a(
|
|
18
15
|
e.Trigger,
|
|
19
16
|
{
|
|
@@ -31,7 +28,7 @@ function n({ ...r }) {
|
|
|
31
28
|
}
|
|
32
29
|
);
|
|
33
30
|
}
|
|
34
|
-
function
|
|
31
|
+
function f({ ...r }) {
|
|
35
32
|
return /* @__PURE__ */ a(
|
|
36
33
|
e.Close,
|
|
37
34
|
{
|
|
@@ -58,7 +55,7 @@ function l({
|
|
|
58
55
|
}
|
|
59
56
|
);
|
|
60
57
|
}
|
|
61
|
-
function
|
|
58
|
+
function p({
|
|
62
59
|
className: r,
|
|
63
60
|
children: t,
|
|
64
61
|
...i
|
|
@@ -110,7 +107,7 @@ function v({
|
|
|
110
107
|
)
|
|
111
108
|
] });
|
|
112
109
|
}
|
|
113
|
-
function
|
|
110
|
+
function v({ className: r, ...t }) {
|
|
114
111
|
return /* @__PURE__ */ a(
|
|
115
112
|
"div",
|
|
116
113
|
{
|
|
@@ -126,7 +123,7 @@ function x({ className: r, ...t }) {
|
|
|
126
123
|
}
|
|
127
124
|
);
|
|
128
125
|
}
|
|
129
|
-
function
|
|
126
|
+
function x({ className: r, ...t }) {
|
|
130
127
|
return /* @__PURE__ */ a(
|
|
131
128
|
"div",
|
|
132
129
|
{
|
|
@@ -136,7 +133,7 @@ function g({ className: r, ...t }) {
|
|
|
136
133
|
}
|
|
137
134
|
);
|
|
138
135
|
}
|
|
139
|
-
function
|
|
136
|
+
function g({
|
|
140
137
|
className: r,
|
|
141
138
|
...t
|
|
142
139
|
}) {
|
|
@@ -149,7 +146,7 @@ function b({
|
|
|
149
146
|
}
|
|
150
147
|
);
|
|
151
148
|
}
|
|
152
|
-
function
|
|
149
|
+
function b({
|
|
153
150
|
className: r,
|
|
154
151
|
...t
|
|
155
152
|
}) {
|
|
@@ -163,15 +160,15 @@ function h({
|
|
|
163
160
|
);
|
|
164
161
|
}
|
|
165
162
|
export {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
163
|
+
s as Drawer,
|
|
164
|
+
f as DrawerClose,
|
|
165
|
+
p as DrawerContent,
|
|
166
|
+
b as DrawerDescription,
|
|
167
|
+
x as DrawerFooter,
|
|
168
|
+
v as DrawerHeader,
|
|
172
169
|
l as DrawerOverlay,
|
|
173
170
|
n as DrawerPortal,
|
|
174
|
-
|
|
175
|
-
|
|
171
|
+
g as DrawerTitle,
|
|
172
|
+
m as DrawerTrigger
|
|
176
173
|
};
|
|
177
174
|
//# sourceMappingURL=components-ui-drawer-drawer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-drawer-drawer.js","sources":["../src/components/ui/drawer/drawer.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"components-ui-drawer-drawer.js","sources":["../src/components/ui/drawer/drawer.tsx"],"sourcesContent":["import type { ComponentProps } from \"react\";\nimport { Drawer as DrawerPrimitive } from \"vaul\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Drawer({ ...props }: ComponentProps<typeof DrawerPrimitive.Root>) {\n return (\n <DrawerPrimitive.Root\n data-slot=\"drawer\"\n {...props}\n />\n );\n}\n\nfunction DrawerTrigger({ ...props }: ComponentProps<typeof DrawerPrimitive.Trigger>) {\n return (\n <DrawerPrimitive.Trigger\n data-slot=\"drawer-trigger\"\n {...props}\n />\n );\n}\n\nfunction DrawerPortal({ ...props }: ComponentProps<typeof DrawerPrimitive.Portal>) {\n return (\n <DrawerPrimitive.Portal\n data-slot=\"drawer-portal\"\n {...props}\n />\n );\n}\n\nfunction DrawerClose({ ...props }: ComponentProps<typeof DrawerPrimitive.Close>) {\n return (\n <DrawerPrimitive.Close\n data-slot=\"drawer-close\"\n {...props}\n />\n );\n}\n\nfunction DrawerOverlay({\n className,\n ...props\n}: ComponentProps<typeof DrawerPrimitive.Overlay>) {\n return (\n <DrawerPrimitive.Overlay\n data-slot=\"drawer-overlay\"\n className={cn(\n `data-open:animate-in data-open:fade-in-0 data-closed:animate-out\n data-closed:fade-out-0 fixed inset-0 z-50 bg-black/10\n supports-backdrop-filter:backdrop-blur-xs`,\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DrawerContent({\n className,\n children,\n ...props\n}: ComponentProps<typeof DrawerPrimitive.Content>) {\n return (\n <DrawerPortal data-slot=\"drawer-portal\">\n <DrawerOverlay />\n <DrawerPrimitive.Content\n data-slot=\"drawer-content\"\n className={cn(\n `group/drawer-content bg-popover text-popover-foreground fixed z-50 flex h-auto\n flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0\n data-[vaul-drawer-direction=bottom]:bottom-0\n data-[vaul-drawer-direction=bottom]:mt-24\n data-[vaul-drawer-direction=bottom]:max-h-[80vh]\n data-[vaul-drawer-direction=bottom]:rounded-t-xl\n data-[vaul-drawer-direction=bottom]:border-t\n data-[vaul-drawer-direction=left]:inset-y-0\n data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4\n data-[vaul-drawer-direction=left]:rounded-r-xl\n data-[vaul-drawer-direction=left]:border-r\n data-[vaul-drawer-direction=right]:inset-y-0\n data-[vaul-drawer-direction=right]:right-0\n data-[vaul-drawer-direction=right]:w-3/4\n data-[vaul-drawer-direction=right]:rounded-l-xl\n data-[vaul-drawer-direction=right]:border-l\n data-[vaul-drawer-direction=top]:inset-x-0\n data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24\n data-[vaul-drawer-direction=top]:max-h-[80vh]\n data-[vaul-drawer-direction=top]:rounded-b-xl\n data-[vaul-drawer-direction=top]:border-b\n data-[vaul-drawer-direction=left]:sm:max-w-sm\n data-[vaul-drawer-direction=right]:sm:max-w-sm`,\n className,\n )}\n {...props}\n >\n <div\n className=\"bg-muted mx-auto mt-4 hidden h-1 w-[100px] shrink-0 rounded-full\n group-data-[vaul-drawer-direction=bottom]/drawer-content:block\"\n />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n );\n}\n\nfunction DrawerHeader({ className, ...props }: ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"drawer-header\"\n className={cn(\n `flex flex-col gap-0.5 p-4\n group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center\n group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-0.5\n md:text-left`,\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DrawerFooter({ className, ...props }: ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"drawer-footer\"\n className={cn(\"mt-auto flex flex-col gap-2 p-4\", className)}\n {...props}\n />\n );\n}\n\nfunction DrawerTitle({\n className,\n ...props\n}: ComponentProps<typeof DrawerPrimitive.Title>) {\n return (\n <DrawerPrimitive.Title\n data-slot=\"drawer-title\"\n className={cn(\"text-foreground text-base font-medium\", className)}\n {...props}\n />\n );\n}\n\nfunction DrawerDescription({\n className,\n ...props\n}: ComponentProps<typeof DrawerPrimitive.Description>) {\n return (\n <DrawerPrimitive.Description\n data-slot=\"drawer-description\"\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n );\n}\n\nexport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerOverlay,\n DrawerPortal,\n DrawerTitle,\n DrawerTrigger,\n};\n"],"names":["Drawer","props","jsx","DrawerPrimitive","DrawerTrigger","DrawerPortal","DrawerClose","DrawerOverlay","className","cn","DrawerContent","children","jsxs","DrawerHeader","DrawerFooter","DrawerTitle","DrawerDescription"],"mappings":";;;AAKA,SAASA,EAAO,EAAE,GAAGC,KAAsD;AACzE,SACE,gBAAAC;AAAA,IAACC,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACT,GAAGF;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASG,EAAc,EAAE,GAAGH,KAAyD;AACnF,SACE,gBAAAC;AAAA,IAACC,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACT,GAAGF;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASI,EAAa,EAAE,GAAGJ,KAAwD;AACjF,SACE,gBAAAC;AAAA,IAACC,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACT,GAAGF;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASK,EAAY,EAAE,GAAGL,KAAuD;AAC/E,SACE,gBAAAC;AAAA,IAACC,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACT,GAAGF;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASM,EAAc;AAAA,EACrB,WAAAC;AAAA,EACA,GAAGP;AACL,GAA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,IAAA;AAAA,EAAA;AAGV;AAEA,SAASc,EAAY;AAAA,EACnB,WAAAP;AAAA,EACA,GAAGP;AACL,GAAiD;AAC/C,SACE,gBAAAC;AAAA,IAACC,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,WAAWM,EAAG,yCAAyCD,CAAS;AAAA,MAC/D,GAAGP;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASe,EAAkB;AAAA,EACzB,WAAAR;AAAA,EACA,GAAGP;AACL,GAAuD;AACrD,SACE,gBAAAC;AAAA,IAACC,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,WAAWM,EAAG,iCAAiCD,CAAS;AAAA,MACvD,GAAGP;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime");require("
|
|
2
|
-
data-[highlighted]:bg-transparent`,e.alert&&"text-error-text"),onSelect:l=>{if(e.readOnly){l.preventDefault();return}e.onSelect?.(),r?.(e)},children:[
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime");require("@radix-ui/react-accessible-icon");require("@radix-ui/react-accordion");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-aspect-ratio");require("@radix-ui/react-avatar");require("@radix-ui/react-checkbox");require("@radix-ui/react-collapsible");require("@radix-ui/react-context-menu");require("@radix-ui/react-dialog");require("@radix-ui/react-direction");const C=require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-form");require("@radix-ui/react-hover-card");require("@radix-ui/react-label");require("@radix-ui/react-menubar");require("@radix-ui/react-navigation-menu");require("@radix-ui/react-one-time-password-field");require("@radix-ui/react-password-toggle-field");require("@radix-ui/react-popover");require("@radix-ui/react-portal");require("@radix-ui/react-progress");require("@radix-ui/react-radio-group");require("@radix-ui/react-scroll-area");require("@radix-ui/react-select");require("@radix-ui/react-separator");require("@radix-ui/react-slider");require("@radix-ui/react-slot");require("@radix-ui/react-switch");require("@radix-ui/react-tabs");require("@radix-ui/react-toast");require("@radix-ui/react-toggle");require("@radix-ui/react-toggle-group");require("@radix-ui/react-toolbar");require("@radix-ui/react-tooltip");require("@radix-ui/react-visually-hidden");const p=require("./components-ui-icon-icon.cjs"),t=require("./lib-utils.cjs"),u=require("./components-ui-dropdown-menu-dropdown-menu.styles.cjs");function D(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const d=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,d.get?d:{enumerable:!0,get:()=>e[o]})}}return r.default=e,Object.freeze(r)}const a=D(C);function w({...e}){return n.jsx(a.Root,{"data-slot":"dropdown-menu",...e})}function h({...e}){return n.jsx(a.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function x({className:e,sideOffset:r=4,align:o="end",...d}){return n.jsx(a.Portal,{children:n.jsx(a.Content,{"data-slot":"dropdown-menu-content",sideOffset:r,align:o,className:t.cn(u.dropdownMenuContentClassName,e),...d})})}function b({className:e,...r}){return n.jsx(a.Item,{"data-slot":"dropdown-menu-item",className:t.cn(u.dropdownMenuItemClassName,e),...r})}function j({className:e,children:r,checked:o,itemIndicator:d,closeOnSelect:l=!0,onSelect:s,...c}){const N=d!==null;return n.jsxs(a.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item",className:t.cn(u.dropdownMenuItemClassName,"border-none",e),checked:o,onSelect:i=>{s?.(i),!l&&!i.defaultPrevented&&i.preventDefault()},...c,children:[N&&n.jsx(a.ItemIndicator,{children:d??n.jsx(p.Icon,{type:"check",size:"small",className:u.dropdownMenuIconClassName})}),r]})}function y({trigger:e,items:r,onItemCheckedChange:o,contentProps:d,keepOpenOnItemSelect:l=!0}){return n.jsxs(w,{children:[n.jsx(h,{asChild:!0,children:e}),n.jsx(x,{...d,children:r.map(s=>n.jsx(j,{checked:s.checked,disabled:s.disabled,className:t.cn(s.className,s.checked&&s.checkedClassName),textValue:s.textValue,itemIndicator:s.itemIndicator,closeOnSelect:!l,onCheckedChange:c=>o(s.key,c===!0),children:n.jsxs("div",{className:t.cn("flex w-full items-center gap-2",(s.endAdornment||s.checkedEndAdornment)&&"justify-between"),children:[n.jsx("span",{children:s.label}),s.checked?s.checkedEndAdornment??s.endAdornment:s.endAdornment]})},s.key))})]})}function M({className:e,...r}){return n.jsx(a.Label,{"data-slot":"dropdown-menu-label",className:t.cn(u.dropdownMenuLabelClassName,e),...r})}function f({className:e,...r}){return n.jsx(a.Separator,{"data-slot":"dropdown-menu-separator",className:t.cn(u.dropdownMenuSeparatorClassName,e),...r})}function q({className:e,...r}){return n.jsx(a.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger",className:t.cn(u.dropdownMenuSubTriggerClassName,e),...r})}function g({className:e,sideOffset:r=4,...o}){return n.jsx(a.Portal,{children:n.jsx(a.SubContent,{"data-slot":"dropdown-menu-sub-content",sideOffset:r,className:t.cn(u.dropdownMenuContentClassName,e),...o})})}function I(e){return e.icon?n.jsx("span",{className:u.dropdownMenuIconClassName,children:e.icon}):e.iconType?n.jsx(p.Icon,{type:e.iconType,className:t.cn(u.dropdownMenuIconClassName,e.alert&&"text-error-text")}):null}function m(e,r){const o=e.id??e.type+("label"in e?e.label:"");if(e.type==="separator")return n.jsx(f,{},o);if(e.type==="label")return n.jsx(M,{children:e.label},o);const d=e.readOnly?null:I(e);return e.children?.length?n.jsxs(a.Sub,{children:[n.jsxs(q,{disabled:e.disabled,children:[n.jsxs("span",{className:"flex items-center gap-2",children:[d,n.jsx("span",{children:e.label})]}),n.jsx(p.Icon,{type:"caret-right",size:"small",className:u.dropdownMenuIconClassName})]}),n.jsx(g,{children:e.children.map(l=>m(l,r))})]},o):n.jsxs(b,{disabled:e.disabled,className:t.cn(e.readOnly&&`pointer-events-none cursor-default justify-center
|
|
2
|
+
data-[highlighted]:bg-transparent`,e.alert&&"text-error-text"),onSelect:l=>{if(e.readOnly){l.preventDefault();return}e.onSelect?.(),r?.(e)},children:[d,n.jsx("span",{className:t.cn(u.dropdownMenuItemTextClassName,e.readOnly&&u.dropdownMenuReadonlyItemTextClassName),children:e.label}),e.shortcut&&!e.readOnly?n.jsx("span",{className:u.dropdownMenuShortcutClassName,children:e.shortcut}):null]},o)}function S({trigger:e,items:r,onAction:o,contentProps:d}){return n.jsxs(w,{children:[n.jsx(h,{asChild:!0,children:e}),n.jsx(x,{...d,children:r.map(l=>m(l,o))})]})}exports.DropdownMenuPrimitive=a;exports.CheckboxDropdownMenu=y;exports.ConfigurableDropdownMenu=S;exports.DropdownMenu=w;exports.DropdownMenuCheckboxItem=j;exports.DropdownMenuContent=x;exports.DropdownMenuItem=b;exports.DropdownMenuLabel=M;exports.DropdownMenuSeparator=f;exports.DropdownMenuSubContent=g;exports.DropdownMenuSubTrigger=q;exports.DropdownMenuTrigger=h;
|
|
3
3
|
//# sourceMappingURL=components-ui-dropdown-menu-dropdown-menu.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-ui-dropdown-menu-dropdown-menu.cjs","sources":["../src/components/ui/dropdown-menu/dropdown-menu.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { DropdownMenu as DropdownMenuPrimitive } from \"radix-ui\";\nimport type { IconName } from \"phosphor-strokes-icons/by-name\";\n\nimport { Icon } from \"@/components/ui/icon\";\nimport { cn } from \"@/lib/utils\";\nimport {\n dropdownMenuContentClassName,\n dropdownMenuIconClassName,\n dropdownMenuItemClassName,\n dropdownMenuLabelClassName,\n dropdownMenuSeparatorClassName,\n dropdownMenuShortcutClassName,\n dropdownMenuSubTriggerClassName,\n dropdownMenuItemTextClassName,\n dropdownMenuReadonlyItemTextClassName,\n} from \"./dropdown-menu.styles\";\n\ntype DropdownMenuRef = React.ComponentRef<typeof DropdownMenuPrimitive.Root>;\ntype DropdownMenuProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Root\n> & {\n ref?: React.Ref<DropdownMenuRef>;\n};\n\ntype DropdownMenuTriggerRef = React.ComponentRef<typeof DropdownMenuPrimitive.Trigger>;\ntype DropdownMenuTriggerProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Trigger\n> & {\n ref?: React.Ref<DropdownMenuTriggerRef>;\n};\n\ntype DropdownMenuContentRef = React.ComponentRef<typeof DropdownMenuPrimitive.Content>;\ntype DropdownMenuContentProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Content\n> & {\n ref?: React.Ref<DropdownMenuContentRef>;\n};\n\ntype DropdownMenuItemRef = React.ComponentRef<typeof DropdownMenuPrimitive.Item>;\ntype DropdownMenuItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Item\n> & {\n ref?: React.Ref<DropdownMenuItemRef>;\n};\n\ntype DropdownMenuCheckboxItemRef = React.ComponentRef<\n typeof DropdownMenuPrimitive.CheckboxItem\n>;\ntype DropdownMenuCheckboxItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.CheckboxItem\n> & {\n ref?: React.Ref<DropdownMenuCheckboxItemRef>;\n itemIndicator?: React.ReactNode;\n closeOnSelect?: boolean;\n};\n\ntype DropdownMenuLabelRef = React.ComponentRef<typeof DropdownMenuPrimitive.Label>;\ntype DropdownMenuLabelProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Label\n> & {\n ref?: React.Ref<DropdownMenuLabelRef>;\n};\n\ntype DropdownMenuSeparatorRef = React.ComponentRef<\n typeof DropdownMenuPrimitive.Separator\n>;\ntype DropdownMenuSeparatorProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Separator\n> & {\n ref?: React.Ref<DropdownMenuSeparatorRef>;\n};\n\ntype DropdownMenuSubTriggerRef = React.ComponentRef<\n typeof DropdownMenuPrimitive.SubTrigger\n>;\ntype DropdownMenuSubTriggerProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.SubTrigger\n> & {\n ref?: React.Ref<DropdownMenuSubTriggerRef>;\n};\n\ntype DropdownMenuSubContentRef = React.ComponentRef<\n typeof DropdownMenuPrimitive.SubContent\n>;\ntype DropdownMenuSubContentProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.SubContent\n> & {\n ref?: React.Ref<DropdownMenuSubContentRef>;\n};\n\ntype DropdownMenuCheckboxOption = {\n key: string;\n label: React.ReactNode;\n checked: boolean;\n disabled?: boolean;\n className?: string;\n checkedClassName?: string;\n textValue?: string;\n itemIndicator?: React.ReactNode;\n endAdornment?: React.ReactNode;\n checkedEndAdornment?: React.ReactNode;\n};\n\ntype CheckboxDropdownMenuProps = {\n trigger: React.ReactNode;\n items: DropdownMenuCheckboxOption[];\n onItemCheckedChange: (key: string, checked: boolean) => void;\n contentProps?: Omit<DropdownMenuContentProps, \"children\">;\n keepOpenOnItemSelect?: boolean;\n};\n\nfunction DropdownMenu({ ...props }: DropdownMenuProps) {\n return (\n <DropdownMenuPrimitive.Root\n data-slot=\"dropdown-menu\"\n {...props}\n />\n );\n}\n\nfunction DropdownMenuTrigger({ ...props }: DropdownMenuTriggerProps) {\n return (\n <DropdownMenuPrimitive.Trigger\n data-slot=\"dropdown-menu-trigger\"\n {...props}\n />\n );\n}\n\nfunction DropdownMenuContent({\n className,\n sideOffset = 4,\n align = \"end\",\n ...props\n}: DropdownMenuContentProps) {\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n data-slot=\"dropdown-menu-content\"\n sideOffset={sideOffset}\n align={align}\n className={cn(dropdownMenuContentClassName, className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n );\n}\n\nfunction DropdownMenuItem({ className, ...props }: DropdownMenuItemProps) {\n return (\n <DropdownMenuPrimitive.Item\n data-slot=\"dropdown-menu-item\"\n className={cn(dropdownMenuItemClassName, className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuCheckboxItem({\n className,\n children,\n checked,\n itemIndicator,\n closeOnSelect = true,\n onSelect,\n ...props\n}: DropdownMenuCheckboxItemProps) {\n const shouldRenderIndicator = itemIndicator !== null;\n\n return (\n <DropdownMenuPrimitive.CheckboxItem\n data-slot=\"dropdown-menu-checkbox-item\"\n className={cn(dropdownMenuItemClassName, \"border-none\", className)}\n checked={checked}\n onSelect={(event) => {\n onSelect?.(event);\n\n if (!closeOnSelect && !event.defaultPrevented) {\n event.preventDefault();\n }\n }}\n {...props}\n >\n {shouldRenderIndicator && (\n <DropdownMenuPrimitive.ItemIndicator>\n {itemIndicator ?? (\n <Icon\n type=\"check\"\n size=\"small\"\n className={dropdownMenuIconClassName}\n />\n )}\n </DropdownMenuPrimitive.ItemIndicator>\n )}\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n );\n}\n\nfunction CheckboxDropdownMenu({\n trigger,\n items,\n onItemCheckedChange,\n contentProps,\n keepOpenOnItemSelect = true,\n}: CheckboxDropdownMenuProps) {\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>{trigger}</DropdownMenuTrigger>\n <DropdownMenuContent {...contentProps}>\n {items.map((item) => (\n <DropdownMenuCheckboxItem\n key={item.key}\n checked={item.checked}\n disabled={item.disabled}\n className={cn(item.className, item.checked && item.checkedClassName)}\n textValue={item.textValue}\n itemIndicator={item.itemIndicator}\n closeOnSelect={!keepOpenOnItemSelect}\n onCheckedChange={(checked) => onItemCheckedChange(item.key, checked === true)}\n >\n <div\n className={cn(\n \"flex w-full items-center gap-2\",\n (item.endAdornment || item.checkedEndAdornment) && \"justify-between\",\n )}\n >\n <span>{item.label}</span>\n {item.checked\n ? (item.checkedEndAdornment ?? item.endAdornment)\n : item.endAdornment}\n </div>\n </DropdownMenuCheckboxItem>\n ))}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n\nfunction DropdownMenuLabel({ className, ...props }: DropdownMenuLabelProps) {\n return (\n <DropdownMenuPrimitive.Label\n data-slot=\"dropdown-menu-label\"\n className={cn(dropdownMenuLabelClassName, className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuSeparator({ className, ...props }: DropdownMenuSeparatorProps) {\n return (\n <DropdownMenuPrimitive.Separator\n data-slot=\"dropdown-menu-separator\"\n className={cn(dropdownMenuSeparatorClassName, className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuSubTrigger({ className, ...props }: DropdownMenuSubTriggerProps) {\n return (\n <DropdownMenuPrimitive.SubTrigger\n data-slot=\"dropdown-menu-sub-trigger\"\n className={cn(dropdownMenuSubTriggerClassName, className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuSubContent({\n className,\n sideOffset = 4,\n ...props\n}: DropdownMenuSubContentProps) {\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.SubContent\n data-slot=\"dropdown-menu-sub-content\"\n sideOffset={sideOffset}\n className={cn(dropdownMenuContentClassName, className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n );\n}\n\ntype DropdownMenuConfigBase = {\n id?: string;\n disabled?: boolean;\n readOnly?: boolean;\n};\n\ntype DropdownMenuConfigLabel = DropdownMenuConfigBase & {\n type: \"label\";\n label: string;\n};\n\ntype DropdownMenuConfigSeparator = DropdownMenuConfigBase & {\n type: \"separator\";\n};\n\ntype DropdownMenuConfigItem = DropdownMenuConfigBase & {\n type?: \"item\";\n label: string;\n icon?: React.ReactNode;\n iconType?: IconName;\n shortcut?: string;\n alert?: boolean;\n children?: DropdownMenuConfigNode[];\n onSelect?: () => void;\n};\n\ntype DropdownMenuConfigNode =\n | DropdownMenuConfigLabel\n | DropdownMenuConfigSeparator\n | DropdownMenuConfigItem;\n\ntype ConfigurableDropdownMenuProps = {\n trigger: React.ReactNode;\n items: DropdownMenuConfigNode[];\n onAction?: (item: DropdownMenuConfigItem) => void;\n contentProps?: Omit<DropdownMenuContentProps, \"children\">;\n};\n\nfunction renderLeadingIcon(item: DropdownMenuConfigItem) {\n if (item.icon) {\n return <span className={dropdownMenuIconClassName}>{item.icon}</span>;\n }\n\n if (item.iconType) {\n return (\n <Icon\n type={item.iconType}\n className={cn(dropdownMenuIconClassName, item.alert && \"text-error-text\")}\n />\n );\n }\n\n return null;\n}\n\nfunction renderConfigNode(\n item: DropdownMenuConfigNode,\n onAction?: (item: DropdownMenuConfigItem) => void,\n) {\n const key = item.id ?? item.type + (\"label\" in item ? item.label : \"\");\n\n if (item.type === \"separator\") {\n return <DropdownMenuSeparator key={key} />;\n }\n\n if (item.type === \"label\") {\n return <DropdownMenuLabel key={key}>{item.label}</DropdownMenuLabel>;\n }\n\n const iconNode = item.readOnly ? null : renderLeadingIcon(item);\n\n if (item.children?.length) {\n return (\n <DropdownMenuPrimitive.Sub key={key}>\n <DropdownMenuSubTrigger disabled={item.disabled}>\n <span className=\"flex items-center gap-2\">\n {iconNode}\n <span>{item.label}</span>\n </span>\n <Icon\n type=\"caret-right\"\n size=\"small\"\n className={dropdownMenuIconClassName}\n />\n </DropdownMenuSubTrigger>\n <DropdownMenuSubContent>\n {item.children.map((child) => renderConfigNode(child, onAction))}\n </DropdownMenuSubContent>\n </DropdownMenuPrimitive.Sub>\n );\n }\n\n return (\n <DropdownMenuItem\n key={key}\n disabled={item.disabled}\n className={cn(\n item.readOnly &&\n `pointer-events-none cursor-default justify-center\n data-[highlighted]:bg-transparent`,\n item.alert && \"text-error-text\",\n )}\n onSelect={(event) => {\n if (item.readOnly) {\n event.preventDefault();\n return;\n }\n\n item.onSelect?.();\n onAction?.(item);\n }}\n >\n {iconNode}\n <span\n className={cn(\n dropdownMenuItemTextClassName,\n item.readOnly && dropdownMenuReadonlyItemTextClassName,\n )}\n >\n {item.label}\n </span>\n {item.shortcut && !item.readOnly ? (\n <span className={dropdownMenuShortcutClassName}>{item.shortcut}</span>\n ) : null}\n </DropdownMenuItem>\n );\n}\n\nfunction ConfigurableDropdownMenu({\n trigger,\n items,\n onAction,\n contentProps,\n}: ConfigurableDropdownMenuProps) {\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>{trigger}</DropdownMenuTrigger>\n <DropdownMenuContent {...contentProps}>\n {items.map((item) => renderConfigNode(item, onAction))}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n\nexport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuCheckboxItem,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPrimitive,\n DropdownMenuSeparator,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n ConfigurableDropdownMenu,\n CheckboxDropdownMenu,\n};\n\nexport type {\n ConfigurableDropdownMenuProps,\n DropdownMenuConfigItem,\n DropdownMenuConfigLabel,\n DropdownMenuConfigNode,\n DropdownMenuConfigSeparator,\n DropdownMenuContentProps,\n DropdownMenuCheckboxItemProps,\n DropdownMenuCheckboxOption,\n DropdownMenuItemProps,\n DropdownMenuLabelProps,\n DropdownMenuProps,\n DropdownMenuSeparatorProps,\n DropdownMenuSubContentProps,\n DropdownMenuSubTriggerProps,\n DropdownMenuTriggerProps,\n CheckboxDropdownMenuProps,\n};\n"],"names":["DropdownMenu","props","jsx","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuContent","className","sideOffset","align","cn","dropdownMenuContentClassName","DropdownMenuItem","dropdownMenuItemClassName","DropdownMenuCheckboxItem","children","checked","itemIndicator","closeOnSelect","onSelect","shouldRenderIndicator","jsxs","event","Icon","dropdownMenuIconClassName","CheckboxDropdownMenu","trigger","items","onItemCheckedChange","contentProps","keepOpenOnItemSelect","item","DropdownMenuLabel","dropdownMenuLabelClassName","DropdownMenuSeparator","dropdownMenuSeparatorClassName","DropdownMenuSubTrigger","dropdownMenuSubTriggerClassName","DropdownMenuSubContent","renderLeadingIcon","renderConfigNode","onAction","key","iconNode","child","dropdownMenuItemTextClassName","dropdownMenuReadonlyItemTextClassName","dropdownMenuShortcutClassName","ConfigurableDropdownMenu"],"mappings":"s1DAgHA,SAASA,EAAa,CAAE,GAAGC,GAA4B,CACrD,OACEC,EAAAA,IAACC,EAAsB,KAAtB,CAC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A4B,EAAK,KAAA,CAAM,CAAA,EACpB,EACA5B,EAAAA,IAACoB,EAAAA,KAAA,CACC,KAAK,cACL,KAAK,QACL,UAAWC,EAAAA,yBAAA,CAAA,CACb,EACF,EACArB,EAAAA,IAACmC,EAAA,CACE,SAAAP,EAAK,SAAS,IAAKa,GAAUJ,EAAiBI,EAAOH,CAAQ,CAAC,CAAA,CACjE,CAAA,CAAA,EAd8BC,CAehC,EAKFrB,EAAAA,KAACT,EAAA,CAEC,SAAUmB,EAAK,SACf,UAAWrB,EAAAA,GACTqB,EAAK,UACH;AAAA,6CAEFA,EAAK,OAAS,iBAAA,EAEhB,SAAWT,GAAU,CACnB,GAAIS,EAAK,SAAU,CACjBT,EAAM,eAAA,EACN,MACF,CAEAS,EAAK,WAAA,EACLU,IAAWV,CAAI,CACjB,EAEC,SAAA,CAAAY,EACDxC,EAAAA,IAAC,OAAA,CACC,UAAWO,EAAAA,GACTmC,EAAAA,8BACAd,EAAK,UAAYe,EAAAA,qCAAA,EAGlB,SAAAf,EAAK,KAAA,CAAA,EAEPA,EAAK,UAAY,CAACA,EAAK,SACtB5B,EAAAA,IAAC,OAAA,CAAK,UAAW4C,EAAAA,8BAAgC,SAAAhB,EAAK,QAAA,CAAS,EAC7D,IAAA,CAAA,EA7BCW,CAAA,CAgCX,CAEA,SAASM,EAAyB,CAChC,QAAAtB,EACA,MAAAC,EACA,SAAAc,EACA,aAAAZ,CACF,EAAkC,CAChC,cACG5B,EAAA,CACC,SAAA,CAAAE,EAAAA,IAACE,EAAA,CAAoB,QAAO,GAAE,SAAAqB,EAAQ,EACtCvB,EAAAA,IAACG,EAAA,CAAqB,GAAGuB,EACtB,SAAAF,EAAM,IAAKI,GAASS,EAAiBT,EAAMU,CAAQ,CAAC,CAAA,CACvD,CAAA,EACF,CAEJ"}
|
|
1
|
+
{"version":3,"file":"components-ui-dropdown-menu-dropdown-menu.cjs","sources":["../src/components/ui/dropdown-menu/dropdown-menu.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef, ComponentRef, ReactNode, Ref } from \"react\";\nimport { DropdownMenu as DropdownMenuPrimitive } from \"radix-ui\";\nimport type { IconName } from \"phosphor-strokes-icons/by-name\";\n\nimport { Icon } from \"@/components/ui/icon\";\nimport { cn } from \"@/lib/utils\";\nimport {\n dropdownMenuContentClassName,\n dropdownMenuIconClassName,\n dropdownMenuItemClassName,\n dropdownMenuLabelClassName,\n dropdownMenuSeparatorClassName,\n dropdownMenuShortcutClassName,\n dropdownMenuSubTriggerClassName,\n dropdownMenuItemTextClassName,\n dropdownMenuReadonlyItemTextClassName,\n} from \"./dropdown-menu.styles\";\n\ntype DropdownMenuRef = ComponentRef<typeof DropdownMenuPrimitive.Root>;\ntype DropdownMenuProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Root> & {\n ref?: Ref<DropdownMenuRef>;\n};\n\ntype DropdownMenuTriggerRef = ComponentRef<typeof DropdownMenuPrimitive.Trigger>;\ntype DropdownMenuTriggerProps = ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Trigger\n> & {\n ref?: Ref<DropdownMenuTriggerRef>;\n};\n\ntype DropdownMenuContentRef = ComponentRef<typeof DropdownMenuPrimitive.Content>;\ntype DropdownMenuContentProps = ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Content\n> & {\n ref?: Ref<DropdownMenuContentRef>;\n};\n\ntype DropdownMenuItemRef = ComponentRef<typeof DropdownMenuPrimitive.Item>;\ntype DropdownMenuItemProps = ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Item\n> & {\n ref?: Ref<DropdownMenuItemRef>;\n};\n\ntype DropdownMenuCheckboxItemRef = ComponentRef<\n typeof DropdownMenuPrimitive.CheckboxItem\n>;\ntype DropdownMenuCheckboxItemProps = ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.CheckboxItem\n> & {\n ref?: Ref<DropdownMenuCheckboxItemRef>;\n itemIndicator?: ReactNode;\n closeOnSelect?: boolean;\n};\n\ntype DropdownMenuLabelRef = ComponentRef<typeof DropdownMenuPrimitive.Label>;\ntype DropdownMenuLabelProps = ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Label\n> & {\n ref?: Ref<DropdownMenuLabelRef>;\n};\n\ntype DropdownMenuSeparatorRef = ComponentRef<typeof DropdownMenuPrimitive.Separator>;\ntype DropdownMenuSeparatorProps = ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Separator\n> & {\n ref?: Ref<DropdownMenuSeparatorRef>;\n};\n\ntype DropdownMenuSubTriggerRef = ComponentRef<typeof DropdownMenuPrimitive.SubTrigger>;\ntype DropdownMenuSubTriggerProps = ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.SubTrigger\n> & {\n ref?: Ref<DropdownMenuSubTriggerRef>;\n};\n\ntype DropdownMenuSubContentRef = ComponentRef<typeof DropdownMenuPrimitive.SubContent>;\ntype DropdownMenuSubContentProps = ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.SubContent\n> & {\n ref?: Ref<DropdownMenuSubContentRef>;\n};\n\ntype DropdownMenuCheckboxOption = {\n key: string;\n label: ReactNode;\n checked: boolean;\n disabled?: boolean;\n className?: string;\n checkedClassName?: string;\n textValue?: string;\n itemIndicator?: ReactNode;\n endAdornment?: ReactNode;\n checkedEndAdornment?: ReactNode;\n};\n\ntype CheckboxDropdownMenuProps = {\n trigger: ReactNode;\n items: DropdownMenuCheckboxOption[];\n onItemCheckedChange: (key: string, checked: boolean) => void;\n contentProps?: Omit<DropdownMenuContentProps, \"children\">;\n keepOpenOnItemSelect?: boolean;\n};\n\nfunction DropdownMenu({ ...props }: DropdownMenuProps) {\n return (\n <DropdownMenuPrimitive.Root\n data-slot=\"dropdown-menu\"\n {...props}\n />\n );\n}\n\nfunction DropdownMenuTrigger({ ...props }: DropdownMenuTriggerProps) {\n return (\n <DropdownMenuPrimitive.Trigger\n data-slot=\"dropdown-menu-trigger\"\n {...props}\n />\n );\n}\n\nfunction DropdownMenuContent({\n className,\n sideOffset = 4,\n align = \"end\",\n ...props\n}: DropdownMenuContentProps) {\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n data-slot=\"dropdown-menu-content\"\n sideOffset={sideOffset}\n align={align}\n className={cn(dropdownMenuContentClassName, className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n );\n}\n\nfunction DropdownMenuItem({ className, ...props }: DropdownMenuItemProps) {\n return (\n <DropdownMenuPrimitive.Item\n data-slot=\"dropdown-menu-item\"\n className={cn(dropdownMenuItemClassName, className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuCheckboxItem({\n className,\n children,\n checked,\n itemIndicator,\n closeOnSelect = true,\n onSelect,\n ...props\n}: DropdownMenuCheckboxItemProps) {\n const shouldRenderIndicator = itemIndicator !== null;\n\n return (\n <DropdownMenuPrimitive.CheckboxItem\n data-slot=\"dropdown-menu-checkbox-item\"\n className={cn(dropdownMenuItemClassName, \"border-none\", className)}\n checked={checked}\n onSelect={(event) => {\n onSelect?.(event);\n\n if (!closeOnSelect && !event.defaultPrevented) {\n event.preventDefault();\n }\n }}\n {...props}\n >\n {shouldRenderIndicator && (\n <DropdownMenuPrimitive.ItemIndicator>\n {itemIndicator ?? (\n <Icon\n type=\"check\"\n size=\"small\"\n className={dropdownMenuIconClassName}\n />\n )}\n </DropdownMenuPrimitive.ItemIndicator>\n )}\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n );\n}\n\nfunction CheckboxDropdownMenu({\n trigger,\n items,\n onItemCheckedChange,\n contentProps,\n keepOpenOnItemSelect = true,\n}: CheckboxDropdownMenuProps) {\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>{trigger}</DropdownMenuTrigger>\n <DropdownMenuContent {...contentProps}>\n {items.map((item) => (\n <DropdownMenuCheckboxItem\n key={item.key}\n checked={item.checked}\n disabled={item.disabled}\n className={cn(item.className, item.checked && item.checkedClassName)}\n textValue={item.textValue}\n itemIndicator={item.itemIndicator}\n closeOnSelect={!keepOpenOnItemSelect}\n onCheckedChange={(checked) => onItemCheckedChange(item.key, checked === true)}\n >\n <div\n className={cn(\n \"flex w-full items-center gap-2\",\n (item.endAdornment || item.checkedEndAdornment) && \"justify-between\",\n )}\n >\n <span>{item.label}</span>\n {item.checked\n ? (item.checkedEndAdornment ?? item.endAdornment)\n : item.endAdornment}\n </div>\n </DropdownMenuCheckboxItem>\n ))}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n\nfunction DropdownMenuLabel({ className, ...props }: DropdownMenuLabelProps) {\n return (\n <DropdownMenuPrimitive.Label\n data-slot=\"dropdown-menu-label\"\n className={cn(dropdownMenuLabelClassName, className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuSeparator({ className, ...props }: DropdownMenuSeparatorProps) {\n return (\n <DropdownMenuPrimitive.Separator\n data-slot=\"dropdown-menu-separator\"\n className={cn(dropdownMenuSeparatorClassName, className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuSubTrigger({ className, ...props }: DropdownMenuSubTriggerProps) {\n return (\n <DropdownMenuPrimitive.SubTrigger\n data-slot=\"dropdown-menu-sub-trigger\"\n className={cn(dropdownMenuSubTriggerClassName, className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuSubContent({\n className,\n sideOffset = 4,\n ...props\n}: DropdownMenuSubContentProps) {\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.SubContent\n data-slot=\"dropdown-menu-sub-content\"\n sideOffset={sideOffset}\n className={cn(dropdownMenuContentClassName, className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n );\n}\n\ntype DropdownMenuConfigBase = {\n id?: string;\n disabled?: boolean;\n readOnly?: boolean;\n};\n\ntype DropdownMenuConfigLabel = DropdownMenuConfigBase & {\n type: \"label\";\n label: string;\n};\n\ntype DropdownMenuConfigSeparator = DropdownMenuConfigBase & {\n type: \"separator\";\n};\n\ntype DropdownMenuConfigItem = DropdownMenuConfigBase & {\n type?: \"item\";\n label: string;\n icon?: ReactNode;\n iconType?: IconName;\n shortcut?: string;\n alert?: boolean;\n children?: DropdownMenuConfigNode[];\n onSelect?: () => void;\n};\n\ntype DropdownMenuConfigNode =\n | DropdownMenuConfigLabel\n | DropdownMenuConfigSeparator\n | DropdownMenuConfigItem;\n\ntype ConfigurableDropdownMenuProps = {\n trigger: ReactNode;\n items: DropdownMenuConfigNode[];\n onAction?: (item: DropdownMenuConfigItem) => void;\n contentProps?: Omit<DropdownMenuContentProps, \"children\">;\n};\n\nfunction renderLeadingIcon(item: DropdownMenuConfigItem) {\n if (item.icon) {\n return <span className={dropdownMenuIconClassName}>{item.icon}</span>;\n }\n\n if (item.iconType) {\n return (\n <Icon\n type={item.iconType}\n className={cn(dropdownMenuIconClassName, item.alert && \"text-error-text\")}\n />\n );\n }\n\n return null;\n}\n\nfunction renderConfigNode(\n item: DropdownMenuConfigNode,\n onAction?: (item: DropdownMenuConfigItem) => void,\n) {\n const key = item.id ?? item.type + (\"label\" in item ? item.label : \"\");\n\n if (item.type === \"separator\") {\n return <DropdownMenuSeparator key={key} />;\n }\n\n if (item.type === \"label\") {\n return <DropdownMenuLabel key={key}>{item.label}</DropdownMenuLabel>;\n }\n\n const iconNode = item.readOnly ? null : renderLeadingIcon(item);\n\n if (item.children?.length) {\n return (\n <DropdownMenuPrimitive.Sub key={key}>\n <DropdownMenuSubTrigger disabled={item.disabled}>\n <span className=\"flex items-center gap-2\">\n {iconNode}\n <span>{item.label}</span>\n </span>\n <Icon\n type=\"caret-right\"\n size=\"small\"\n className={dropdownMenuIconClassName}\n />\n </DropdownMenuSubTrigger>\n <DropdownMenuSubContent>\n {item.children.map((child) => renderConfigNode(child, onAction))}\n </DropdownMenuSubContent>\n </DropdownMenuPrimitive.Sub>\n );\n }\n\n return (\n <DropdownMenuItem\n key={key}\n disabled={item.disabled}\n className={cn(\n item.readOnly &&\n `pointer-events-none cursor-default justify-center\n data-[highlighted]:bg-transparent`,\n item.alert && \"text-error-text\",\n )}\n onSelect={(event) => {\n if (item.readOnly) {\n event.preventDefault();\n return;\n }\n\n item.onSelect?.();\n onAction?.(item);\n }}\n >\n {iconNode}\n <span\n className={cn(\n dropdownMenuItemTextClassName,\n item.readOnly && dropdownMenuReadonlyItemTextClassName,\n )}\n >\n {item.label}\n </span>\n {item.shortcut && !item.readOnly ? (\n <span className={dropdownMenuShortcutClassName}>{item.shortcut}</span>\n ) : null}\n </DropdownMenuItem>\n );\n}\n\nfunction ConfigurableDropdownMenu({\n trigger,\n items,\n onAction,\n contentProps,\n}: ConfigurableDropdownMenuProps) {\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>{trigger}</DropdownMenuTrigger>\n <DropdownMenuContent {...contentProps}>\n {items.map((item) => renderConfigNode(item, onAction))}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n\nexport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuCheckboxItem,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPrimitive,\n DropdownMenuSeparator,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n ConfigurableDropdownMenu,\n CheckboxDropdownMenu,\n};\n\nexport type {\n ConfigurableDropdownMenuProps,\n DropdownMenuConfigItem,\n DropdownMenuConfigLabel,\n DropdownMenuConfigNode,\n DropdownMenuConfigSeparator,\n DropdownMenuContentProps,\n DropdownMenuCheckboxItemProps,\n DropdownMenuCheckboxOption,\n DropdownMenuItemProps,\n DropdownMenuLabelProps,\n DropdownMenuProps,\n DropdownMenuSeparatorProps,\n DropdownMenuSubContentProps,\n DropdownMenuSubTriggerProps,\n DropdownMenuTriggerProps,\n CheckboxDropdownMenuProps,\n};\n"],"names":["DropdownMenu","props","jsx","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuContent","className","sideOffset","align","cn","dropdownMenuContentClassName","DropdownMenuItem","dropdownMenuItemClassName","DropdownMenuCheckboxItem","children","checked","itemIndicator","closeOnSelect","onSelect","shouldRenderIndicator","jsxs","event","Icon","dropdownMenuIconClassName","CheckboxDropdownMenu","trigger","items","onItemCheckedChange","contentProps","keepOpenOnItemSelect","item","DropdownMenuLabel","dropdownMenuLabelClassName","DropdownMenuSeparator","dropdownMenuSeparatorClassName","DropdownMenuSubTrigger","dropdownMenuSubTriggerClassName","DropdownMenuSubContent","renderLeadingIcon","renderConfigNode","onAction","key","iconNode","child","dropdownMenuItemTextClassName","dropdownMenuReadonlyItemTextClassName","dropdownMenuShortcutClassName","ConfigurableDropdownMenu"],"mappings":"q0DAwGA,SAASA,EAAa,CAAE,GAAGC,GAA4B,CACrD,OACEC,EAAAA,IAACC,EAAsB,KAAtB,CACC,YAAU,gBACT,GAAGF,CAAA,CAAA,CAGV,CAEA,SAASG,EAAoB,CAAE,GAAGH,GAAmC,CACnE,OACEC,EAAAA,IAACC,EAAsB,QAAtB,CACC,YAAU,wBACT,GAAGF,CAAA,CAAA,CAGV,CAEA,SAASI,EAAoB,CAC3B,UAAAC,EACA,WAAAC,EAAa,EACb,MAAAC,EAAQ,MACR,GAAGP,CACL,EAA6B,CAC3B,OACEC,EAAAA,IAACC,EAAsB,OAAtB,CACC,SAAAD,EAAAA,IAACC,EAAsB,QAAtB,CACC,YAAU,wBACV,WAAAI,EACA,MAAAC,EACA,UAAWC,EAAAA,GAAGC,EAAAA,6BAA8BJ,CAAS,EACpD,GAAGL,CAAA,CAAA,EAER,CAEJ,CAEA,SAASU,EAAiB,CAAE,UAAAL,EAAW,GAAGL,GAAgC,CACxE,OACEC,EAAAA,IAACC,EAAsB,KAAtB,CACC,YAAU,qBACV,UAAWM,EAAAA,GAAGG,EAAAA,0BAA2BN,CAAS,EACjD,GAAGL,CAAA,CAAA,CAGV,CAEA,SAASY,EAAyB,CAChC,UAAAP,EACA,SAAAQ,EACA,QAAAC,EACA,cAAAC,EACA,cAAAC,EAAgB,GAChB,SAAAC,EACA,GAAGjB,CACL,EAAkC,CAChC,MAAMkB,EAAwBH,IAAkB,KAEhD,OACEI,EAAAA,KAACjB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