{"version":3,"sources":["../src/motion.ts","../src/components/motion/AnimatedModal.tsx","../src/utils/cn.ts","../src/locale/LocaleProvider.tsx","../src/locale/en.ts","../src/components/motion/use-reduced-motion.ts","../src/components/motion/AnimatedDrawer.tsx","../src/components/drawer/position-styles.ts","../src/components/motion/AnimatedToast.tsx","../src/components/toast/Toast.tsx","../src/utils/deprecate.ts","../src/components/toast/toast-store.ts"],"sourcesContent":["export { AnimatedModal, type AnimatedModalProps } from './components/motion/AnimatedModal'\nexport { AnimatedDrawer, type AnimatedDrawerProps } from './components/motion/AnimatedDrawer'\nexport {\n  AnimatedToastContainer,\n  useAnimatedToast,\n  type AnimatedToastContainerProps,\n} from './components/motion/AnimatedToast'\nexport { useReducedMotion } from './components/motion/use-reduced-motion'\n","import { forwardRef, useEffect, useId, useRef, type HTMLAttributes, type ReactNode } from 'react'\nimport { createPortal } from 'react-dom'\nimport { AnimatePresence, motion } from 'framer-motion'\nimport { cn } from '../../utils/cn'\nimport { useLocale } from '../../locale'\nimport { X } from 'lucide-react'\nimport { useReducedMotion } from './use-reduced-motion'\nimport type { ModalSize } from '../modal/Modal'\n\n// framer-motion redefines these handlers with its own signatures on motion.div,\n// so they are excluded from the passthrough props\ntype MotionConflictProps = 'onDrag' | 'onDragStart' | 'onDragEnd' | 'onAnimationStart'\n\nexport interface AnimatedModalProps extends Omit<\n  HTMLAttributes<HTMLDivElement>,\n  'title' | MotionConflictProps\n> {\n  open: boolean\n  onClose: () => void\n  title?: ReactNode\n  description?: ReactNode\n  size?: ModalSize\n  showCloseButton?: boolean\n  closeOnBackdropClick?: boolean\n  closeOnEscape?: boolean\n  footer?: ReactNode\n}\n\nconst sizeStyles: Record<ModalSize, string> = {\n  sm: 'max-w-sm',\n  md: 'max-w-md',\n  lg: 'max-w-lg',\n  xl: 'max-w-xl',\n  '2xl': 'max-w-2xl',\n  '3xl': 'max-w-3xl',\n  '4xl': 'max-w-4xl',\n  full: 'max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]',\n}\n\n/** Modal dialog with framer-motion scale and fade animations. */\nexport const AnimatedModal = forwardRef<HTMLDivElement, AnimatedModalProps>(\n  (\n    {\n      open,\n      onClose,\n      title,\n      description,\n      size = 'md',\n      showCloseButton = true,\n      closeOnBackdropClick = true,\n      closeOnEscape = true,\n      footer,\n      children,\n      className,\n      ...rest\n    },\n    ref\n  ) => {\n    const modalRef = useRef<HTMLDivElement>(null)\n    const locale = useLocale()\n    const titleId = useId()\n    const descriptionId = useId()\n    const prefersReducedMotion = useReducedMotion()\n\n    useEffect(() => {\n      if (!open || !closeOnEscape) return\n      const handleEscape = (e: KeyboardEvent) => {\n        if (e.key === 'Escape') onClose()\n      }\n      document.addEventListener('keydown', handleEscape)\n      return () => document.removeEventListener('keydown', handleEscape)\n    }, [open, closeOnEscape, onClose])\n\n    useEffect(() => {\n      if (open) {\n        const originalOverflow = document.body.style.overflow\n        document.body.style.overflow = 'hidden'\n        return () => {\n          document.body.style.overflow = originalOverflow\n        }\n      }\n    }, [open])\n\n    useEffect(() => {\n      if (!open) return\n      const modal = modalRef.current\n      if (!modal) return\n\n      const previouslyFocused = document.activeElement as HTMLElement | null\n\n      const focusableElements = modal.querySelectorAll(\n        'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n      )\n      const firstElement = focusableElements[0] as HTMLElement\n      const lastElement = focusableElements[focusableElements.length - 1] as HTMLElement\n\n      const handleTab = (e: KeyboardEvent) => {\n        if (e.key !== 'Tab') return\n        if (e.shiftKey) {\n          if (document.activeElement === firstElement) {\n            e.preventDefault()\n            lastElement?.focus()\n          }\n        } else {\n          if (document.activeElement === lastElement) {\n            e.preventDefault()\n            firstElement?.focus()\n          }\n        }\n      }\n\n      modal.addEventListener('keydown', handleTab)\n      firstElement?.focus()\n      return () => {\n        modal.removeEventListener('keydown', handleTab)\n        previouslyFocused?.focus?.()\n      }\n    }, [open])\n\n    const duration = prefersReducedMotion ? 0 : 0.2\n\n    const modalContent = (\n      <AnimatePresence>\n        {open && (\n          <div\n            className=\"fixed inset-0 z-50 flex items-center justify-center p-4\"\n            role=\"dialog\"\n            aria-modal=\"true\"\n            aria-labelledby={title ? titleId : undefined}\n            aria-describedby={description ? descriptionId : undefined}\n          >\n            {/* Backdrop */}\n            <motion.div\n              initial={{ opacity: 0 }}\n              animate={{ opacity: 1 }}\n              exit={{ opacity: 0 }}\n              transition={{ duration }}\n              className=\"fixed inset-0 bg-black/50 backdrop-blur-sm\"\n              onClick={closeOnBackdropClick ? onClose : undefined}\n              aria-hidden=\"true\"\n            />\n\n            {/* Modal */}\n            <motion.div\n              ref={(node) => {\n                ;(modalRef as React.MutableRefObject<HTMLDivElement | null>).current = node\n                if (typeof ref === 'function') ref(node)\n                else if (ref) ref.current = node\n              }}\n              initial={{ opacity: 0, scale: 0.95, y: 10 }}\n              animate={{ opacity: 1, scale: 1, y: 0 }}\n              exit={{ opacity: 0, scale: 0.95, y: 10 }}\n              transition={{ duration, ease: [0.16, 1, 0.3, 1] }}\n              className={cn(\n                'bg-card relative z-50 w-full rounded-lg shadow-xl',\n                sizeStyles[size],\n                className\n              )}\n              {...rest}\n            >\n              {(title || showCloseButton) && (\n                <div className=\"flex items-start justify-between gap-4 border-b p-4\">\n                  <div className=\"space-y-1\">\n                    {title && (\n                      <h2 id={titleId} className=\"text-lg leading-none font-semibold\">\n                        {title}\n                      </h2>\n                    )}\n                    {description && (\n                      <p id={descriptionId} className=\"text-muted-foreground text-sm\">\n                        {description}\n                      </p>\n                    )}\n                  </div>\n                  {showCloseButton && (\n                    <button\n                      onClick={onClose}\n                      className=\"text-muted-foreground hover:text-foreground focus:ring-ring shrink-0 rounded-md p-1 focus:ring-2 focus:outline-none\"\n                    >\n                      <X className=\"h-5 w-5\" />\n                      <span className=\"sr-only\">{locale.modal.close}</span>\n                    </button>\n                  )}\n                </div>\n              )}\n              <div className=\"p-4\">{children}</div>\n              {footer && (\n                <div className=\"flex items-center justify-end gap-2 border-t p-4\">{footer}</div>\n              )}\n            </motion.div>\n          </div>\n        )}\n      </AnimatePresence>\n    )\n\n    return createPortal(modalContent, document.body)\n  }\n)\n\nAnimatedModal.displayName = 'AnimatedModal'\n","import { type ClassValue, clsx } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nexport function cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs))\n}\n","import { createContext, useContext, useMemo, type ReactNode } from 'react'\nimport type { ArkiteLocale, PartialArkiteLocale } from './types'\nimport { enUS } from './en'\n\nconst LocaleContext = createContext<ArkiteLocale>(enUS)\n\n/**\n * Merge a (possibly partial) locale over the English defaults, one\n * section deep — matching PartialArkiteLocale's shape.\n */\nfunction mergeLocale(override?: PartialArkiteLocale): ArkiteLocale {\n  if (!override) return enUS\n  const merged = { ...enUS } as Record<string, unknown>\n  for (const [key, value] of Object.entries(override)) {\n    if (value === undefined) continue\n    const base = (enUS as unknown as Record<string, unknown>)[key]\n    merged[key] =\n      typeof value === 'object' && !Array.isArray(value) ? { ...(base as object), ...value } : value\n  }\n  return merged as unknown as ArkiteLocale\n}\n\nexport interface LocaleProviderProps {\n  /** Full or partial locale — missing keys fall back to English. */\n  locale?: PartialArkiteLocale\n  children: ReactNode\n}\n\n/**\n * Provides component strings (placeholders, empty states, aria-labels)\n * for the whole subtree. Without a provider everything renders in\n * English; explicit component props always win over locale values.\n *\n * @example\n * ```tsx\n * import { LocaleProvider, zhTW } from '@arkite-ui/core'\n *\n * <LocaleProvider locale={zhTW}>\n *   <App />\n * </LocaleProvider>\n * ```\n */\nexport function LocaleProvider({ locale, children }: LocaleProviderProps) {\n  const value = useMemo(() => mergeLocale(locale), [locale])\n  return <LocaleContext.Provider value={value}>{children}</LocaleContext.Provider>\n}\n\n/** Read the active locale (English defaults when no provider is mounted). */\nexport function useLocale(): ArkiteLocale {\n  return useContext(LocaleContext)\n}\n","import type { ArkiteLocale } from './types'\n\n/**\n * English (US) — the built-in default. Values must stay identical to the\n * strings components shipped before the locale system existed, so\n * unwrapped apps render exactly as before.\n */\nexport const enUS: ArkiteLocale = {\n  dateLocale: 'en-US',\n\n  calendar: {\n    previousMonth: 'Previous month',\n    nextMonth: 'Next month',\n    weekdays: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n    weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n  },\n  datePicker: {\n    placeholder: 'Select date',\n    openCalendar: 'Open calendar',\n    today: 'Today',\n    clearDate: 'Clear date',\n  },\n  dateRangePicker: {\n    startLabel: 'Start',\n    endLabel: 'End',\n    clearDates: 'Clear dates',\n    clear: 'Clear',\n    selectRange: 'Select date range',\n    selectStart: 'Select start date',\n    selectEnd: 'Select end date',\n  },\n  searchInput: {\n    clear: 'Clear search',\n  },\n  filterBar: {\n    searchPlaceholder: 'Search...',\n  },\n  combobox: {\n    placeholder: 'Select...',\n    searchPlaceholder: 'Search...',\n    emptyMessage: 'No results found.',\n    loading: 'Loading...',\n  },\n  sheetSelect: {\n    placeholder: 'Select…',\n  },\n  pagination: {\n    label: 'Pagination',\n    rowsPerPage: 'Rows per page:',\n    firstPage: 'First page',\n    previousPage: 'Previous page',\n    nextPage: 'Next page',\n    lastPage: 'Last page',\n    pageLabel: (page) => `Page ${page}`,\n    rangeInfo: (start, end, total) => `${start}-${end} of ${total}`,\n  },\n  dataTable: {\n    emptyMessage: 'No results found.',\n    toggleColumns: 'Toggle columns',\n    selectAllRows: 'Select all rows',\n    selectRow: (rowKey) => `Select row ${rowKey}`,\n    columns: 'Columns',\n    expand: 'Expand',\n    expandRow: 'Expand row',\n    collapseRow: 'Collapse row',\n    sortBy: (header) => `Sort by ${header}`,\n    sortColumn: 'Sort column',\n    filterBy: (header) => `Filter ${header}`,\n    clearFilter: 'Clear',\n    loading: 'Loading...',\n    showing: (count, total) => `Showing ${count} of ${total}`,\n  },\n  emptyState: {\n    noResultsTitle: 'No results found',\n    noResultsDescription: 'Try adjusting your search or filters.',\n    noDataTitle: 'No data yet',\n    noDataDescription: 'Get started by creating your first item.',\n    errorTitle: 'Something went wrong',\n    errorDescription: 'An error occurred while loading the data.',\n    retryLabel: 'Try again',\n  },\n  confirmDialog: {\n    cancelLabel: 'Cancel',\n    confirmLabel: 'Confirm',\n    confirmTitle: 'Are you sure?',\n    confirmDescription: 'This action cannot be undone.',\n    deleteTitle: (itemName) => `Delete ${itemName}?`,\n    deleteFallbackItem: 'this item',\n    deleteDescription:\n      'This action cannot be undone. All associated data will be permanently removed.',\n    deleteLabel: 'Delete',\n  },\n  tenantSwitcher: {\n    allLabel: 'All Tenants',\n    allDescription: 'Platform-wide view',\n    emptyMessage: 'No tenants found',\n    searchPlaceholder: 'Search tenants...',\n  },\n  bulkActionBar: {\n    selected: (count) => `${count} item${count === 1 ? '' : 's'} selected`,\n    deselectAll: 'Deselect all',\n  },\n  numberInput: {\n    increment: 'Increment',\n    decrement: 'Decrement',\n  },\n  copyButton: {\n    copy: 'Copy',\n    copied: 'Copied!',\n    copyAria: 'Copy to clipboard',\n    copiedAria: 'Copied',\n    copyValue: 'Copy value',\n  },\n  modal: {\n    close: 'Close',\n  },\n  drawer: {\n    close: 'Close',\n  },\n  toast: {\n    close: 'Close',\n  },\n  spinner: {\n    loading: 'Loading',\n    loadingText: 'Loading...',\n  },\n  adminLayout: {\n    primaryNavigation: 'Primary',\n    logout: 'Logout',\n    expandMenu: 'Expand menu',\n    bottomNavigation: 'Bottom navigation',\n  },\n  pinInput: {\n    charLabel: (index, length) => `Character ${index} of ${length}`,\n  },\n  viewToggle: {\n    label: 'View mode',\n    tableView: 'Table view',\n    cardView: 'Card view',\n  },\n  commandPalette: {\n    label: 'Command palette',\n  },\n  fileUpload: {\n    uploadFile: 'Upload file',\n    uploadFiles: 'Upload files',\n    uploadImage: 'Upload image',\n    addImage: 'Add image',\n    upload: 'Upload',\n    remove: 'Remove',\n    replace: 'Replace',\n    removeImage: 'Remove image',\n    preview: 'Preview',\n    dropzone: 'Drop files here or click to upload',\n    anyFileType: 'Any file type accepted',\n    acceptedTypes: (accept) => `Accepted: ${accept}`,\n    maxSizeNote: (size) => `Max size: ${size}`,\n    maxSizeHint: (size) => `Max ${size}`,\n    fileTooLarge: (name, size) => `File \"${name}\" exceeds maximum size of ${size}`,\n    fileNotAccepted: (name) => `File \"${name}\" is not an accepted file type`,\n    tooManyFiles: (max) => `Maximum ${max} files allowed`,\n  },\n  virtualList: {\n    label: 'Scrollable list',\n    empty: 'No items',\n    loadingMore: 'Loading more...',\n  },\n  colorPicker: {\n    pickColor: 'Pick a color',\n    hexValue: 'Hex color value',\n    presetColors: 'Preset colors',\n    selectColor: (color) => `Select color ${color}`,\n  },\n  progress: {\n    label: 'Progress',\n  },\n  breadcrumb: {\n    label: 'Breadcrumb',\n  },\n  label: {\n    optional: '(optional)',\n  },\n  passwordInput: {\n    hide: 'Hide password',\n    show: 'Show password',\n  },\n  tagInput: {\n    remove: (tag) => `Remove ${tag}`,\n  },\n  tree: {\n    collapse: 'Collapse',\n    expand: 'Expand',\n    toggle: 'Toggle',\n  },\n  filterSelect: {\n    all: 'All',\n  },\n  pageHeader: {\n    back: 'Go back',\n  },\n  sidebar: {\n    toggle: 'Toggle sidebar',\n  },\n  actionButtons: {\n    label: 'Actions',\n  },\n}\n","import { useEffect, useState } from 'react'\n\n/**\n * Hook that detects user's prefers-reduced-motion setting.\n * Returns true when the user prefers reduced motion.\n */\nexport function useReducedMotion(): boolean {\n  const [prefersReducedMotion, setPrefersReducedMotion] = useState(() => {\n    if (typeof window === 'undefined') return false\n    return window.matchMedia('(prefers-reduced-motion: reduce)').matches\n  })\n\n  useEffect(() => {\n    const mediaQuery = window.matchMedia('(prefers-reduced-motion: reduce)')\n    const handler = (event: MediaQueryListEvent) => {\n      setPrefersReducedMotion(event.matches)\n    }\n\n    mediaQuery.addEventListener('change', handler)\n    return () => mediaQuery.removeEventListener('change', handler)\n  }, [])\n\n  return prefersReducedMotion\n}\n","import { forwardRef, useEffect, useId, useRef, type HTMLAttributes, type ReactNode } from 'react'\nimport { createPortal } from 'react-dom'\nimport { AnimatePresence, motion } from 'framer-motion'\nimport { cn } from '../../utils/cn'\nimport { useLocale } from '../../locale'\nimport { X } from 'lucide-react'\nimport { useReducedMotion } from './use-reduced-motion'\nimport type { DrawerPosition, DrawerSize } from '../drawer/Drawer'\nimport { drawerPositionStyles } from '../drawer/position-styles'\n\n// framer-motion redefines these handlers with its own signatures on motion.div,\n// so they are excluded from the passthrough props\ntype MotionConflictProps = 'onDrag' | 'onDragStart' | 'onDragEnd' | 'onAnimationStart'\n\nexport interface AnimatedDrawerProps extends Omit<\n  HTMLAttributes<HTMLDivElement>,\n  'title' | MotionConflictProps\n> {\n  open: boolean\n  onClose: () => void\n  position?: DrawerPosition\n  size?: DrawerSize\n  title?: ReactNode\n  description?: ReactNode\n  showCloseButton?: boolean\n  closeOnBackdropClick?: boolean\n  closeOnEscape?: boolean\n  footer?: ReactNode\n}\n\nconst sizeStyles: Record<DrawerPosition, Record<DrawerSize, string>> = {\n  left: {\n    sm: 'w-64',\n    md: 'w-80',\n    lg: 'w-96',\n    xl: 'w-[480px]',\n    '2xl': 'w-[600px]',\n    '3xl': 'w-[720px]',\n    '4xl': 'w-[900px]',\n    '5xl': 'w-[1024px]',\n    '6xl': 'w-[1200px]',\n    full: 'w-screen',\n  },\n  right: {\n    sm: 'w-64',\n    md: 'w-80',\n    lg: 'w-96',\n    xl: 'w-[480px]',\n    '2xl': 'w-[600px]',\n    '3xl': 'w-[720px]',\n    '4xl': 'w-[900px]',\n    '5xl': 'w-[1024px]',\n    '6xl': 'w-[1200px]',\n    full: 'w-screen',\n  },\n  top: {\n    sm: 'h-32',\n    md: 'h-48',\n    lg: 'h-64',\n    xl: 'h-96',\n    '2xl': 'h-[400px]',\n    '3xl': 'h-[500px]',\n    '4xl': 'h-[600px]',\n    '5xl': 'h-[700px]',\n    '6xl': 'h-[800px]',\n    full: 'h-screen',\n  },\n  bottom: {\n    sm: 'h-32',\n    md: 'h-48',\n    lg: 'h-64',\n    xl: 'h-96',\n    '2xl': 'h-[400px]',\n    '3xl': 'h-[500px]',\n    '4xl': 'h-[600px]',\n    '5xl': 'h-[700px]',\n    '6xl': 'h-[800px]',\n    full: 'h-screen',\n  },\n}\n\nconst slideVariants: Record<\n  DrawerPosition,\n  { hidden: Record<string, number>; visible: Record<string, number> }\n> = {\n  left: { hidden: { x: -100 }, visible: { x: 0 } },\n  right: { hidden: { x: 100 }, visible: { x: 0 } },\n  top: { hidden: { y: -100 }, visible: { y: 0 } },\n  bottom: { hidden: { y: 100 }, visible: { y: 0 } },\n}\n\n/** Animated slide-in drawer panel with framer-motion transitions. */\nexport const AnimatedDrawer = forwardRef<HTMLDivElement, AnimatedDrawerProps>(\n  (\n    {\n      open,\n      onClose,\n      position = 'right',\n      size = 'md',\n      title,\n      description,\n      showCloseButton = true,\n      closeOnBackdropClick = true,\n      closeOnEscape = true,\n      footer,\n      children,\n      className,\n      ...rest\n    },\n    ref\n  ) => {\n    const drawerRef = useRef<HTMLDivElement>(null)\n    const locale = useLocale()\n    const titleId = useId()\n    const descriptionId = useId()\n    const prefersReducedMotion = useReducedMotion()\n\n    useEffect(() => {\n      if (!open || !closeOnEscape) return\n      const handleEscape = (e: KeyboardEvent) => {\n        if (e.key === 'Escape') onClose()\n      }\n      document.addEventListener('keydown', handleEscape)\n      return () => document.removeEventListener('keydown', handleEscape)\n    }, [open, closeOnEscape, onClose])\n\n    useEffect(() => {\n      if (open) {\n        const originalOverflow = document.body.style.overflow\n        document.body.style.overflow = 'hidden'\n        return () => {\n          document.body.style.overflow = originalOverflow\n        }\n      }\n    }, [open])\n\n    useEffect(() => {\n      if (!open) return\n      const drawer = drawerRef.current\n      if (!drawer) return\n\n      const previouslyFocused = document.activeElement as HTMLElement | null\n\n      const focusableElements = drawer.querySelectorAll(\n        'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n      )\n      const firstElement = focusableElements[0] as HTMLElement\n      const lastElement = focusableElements[focusableElements.length - 1] as HTMLElement\n\n      const handleTab = (e: KeyboardEvent) => {\n        if (e.key !== 'Tab') return\n        if (e.shiftKey) {\n          if (document.activeElement === firstElement) {\n            e.preventDefault()\n            lastElement?.focus()\n          }\n        } else {\n          if (document.activeElement === lastElement) {\n            e.preventDefault()\n            firstElement?.focus()\n          }\n        }\n      }\n\n      drawer.addEventListener('keydown', handleTab)\n      firstElement?.focus()\n      return () => {\n        drawer.removeEventListener('keydown', handleTab)\n        previouslyFocused?.focus?.()\n      }\n    }, [open])\n\n    const duration = prefersReducedMotion ? 0 : 0.3\n    const variant = slideVariants[position]\n\n    // Use percentage-based slide for smooth feel\n    const slideInitial =\n      position === 'left' || position === 'right'\n        ? { x: `${variant.hidden.x}%` }\n        : { y: `${variant.hidden.y}%` }\n\n    const slideAnimate =\n      position === 'left' || position === 'right'\n        ? { x: `${variant.visible.x}%` }\n        : { y: `${variant.visible.y}%` }\n\n    const drawerContent = (\n      <AnimatePresence>\n        {open && (\n          <div\n            className=\"fixed inset-0 z-50\"\n            role=\"dialog\"\n            aria-modal=\"true\"\n            aria-labelledby={title ? titleId : undefined}\n            aria-describedby={description ? descriptionId : undefined}\n          >\n            {/* Backdrop */}\n            <motion.div\n              initial={{ opacity: 0 }}\n              animate={{ opacity: 1 }}\n              exit={{ opacity: 0 }}\n              transition={{ duration }}\n              className=\"fixed inset-0 bg-black/50\"\n              onClick={closeOnBackdropClick ? onClose : undefined}\n              aria-hidden=\"true\"\n            />\n\n            {/* Drawer */}\n            <motion.div\n              ref={(node) => {\n                ;(drawerRef as React.MutableRefObject<HTMLDivElement | null>).current = node\n                if (typeof ref === 'function') ref(node)\n                else if (ref) ref.current = node\n              }}\n              initial={{ ...slideInitial, opacity: prefersReducedMotion ? 0 : 1 }}\n              animate={{ ...slideAnimate, opacity: 1 }}\n              exit={{ ...slideInitial, opacity: prefersReducedMotion ? 0 : 1 }}\n              transition={{ duration, ease: [0.32, 0.72, 0, 1] }}\n              className={cn(\n                'bg-card fixed flex flex-col shadow-xl',\n                drawerPositionStyles[position],\n                sizeStyles[position][size],\n                className\n              )}\n              {...rest}\n            >\n              {(title || showCloseButton) && (\n                <div className=\"flex items-start justify-between gap-4 border-b p-4\">\n                  <div className=\"space-y-1\">\n                    {title && (\n                      <h2 id={titleId} className=\"text-lg leading-none font-semibold\">\n                        {title}\n                      </h2>\n                    )}\n                    {description && (\n                      <p id={descriptionId} className=\"text-muted-foreground text-sm\">\n                        {description}\n                      </p>\n                    )}\n                  </div>\n                  {showCloseButton && (\n                    <button\n                      onClick={onClose}\n                      className=\"text-muted-foreground hover:text-foreground focus:ring-ring shrink-0 rounded-md p-1 focus:ring-2 focus:outline-none\"\n                    >\n                      <X className=\"h-5 w-5\" />\n                      <span className=\"sr-only\">{locale.drawer.close}</span>\n                    </button>\n                  )}\n                </div>\n              )}\n              <div className=\"flex-1 overflow-auto p-4\">{children}</div>\n              {footer && (\n                <div className=\"flex items-center justify-end gap-2 border-t p-4\">{footer}</div>\n              )}\n            </motion.div>\n          </div>\n        )}\n      </AnimatePresence>\n    )\n\n    return createPortal(drawerContent, document.body)\n  }\n)\n\nAnimatedDrawer.displayName = 'AnimatedDrawer'\n","import type { DrawerPosition } from './Drawer'\n\n/**\n * Edge anchoring plus the safe-area insets that edge can collide with.\n *\n * A landscape phone puts the notch on the *side*, so a bottom sheet needs\n * left/right insets just as much as a side drawer needs top/bottom ones —\n * handling only `bottom` leaves a clipped column on every rotated device.\n *\n * `env()` resolves to 0 without `viewport-fit=cover`, so this is a no-op on\n * desktop and on any app that has not opted into edge-to-edge rendering.\n * Insets are padding: the panel keeps its `sizeStyles` footprint (border-box)\n * and only its content moves inward.\n *\n * Internal — shared by Drawer and AnimatedDrawer so the two cannot drift.\n * Not re-exported from the barrel.\n */\nexport const drawerPositionStyles: Record<DrawerPosition, string> = {\n  left: 'inset-y-0 left-0 pl-[env(safe-area-inset-left)] pt-[env(safe-area-inset-top)] pb-[env(safe-area-inset-bottom)]',\n  right:\n    'inset-y-0 right-0 pr-[env(safe-area-inset-right)] pt-[env(safe-area-inset-top)] pb-[env(safe-area-inset-bottom)]',\n  top: 'inset-x-0 top-0 pt-[env(safe-area-inset-top)] pl-[env(safe-area-inset-left)] pr-[env(safe-area-inset-right)]',\n  bottom:\n    'inset-x-0 bottom-0 pb-[env(safe-area-inset-bottom)] pl-[env(safe-area-inset-left)] pr-[env(safe-area-inset-right)]',\n}\n","import { useEffect, useMemo, type ReactNode } from 'react'\nimport { AnimatePresence, motion } from 'framer-motion'\nimport { cn } from '../../utils/cn'\nimport { useLocale } from '../../locale'\nimport { X, CheckCircle2, AlertCircle, AlertTriangle, Info } from 'lucide-react'\nimport { useReducedMotion } from './use-reduced-motion'\nimport {\n  useToastStore,\n  type ToastData,\n  type ToastVariant,\n  type ToastPosition,\n} from '../toast/Toast'\n\nconst variantStyles: Record<ToastVariant, string> = {\n  default: 'bg-card border-border',\n  success: 'bg-success-soft border-success-border',\n  destructive: 'bg-destructive-soft border-destructive-border',\n  error: 'bg-destructive-soft border-destructive-border',\n  warning: 'bg-warning-soft border-warning-border',\n  info: 'bg-info-soft border-info-border',\n}\n\nconst variantTextStyles: Record<ToastVariant, string> = {\n  default: 'text-foreground',\n  success: 'text-success-soft-foreground',\n  destructive: 'text-destructive-soft-foreground',\n  error: 'text-destructive-soft-foreground',\n  warning: 'text-warning-soft-foreground',\n  info: 'text-info-soft-foreground',\n}\n\nconst iconMap: Record<ToastVariant, typeof Info | null> = {\n  default: null,\n  success: CheckCircle2,\n  destructive: AlertCircle,\n  error: AlertCircle,\n  warning: AlertTriangle,\n  info: Info,\n}\n\nconst positionStyles: Record<ToastPosition, string> = {\n  'top-right': 'top-4 right-4',\n  'top-left': 'top-4 left-4',\n  'top-center': 'top-4 left-1/2 -translate-x-1/2',\n  'bottom-right': 'bottom-4 right-4',\n  'bottom-left': 'bottom-4 left-4',\n  'bottom-center': 'bottom-4 left-1/2 -translate-x-1/2',\n}\n\n// Slide direction based on position\nfunction getSlideDirection(position: ToastPosition) {\n  if (position.includes('right')) return { x: 100 }\n  if (position.includes('left')) return { x: -100 }\n  if (position.startsWith('top')) return { y: -30 }\n  return { y: 30 }\n}\n\ninterface AnimatedToastItemProps extends ToastData {\n  onClose: () => void\n  position: ToastPosition\n}\n\nfunction AnimatedToastItem({\n  title,\n  description,\n  variant = 'default',\n  duration = 5000,\n  action,\n  onClose,\n  position,\n}: AnimatedToastItemProps) {\n  const locale = useLocale()\n  const prefersReducedMotion = useReducedMotion()\n  const IconComponent = iconMap[variant]\n  const slide = getSlideDirection(position)\n\n  useEffect(() => {\n    if (duration > 0) {\n      const timer = setTimeout(onClose, duration)\n      return () => clearTimeout(timer)\n    }\n  }, [duration, onClose])\n\n  const animDuration = prefersReducedMotion ? 0 : 0.3\n\n  return (\n    <motion.div\n      layout\n      initial={{ opacity: 0, ...slide }}\n      animate={{ opacity: 1, x: 0, y: 0 }}\n      exit={{ opacity: 0, ...slide }}\n      transition={{ duration: animDuration, ease: [0.32, 0.72, 0, 1] }}\n      role=\"alert\"\n      className={cn(\n        'pointer-events-auto flex w-full max-w-sm gap-3 rounded-lg border p-4 shadow-lg',\n        variantStyles[variant],\n        variantTextStyles[variant]\n      )}\n    >\n      {IconComponent && (\n        <div className=\"shrink-0\">\n          <IconComponent className=\"h-5 w-5\" />\n        </div>\n      )}\n      <div className=\"flex-1 space-y-1\">\n        {title && <p className=\"leading-none font-medium\">{title}</p>}\n        {description && <p className=\"text-sm opacity-90\">{description}</p>}\n        {action && (\n          <button\n            onClick={action.onClick}\n            className=\"mt-2 text-sm font-medium underline hover:no-underline\"\n          >\n            {action.label}\n          </button>\n        )}\n      </div>\n      <button onClick={onClose} className=\"shrink-0 rounded-md p-1 opacity-70 hover:opacity-100\">\n        <X className=\"h-4 w-4\" />\n        <span className=\"sr-only\">{locale.toast.close}</span>\n      </button>\n    </motion.div>\n  )\n}\n\nexport interface AnimatedToastContainerProps {\n  position?: ToastPosition\n  className?: string\n}\n\n/** Container that renders animated toast notifications at a configurable screen position. */\nexport function AnimatedToastContainer({\n  position = 'top-right',\n  className,\n}: AnimatedToastContainerProps) {\n  const { toasts, removeToast } = useToastStore()\n\n  return (\n    <div\n      className={cn(\n        'pointer-events-none fixed z-50 flex flex-col gap-2',\n        positionStyles[position],\n        className\n      )}\n    >\n      <AnimatePresence mode=\"popLayout\">\n        {toasts.map((toast) => (\n          <AnimatedToastItem\n            key={toast.id}\n            {...toast}\n            position={position}\n            onClose={() => removeToast(toast.id)}\n          />\n        ))}\n      </AnimatePresence>\n    </div>\n  )\n}\n\n// Re-export useToast from the original for convenience\nexport function useAnimatedToast() {\n  const { addToast, removeToast, clearToasts } = useToastStore()\n\n  const toast = useMemo(() => {\n    const t = Object.assign((options: Omit<ToastData, 'id'>) => addToast(options), {\n      success: (title: ReactNode, description?: ReactNode) =>\n        addToast({ title, description, variant: 'success' as const }),\n      error: (title: ReactNode, description?: ReactNode) =>\n        addToast({ title, description, variant: 'destructive' as const }),\n      warning: (title: ReactNode, description?: ReactNode) =>\n        addToast({ title, description, variant: 'warning' as const }),\n      info: (title: ReactNode, description?: ReactNode) =>\n        addToast({ title, description, variant: 'info' as const }),\n      dismiss: removeToast,\n      clear: clearToasts,\n    })\n    return t\n  }, [addToast, removeToast, clearToasts])\n\n  return toast\n}\n","import { forwardRef, isValidElement, useEffect, useMemo, useState, type ReactNode } from 'react'\nimport { cn } from '../../utils/cn'\nimport { warnDeprecated } from '../../utils/deprecate'\nimport { X, CheckCircle2, AlertCircle, AlertTriangle, Info, Loader2 } from 'lucide-react'\nimport { useToastStore } from './toast-store'\nimport { toast as toastApi, type ToastFromErrorOptions, type ToastOptions } from './toast-api'\n\nexport type ToastVariant =\n  | 'default'\n  | 'success'\n  | 'warning'\n  | 'info'\n  | 'destructive'\n  /** @deprecated use `'destructive'` instead — removed in v1.0 */\n  | 'error'\n\ntype ResolvedToastVariant = Exclude<ToastVariant, 'error'>\nexport type ToastPosition =\n  | 'top-right'\n  | 'top-left'\n  | 'top-center'\n  | 'bottom-right'\n  | 'bottom-left'\n  | 'bottom-center'\n\nexport interface ToastData {\n  id: string\n  title?: ReactNode\n  description?: ReactNode\n  variant?: ToastVariant\n  duration?: number\n  action?: {\n    label: string\n    onClick: () => void\n  }\n  /** Show a loading spinner instead of the variant icon. */\n  isLoading?: boolean\n}\n\nexport { useToastStore }\n\nconst variantStyles: Record<ResolvedToastVariant, string> = {\n  default: 'bg-card border-border',\n  success: 'bg-success-soft border-success-border',\n  destructive: 'bg-destructive-soft border-destructive-border',\n  warning: 'bg-warning-soft border-warning-border',\n  info: 'bg-info-soft border-info-border',\n}\n\nconst variantTextStyles: Record<ResolvedToastVariant, string> = {\n  default: 'text-foreground',\n  success: 'text-success-soft-foreground',\n  destructive: 'text-destructive-soft-foreground',\n  warning: 'text-warning-soft-foreground',\n  info: 'text-info-soft-foreground',\n}\n\nconst iconMap: Record<ResolvedToastVariant, typeof Info | null> = {\n  default: null,\n  success: CheckCircle2,\n  destructive: AlertCircle,\n  warning: AlertTriangle,\n  info: Info,\n}\n\nconst positionStyles: Record<ToastPosition, string> = {\n  'top-right': 'top-4 right-4',\n  'top-left': 'top-4 left-4',\n  'top-center': 'top-4 left-1/2 -translate-x-1/2',\n  'bottom-right': 'bottom-4 right-4',\n  'bottom-left': 'bottom-4 left-4',\n  'bottom-center': 'bottom-4 left-1/2 -translate-x-1/2',\n}\n\nexport interface ToastProps extends ToastData {\n  onClose: () => void\n  className?: string\n}\n\n/** Individual toast notification with auto-dismiss and variant styling. */\nexport function Toast({\n  id: _id,\n  title,\n  description,\n  variant = 'default',\n  duration = 5000,\n  action,\n  isLoading,\n  onClose,\n  className,\n}: ToastProps) {\n  const [isExiting, setIsExiting] = useState(false)\n  if (variant === 'error') {\n    warnDeprecated('Toast', 'variant=\"error\"', 'variant=\"destructive\"')\n  }\n  const resolvedVariant: ResolvedToastVariant = variant === 'error' ? 'destructive' : variant\n  const IconComponent = isLoading ? null : iconMap[resolvedVariant]\n\n  useEffect(() => {\n    if (duration > 0) {\n      const timer = setTimeout(() => {\n        setIsExiting(true)\n        setTimeout(onClose, 200)\n      }, duration)\n      return () => clearTimeout(timer)\n    }\n  }, [duration, onClose])\n\n  const handleClose = () => {\n    setIsExiting(true)\n    setTimeout(onClose, 200)\n  }\n\n  return (\n    <div\n      role=\"alert\"\n      className={cn(\n        'pointer-events-auto flex w-full max-w-sm gap-3 rounded-lg border p-4 shadow-lg transition-all duration-200',\n        variantStyles[resolvedVariant],\n        variantTextStyles[resolvedVariant],\n        isExiting ? 'translate-x-2 opacity-0' : 'translate-x-0 opacity-100',\n        className\n      )}\n    >\n      {isLoading && (\n        <div className=\"shrink-0\">\n          <Loader2 className=\"h-5 w-5 animate-spin\" />\n        </div>\n      )}\n      {IconComponent && (\n        <div className=\"shrink-0\">\n          <IconComponent className=\"h-5 w-5\" />\n        </div>\n      )}\n      <div className=\"flex-1 space-y-1\">\n        {title && <p className=\"leading-none font-medium\">{title}</p>}\n        {description && <p className=\"text-sm opacity-90\">{description}</p>}\n        {action && (\n          <button\n            onClick={action.onClick}\n            className=\"mt-2 text-sm font-medium underline hover:no-underline\"\n          >\n            {action.label}\n          </button>\n        )}\n      </div>\n      <button\n        onClick={handleClose}\n        className=\"shrink-0 rounded-md p-1 opacity-70 hover:opacity-100\"\n      >\n        <X className=\"h-4 w-4\" />\n        <span className=\"sr-only\">Close</span>\n      </button>\n    </div>\n  )\n}\n\nexport interface ToastContainerProps {\n  position?: ToastPosition\n  className?: string\n}\n\n/** Fixed-position container that renders active toasts from the toast store. */\nexport const ToastContainer = forwardRef<HTMLDivElement, ToastContainerProps>(\n  function ToastContainer({ position = 'top-right', className }, ref) {\n    const { toasts, dismissToast } = useToastStore()\n\n    return (\n      <div\n        ref={ref}\n        className={cn(\n          'pointer-events-none fixed z-50 flex flex-col gap-2',\n          positionStyles[position],\n          className\n        )}\n      >\n        {toasts.map((toast) => (\n          <Toast key={toast.id} {...toast} onClose={() => dismissToast(toast.id)} />\n        ))}\n      </div>\n    )\n  }\n)\n\ntype ShorthandOptions = ToastOptions | ReactNode\n\n/**\n * Back-compat: `useToast().success(title, description)` (legacy) is treated as\n * `success(title, { description })` with a dev-only deprecation warning.\n */\nfunction resolveShorthandOptions(\n  method: string,\n  options?: ShorthandOptions\n): ToastOptions | undefined {\n  if (options == null) return undefined\n  if (typeof options === 'object' && !isValidElement(options) && !Array.isArray(options)) {\n    return options as ToastOptions\n  }\n  warnDeprecated('useToast', `${method}(title, description)`, `${method}(title, options)`)\n  return { description: options as ReactNode }\n}\n\n// Hook for using toasts — thin wrapper over the imperative `toast` API (same store)\nexport function useToast() {\n  const toast = useMemo(() => {\n    const t = Object.assign(\n      (options: Omit<ToastData, 'id'>) => useToastStore.getState().addToast(options),\n      {\n        show: (title: ReactNode, options?: ShorthandOptions) =>\n          toastApi.show(title, resolveShorthandOptions('show', options)),\n        success: (title: ReactNode, options?: ShorthandOptions) =>\n          toastApi.success(title, resolveShorthandOptions('success', options)),\n        error: (title: ReactNode, options?: ShorthandOptions) =>\n          toastApi.error(title, resolveShorthandOptions('error', options)),\n        warning: (title: ReactNode, options?: ShorthandOptions) =>\n          toastApi.warning(title, resolveShorthandOptions('warning', options)),\n        info: (title: ReactNode, options?: ShorthandOptions) =>\n          toastApi.info(title, resolveShorthandOptions('info', options)),\n        loading: (title: ReactNode, options?: ToastOptions) => toastApi.loading(title, options),\n        fromError: (err: unknown, options?: ToastFromErrorOptions) =>\n          toastApi.fromError(err, options),\n        dismiss: (id: string) => toastApi.dismiss(id),\n        dismissAll: () => toastApi.dismissAll(),\n        /** @deprecated Use `dismissAll()` instead — removed in v1.0. */\n        clear: () => {\n          warnDeprecated('useToast', 'clear()', 'dismissAll()')\n          toastApi.dismissAll()\n        },\n      }\n    )\n    return t\n  }, [])\n\n  return toast\n}\n","// Replaced statically by bundlers; declared here since the lib tsconfig has no node types.\ndeclare const process: { env: { NODE_ENV?: string } }\n\nconst warned = new Set<string>()\n\n/**\n * Dev-only, once-per-key deprecation warning for renamed props.\n * Aliases warned here are removed in v1.0.\n */\nexport function warnDeprecated(component: string, oldName: string, newName: string) {\n  if (process.env.NODE_ENV === 'production') return\n  const key = `${component}.${oldName}`\n  if (warned.has(key)) return\n  warned.add(key)\n  console.warn(\n    `[arkite-ui] ${component}: \\`${oldName}\\` is deprecated and will be removed in v1.0 — use \\`${newName}\\` instead.`\n  )\n}\n\n/**\n * Clears the once-per-key ledger. Test-only — the dedupe is what keeps a\n * warning from repeating on every render, so each test that asserts on a\n * warning needs a clean slate. Not exported from the package entrypoint.\n */\nexport function __resetWarnings() {\n  warned.clear()\n}\n\n/** Dev-only, once-per-key warning for incorrect prop combinations. */\nexport function warnUsage(component: string, key: string, message: string) {\n  if (process.env.NODE_ENV === 'production') return\n  const fullKey = `${component}.${key}`\n  if (warned.has(fullKey)) return\n  warned.add(fullKey)\n  console.warn(`[arkite-ui] ${component}: ${message}`)\n}\n","import { create } from 'zustand'\nimport type { ToastData } from './Toast'\n\n/** @deprecated Use `ToastData` instead — removed in v1.0. */\nexport type ToastItem = ToastData\n\ninterface ToastStoreState {\n  toasts: ToastData[]\n  addToast: (toast: Omit<ToastData, 'id'>) => string\n  dismissToast: (id: string) => void\n  dismissAllToasts: () => void\n  /** @deprecated Use `dismissToast` instead — removed in v1.0. */\n  removeToast: (id: string) => void\n  /** @deprecated Use `dismissAllToasts` instead — removed in v1.0. */\n  clearToasts: () => void\n}\n\nconst MAX_TOASTS = 5\n\n/** Single shared store behind both `useToast()` and the imperative `toast` API. */\nexport const useToastStore = create<ToastStoreState>((set, get) => ({\n  toasts: [],\n  addToast: (toast) => {\n    const id = crypto.randomUUID?.() ?? Math.random().toString(36).slice(2)\n    set((state) => {\n      const next = [...state.toasts, { ...toast, id }]\n      // Keep only the newest MAX_TOASTS, dismiss oldest when exceeding\n      if (next.length > MAX_TOASTS) {\n        return { toasts: next.slice(next.length - MAX_TOASTS) }\n      }\n      return { toasts: next }\n    })\n    return id\n  },\n  dismissToast: (id) =>\n    set((state) => ({\n      toasts: state.toasts.filter((t) => t.id !== id),\n    })),\n  dismissAllToasts: () => set({ toasts: [] }),\n  removeToast: (id) => get().dismissToast(id),\n  clearToasts: () => get().dismissAllToasts(),\n}))\n\n/** @deprecated Use `useToastStore` instead — removed in v1.0. */\nexport const useImperativeToastStore = useToastStore\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,gBAA0F;AAC1F,uBAA6B;AAC7B,2BAAwC;;;ACFxC,kBAAsC;AACtC,4BAAwB;AAEjB,SAAS,MAAM,QAAsB;AAC1C,aAAO,mCAAQ,kBAAK,MAAM,CAAC;AAC7B;;;ACLA,mBAAmE;;;ACO5D,IAAM,OAAqB;AAAA,EAChC,YAAY;AAAA,EAEZ,UAAU;AAAA,IACR,eAAe;AAAA,IACf,WAAW;AAAA,IACX,UAAU,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,IAAI;AAAA,IACnD,eAAe,CAAC,OAAO,OAAO,OAAO,OAAO,OAAO,OAAO,KAAK;AAAA,EACjE;AAAA,EACA,YAAY;AAAA,IACV,aAAa;AAAA,IACb,cAAc;AAAA,IACd,OAAO;AAAA,IACP,WAAW;AAAA,EACb;AAAA,EACA,iBAAiB;AAAA,IACf,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,aAAa;AAAA,IACb,WAAW;AAAA,EACb;AAAA,EACA,aAAa;AAAA,IACX,OAAO;AAAA,EACT;AAAA,EACA,WAAW;AAAA,IACT,mBAAmB;AAAA,EACrB;AAAA,EACA,UAAU;AAAA,IACR,aAAa;AAAA,IACb,mBAAmB;AAAA,IACnB,cAAc;AAAA,IACd,SAAS;AAAA,EACX;AAAA,EACA,aAAa;AAAA,IACX,aAAa;AAAA,EACf;AAAA,EACA,YAAY;AAAA,IACV,OAAO;AAAA,IACP,aAAa;AAAA,IACb,WAAW;AAAA,IACX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AS,EAAE,OAAO,aAAa,SAAS,UAAmB,CAAC;AAAA,MAC9D,OAAO,CAAC,OAAkB,gBACxB,SAAS,EAAE,OAAO,aAAa,SAAS,cAAuB,CAAC;AAAA,MAClE,SAAS,CAAC,OAAkB,gBAC1B,SAAS,EAAE,OAAO,aAAa,SAAS,UAAmB,CAAC;AAAA,MAC9D,MAAM,CAAC,OAAkB,gBACvB,SAAS,EAAE,OAAO,aAAa,SAAS,OAAgB,CAAC;AAAA,MAC3D,SAAS;AAAA,MACT,OAAO;AAAA,IACT,CAAC;AACD,WAAO;AAAA,EACT,GAAG,CAAC,UAAU,aAAa,WAAW,CAAC;AAEvC,SAAO;AACT;","names":["import_react","import_react","import_jsx_runtime","import_react","import_react_dom","import_framer_motion","import_lucide_react","import_jsx_runtime","sizeStyles","import_react","import_framer_motion","import_lucide_react","import_react","import_lucide_react","import_jsx_runtime","ToastContainer","import_jsx_runtime","variantStyles","variantTextStyles","iconMap","positionStyles"]}