@xploreu/components 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/chunk-2TQHUVNP.js +2 -0
  2. package/dist/chunk-2TQHUVNP.js.map +1 -0
  3. package/dist/{chunk-YZCOEN5Y.js → chunk-7FRAZHPK.js} +2 -2
  4. package/dist/{chunk-YZCOEN5Y.js.map → chunk-7FRAZHPK.js.map} +1 -1
  5. package/dist/chunk-DSH6THYW.js +2 -0
  6. package/dist/chunk-DSH6THYW.js.map +1 -0
  7. package/dist/{chunk-BT5SLUEA.js → chunk-ISGXRZLJ.js} +2 -2
  8. package/dist/{chunk-BT5SLUEA.js.map → chunk-ISGXRZLJ.js.map} +1 -1
  9. package/dist/chunk-IXWAWSD4.js +2 -0
  10. package/dist/chunk-IXWAWSD4.js.map +1 -0
  11. package/dist/chunk-JWKTYYJB.js +2 -0
  12. package/dist/{chunk-HQEFYA3Z.js.map → chunk-JWKTYYJB.js.map} +1 -1
  13. package/dist/chunk-RBLL355H.js +2 -0
  14. package/dist/chunk-RBLL355H.js.map +1 -0
  15. package/dist/{chunk-S2GJ24IN.js → chunk-Y4HXGKZD.js} +2 -2
  16. package/dist/{chunk-S2GJ24IN.js.map → chunk-Y4HXGKZD.js.map} +1 -1
  17. package/dist/chunk-Z67QQMOX.js +2 -0
  18. package/dist/chunk-Z67QQMOX.js.map +1 -0
  19. package/dist/composites/combobox-chip-outside.js +1 -1
  20. package/dist/composites/index.js +1 -1
  21. package/dist/composites/index.js.map +1 -1
  22. package/dist/composites/phone-input.js +1 -1
  23. package/dist/form/form-input.js +1 -1
  24. package/dist/form/index.js +1 -1
  25. package/dist/icons/index.js +1 -1
  26. package/dist/primitives/alert-dialog.d.ts +34 -0
  27. package/dist/primitives/alert-dialog.js +2 -0
  28. package/dist/primitives/alert-dialog.js.map +1 -0
  29. package/dist/primitives/index.d.ts +3 -0
  30. package/dist/primitives/index.js +1 -1
  31. package/dist/primitives/sheet.d.ts +33 -0
  32. package/dist/primitives/sheet.js +2 -0
  33. package/dist/primitives/sheet.js.map +1 -0
  34. package/dist/ui/alert-dialog.d.ts +27 -0
  35. package/dist/ui/alert-dialog.js +2 -0
  36. package/dist/ui/alert-dialog.js.map +1 -0
  37. package/dist/ui/combobox.js +1 -1
  38. package/dist/ui/dialog.d.ts +2 -1
  39. package/dist/ui/dialog.js +1 -1
  40. package/dist/ui/index.d.ts +6 -1
  41. package/dist/ui/index.js +1 -1
  42. package/dist/ui/input.js +1 -1
  43. package/dist/ui/sheet.d.ts +31 -0
  44. package/dist/ui/sheet.js +2 -0
  45. package/dist/ui/sheet.js.map +1 -0
  46. package/package.json +1 -1
  47. package/dist/chunk-6VN6YGMG.js +0 -2
  48. package/dist/chunk-6VN6YGMG.js.map +0 -1
  49. package/dist/chunk-HQEFYA3Z.js +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xploreu/components",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Shared UI components for XploreU apps",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -1,2 +0,0 @@
