@zovaris/sephiro 1.0.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -10
- package/dist/{Toast-CGHWMJFI.js → Toast-CrL3aSID.js} +98 -43
- package/dist/Toast-CrL3aSID.js.map +1 -0
- package/dist/components.css +189 -146
- package/dist/css/theme-curie.css +1 -1
- package/dist/css/theme-dark.css +1 -1
- package/dist/css/theme-default.css +1 -1
- package/dist/css/theme-fizza.css +1 -1
- package/dist/css/theme-flexoki.css +1 -0
- package/dist/css/theme-light.css +1 -1
- package/dist/css/theme-orquidea.css +1 -0
- package/dist/css/theme-pizarra.css +1 -0
- package/dist/css/theme-rose-pine.css +1 -0
- package/dist/css/theme-tinta.css +1 -0
- package/dist/css/toast.css +67 -1
- package/dist/{index-DRXUXEa8.d.ts → index-oeGST-S6.d.ts} +14 -3
- package/dist/index-oeGST-S6.d.ts.map +1 -0
- package/dist/index.css +665 -212
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/themes.css +450 -66
- package/dist/toast.d.ts +2 -2
- package/dist/toast.js +2 -2
- package/package.json +1 -1
- package/dist/Toast-CGHWMJFI.js.map +0 -1
- package/dist/index-DRXUXEa8.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Toast-CGHWMJFI.js","names":["SonnerToaster"],"sources":["../src/molecules/Toast/spring.tsx","../src/molecules/Toast/index.tsx"],"sourcesContent":["import { CheckIcon, InfoIcon, WarningIcon, XIcon } from \"@phosphor-icons/react\";\nimport { Spinner } from \"@/atoms/Spinner/index.js\";\nimport { cn } from \"@/lib/cn.js\";\nimport { node, type Renderable } from \"@/lib/node.js\";\nimport {\n useEffect,\n useLayoutEffect,\n useRef,\n useState,\n useSyncExternalStore,\n} from \"react\";\nimport { createPortal } from \"react-dom\";\n\nconst DEFAULT_DURATION = 5000;\nconst EXIT_MS = 180;\n\nexport type SpringToastPosition =\n | \"top-left\"\n | \"top-center\"\n | \"top-right\"\n | \"bottom-left\"\n | \"bottom-center\"\n | \"bottom-right\";\n\nexport type SpringToastTone =\n | \"neutral\"\n | \"success\"\n | \"warning\"\n | \"error\"\n | \"loading\";\n\nexport type SpringToastAction = {\n label: Renderable;\n /** Return a patch to morph the toast in place instead of closing it. */\n onClick?: () => SpringToastPatch | void;\n};\n\nexport type SpringToastPatch = {\n title?: Renderable;\n description?: Renderable;\n tone?: SpringToastTone;\n action?: SpringToastAction | null;\n progress?: number | null;\n meta?: Renderable;\n duration?: number;\n};\n\nexport type SpringToastOptions = SpringToastPatch & { id?: string };\n\nexport type SpringToastRecord = {\n id: string;\n title: Renderable;\n description?: Renderable;\n tone: SpringToastTone;\n action?: SpringToastAction;\n progress?: number;\n meta?: Renderable;\n duration: number;\n count: number;\n seq: number;\n};\n\n/**\n * One toast owns the screen, so a new call morphs the live record instead of\n * adding a second card. A new call *replaces* the content: a field it does not\n * send is gone, not inherited from whatever toast came before. Only `update`\n * patches, keeping the fields it leaves out.\n */\nexport function mergeSpringToast(\n current: SpringToastRecord | null,\n patch: SpringToastOptions,\n seq: number,\n mode: \"replace\" | \"patch\" = \"replace\",\n): SpringToastRecord {\n const previous = mode === \"patch\" ? current : null;\n const tone = patch.tone ?? previous?.tone ?? \"neutral\";\n const title = patch.title ?? previous?.title ?? \"\";\n const description =\n patch.description !== undefined ? patch.description : previous?.description;\n const action =\n patch.action === null ? undefined : (patch.action ?? previous?.action);\n const progress =\n patch.progress === null\n ? undefined\n : (patch.progress ?? previous?.progress);\n const meta = patch.meta !== undefined ? patch.meta : previous?.meta;\n const duration = patch.duration ?? previous?.duration ?? DEFAULT_DURATION;\n\n const repeat =\n current !== null &&\n title === current.title &&\n tone === current.tone &&\n description === current.description &&\n action === current.action &&\n progress === current.progress;\n\n return {\n // A new call owns a new id, so a delayed update from an older caller is\n // ignored instead of rewriting whatever toast is on screen by then. Only a\n // patch (or an explicit id) targets the card that is already live.\n id:\n mode === \"patch\"\n ? (current?.id ?? patch.id ?? `sph-spring-toast-${seq}`)\n : (patch.id ?? `sph-spring-toast-${seq}`),\n title,\n description,\n tone,\n action,\n progress,\n meta,\n duration,\n count: repeat ? current.count + 1 : 1,\n seq,\n };\n}\n\n/** Errors, loading and toasts with an action wait for the reader. */\nexport function springDuration(\n record: Pick<SpringToastRecord, \"tone\" | \"action\" | \"duration\">,\n): number {\n if (record.tone === \"error\" || record.tone === \"loading\" || record.action)\n return 0;\n return record.duration;\n}\n\nlet live: SpringToastRecord | null = null;\nlet seq = 0;\nconst listeners = new Set<() => void>();\nconst emit = () => {\n for (const listener of listeners) listener();\n};\nconst subscribe = (listener: () => void) => {\n listeners.add(listener);\n return () => {\n listeners.delete(listener);\n };\n};\nconst snapshot = () => live;\nconst serverSnapshot = () => null;\n\nfunction show(title: Renderable, options: SpringToastOptions = {}): string {\n seq += 1;\n live = mergeSpringToast(live, { ...options, title }, seq, \"replace\");\n emit();\n return live.id;\n}\n\nexport const springToast = Object.assign(show, {\n success: (title: Renderable, options?: SpringToastOptions) =>\n show(title, { ...options, tone: \"success\" }),\n error: (title: Renderable, options?: SpringToastOptions) =>\n show(title, { ...options, tone: \"error\" }),\n warning: (title: Renderable, options?: SpringToastOptions) =>\n show(title, { ...options, tone: \"warning\" }),\n info: (title: Renderable, options?: SpringToastOptions) =>\n show(title, { ...options, tone: \"neutral\" }),\n loading: (title: Renderable, options?: SpringToastOptions) =>\n show(title, { ...options, tone: \"loading\" }),\n update(id: string, patch: SpringToastPatch) {\n if (!live || live.id !== id) return;\n seq += 1;\n live = mergeSpringToast(live, patch, seq, \"patch\");\n emit();\n },\n dismiss(id?: string) {\n if (!live || (id !== undefined && live.id !== id)) return;\n live = null;\n emit();\n },\n async promise<T>(\n promise: Promise<T>,\n messages: {\n loading: Renderable;\n success: Renderable | ((value: T) => Renderable);\n error: Renderable | ((error: unknown) => Renderable);\n },\n ): Promise<T> {\n const id = show(messages.loading, { tone: \"loading\" });\n try {\n const value = await promise;\n springToast.update(id, {\n tone: \"success\",\n title:\n typeof messages.success === \"function\"\n ? messages.success(value)\n : messages.success,\n });\n return value;\n } catch (error) {\n springToast.update(id, {\n tone: \"error\",\n title:\n typeof messages.error === \"function\"\n ? messages.error(error)\n : messages.error,\n });\n throw error;\n }\n },\n});\n\nconst icons: Record<SpringToastTone, Renderable> = {\n neutral: <InfoIcon size={16} />,\n success: <CheckIcon size={16} />,\n warning: <WarningIcon size={16} />,\n error: <XIcon size={16} />,\n loading: <Spinner />,\n};\n\nexport type SpringToasterProps = {\n position?: SpringToastPosition;\n /** Distance from the viewport edge; raise it to clear a sticky header. */\n offset?: number;\n label?: string;\n className?: string;\n};\n\nexport function SpringToaster({\n position = \"top-center\",\n offset = 24,\n label = \"Notifications\",\n className,\n}: SpringToasterProps) {\n const record = useSyncExternalStore(subscribe, snapshot, serverSnapshot);\n const [portaled, setPortaled] = useState(false);\n const [exiting, setExiting] = useState<SpringToastRecord | null>(null);\n const [paused, setPaused] = useState(false);\n const last = useRef<SpringToastRecord | null>(null);\n const card = useRef<HTMLDivElement>(null);\n const height = useRef(0);\n\n useEffect(() => setPortaled(true), []);\n\n // Keep the closed card on screen long enough to play its exit.\n useEffect(() => {\n if (record) {\n last.current = record;\n setExiting(null);\n return;\n }\n const previous = last.current;\n if (!previous) return;\n setExiting(previous);\n const timer = window.setTimeout(() => {\n last.current = null;\n setExiting(null);\n }, EXIT_MS);\n return () => window.clearTimeout(timer);\n }, [record]);\n\n const active = record ?? exiting;\n const closing = record === null && exiting !== null;\n\n // Morph the card between records: start from the old height, land on the new\n // one, then hand control back to auto so the next change can measure again.\n useLayoutEffect(() => {\n const element = card.current;\n if (!element || closing) return;\n const next = element.offsetHeight;\n if (height.current && Math.abs(height.current - next) > 1) {\n element.style.height = `${height.current}px`;\n element.getBoundingClientRect();\n element.style.height = `${next}px`;\n window.setTimeout(() => {\n element.style.height = \"\";\n }, 260);\n }\n height.current = next;\n }, [active?.seq, active?.count, closing]);\n\n useEffect(() => {\n if (!record || paused) return;\n const ms = springDuration(record);\n if (!ms) return;\n const timer = window.setTimeout(() => springToast.dismiss(record.id), ms);\n return () => window.clearTimeout(timer);\n }, [record, paused]);\n\n useEffect(() => {\n if (!record) return;\n const onKeyDown = (event: KeyboardEvent) => {\n if (event.key === \"Escape\") springToast.dismiss();\n };\n document.addEventListener(\"keydown\", onKeyDown);\n return () => document.removeEventListener(\"keydown\", onKeyDown);\n }, [record]);\n\n if (!portaled || !active) return null;\n\n const action = active.action;\n\n return createPortal(\n <section\n className={cn(\"sph-spring-toast-region\", className)}\n data-position={position}\n aria-label={label}\n style={{\n top: position.startsWith(\"top\") ? offset : undefined,\n bottom: position.startsWith(\"bottom\") ? offset : undefined,\n }}\n >\n <div\n ref={card}\n className=\"sph-spring-toast\"\n data-tone={active.tone}\n data-closing={closing || undefined}\n role={active.tone === \"error\" ? \"alert\" : \"status\"}\n aria-atomic=\"true\"\n tabIndex={-1}\n onPointerEnter={() => setPaused(true)}\n onPointerLeave={() => setPaused(false)}\n onFocus={() => setPaused(true)}\n onBlur={() => setPaused(false)}\n >\n <span className=\"sph-spring-toast__icon\" aria-hidden=\"true\">\n {node(icons[active.tone])}\n </span>\n <span className=\"sph-spring-toast__body\">\n <span className=\"sph-spring-toast__title\">\n {node(active.title)}\n {active.count > 1 && (\n <span className=\"sph-spring-toast__count\">×{active.count}</span>\n )}\n </span>\n {active.description !== undefined && (\n <span className=\"sph-spring-toast__description\">\n {node(active.description)}\n </span>\n )}\n </span>\n {action && (\n <button\n type=\"button\"\n className=\"sph-spring-toast__action\"\n onClick={() => {\n const patch = action.onClick?.();\n if (patch) springToast.update(active.id, patch);\n else springToast.dismiss(active.id);\n }}\n >\n {node(action.label)}\n </button>\n )}\n <button\n type=\"button\"\n className=\"sph-spring-toast__close\"\n aria-label=\"Dismiss notification\"\n onClick={() => springToast.dismiss(active.id)}\n >\n <XIcon size={12} aria-hidden=\"true\" />\n </button>\n {active.progress !== undefined && (\n <span\n className=\"sph-spring-toast__progress\"\n aria-hidden=\"true\"\n style={{\n transform: `scaleX(${Math.min(1, Math.max(0, active.progress))})`,\n }}\n />\n )}\n </div>\n </section>,\n document.body,\n );\n}\n","import { CheckIcon, InfoIcon, WarningIcon, XIcon } from \"@phosphor-icons/react\";\nimport { cn } from \"@/lib/cn.js\";\nimport { useEffect, useState } from \"react\";\nimport { createPortal } from \"react-dom\";\nimport {\n type ExternalToast,\n Toaster as SonnerToaster,\n type ToasterProps as SonnerToasterProps,\n toast,\n} from \"sonner\";\nimport { node, type Renderable } from \"@/lib/node.js\";\n\nexport type { ExternalToast } from \"sonner\";\nexport { toast };\nexport {\n SpringToaster,\n type SpringToasterProps,\n springToast,\n type SpringToastAction,\n type SpringToastOptions,\n type SpringToastPatch,\n type SpringToastPosition,\n type SpringToastRecord,\n type SpringToastTone,\n} from \"./spring\";\n\nconst toastIcons = {\n success: (\n <span className=\"sph-toast__status-icon\">\n <CheckIcon size={20} />\n </span>\n ),\n info: (\n <span className=\"sph-toast__status-icon\">\n <InfoIcon size={20} />\n </span>\n ),\n warning: (\n <span className=\"sph-toast__status-icon\">\n <WarningIcon size={20} />\n </span>\n ),\n error: (\n <span className=\"sph-toast__status-icon\">\n <XIcon size={20} />\n </span>\n ),\n};\n\nexport type ToastProps = {\n open?: boolean;\n id?: string | number;\n title: Renderable;\n description?: Renderable;\n variant?: \"neutral\" | \"success\" | \"warning\" | \"danger\";\n action?: ExternalToast[\"action\"];\n duration?: number;\n closeButton?: boolean;\n className?: string;\n};\n\nexport function Toast({\n open = true,\n id,\n title,\n description,\n variant = \"neutral\",\n action,\n duration,\n closeButton = true,\n className,\n}: ToastProps) {\n useEffect(() => {\n if (!open) return;\n const options: ExternalToast = {\n id,\n action,\n closeButton,\n description: node(description),\n duration,\n className: cn(\"sph-toast\", className),\n unstyled: true,\n };\n const toastId =\n variant === \"success\"\n ? toast.success(node(title), options)\n : variant === \"warning\"\n ? toast.warning(node(title), options)\n : variant === \"danger\"\n ? toast.error(node(title), options)\n : toast(node(title), options);\n\n return () => {\n toast.dismiss(toastId);\n };\n }, [open, id, action, closeButton, duration, title, description, variant]);\n\n return null;\n}\n\nexport type ToastViewportProps = Omit<\n SonnerToasterProps,\n \"className\" | \"containerAriaLabel\" | \"icons\" | \"toastOptions\"\n> & {\n label?: string;\n className?: string;\n toastOptions?: SonnerToasterProps[\"toastOptions\"];\n};\n\nexport function ToastViewport({\n label = \"Notifications\",\n className,\n toastOptions,\n theme = \"system\",\n position = \"top-right\",\n closeButton = true,\n expand = false,\n ...props\n}: ToastViewportProps) {\n const [portaled, setPortaled] = useState(false);\n useEffect(() => setPortaled(true), []);\n\n const toaster = (\n <SonnerToaster\n {...node(props)}\n theme={theme}\n position={position}\n closeButton={closeButton}\n icons={toastIcons}\n containerAriaLabel={label}\n expand={expand}\n className={cn(\"sph-toast-viewport\", className)}\n toastOptions={{\n ...toastOptions,\n closeButton: toastOptions?.closeButton ?? closeButton,\n closeButtonAriaLabel:\n toastOptions?.closeButtonAriaLabel ?? \"Dismiss notification\",\n className: cn(\"sph-toast\", toastOptions?.className),\n unstyled: true,\n }}\n />\n );\n\n // Sonner mounts where it is rendered, so an ancestor with `isolation` or a\n // transform traps it in that stacking context and the toast paints under a\n // sticky header however high its z-index is. Portal it to the document.\n return portaled ? createPortal(toaster, document.body) : toaster;\n}\n"],"mappings":";;;;;;;;;AAaA,MAAM,mBAAmB;AACzB,MAAM,UAAU;;;;;;;AAsDhB,SAAgB,iBACd,SACA,OACA,KACA,OAA4B,WACT;CACnB,MAAM,WAAW,SAAS,UAAU,UAAU;CAC9C,MAAM,OAAO,MAAM,QAAQ,UAAU,QAAQ;CAC7C,MAAM,QAAQ,MAAM,SAAS,UAAU,SAAS;CAChD,MAAM,cACJ,MAAM,gBAAgB,KAAA,IAAY,MAAM,cAAc,UAAU;CAClE,MAAM,SACJ,MAAM,WAAW,OAAO,KAAA,IAAa,MAAM,UAAU,UAAU;CACjE,MAAM,WACJ,MAAM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AK,GAAG,OAAO,IAClC,YAAY,YACV,MAAM,QAAQ,KAAK,KAAK,GAAG,OAAO,IAClC,YAAY,WACV,MAAM,MAAM,KAAK,KAAK,GAAG,OAAO,IAChC,MAAM,KAAK,KAAK,GAAG,OAAO;EAEpC,aAAa;GACX,MAAM,QAAQ,OAAO;EACvB;CACF,GAAG;EAAC;EAAM;EAAI;EAAQ;EAAa;EAAU;EAAO;EAAa;CAAO,CAAC;CAEzE,OAAO;AACT;AAWA,SAAgB,cAAc,EAC5B,QAAQ,iBACR,WACA,cACA,QAAQ,UACR,WAAW,aACX,cAAc,MACd,SAAS,OACT,GAAG,SACkB;CACrB,MAAM,CAAC,UAAU,eAAe,SAAS,KAAK;CAC9C,gBAAgB,YAAY,IAAI,GAAG,CAAC,CAAC;CAErC,MAAM,UACJ,oBAACA,SAAD;EACE,GAAI,KAAK,KAAK;EACP;EACG;EACG;EACb,OAAO;EACP,oBAAoB;EACZ;EACR,WAAW,GAAG,sBAAsB,SAAS;EAC7C,cAAc;GACZ,GAAG;GACH,aAAa,cAAc,eAAe;GAC1C,sBACE,cAAc,wBAAwB;GACxC,WAAW,GAAG,aAAa,cAAc,SAAS;GAClD,UAAU;EACZ;CACD,CAAA;CAMH,OAAO,WAAW,aAAa,SAAS,SAAS,IAAI,IAAI;AAC3D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-DRXUXEa8.d.ts","names":["SonnerToasterProps"],"sources":["../src/molecules/Toast/spring.tsx","../src/molecules/Toast/index.tsx"],"mappings":";;;KAgBY;KAQA;KAOA;EACV,OAAO;;EAEP,gBAAgB;;KAGN;EACV,QAAQ;EACR,cAAc;EACd,OAAO;EACP,SAAS;EACT;EACA,OAAO;EACP;;KAGU,qBAAqB;EAAqB;;KAE1C;EACV;EACA,OAAO;EACP,cAAc;EACd,MAAM;EACN,SAAS;EACT;EACA,OAAO;EACP;EACA;EACA;;iBAiFO,KAAK,OAAO,YAAY,UAAS;cAO7B,oBAAW;EACL,UAAA,OAAA,YAAU,UAAY;EAExB,QAAA,OAAA,YAAU,UAAY;EAEpB,UAAA,OAAA,YAAU,UAAY;EAEzB,OAAA,OAAA,YAAU,UAAY;EAEnB,UAAA,OAAA,YAAU,UAAY;EAE5B,OAAA,YAAM,OAAS;EAMb,QAAA;EAKC,QAAA,GAAC,SACJ,QAAQ,IAAE;IAEjB,SAAS;IACT,SAAS,eAAe,OAAO,MAAM;IACrC,OAAO,eAAe,mBAAmB;MAE1C,QAAQ;;KAiCD;EACV,WAAW;;EAEX;EACA;EACA;;iBAGc,gBACd,UACA,QACA,OACA,aACC,qCAAkB;;;KC7KT;EACV;EACA;EACA,OAAO;EACP,cAAc;EACd;EACA,SAAS;EACT;EACA;EACA;;iBAGc,QACd,MACA,IACA,OACA,aACA,SACA,QACA,UACA,aACA,aACC;KA6BS,qBAAqB,KAC/BA;EAGA;EACA;EACA,eAAeA;;iBAGD,gBACd,OACA,WACA,cACA,OACA,UACA,aACA,WACG,SACF,qCAAkB,IAAA"}
|