@kumix/ui 0.3.12 → 0.3.14

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 (155) hide show
  1. package/README.md +1 -1
  2. package/dist/components/agents/agent-activity/activity-row.js +1 -1
  3. package/dist/components/agents/agent-activity/index.js +1 -1
  4. package/dist/components/agents/agent-code.js +1 -1
  5. package/dist/components/agents/ai-sidebar.js +1 -1
  6. package/dist/components/agents/approval-card/index.js +1 -1
  7. package/dist/components/agents/citations.js +1 -1
  8. package/dist/components/agents/code-block.js +1 -1
  9. package/dist/components/agents/file-diff.js +1 -1
  10. package/dist/components/agents/image-generation.js +1 -1
  11. package/dist/components/agents/message-bubble.js +1 -1
  12. package/dist/components/agents/prompt-input.js +1 -1
  13. package/dist/components/agents/streaming-response.js +1 -1
  14. package/dist/components/agents/todo-list.js +1 -1
  15. package/dist/components/agents/tool-approval.js +1 -1
  16. package/dist/components/agents/tool-result.js +1 -1
  17. package/dist/components/custom/confirm-dialog.js +1 -1
  18. package/dist/components/motion/adaptive-stepper.js +1 -1
  19. package/dist/components/motion/animated-badge.js +1 -1
  20. package/dist/components/motion/animated-sidebar.js +1 -1
  21. package/dist/components/motion/animated-toast-stack.js +1 -1
  22. package/dist/components/motion/attachment-upload.js +1 -1
  23. package/dist/components/motion/availability-scheduler/copy-menu.js +1 -1
  24. package/dist/components/motion/availability-scheduler/day-row.js +2 -2
  25. package/dist/components/motion/availability-scheduler/index.js +1 -1
  26. package/dist/components/motion/bloom-menu.js +1 -1
  27. package/dist/components/motion/bouncy-accordion.js +1 -1
  28. package/dist/components/motion/button/stateful.js +1 -1
  29. package/dist/components/motion/card-folder.d.ts +30 -0
  30. package/dist/components/motion/card-folder.d.ts.map +1 -0
  31. package/dist/components/motion/card-folder.js +254 -0
  32. package/dist/components/motion/card-folder.js.map +1 -0
  33. package/dist/components/motion/center-morph-modal.js +1 -1
  34. package/dist/components/motion/combobox/list.js +1 -1
  35. package/dist/components/motion/combobox/trigger.js +1 -1
  36. package/dist/components/motion/command-palette.js +1 -1
  37. package/dist/components/motion/context-menu.js +1 -1
  38. package/dist/components/motion/digit-swap.d.ts +23 -0
  39. package/dist/components/motion/digit-swap.d.ts.map +1 -0
  40. package/dist/components/motion/digit-swap.js +77 -0
  41. package/dist/components/motion/digit-swap.js.map +1 -0
  42. package/dist/components/motion/feedback-widget.js +1 -1
  43. package/dist/components/motion/file-tree.js +1 -1
  44. package/dist/components/motion/file-upload.js +1 -1
  45. package/dist/components/motion/infinite-masonry.js +1 -1
  46. package/dist/components/motion/morphing-search.js +1 -1
  47. package/dist/components/motion/morphing-tabs.js +1 -1
  48. package/dist/components/motion/multi-select/list.js +1 -1
  49. package/dist/components/motion/multi-select/trigger.js +1 -1
  50. package/dist/components/motion/notification-stack.js +1 -1
  51. package/dist/components/motion/overflow-actions.js +1 -1
  52. package/dist/components/motion/project-folder.js +1 -1
  53. package/dist/components/motion/range-slider-inline.d.ts +18 -0
  54. package/dist/components/motion/range-slider-inline.d.ts.map +1 -0
  55. package/dist/components/motion/range-slider-inline.js +267 -0
  56. package/dist/components/motion/range-slider-inline.js.map +1 -0
  57. package/dist/components/motion/range-slider.d.ts.map +1 -1
  58. package/dist/components/motion/range-slider.js +26 -10
  59. package/dist/components/motion/range-slider.js.map +1 -1
  60. package/dist/components/motion/select-morph.js +1 -1
  61. package/dist/components/motion/select.js +1 -1
  62. package/dist/components/motion/signup-form.js +1 -1
  63. package/dist/components/motion/table/row-handle.js +1 -1
  64. package/dist/components/motion/table/table-header.js +1 -1
  65. package/dist/components/motion/theme-toggle.js +1 -1
  66. package/dist/components/reui/alert.d.ts +1 -1
  67. package/dist/components/reui/alert.js +1 -1
  68. package/dist/components/reui/autocomplete.js +1 -1
  69. package/dist/components/reui/badge.d.ts +2 -2
  70. package/dist/components/reui/cascader/cascader-columns.js +1 -1
  71. package/dist/components/reui/cascader/cascader-footer.js +1 -1
  72. package/dist/components/reui/cascader/cascader-item.js +1 -1
  73. package/dist/components/reui/cascader/cascader-nav.js +1 -1
  74. package/dist/components/reui/cascader/cascader.js +1 -1
  75. package/dist/components/reui/data-grid/data-grid-column-filter.js +1 -1
  76. package/dist/components/reui/data-grid/data-grid-column-header.js +1 -1
  77. package/dist/components/reui/data-grid/data-grid-pagination.js +1 -1
  78. package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js +1 -1
  79. package/dist/components/reui/data-grid/data-grid-table-dnd.js +1 -1
  80. package/dist/components/reui/data-grid/data-grid-table.js +1 -1
  81. package/dist/components/reui/date-selector.js +1 -1
  82. package/dist/components/reui/event-calendar/event-calendar-agenda-view.js +1 -1
  83. package/dist/components/reui/event-calendar/event-calendar-event.js +1 -1
  84. package/dist/components/reui/event-calendar/event-calendar-month-view.js +1 -1
  85. package/dist/components/reui/event-calendar/event-calendar-nav.js +1 -1
  86. package/dist/components/reui/filters/filters-advanced.js +1 -1
  87. package/dist/components/reui/filters/filters-advanced.js.map +1 -1
  88. package/dist/components/reui/filters/filters-builder.js +1 -1
  89. package/dist/components/reui/filters/filters-chip.js +1 -1
  90. package/dist/components/reui/filters/filters-editors.js +1 -1
  91. package/dist/components/reui/filters/filters.js +1 -1
  92. package/dist/components/reui/frame.d.ts +2 -2
  93. package/dist/components/reui/frame.js +1 -1
  94. package/dist/components/reui/gantt/gantt-bar.js +1 -1
  95. package/dist/components/reui/gantt/gantt-nav.js +1 -1
  96. package/dist/components/reui/gantt/gantt-view.js +1 -1
  97. package/dist/components/reui/icon-tile.d.ts +1 -1
  98. package/dist/components/reui/number-field.js +1 -1
  99. package/dist/components/reui/phone-input.js +1 -1
  100. package/dist/components/reui/rating.js +1 -1
  101. package/dist/components/reui/tree.js +1 -1
  102. package/dist/components/ui/accordion.js +1 -1
  103. package/dist/components/ui/alert-dialog.js +1 -1
  104. package/dist/components/ui/alert.js +1 -1
  105. package/dist/components/ui/attachment.d.ts +1 -1
  106. package/dist/components/ui/attachment.js +1 -1
  107. package/dist/components/ui/badge.d.ts +1 -1
  108. package/dist/components/ui/breadcrumb.js +1 -1
  109. package/dist/components/ui/bubble.d.ts +1 -1
  110. package/dist/components/ui/bubble.js +1 -1
  111. package/dist/components/ui/button-group.js +1 -1
  112. package/dist/components/ui/button.d.ts +2 -2
  113. package/dist/components/ui/button.js +1 -1
  114. package/dist/components/ui/calendar.js +1 -1
  115. package/dist/components/ui/carousel.js +1 -1
  116. package/dist/components/ui/checkbox.js +2 -2
  117. package/dist/components/ui/checkbox.js.map +1 -1
  118. package/dist/components/ui/combobox.js +1 -1
  119. package/dist/components/ui/command.js +1 -1
  120. package/dist/components/ui/context-menu.js +1 -1
  121. package/dist/components/ui/dialog.js +1 -1
  122. package/dist/components/ui/dropdown-menu.js +1 -1
  123. package/dist/components/ui/empty.js +1 -1
  124. package/dist/components/ui/field.js +2 -2
  125. package/dist/components/ui/field.js.map +1 -1
  126. package/dist/components/ui/input-group.d.ts +1 -1
  127. package/dist/components/ui/input-group.js +1 -1
  128. package/dist/components/ui/input-otp.js +1 -1
  129. package/dist/components/ui/item.d.ts +2 -2
  130. package/dist/components/ui/item.js +1 -1
  131. package/dist/components/ui/marker.js +1 -1
  132. package/dist/components/ui/menubar.js +1 -1
  133. package/dist/components/ui/message-scroller.js +1 -1
  134. package/dist/components/ui/native-select.js +1 -1
  135. package/dist/components/ui/navigation-menu.js +1 -1
  136. package/dist/components/ui/pagination.js +1 -1
  137. package/dist/components/ui/questionnaire.js +3 -3
  138. package/dist/components/ui/questionnaire.js.map +1 -1
  139. package/dist/components/ui/radio-group.js +1 -1
  140. package/dist/components/ui/radio-group.js.map +1 -1
  141. package/dist/components/ui/select.js +1 -1
  142. package/dist/components/ui/sheet.js +1 -1
  143. package/dist/components/ui/sidebar.d.ts +1 -1
  144. package/dist/components/ui/sidebar.js +1 -1
  145. package/dist/components/ui/spinner.js +1 -1
  146. package/dist/components/ui/switch.js +1 -1
  147. package/dist/components/ui/switch.js.map +1 -1
  148. package/dist/components/ui/tabs.js +1 -1
  149. package/dist/components/ui/toast.js +2 -2
  150. package/dist/components/ui/toast.js.map +1 -1
  151. package/dist/components/ui/toggle.d.ts +1 -1
  152. package/dist/components/ui/toggle.js +1 -1
  153. package/dist/{copy-menu-TIKvPaAZ.js → copy-menu-C5GaT4Z-.js} +2 -2
  154. package/dist/{copy-menu-TIKvPaAZ.js.map → copy-menu-C5GaT4Z-.js.map} +1 -1
  155. package/package.json +9 -9
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-folder.js","names":[],"sources":["../../../src/components/motion/card-folder.tsx"],"sourcesContent":["\"use client\";\n\nimport { type ReactNode, useCallback, useEffect, useState } from \"react\";\nimport { EllipsisVertical, Eye, EyeOff } from \"lucide-react\";\nimport {\n AnimatePresence,\n animate,\n motion,\n useMotionValue,\n useReducedMotion,\n useTransform,\n} from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_IN_OUT, EASE_OUT, SPRING_LAYOUT, SPRING_PRESS } from \"../../lib/ease\";\nimport { DigitSwap } from \"./digit-swap\";\n\n// The two purse layers collapse as one material surface after the card starts\n// moving, then reverse immediately so closing feels like the card is caught.\nconst PURSE_MORPH_TRANSITION = {\n duration: 0.28,\n ease: EASE_IN_OUT,\n} as const;\nconst PURSE_REDUCED_TRANSITION = {\n duration: 0.16,\n ease: EASE_OUT,\n} as const;\n\nexport interface CardFolderProps {\n title: string;\n cardNumber: string;\n expiry: string;\n cvv: string;\n card: ReactNode;\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n detailsVisible?: boolean;\n defaultDetailsVisible?: boolean;\n onDetailsVisibleChange?: (visible: boolean) => void;\n onClick?: () => void;\n onAction?: () => void;\n ariaLabel?: string;\n actionLabel?: string;\n disabled?: boolean;\n className?: string;\n cardClassName?: string;\n}\n\n/**\n * A landscape card tucked into an animated folder sleeve. Pressing the folder\n * lifts the card forward while the purse compresses into its bottom seam; a\n * separate privacy control reveals its number and CVV.\n */\nexport function CardFolder({\n title,\n cardNumber,\n expiry,\n cvv,\n card,\n open,\n defaultOpen = false,\n onOpenChange,\n detailsVisible,\n defaultDetailsVisible = false,\n onDetailsVisibleChange,\n onClick,\n onAction,\n ariaLabel,\n actionLabel,\n disabled = false,\n className,\n cardClassName,\n}: CardFolderProps) {\n const reduce = useReducedMotion();\n const [internalOpen, setInternalOpen] = useState(defaultOpen);\n const [internalDetailsVisible, setInternalDetailsVisible] = useState(defaultDetailsVisible);\n const openControlled = open !== undefined;\n const detailsControlled = detailsVisible !== undefined;\n const isOpen = open ?? internalOpen;\n const areDetailsVisible = detailsVisible ?? internalDetailsVisible;\n const transition = reduce ? { duration: 0 } : SPRING_LAYOUT;\n const normalizedCardNumber = cardNumber.replace(/\\D/g, \"\");\n const visibleLastFour = normalizedCardNumber.slice(-4).padStart(4, \"•\");\n const revealedCardNumber = normalizedCardNumber.match(/.{1,4}/g)?.join(\" \") ?? visibleLastFour;\n const maskedCvv = \"•\".repeat(Math.max(3, cvv.length));\n const defaultAriaLabel = `${isOpen ? \"Close\" : \"Open\"} ${title}, card ending in ${visibleLastFour}, expires ${expiry}`;\n const progress = useMotionValue(isOpen ? 1 : 0);\n const cardTransform = useTransform(progress, (value) => {\n const boundedProgress = Math.min(1, Math.max(0, value));\n const lift = Math.sin(Math.PI * boundedProgress);\n return `translateY(${-8 * lift}%) scale(${1 + 0.01 * lift})`;\n });\n const backTransform = useTransform(\n progress,\n [0, 1],\n [\"translateY(0%) scaleY(1)\", \"translateY(18%) scaleY(0.18)\"],\n );\n const frontTransform = useTransform(\n progress,\n [0, 1],\n [\"translateY(0%) rotateX(0deg)\", \"translateY(18%) rotateX(-72deg)\"],\n );\n const purseOpacity = useTransform(progress, [0, 0.76, 1], [1, 1, 0]);\n\n useEffect(() => {\n const controls = animate(\n progress,\n isOpen ? 1 : 0,\n reduce ? { duration: 0 } : PURSE_MORPH_TRANSITION,\n );\n return () => controls.stop();\n }, [isOpen, progress, reduce]);\n\n const setOpen = useCallback(\n (nextOpen: boolean) => {\n if (disabled) return;\n if (!openControlled) setInternalOpen(nextOpen);\n onOpenChange?.(nextOpen);\n },\n [disabled, onOpenChange, openControlled],\n );\n\n const handleClick = () => {\n setOpen(!isOpen);\n onClick?.();\n };\n\n const toggleDetails = () => {\n if (disabled) return;\n const nextVisible = !areDetailsVisible;\n if (!detailsControlled) setInternalDetailsVisible(nextVisible);\n onDetailsVisibleChange?.(nextVisible);\n };\n\n return (\n <div\n data-open={isOpen ? \"true\" : \"false\"}\n data-details-visible={areDetailsVisible ? \"true\" : \"false\"}\n className={cn(\n \"perspective-[1200px] relative aspect-1029/592 w-96 max-w-full select-none\",\n className,\n )}\n >\n <motion.button\n type=\"button\"\n disabled={disabled}\n aria-label={ariaLabel ?? defaultAriaLabel}\n aria-expanded={isOpen}\n onClick={handleClick}\n whileTap={reduce || disabled ? undefined : { scale: 0.96 }}\n transition={reduce ? { duration: 0 } : SPRING_PRESS}\n className=\"absolute inset-0 block rounded-2xl text-left outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-4 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50\"\n >\n <motion.span\n data-slot=\"card-folder-back\"\n aria-hidden=\"true\"\n initial={false}\n animate={reduce ? { opacity: isOpen ? 0 : 1 } : undefined}\n transition={PURSE_REDUCED_TRANSITION}\n style={reduce ? undefined : { opacity: purseOpacity, transform: backTransform }}\n className=\"absolute inset-x-0 top-[10%] bottom-0 origin-[center_bottom] rounded-2xl border border-foreground/10 bg-background\"\n />\n\n <motion.span\n aria-hidden=\"true\"\n initial={false}\n animate={reduce ? { transform: \"translateY(0%) scale(1)\" } : undefined}\n style={reduce ? undefined : { transform: cardTransform }}\n className={cn(\n \"absolute top-0 right-[4.7%] left-[4.7%] z-10 aspect-[1.586/1] origin-[center_bottom] overflow-hidden rounded-xl border border-foreground/10 bg-background will-change-transform\",\n cardClassName,\n )}\n >\n {card}\n </motion.span>\n </motion.button>\n\n <motion.span\n aria-hidden={isOpen}\n inert={isOpen}\n initial={false}\n animate={reduce ? { opacity: isOpen ? 0 : 1 } : undefined}\n transition={PURSE_REDUCED_TRANSITION}\n style={reduce ? undefined : { opacity: purseOpacity, transform: frontTransform }}\n className=\"backface-hidden pointer-events-none absolute inset-x-0 top-1/2 bottom-0 z-20 origin-[center_bottom]\"\n >\n <svg\n aria-hidden=\"true\"\n viewBox=\"0 0 384 110\"\n preserveAspectRatio=\"none\"\n className=\"absolute inset-0 size-full overflow-visible\"\n >\n <path\n d=\"M0 17C15 7 31 4 49 4H87C110 4 126 17 144 32L158 44C176 59 206 59 225 43L240 30C257 16 271 4 295 4H335C354 4 370 8 384 18V94C384 103 377 110 368 110H16C7 110 0 103 0 94Z\"\n fill=\"var(--background)\"\n stroke=\"var(--foreground)\"\n strokeOpacity=\"0.12\"\n vectorEffect=\"non-scaling-stroke\"\n />\n <path\n d=\"M10 21C22 13 35 11 51 11H85C105 11 120 23 137 37L153 50C175 68 208 68 231 49L246 36C262 23 275 11 297 11H333C350 11 363 14 374 22V89C374 97 369 101 360 101H24C15 101 10 96 10 89Z\"\n fill=\"none\"\n stroke=\"var(--foreground)\"\n strokeDasharray=\"5 5\"\n strokeLinecap=\"round\"\n strokeOpacity=\"0.22\"\n vectorEffect=\"non-scaling-stroke\"\n />\n </svg>\n\n <span className=\"absolute inset-x-[5%] inset-y-0 z-10 flex min-w-0 flex-col justify-between py-4\">\n <span className=\"flex items-start justify-between pr-2\">\n <motion.button\n key=\"card-details-visibility\"\n type=\"button\"\n disabled={disabled}\n tabIndex={isOpen ? -1 : undefined}\n aria-label={areDetailsVisible ? \"Hide card details\" : \"Show card details\"}\n aria-pressed={areDetailsVisible}\n onClick={toggleDetails}\n whileTap={reduce || disabled ? undefined : { scale: 0.96 }}\n transition={reduce ? { duration: 0.12 } : SPRING_PRESS}\n className={cn(\n \"z-30 flex size-10 shrink-0 items-center justify-center rounded-full text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset disabled:cursor-not-allowed disabled:opacity-50\",\n isOpen ? \"pointer-events-none\" : \"pointer-events-auto\",\n )}\n >\n <AnimatePresence initial={false} mode=\"popLayout\">\n <motion.span\n key={areDetailsVisible ? \"hide\" : \"show\"}\n initial={\n reduce ? { opacity: 0 } : { opacity: 0, scale: 0.25, filter: \"blur(4px)\" }\n }\n animate={{ opacity: 1, scale: 1, filter: \"blur(0px)\" }}\n exit={reduce ? { opacity: 0 } : { opacity: 0, scale: 0.25, filter: \"blur(4px)\" }}\n transition={\n reduce ? { duration: 0.12 } : { type: \"spring\", duration: 0.3, bounce: 0 }\n }\n className=\"flex items-center justify-center\"\n >\n {areDetailsVisible ? (\n <EyeOff className=\"size-4\" aria-hidden=\"true\" />\n ) : (\n <Eye className=\"size-4\" aria-hidden=\"true\" />\n )}\n </motion.span>\n </AnimatePresence>\n </motion.button>\n\n <span className=\"flex shrink-0 items-end gap-3.5 pt-2\">\n <span className=\"flex flex-col gap-0.5\">\n <span className=\"font-medium text-[9px] text-muted-foreground/65 uppercase tracking-[0.12em]\">\n Expiry\n </span>\n <span className=\"font-medium text-foreground text-xs tabular-nums\">{expiry}</span>\n </span>\n <span className=\"flex flex-col gap-0.5\">\n <span className=\"font-medium text-[9px] text-muted-foreground/65 uppercase tracking-[0.12em]\">\n CVV\n </span>\n <DigitSwap\n value={areDetailsVisible ? cvv : maskedCvv}\n animationKey={areDetailsVisible ? \"revealed\" : \"masked\"}\n direction={areDetailsVisible ? \"up\" : \"down\"}\n className=\"font-medium text-foreground text-xs tabular-nums\"\n />\n </span>\n </span>\n </span>\n <span className=\"flex min-w-0 items-baseline justify-between gap-4\">\n <span className=\"truncate font-medium text-foreground text-lg leading-tight\">\n {title}\n </span>\n <DigitSwap\n value={areDetailsVisible ? revealedCardNumber : `•••• •••• •••• ${visibleLastFour}`}\n animationKey={areDetailsVisible ? \"revealed\" : \"masked\"}\n direction={areDetailsVisible ? \"up\" : \"down\"}\n suffixLength={4}\n glyphClassName={areDetailsVisible ? \"text-foreground\" : \"text-muted-foreground\"}\n suffixClassName=\"text-foreground\"\n className=\"truncate font-mono text-xs tabular-nums tracking-[0.08em]\"\n />\n </span>\n </span>\n </motion.span>\n\n {onAction ? (\n <motion.button\n type=\"button\"\n disabled={disabled}\n aria-label={actionLabel ?? `Open actions for ${title}`}\n onClick={onAction}\n animate={{ y: isOpen && !reduce ? -14 : 0 }}\n whileTap={reduce || disabled ? undefined : { scale: 0.96 }}\n transition={transition}\n className=\"absolute top-[10%] right-[2.6%] z-10 flex size-10 -translate-y-1/2 items-center justify-center rounded-full text-white/65 outline-none transition-colors hover:bg-white/10 hover:text-white focus-visible:ring-2 focus-visible:ring-white disabled:cursor-not-allowed disabled:opacity-50\"\n >\n <EllipsisVertical className=\"size-4\" aria-hidden=\"true\" />\n </motion.button>\n ) : null}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;AAmBA,MAAM,yBAAyB;CAC7B,UAAU;CACV,MAAM;AACR;AACA,MAAM,2BAA2B;CAC/B,UAAU;CACV,MAAM;AACR;;;;;;AA4BA,SAAgB,WAAW,EACzB,OACA,YACA,QACA,KACA,MACA,MACA,cAAc,OACd,cACA,gBACA,wBAAwB,OACxB,wBACA,SACA,UACA,WACA,aACA,WAAW,OACX,WACA,iBACkB;CAClB,MAAM,SAAS,iBAAiB;CAChC,MAAM,CAAC,cAAc,mBAAmB,SAAS,WAAW;CAC5D,MAAM,CAAC,wBAAwB,6BAA6B,SAAS,qBAAqB;CAC1F,MAAM,iBAAiB,SAAS,KAAA;CAChC,MAAM,oBAAoB,mBAAmB,KAAA;CAC7C,MAAM,SAAS,QAAQ;CACvB,MAAM,oBAAoB,kBAAkB;CAC5C,MAAM,aAAa,SAAS,EAAE,UAAU,EAAE,IAAI;CAC9C,MAAM,uBAAuB,WAAW,QAAQ,OAAO,EAAE;CACzD,MAAM,kBAAkB,qBAAqB,MAAM,EAAE,CAAC,CAAC,SAAS,GAAG,GAAG;CACtE,MAAM,qBAAqB,qBAAqB,MAA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F,CAAA,GACN,oBAAC,WAAD;SACE,OAAO,oBAAoB,MAAM;SACjC,cAAc,oBAAoB,aAAa;SAC/C,WAAW,oBAAoB,OAAO;SACtC,WAAU;QACX,CAAA,CACG;OACF,CAAA,CAAA;MACF,CAAA,CAAA;KACN,CAAA,GAAA,qBAAC,QAAD;MAAM,WAAU;MAAhB,UAAA,CACE,oBAAC,QAAD;OAAM,WAAU;OACb,UAAA;MACG,CAAA,GACN,oBAAC,WAAD;OACE,OAAO,oBAAoB,qBAAqB,kBAAkB;OAClE,cAAc,oBAAoB,aAAa;OAC/C,WAAW,oBAAoB,OAAO;OACtC,cAAc;OACd,gBAAgB,oBAAoB,oBAAoB;OACxD,iBAAgB;OAChB,WAAU;MACX,CAAA,CACG;KACF,CAAA,CAAA;IACK,CAAA,CAAA;;GAEZ,WACC,oBAAC,OAAO,QAAR;IACE,MAAK;IACK;IACV,cAAY,eAAe,oBAAoB;IAC/C,SAAS;IACT,SAAS,EAAE,GAAG,UAAU,CAAC,SAAS,MAAM,EAAE;IAC1C,UAAU,UAAU,WAAW,KAAA,IAAY,EAAE,OAAO,IAAK;IAC7C;IACZ,WAAU;IAEV,UAAA,oBAAC,kBAAD;KAAkB,WAAU;KAAS,eAAY;IAAQ,CAAA;GAC5C,CAAA,IACb;EACD;;AAET"}
@@ -3,9 +3,9 @@ import { EASE_OUT } from "../../lib/ease.js";
3
3
  import { t as PresenceGate } from "../../presence-gate-BekdC4Bo.js";