1
- import {b as b$1,c,g,d,f,h as h$1,i,j,k as k$1,e}from'./chunk-5YDJTHDG.js';import'react';import {XIcon}from'lucide-react';import {cn}from'@xploreu/lib/cn';import {jsx,jsxs}from'react/jsx-runtime';function h(o){return jsx(b$1,{...o})}function k(o){return jsx(c,{...o})}function H(o){return jsx(g,{...o})}function b({className:o,...i}){return jsx(e,{className:cn("fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",o),...i})}function N({className:o,children:i,showCloseButton:d$1=true,closeClassName:y,...u}){return jsxs(d,{children:[jsx(b,{}),jsxs(f,{className:cn("fixed left-[50%] top-[50%] z-50 grid w-[calc(100%-2rem)] max-w-lg translate-x-[-50%] translate-y-[-50%] border border-border-primary bg-bg-primary shadow-xp-lg rounded-xp-card-base overflow-hidden",o),...u,children:[i,d$1&&jsxs(g,{className:cn("ring-offset-neutral-25 focus:ring-neutral-20 data-[state=open]:bg-bg-primary data-[state=open]:text-text-primary absolute top-4 right-5 rounded-xs transition-colors hover:text-text-error-primary-hover focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",y),children:[jsx(XIcon,{}),jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function w({className:o,...i}){return jsx(h$1,{className:cn("px-5 py-4 flex flex-col bg-bg-primary border-b border-border-primary bg-gradient-to-r from-utility-brand-50 to-bg-primary",o),...i})}function B({className:o,...i}){return jsx("div",{"data-slot":"dialog-content",className:cn("px-5 py-4 max-h-[60vh] overflow-y-auto",o),...i})}function F({className:o,...i$1}){return jsx(i,{className:cn("flex gap-2 items-center justify-end bg-bg-primary [&:is(:where([data-slot=dialog-content])~*)]:shadow-[0px_-13px_24px_-12px_var(--color-shadow-2xl-01)] border-t border-border-primary px-4 py-3",o),...i$1})}function _({className:o,...i}){return jsx(j,{className:cn("text-body-bold-1 text-text-primary",o),...i})}function z({className:o,...i}){return jsx(k$1,{className:cn("mt-0.5 text-label-regular-3 text-text-secondary",o),...i})}export{h as a,k as b,H as c,N as d,w as e,B as f,F as g,_ as h,z as i};//# sourceMappingURL=chunk-6VN6YGMG.js.map
2
- //# sourceMappingURL=chunk-6VN6YGMG.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/ui/dialog.tsx"],"names":["Dialog","props","jsx","DialogTrigger","DialogClose","DialogBackdrop","className","cn","DialogPopup","children","showCloseButton","closeClassName","jsxs","DialogPortal","XIcon","DialogHeader","DialogContent","DialogFooter","DialogTitle","DialogDescription"],"mappings":"oMA4BA,SAASA,CAAAA,CAAOC,CAAAA,CAAoB,CAClC,OAAOC,GAAAA,CAACF,GAAAA,CAAA,CAAiB,GAAGC,CAAAA,CAAO,CACrC,CAIA,SAASE,CAAAA,CAAcF,EAA2B,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AA,CAAA,CACC,SAAA,CAAWR,EAAAA,CAAG,2HAAA,CAA6HD,CAAS,CAAA,CACnJ,GAAGL,CAAAA,CACN,CAEJ,CAIA,SAASe,CAAAA,CAAc,CAAE,SAAA,CAAAV,CAAAA,CAAW,GAAGL,CAAM,CAAA,CAAuB,CAClE,OACEC,GAAAA,CAAC,KAAA,CAAA,CACC,WAAA,CAAU,gBAAA,CACV,SAAA,CAAWK,EAAAA,CAAG,wCAAA,CAA0CD,CAAS,CAAA,CAChE,GAAGL,CAAAA,CACN,CAEJ,CAIA,SAASgB,CAAAA,CAAa,CAAE,SAAA,CAAAX,EAAW,GAAGL,GAAM,CAAA,CAAsB,CAChE,OACEC,GAAAA,CAACe,CAAAA,CAAA,CACC,SAAA,CAAWV,EAAAA,CACT,kMAAA,CACAD,CACF,CAAA,CACC,GAAGL,GAAAA,CACN,CAEJ,CAIA,SAASiB,CAAAA,CAAY,CAAE,SAAA,CAAAZ,CAAAA,CAAW,GAAGL,CAAM,CAAA,CAAqB,CAC9D,OACEC,GAAAA,CAACgB,CAAAA,CAAA,CACC,UAAWX,EAAAA,CAAG,oCAAA,CAAsCD,CAAS,CAAA,CAC5D,GAAGL,CAAAA,CACN,CAEJ,CAIA,SAASkB,CAAAA,CAAkB,CAAE,SAAA,CAAAb,CAAAA,CAAW,GAAGL,CAAM,CAAA,CAA2B,CAC1E,OACEC,GAAAA,CAACiB,GAAAA,CAAA,CACC,SAAA,CAAWZ,EAAAA,CAAG,iDAAA,CAAmDD,CAAS,CAAA,CACzE,GAAGL,CAAAA,CACN,CAEJ","file":"chunk-6VN6YGMG.js","sourcesContent":["import * as React from 'react';\r\nimport { XIcon } from 'lucide-react';\r\n\r\nimport {\r\n Dialog as DialogPrimitive,\r\n DialogPopup as DialogPopupPrimitive,\r\n DialogDescription as DialogDescriptionPrimitive,\r\n DialogFooter as DialogFooterPrimitive,\r\n DialogHeader as DialogHeaderPrimitive,\r\n DialogTitle as DialogTitlePrimitive,\r\n DialogTrigger as DialogTriggerPrimitive,\r\n DialogPortal as DialogPortalPrimitive,\r\n DialogBackdrop as DialogBackdropPrimitive,\r\n DialogClose as DialogClosePrimitive,\r\n type DialogProps as DialogPrimitiveProps,\r\n type DialogPopupProps as DialogPopupPrimitiveProps,\r\n type DialogDescriptionProps as DialogDescriptionPrimitiveProps,\r\n type DialogFooterProps as DialogFooterPrimitiveProps,\r\n type DialogHeaderProps as DialogHeaderPrimitiveProps,\r\n type DialogTitleProps as DialogTitlePrimitiveProps,\r\n type DialogTriggerProps as DialogTriggerPrimitiveProps,\r\n type DialogBackdropProps as DialogBackdropPrimitiveProps,\r\n type DialogCloseProps as DialogClosePrimitiveProps,\r\n} from '../primitives/dialog';\r\nimport { cn } from '@xploreu/lib/cn';\r\n\r\ntype DialogProps = DialogPrimitiveProps;\r\n\r\nfunction Dialog(props: DialogProps) {\r\n return <DialogPrimitive {...props} />;\r\n}\r\n\r\ntype DialogTriggerProps = DialogTriggerPrimitiveProps;\r\n\r\nfunction DialogTrigger(props: DialogTriggerProps) {\r\n return <DialogTriggerPrimitive {...props} />;\r\n}\r\n\r\ntype DialogCloseProps = DialogClosePrimitiveProps;\r\n\r\nfunction DialogClose(props: DialogCloseProps) {\r\n return <DialogClosePrimitive {...props} />;\r\n}\r\n\r\ntype DialogBackdropProps = DialogBackdropPrimitiveProps;\r\n\r\nfunction DialogBackdrop({ className, ...props }: DialogBackdropProps) {\r\n return (\r\n <DialogBackdropPrimitive\r\n className={cn('fixed inset-0 z-50 bg-black/50 backdrop-blur-sm', className)}\r\n {...props}\r\n />\r\n );\r\n}\r\n\r\ntype DialogPopupProps = DialogPopupPrimitiveProps & {\r\n showCloseButton?: boolean;\r\n closeClassName?: string;\r\n};\r\n\r\nfunction DialogPopup({\r\n className,\r\n children,\r\n showCloseButton = true,\r\n closeClassName,\r\n ...props\r\n}: DialogPopupProps) {\r\n return (\r\n <DialogPortalPrimitive>\r\n <DialogBackdrop />\r\n <DialogPopupPrimitive\r\n className={cn(\r\n \"fixed left-[50%] top-[50%] z-50 grid w-[calc(100%-2rem)] max-w-lg translate-x-[-50%] translate-y-[-50%] border border-border-primary bg-bg-primary shadow-xp-lg rounded-xp-card-base overflow-hidden\",\r\n className,\r\n )}\r\n {...props}\r\n >\r\n {children}\r\n {showCloseButton && (\r\n <DialogClosePrimitive\r\n className={cn(\r\n \"ring-offset-neutral-25 focus:ring-neutral-20 data-[state=open]:bg-bg-primary data-[state=open]:text-text-primary absolute top-4 right-5 rounded-xs transition-colors hover:text-text-error-primary-hover focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\r\n closeClassName\r\n )}\r\n >\r\n <XIcon />\r\n <span className=\"sr-only\">Close</span>\r\n </DialogClosePrimitive>\r\n )}\r\n </DialogPopupPrimitive>\r\n </DialogPortalPrimitive>\r\n );\r\n}\r\n\r\ntype DialogHeaderProps = DialogHeaderPrimitiveProps;\r\n\r\nfunction DialogHeader({ className, ...props }: DialogHeaderProps) {\r\n return (\r\n <DialogHeaderPrimitive\r\n className={cn(\"px-5 py-4 flex flex-col bg-bg-primary border-b border-border-primary bg-gradient-to-r from-utility-brand-50 to-bg-primary\", className)}\r\n {...props}\r\n />\r\n );\r\n}\r\n\r\ntype DialogContentProps = React.HTMLAttributes<HTMLDivElement>;\r\n\r\nfunction DialogContent({ className, ...props }: DialogContentProps) {\r\n return (\r\n <div\r\n data-slot=\"dialog-content\"\r\n className={cn(\"px-5 py-4 max-h-[60vh] overflow-y-auto\", className)}\r\n {...props}\r\n />\r\n );\r\n}\r\n\r\ntype DialogFooterProps = DialogFooterPrimitiveProps;\r\n\r\nfunction DialogFooter({ className, ...props }: DialogFooterProps) {\r\n return (\r\n <DialogFooterPrimitive\r\n className={cn(\r\n \"flex gap-2 items-center justify-end bg-bg-primary [&:is(:where([data-slot=dialog-content])~*)]:shadow-[0px_-13px_24px_-12px_var(--color-shadow-2xl-01)] border-t border-border-primary px-4 py-3\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n );\r\n}\r\n\r\ntype DialogTitleProps = DialogTitlePrimitiveProps;\r\n\r\nfunction DialogTitle({ className, ...props }: DialogTitleProps) {\r\n return (\r\n <DialogTitlePrimitive\r\n className={cn(\"text-body-bold-1 text-text-primary\", className)}\r\n {...props}\r\n />\r\n );\r\n}\r\n\r\ntype DialogDescriptionProps = DialogDescriptionPrimitiveProps;\r\n\r\nfunction DialogDescription({ className, ...props }: DialogDescriptionProps) {\r\n return (\r\n <DialogDescriptionPrimitive\r\n className={cn(\"mt-0.5 text-label-regular-3 text-text-secondary\", className)}\r\n {...props}\r\n />\r\n );\r\n}\r\n\r\nexport {\r\n Dialog,\r\n DialogTrigger,\r\n DialogClose,\r\n DialogPopup,\r\n DialogHeader,\r\n DialogContent,\r\n DialogFooter,\r\n DialogTitle,\r\n DialogDescription,\r\n type DialogProps,\r\n type DialogTriggerProps,\r\n type DialogCloseProps,\r\n type DialogPopupProps,\r\n type DialogHeaderProps,\r\n type DialogContentProps,\r\n type DialogFooterProps,\r\n type DialogTitleProps,\r\n type DialogDescriptionProps,\r\n};"]}
@@ -1,2 +0,0 @@
1
- //# sourceMappingURL=chunk-HQEFYA3Z.js.map
2
- //# sourceMappingURL=chunk-HQEFYA3Z.js.map