4
4
  import { cloneElement, createContext, isValidElement, useCallback, useContext, useEffect, useId, useMemo, useRef, useState } from "react";
5
5
  import { cn } from "@kumix/utils";
6
- import { X } from "lucide-react";
7
6
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
7
  import { AnimatePresence, motion, useReducedMotion } from "motion/react";
8
+ import { X } from "lucide-react";
9
9
  import { createPortal } from "react-dom";
10
10
  //#region src/components/motion/center-morph-modal.tsx
11
11
  const CenterMorphModalContext = createContext(null);
@@ -3,9 +3,9 @@ import { EASE_OUT, SPRING_LAYOUT } from "../../../lib/ease.js";
3
3
  import { ComboboxGroupContext, useComboboxContext } from "./context.js";
4
4
  import { useContext, useId, useLayoutEffect, useMemo, useRef } from "react";
5
5
  import { cn } from "@kumix/utils";
6
- import { Check } from "lucide-react";
7
6
  import { jsx, jsxs } from "react/jsx-runtime";
8
7
  import { motion } from "motion/react";
8
+ import { Check } from "lucide-react";
9
9
  //#region src/components/motion/combobox/list.tsx
10
10
  function ComboboxList({ children, ariaLabel = "Options", className }) {
11
11
  const context = useComboboxContext("ComboboxList");
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { mergeRefs, useComboboxContext } from "./context.js";
3
3
  import { cn } from "@kumix/utils";
4
- import { ChevronsUpDown, Search } from "lucide-react";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { ChevronsUpDown, Search } from "lucide-react";
6
6
  //#region src/components/motion/combobox/trigger.tsx
7
7
  function ComboboxTrigger({ children, className }) {
8
8
  const context = useComboboxContext("ComboboxTrigger");
@@ -6,9 +6,9 @@ import { EASE_OUT } from "../../lib/ease.js";
6
6
  import { t as PresenceGate } from "../../presence-gate-BekdC4Bo.js";
7
7
  import { useCallback, useEffect, useId, useMemo, useRef, useState } from "react";
8
8
  import { cn } from "@kumix/utils";
9
- import { Search } from "lucide-react";
10
9
  import { jsx, jsxs } from "react/jsx-runtime";
11
10
  import { AnimatePresence, motion, useReducedMotion } from "motion/react";
11
+ import { Search } from "lucide-react";
12
12
  import { createPortal } from "react-dom";
13
13
  //#region src/components/motion/command-palette.tsx
14
14
  function fuzzyMatch(needle, hay) {
@@ -3,9 +3,9 @@ import { TOUCH_GESTURE_CONTENT_CLASS, holdSelection } from "../../lib/touch.js";
3
3
  import { EASE_OUT, SPRING_LAYOUT, SPRING_PANEL } from "../../lib/ease.js";
4
4
  import { cloneElement, createContext, isValidElement, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
5
5
  import { cn } from "@kumix/utils";
6
- import { Check } from "lucide-react";
7
6
  import { jsx, jsxs } from "react/jsx-runtime";
8
7
  import { AnimatePresence, motion, useReducedMotion } from "motion/react";
8
+ import { Check } from "lucide-react";
9
9
  import { createPortal } from "react-dom";
10
10
  //#region src/components/motion/context-menu.tsx
11
11
  const VIEWPORT_PADDING = 8;
@@ -0,0 +1,23 @@
1
+ //#region src/components/motion/digit-swap.d.ts
2
+ export type DigitSwapDirection = "up" | "down";
3
+ export interface DigitSwapProps {
4
+ /** Numeric or masked value rendered in fixed character slots. */
5
+ value: string | number;
6
+ /** Replays every glyph when the value itself contains unchanged characters. */
7
+ animationKey?: string | number;
8
+ /** Direction the next glyph enters from. */
9
+ direction?: DigitSwapDirection;
10
+ /** Per-glyph transition duration in seconds. */
11
+ duration?: number;
12
+ /** Delay in seconds between neighboring glyphs. */
13
+ stagger?: number;
14
+ /** Number of final characters that receive `suffixClassName`. */
15
+ suffixLength?: number;
16
+ className?: string;
17
+ glyphClassName?: string;
18
+ suffixClassName?: string;
19
+ }
20
+ /** Fixed-slot digits and mask glyphs that roll when their value changes. */
21
+ export declare function DigitSwap({ value, animationKey, direction, duration, stagger, suffixLength, className, glyphClassName, suffixClassName }: DigitSwapProps): import("react").JSX.Element;
22
+ //#endregion
23
+ //# sourceMappingURL=digit-swap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"digit-swap.d.ts","names":[],"sources":["../../../src/components/motion/digit-swap.tsx"],"mappings":";YAOY;iBAEK;;EAEf;;EAEA;;EAEA,YAAY;;EAEZ;;EAEA;;EAEA;EACA;EACA;EACA;;;wBAwBc,YACd,OACA,cACA,WACA,UACA,SACA,cACA,WACA,gBACA,mBACC,iCAAc,IAAA"}
@@ -0,0 +1,77 @@
1
+ "use client";
2
+ import { EASE_OUT } from "../../lib/ease.js";
3
+ import { cn } from "@kumix/utils";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { AnimatePresence, motion, useReducedMotion } from "motion/react";
6
+ //#region src/components/motion/digit-swap.tsx
7
+ const GLYPH_VARIANTS = {
8
+ enter: ({ direction, reduceMotion }) => ({
9
+ opacity: 0,
10
+ transform: reduceMotion ? "none" : `translateY(${direction === "up" ? "45%" : "-45%"})`
11
+ }),
12
+ visible: {
13
+ opacity: 1,
14
+ transform: "translateY(0%)"
15
+ },
16
+ exit: ({ direction, reduceMotion }) => ({
17
+ opacity: 0,
18
+ transform: reduceMotion ? "none" : `translateY(${direction === "up" ? "-45%" : "45%"})`
19
+ })
20
+ };
21
+ /** Fixed-slot digits and mask glyphs that roll when their value changes. */
22
+ function DigitSwap({ value, animationKey, direction = "up", duration = .18, stagger = .006, suffixLength = 0, className, glyphClassName, suffixClassName }) {
23
+ const reduceMotion = useReducedMotion() ?? false;
24
+ const text = String(value);
25
+ const suffixStart = Math.max(0, text.length - Math.max(0, suffixLength));
26
+ const motionContext = {
27
+ direction,
28
+ reduceMotion
29
+ };
30
+ const glyphs = Array.from(text, (character, position) => ({
31
+ character,
32
+ id: `glyph-${position}`,
33
+ position
34
+ }));
35
+ return /* @__PURE__ */ jsxs("span", {
36
+ "data-slot": "digit-swap",
37
+ "data-direction": direction,
38
+ className: cn("inline-flex items-center whitespace-nowrap", className),
39
+ children: [/* @__PURE__ */ jsx("span", {
40
+ className: "sr-only",
41
+ children: text
42
+ }), /* @__PURE__ */ jsx("span", {
43
+ "aria-hidden": "true",
44
+ className: "inline-flex items-center",
45
+ children: glyphs.map(({ character, id, position }) => {
46
+ if (character === " ") return /* @__PURE__ */ jsx("span", { className: "inline-block w-[0.7ch]" }, id);
47
+ const glyphKey = animationKey === void 0 ? `${id}-${character}` : `${id}-${character}-${animationKey}`;
48
+ return /* @__PURE__ */ jsx("span", {
49
+ "data-slot": "digit-swap-glyph",
50
+ className: "relative inline-block h-[1.1em] w-[1ch] shrink-0 overflow-hidden align-bottom",
51
+ children: /* @__PURE__ */ jsx(AnimatePresence, {
52
+ initial: false,
53
+ custom: motionContext,
54
+ children: /* @__PURE__ */ jsx(motion.span, {
55
+ custom: motionContext,
56
+ variants: GLYPH_VARIANTS,
57
+ initial: "enter",
58
+ animate: "visible",
59
+ exit: "exit",
60
+ transition: {
61
+ duration: reduceMotion ? Math.min(duration, .12) : duration,
62
+ delay: reduceMotion ? 0 : position * stagger,
63
+ ease: EASE_OUT
64
+ },
65
+ className: cn("absolute inset-0 flex items-center justify-center leading-none", glyphClassName, position >= suffixStart ? suffixClassName : void 0),
66
+ children: character
67
+ }, glyphKey)
68
+ })
69
+ }, id);
70
+ })
71
+ })]
72
+ });
73
+ }
74
+ //#endregion
75
+ export { DigitSwap };
76
+
77
+ //# sourceMappingURL=digit-swap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"digit-swap.js","names":[],"sources":["../../../src/components/motion/digit-swap.tsx"],"sourcesContent":["\"use client\";\n\nimport { AnimatePresence, motion, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_OUT } from \"../../lib/ease\";\n\nexport type DigitSwapDirection = \"up\" | \"down\";\n\nexport interface DigitSwapProps {\n /** Numeric or masked value rendered in fixed character slots. */\n value: string | number;\n /** Replays every glyph when the value itself contains unchanged characters. */\n animationKey?: string | number;\n /** Direction the next glyph enters from. */\n direction?: DigitSwapDirection;\n /** Per-glyph transition duration in seconds. */\n duration?: number;\n /** Delay in seconds between neighboring glyphs. */\n stagger?: number;\n /** Number of final characters that receive `suffixClassName`. */\n suffixLength?: number;\n className?: string;\n glyphClassName?: string;\n suffixClassName?: string;\n}\n\ntype GlyphMotionContext = {\n direction: DigitSwapDirection;\n reduceMotion: boolean;\n};\n\nconst GLYPH_VARIANTS = {\n enter: ({ direction, reduceMotion }: GlyphMotionContext) => ({\n opacity: 0,\n transform: reduceMotion ? \"none\" : `translateY(${direction === \"up\" ? \"45%\" : \"-45%\"})`,\n }),\n visible: {\n opacity: 1,\n transform: \"translateY(0%)\",\n },\n exit: ({ direction, reduceMotion }: GlyphMotionContext) => ({\n opacity: 0,\n transform: reduceMotion ? \"none\" : `translateY(${direction === \"up\" ? \"-45%\" : \"45%\"})`,\n }),\n};\n\n/** Fixed-slot digits and mask glyphs that roll when their value changes. */\nexport function DigitSwap({\n value,\n animationKey,\n direction = \"up\",\n duration = 0.18,\n stagger = 0.006,\n suffixLength = 0,\n className,\n glyphClassName,\n suffixClassName,\n}: DigitSwapProps) {\n const reduceMotion = useReducedMotion() ?? false;\n const text = String(value);\n const suffixStart = Math.max(0, text.length - Math.max(0, suffixLength));\n const motionContext: GlyphMotionContext = { direction, reduceMotion };\n const glyphs = Array.from(text, (character, position) => ({\n character,\n id: `glyph-${position}`,\n position,\n }));\n\n return (\n <span\n data-slot=\"digit-swap\"\n data-direction={direction}\n className={cn(\"inline-flex items-center whitespace-nowrap\", className)}\n >\n <span className=\"sr-only\">{text}</span>\n <span aria-hidden=\"true\" className=\"inline-flex items-center\">\n {glyphs.map(({ character, id, position }) => {\n if (character === \" \") {\n return <span key={id} className=\"inline-block w-[0.7ch]\" />;\n }\n\n const glyphKey =\n animationKey === undefined\n ? `${id}-${character}`\n : `${id}-${character}-${animationKey}`;\n\n return (\n <span\n key={id}\n data-slot=\"digit-swap-glyph\"\n className=\"relative inline-block h-[1.1em] w-[1ch] shrink-0 overflow-hidden align-bottom\"\n >\n <AnimatePresence initial={false} custom={motionContext}>\n <motion.span\n key={glyphKey}\n custom={motionContext}\n variants={GLYPH_VARIANTS}\n initial=\"enter\"\n animate=\"visible\"\n exit=\"exit\"\n transition={{\n duration: reduceMotion ? Math.min(duration, 0.12) : duration,\n delay: reduceMotion ? 0 : position * stagger,\n ease: EASE_OUT,\n }}\n className={cn(\n \"absolute inset-0 flex items-center justify-center leading-none\",\n glyphClassName,\n position >= suffixStart ? suffixClassName : undefined,\n )}\n >\n {character}\n </motion.span>\n </AnimatePresence>\n </span>\n );\n })}\n </span>\n </span>\n );\n}\n"],"mappings":";;;;;;AAgCA,MAAM,iBAAiB;CACrB,QAAQ,EAAE,WAAW,oBAAwC;EAC3D,SA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AI;QACpD,OAAO,eAAe,IAAI,WAAW;QACrC,MAAM;OACR;OACA,WAAW,GACT,kEACA,gBACA,YAAY,cAAc,kBAAkB,KAAA,CAC9C;OAEC,UAAA;MACU,GAlBN,QAkBM;KACE,CAAA;IACb,GA1BC,EA0BD;GAEV,CAAC;EACG,CAAA,CACF;;AAEV"}
@@ -5,9 +5,9 @@ import { StatefulButton } from "./button/stateful.js";
5
5
  import "./button/index.js";
6
6
  import { useCallback, useEffect, useRef, useState } from "react";
7
7
  import { cn } from "@kumix/utils";
8
- import { AlertCircle, MessageSquare, X } from "lucide-react";
9
8
  import { jsx, jsxs } from "react/jsx-runtime";
10
9
  import { AnimatePresence, motion, useReducedMotion } from "motion/react";
10
+ import { AlertCircle, MessageSquare, X } from "lucide-react";
11
11
  //#region src/components/motion/feedback-widget.tsx
12
12
  const SUCCESS_DURATION_MS = 1600;
13
13
  const MORPH_OPEN_EASE = [
@@ -3,9 +3,9 @@ import { EASE_OUT, SPRING_LAYOUT, SPRING_SWAP } from "../../lib/ease.js";
3
3
  import { SharedLayoutBg } from "./shared-layout-bg.js";
4
4
  import { Children, Fragment, isValidElement, useCallback, useMemo, useRef, useState } from "react";
5
5
  import { cn } from "@kumix/utils";
6
- import { ChevronRight, File, Folder, FolderOpen } from "lucide-react";
7
6
  import { jsx, jsxs } from "react/jsx-runtime";
8
7
  import { AnimatePresence, motion, useReducedMotion } from "motion/react";
8
+ import { ChevronRight, File, Folder, FolderOpen } from "lucide-react";
9
9
  //#region src/components/motion/file-tree.tsx
10
10
  function FileTreeFolder(_props) {
11
11
  return null;
@@ -2,9 +2,9 @@
2
2
  import { EASE_OUT } from "../../lib/ease.js";
3
3
  import { useCallback, useId, useRef, useState } from "react";
4
4
  import { cn } from "@kumix/utils";
5
- import { AlertCircle, CheckCircle2, FileArchive, FileAudio, FileCode2, FileIcon, FileImage, FileSpreadsheet, FileText, FileVideo, Loader2, RotateCcw, UploadCloud, X } from "lucide-react";
6
5
  import { jsx, jsxs } from "react/jsx-runtime";
7
6
  import { AnimatePresence, motion, useReducedMotion } from "motion/react";
7
+ import { AlertCircle, CheckCircle2, FileArchive, FileAudio, FileCode2, FileIcon, FileImage, FileSpreadsheet, FileText, FileVideo, Loader2, RotateCcw, UploadCloud, X } from "lucide-react";
8
8
  //#region src/components/motion/file-upload.tsx
9
9
  const ROW_TRANSITION = {
10
10
  duration: .22,
@@ -2,9 +2,9 @@
2
2
  import { EASE_OUT, SPRING_PANEL } from "../../lib/ease.js";
3
3
  import { useEffect, useRef, useState } from "react";
4
4
  import { cn } from "@kumix/utils";
5
- import { AlertCircle, Inbox } from "lucide-react";
6
5
  import { jsx, jsxs } from "react/jsx-runtime";
7
6
  import { motion, useReducedMotion } from "motion/react";
7
+ import { AlertCircle, Inbox } from "lucide-react";
8
8
  import { useVirtualizer } from "@tanstack/react-virtual";
9
9
  //#region src/components/motion/infinite-masonry.tsx
10
10
  function useMasonryMetrics({ elementRef, gap, maxColumns, minColumnWidth }) {
@@ -4,9 +4,9 @@ import { useRowCursor } from "../../hooks/use-row-cursor.js";
4
4
  import { EASE_OUT, SPRING_LAYOUT } from "../../lib/ease.js";
5
5
  import { useCallback, useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
6
6
  import { cn } from "@kumix/utils";
7
- import { Search } from "lucide-react";
8
7
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
8
  import { AnimatePresence, LayoutGroup, motion, useReducedMotion } from "motion/react";
9
+ import { Search } from "lucide-react";
10
10
  import { createPortal } from "react-dom";
11
11
  //#region src/components/motion/morphing-search.tsx
12
12
  const SEARCH_MORPH = {
@@ -3,9 +3,9 @@ import { TOUCH_GESTURE_CLASS, capturePointer } from "../../lib/touch.js";
3
3
  import { EASE_OUT, SPRING_GLIDE, SPRING_PRESS } from "../../lib/ease.js";
4
4
  import { useCallback, useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
5
5
  import { cn } from "@kumix/utils";
6
- import { X } from "lucide-react";
7
6
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
7
  import { AnimatePresence, animate, motion, useMotionValue, useReducedMotion, useSpring, useTransform } from "motion/react";
8
+ import { X } from "lucide-react";
9
9
  import { createPortal } from "react-dom";
10
10
  //#region src/components/motion/morphing-tabs.tsx
11
11
  const DRAG_THRESHOLD = 5;
@@ -3,9 +3,9 @@ import { EASE_OUT, SPRING_LAYOUT } from "../../../lib/ease.js";
3
3
  import { MultiSelectGroupContext, useMultiSelectContext } from "./context.js";
4
4
  import { useContext, useId, useLayoutEffect, useMemo, useRef } from "react";
5
5
  import { cn } from "@kumix/utils";
6
- import { Check } from "lucide-react";
7
6
  import { jsx, jsxs } from "react/jsx-runtime";
8
7
  import { motion } from "motion/react";
8
+ import { Check } from "lucide-react";
9
9
  //#region src/components/motion/multi-select/list.tsx
10
10
  function MultiSelectList({ children, ariaLabel = "Options", className }) {
11
11
  const context = useMultiSelectContext("MultiSelectList");
@@ -2,9 +2,9 @@
2
2
  import { EASE_OUT, SPRING_LAYOUT, SPRING_SWAP } from "../../../lib/ease.js";
3
3
  import { mergeRefs, useMultiSelectContext } from "./context.js";
4
4
  import { cn } from "@kumix/utils";
5
- import { ChevronsUpDown, Search, X } from "lucide-react";
6
5
  import { jsx, jsxs } from "react/jsx-runtime";
7
6
  import { AnimatePresence, motion } from "motion/react";
7
+ import { ChevronsUpDown, Search, X } from "lucide-react";
8
8
  //#region src/components/motion/multi-select/trigger.tsx
9
9
  function MultiSelectTrigger({ children, className }) {
10
10
  const context = useMultiSelectContext("MultiSelectTrigger");
@@ -6,9 +6,9 @@ import { EASE_OUT, SPRING_LAYOUT } from "../../lib/ease.js";
6
6
  import { ActionSwapText } from "./action-swap.js";
7
7
  import { useCallback, useRef, useState } from "react";
8
8
  import { cn } from "@kumix/utils";
9
- import { ArrowUpRight, BellOff } from "lucide-react";
10
9
  import { jsx, jsxs } from "react/jsx-runtime";
11
10
  import { motion, useReducedMotion } from "motion/react";
11
+ import { ArrowUpRight, BellOff } from "lucide-react";
12
12
  //#region src/components/motion/notification-stack.tsx
13
13
  const STACK_PEEK = 8;
14
14
  const STACK_INSET = 12;
@@ -3,9 +3,9 @@ import { useHoverCapable } from "../../hooks/use-hover-capable.js";
3
3
  import { EASE_OUT } from "../../lib/ease.js";
4
4
  import { useCallback, useId, useLayoutEffect, useRef, useState } from "react";
5
5
  import { cn } from "@kumix/utils";
6
- import { MoreHorizontal, X } from "lucide-react";
7
6
  import { jsx, jsxs } from "react/jsx-runtime";
8
7
  import { AnimatePresence, motion, useReducedMotion } from "motion/react";
8
+ import { MoreHorizontal, X } from "lucide-react";
9
9
  //#region src/components/motion/overflow-actions.tsx
10
10
  const SHELL_TRANSITION = {
11
11
  type: "spring",
@@ -3,9 +3,9 @@ import { useHoverCapable } from "../../hooks/use-hover-capable.js";
3
3
  import { SPRING_LAYOUT, SPRING_PRESS } from "../../lib/ease.js";
4
4
  import { useCallback, useEffect, useId, useRef, useState } from "react";
5
5
  import { cn } from "@kumix/utils";
6
- import { X } from "lucide-react";
7
6
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
7
  import { AnimatePresence, LayoutGroup, motion, useReducedMotion } from "motion/react";
8
+ import { X } from "lucide-react";
9
9
  import { createPortal } from "react-dom";
10
10
  //#region src/components/motion/project-folder.tsx
11
11
  const MAX_PREVIEWS = 5;
@@ -0,0 +1,18 @@
1
+ import { SliderOptions } from "../../hooks/use-slider.js";
2
+ //#region src/components/motion/range-slider-inline.d.ts
3
+ export interface InlineSliderProps extends SliderOptions {
4
+ /** Rounds snap-stop values. While dragging, the readout keeps this step's decimal precision. */
5
+ step?: number;
6
+ /** Compact label inside the left edge of the track. */
7
+ label: string;
8
+ /** Formats the inline value without changing its precision. */
9
+ format?: (value: number) => string;
10
+ /** Show markers for the ten evenly spaced snap stops, except where they overlap inline text. */
11
+ showTicks?: boolean;
12
+ className?: string;
13
+ }
14
+ /** An always-visible inline slider with an inset fill and a thumb that parts
15
+ * around its labels, keeping their text readable as the handle passes them. */
16
+ export declare function InlineSlider({ label, format, showTicks, className, ...options }: InlineSliderProps): import("react").JSX.Element;
17
+ //#endregion
18
+ //# sourceMappingURL=range-slider-inline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"range-slider-inline.d.ts","names":[],"sources":["../../../src/components/motion/range-slider-inline.tsx"],"mappings":";;iBA2CiB,0BAA0B;;EAEzC;;EAEA;;EAEA,UAAU;;EAEV;EACA;;;;wBAKc,eACd,OACA,QACA,WACA,cACG,WACF,oCAAiB,IAAA"}