@yewdiel21/motion-kit 0.18.0 → 0.19.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 +240 -222
- package/dist/auto/index.d.ts +4 -3
- package/dist/auto/index.js +5 -3
- package/dist/auto/index.js.map +1 -1
- package/dist/{chunk-QFBOHPWZ.js → chunk-CQP66AZK.js} +2 -2
- package/dist/{chunk-QP4QJOEN.js → chunk-H4STLMCM.js} +2 -2
- package/dist/{chunk-EDMXWUW3.js → chunk-KDIJX6G4.js} +3 -3
- package/dist/{chunk-DOOMULVV.js → chunk-OLT3CWDJ.js} +4 -2
- package/dist/chunk-OLT3CWDJ.js.map +1 -0
- package/dist/{chunk-AWDEKDEJ.js → chunk-PEDYJ2TV.js} +8 -22
- package/dist/chunk-PEDYJ2TV.js.map +1 -0
- package/dist/{chunk-Q7IW4FV3.js → chunk-Y4GIBTRG.js} +1422 -967
- package/dist/chunk-Y4GIBTRG.js.map +1 -0
- package/dist/css/components/code-block.css +267 -0
- package/dist/css/components/command-search.css +274 -2
- package/dist/css/components/dialog.css +264 -0
- package/dist/css/components/heatmap-chart.css +267 -1
- package/dist/css/components/scroll-area.css +261 -0
- package/dist/css/components/select.css +284 -4
- package/dist/elements/index.d.ts +15 -4
- package/dist/elements/index.js +36 -6
- package/dist/elements/index.js.map +1 -1
- package/dist/{engine-t8d7brjn.d.ts → engine-D6XV-WNt.d.ts} +50 -1
- package/dist/gl/index.js +2 -2
- package/dist/index.css +308 -7
- package/dist/index.d.ts +3 -3
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/react/index.d.ts +20 -7
- package/dist/react/index.js +56 -7
- package/dist/react/index.js.map +1 -1
- package/dist/{reduced-dPsZYqtI.d.ts → reduced-4croIXl-.d.ts} +1 -1
- package/dist/{store-6hZNKiee.d.ts → store-CAHWkurn.d.ts} +1 -1
- package/package.json +110 -110
- package/registry.json +1357 -1340
- package/src/auto/auto-init.ts +341 -339
- package/src/components/code-block/README.md +1 -1
- package/src/components/code-block/code-block.css +5 -0
- package/src/components/code-block/engine.ts +5 -0
- package/src/components/command-search/README.md +1 -1
- package/src/components/command-search/command-search.css +12 -2
- package/src/components/command-search/engine.ts +6 -0
- package/src/components/dialog/README.md +104 -103
- package/src/components/dialog/dialog.css +2 -0
- package/src/components/dialog/engine.ts +465 -449
- package/src/components/heatmap-chart/README.md +48 -48
- package/src/components/heatmap-chart/engine.ts +6 -1
- package/src/components/heatmap-chart/heatmap-chart.css +5 -1
- package/src/components/icons.ts +1 -0
- package/src/components/scroll-area/README.md +89 -0
- package/src/components/scroll-area/element.ts +35 -0
- package/src/components/scroll-area/engine.ts +528 -0
- package/src/components/scroll-area/react.tsx +67 -0
- package/src/components/scroll-area/scroll-area.css +260 -0
- package/src/components/select/README.md +1 -1
- package/src/components/select/engine.ts +16 -4
- package/src/components/select/select.css +22 -4
- package/src/core/timing.ts +2 -0
- package/src/elements/index.ts +321 -318
- package/src/index.ts +1 -0
- package/src/motion/morph.ts +5 -2
- package/src/react/index.ts +2 -1
- package/dist/chunk-AWDEKDEJ.js.map +0 -1
- package/dist/chunk-DOOMULVV.js.map +0 -1
- package/dist/chunk-Q7IW4FV3.js.map +0 -1
- /package/dist/{chunk-QFBOHPWZ.js.map → chunk-CQP66AZK.js.map} +0 -0
- /package/dist/{chunk-QP4QJOEN.js.map → chunk-H4STLMCM.js.map} +0 -0
- /package/dist/{chunk-EDMXWUW3.js.map → chunk-KDIJX6G4.js.map} +0 -0
package/dist/react/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { useLayoutEffect, RefObject, DependencyList, ReactNode, CSSProperties, Component, ButtonHTMLAttributes, DialogHTMLAttributes, HTMLAttributes, MutableRefObject, ContextType, TextareaHTMLAttributes, MouseEvent, FormHTMLAttributes, InputHTMLAttributes, Ref, ReactElement } from 'react';
|
|
3
3
|
import { I as Instance } from '../types-BkS_raL8.js';
|
|
4
|
-
import { b9 as SpringCardsOptions, a4 as CurvedCarouselOptions, C as CurvedCarouselInstance, aN as PileOptions, bo as WordsOptions, bn as WordsInstance, ao as FlowOptions, an as FlowInstance, aP as PopOptions, aO as PopInstance, al as FitTextOptions, ak as FitTextInstance, be as StretchFooterOptions, aR as RadialMenuOptions, aQ as RadialMenuInstance, bg as TabsOptions, bf as TabsInstance, a3 as CounterOptions, a2 as CounterInstance, aY as RevealRecipeOptions, aX as RevealInstance, aT as ReflowOptions, aS as ReflowInstance, b2 as SlotTextOptions, b1 as SlotTextInstance, b7 as SortableOptions, b5 as SortableInstance, aI as MaskTextOptions, aH as MaskTextInstance, $ as CascadeOptions, _ as CascadeInstance, bi as TextRollOptions, bh as TextRollInstance, aC as LettersOptions, aB as LettersInstance, aK as ParallaxOptions, aJ as ParallaxInstance, a6 as DepthGridOptions, a5 as DepthGridInstance, au as FrameZoomOptions, at as FrameZoomInstance, a1 as ContrastOptions, a0 as ContrastInstance, aG as MarqueeOptions, aF as MarqueeInstance, Z as CardDockOptions, Y as CardDockInstance, b4 as SnapStripOptions, b3 as SnapStripInstance, ah as FillTextOptions, ag as FillTextInstance, T as TicketMenuOptions, ay as InfiniteReelOptions, ax as InfiniteReelInstance, aW as RepelBentoOptions, aV as RepelBentoInstance, a_ as RotatorOptions, aZ as RotatorInstance, aa as DragRulerOptions, a9 as DragRulerInstance, a8 as DockPillOptions, a7 as DockPillInstance, aA as JoinedCtaOptions, az as JoinedCtaInstance, aw as ImageZoomOptions, av as ImageZoomInstance, as as FontCycleOptions, ar as FontCycleInstance, bk as ThumbnailNavOptions, bj as ThumbnailNavInstance, W as ActionButtonOptions, V as ActionButtonInstance, aj as FilmHeroOptions, ai as FilmHeroInstance, af as EditorialRevealOptions, ae as EditorialRevealInstance, bm as WeightHoverOptions, bl as WeightHoverInstance, bb as StickerOptions, ba as StickerInstance, b0 as ScrollDockOptions, a$ as ScrollDockInstance, aE as LocalClockOptions, aD as LocalClockInstance, ad as DrawerSide } from '../reduced-
|
|
5
|
-
export { U as MK_HEAD_SCRIPT, aM as PileLayer, aU as ReorderDetail, bu as moveItem, bv as pileLayers, bw as pileStyle } from '../reduced-
|
|
6
|
-
import {
|
|
7
|
-
export {
|
|
4
|
+
import { b9 as SpringCardsOptions, a4 as CurvedCarouselOptions, C as CurvedCarouselInstance, aN as PileOptions, bo as WordsOptions, bn as WordsInstance, ao as FlowOptions, an as FlowInstance, aP as PopOptions, aO as PopInstance, al as FitTextOptions, ak as FitTextInstance, be as StretchFooterOptions, aR as RadialMenuOptions, aQ as RadialMenuInstance, bg as TabsOptions, bf as TabsInstance, a3 as CounterOptions, a2 as CounterInstance, aY as RevealRecipeOptions, aX as RevealInstance, aT as ReflowOptions, aS as ReflowInstance, b2 as SlotTextOptions, b1 as SlotTextInstance, b7 as SortableOptions, b5 as SortableInstance, aI as MaskTextOptions, aH as MaskTextInstance, $ as CascadeOptions, _ as CascadeInstance, bi as TextRollOptions, bh as TextRollInstance, aC as LettersOptions, aB as LettersInstance, aK as ParallaxOptions, aJ as ParallaxInstance, a6 as DepthGridOptions, a5 as DepthGridInstance, au as FrameZoomOptions, at as FrameZoomInstance, a1 as ContrastOptions, a0 as ContrastInstance, aG as MarqueeOptions, aF as MarqueeInstance, Z as CardDockOptions, Y as CardDockInstance, b4 as SnapStripOptions, b3 as SnapStripInstance, ah as FillTextOptions, ag as FillTextInstance, T as TicketMenuOptions, ay as InfiniteReelOptions, ax as InfiniteReelInstance, aW as RepelBentoOptions, aV as RepelBentoInstance, a_ as RotatorOptions, aZ as RotatorInstance, aa as DragRulerOptions, a9 as DragRulerInstance, a8 as DockPillOptions, a7 as DockPillInstance, aA as JoinedCtaOptions, az as JoinedCtaInstance, aw as ImageZoomOptions, av as ImageZoomInstance, as as FontCycleOptions, ar as FontCycleInstance, bk as ThumbnailNavOptions, bj as ThumbnailNavInstance, W as ActionButtonOptions, V as ActionButtonInstance, aj as FilmHeroOptions, ai as FilmHeroInstance, af as EditorialRevealOptions, ae as EditorialRevealInstance, bm as WeightHoverOptions, bl as WeightHoverInstance, bb as StickerOptions, ba as StickerInstance, b0 as ScrollDockOptions, a$ as ScrollDockInstance, aE as LocalClockOptions, aD as LocalClockInstance, ad as DrawerSide } from '../reduced-4croIXl-.js';
|
|
5
|
+
export { U as MK_HEAD_SCRIPT, aM as PileLayer, aU as ReorderDetail, bu as moveItem, bv as pileLayers, bw as pileStyle } from '../reduced-4croIXl-.js';
|
|
6
|
+
import { ct as MenuInstance, bC as DialogOptions, bA as DialogInstance, c_ as QuantityOptions, cK as PaginationOptions, cb as HoverCardOptions, ch as InputOtpOptions, e8 as StudioDockOptions, e7 as StudioDockInstance, er as TrailerOptions, eq as TrailerInstance, aR as CalendarOptions, dT as SlotPickerOptions, aA as AttachmentOptions, aD as AttachmentStatus, ay as AttachmentInstance, dP as SkeletonOptions, c$ as QuestionnaireAnswers, d1 as QuestionnaireLabels, d0 as QuestionnaireInstance, b3 as CodeBlockOptions, bE as DialogVariant, bh as ContextMenuInstance, cm as LinkPreviewOptions, cX as ProgressOptions, d9 as RangeSliderOptions, da as RangeValue$2, aW as ChartOptions, aV as ChartInstance, bm as CreditCardOptions, bk as CreditCardInstance, be as CommandItem, bf as CommandSearchInstance, c9 as HoldConfirmOptions, cf as ImagePreviewOptions, ce as ImagePreviewInstance, cC as NotificationBellInstance, cR as PasswordStrengthOptions, dq as ScratchCardOptions, dp as ScratchCardInstance, d$ as StarRatingOptions, bd as ColorSliderOptions, b5 as ColorAreaOptions, b8 as ColorFieldOptions, bb as ColorPickerOptions, ei as TimeFieldOptions, d7 as RangeCalendarOptions, ap as DateInput, bx as DateRangePickerOptions, ep as TooltipOptions, cV as PopoverOptions, cp as LoadingButtonOptions, cq as LoadingState, aL as BreadcrumbOptions, aK as BreadcrumbItem, bP as EmptyStateOptions, e1 as StatCardOptions, a_ as ChartTooltipOptions, cz as MultiSelectOptions, ed as TagInputOptions, bz as DateTimePickerOptions, b$ as FilterBuilderOptions, c2 as FilterGroup, em as TimelineOptions, ek as TimelineEvent, as as ActivityFeedOptions, at as ActivityItem, eu as TreeViewOptions, es as TreeNode, et as TreeViewInstance, bW as FileExplorerOptions, bU as FileEntry, bV as FileExplorerInstance, ck as JsonViewerOptions, cj as JsonViewerInstance, ex as VirtualListOptions, ez as VirtualScrollOptions, de as ResizablePanelOptions, dd as ResizablePanelInstance, dZ as SplitViewOptions, dY as SplitViewInstance, br as DataRow, bu as DataTableOptions, bt as DataTableInstance, bK as EditableTableOptions, bJ as EditableTableInstance, dk as RichTextEditorOptions, dj as RichTextEditorInstance, dC as SelectOptions, aw as AddToCartOptions, av as AddToCartInstance, dw as ScrollIslandOptions, dK as SignaturePadOptions, dE as SignatureData, dJ as SignaturePadInstance, eF as WaveformPlayerOptions, eE as WaveformPlayerInstance, eC as VoiceMessageBubbleOptions, eB as VoiceMessageBubbleInstance, bH as DrilldownMenuOptions, bG as DrilldownMenuItem, bF as DrilldownMenuInstance, eL as WheelPickerOptions, eJ as WheelPickerInstance, e4 as StepperOptions, e2 as StepperInstance, d5 as RadioGroupOptions, d3 as RadioGroupInstance, bR as EqualizerSliderOptions, bQ as EqualizerSliderInstance, ef as TemperatureSliderOptions, ee as TemperatureSliderInstance, dc as RatingScaleOptions, db as RatingScaleInstance, cH as NotificationStackOptions, cF as NotificationStackInstance, aI as BentoGridOptions, aH as BentoGridInstance, dz as ScrollPreviewDockOptions, dx as ScrollPreviewDockInstance, e6 as StickyHeaderOptions, e5 as StickyHeaderInstance, c7 as HandwritingTextOptions, c6 as HandwritingTextInstance, cN as ParticleButtonOptions, cM as ParticleButtonInstance, cs as MagnetizeButtonOptions, cr as MagnetizeButtonInstance, aG as BadgeButtonOptions, aF as BadgeButtonInstance, cw as MorphingPageDotsOptions, cv as MorphingPageDotsInstance, cB as NotFoundOptions, cA as NotFoundInstance, dt as ScrollAreaOptions, ds as ScrollAreaInstance } from '../engine-D6XV-WNt.js';
|
|
7
|
+
export { aq as ActivityActor, au as ActivityKind, bo as DataAction, bp as DataColumn, bs as DataSort, bI as EditableColumn, bL as EditorKind, bT as FileChange, bZ as FileView, di as RichCommand, dl as RowChange, dm as RowId, en as TimelineStatus } from '../engine-D6XV-WNt.js';
|
|
8
8
|
import { LiquidBlendOptions, ShaderEffectInstance, MatcapOptions, ShaderGrainOptions, ShaderBlurOptions, ParticleHeroOptions, ParticleHeroInstance } from '../gl/index.js';
|
|
9
9
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
10
10
|
import { T as ThemeState, s as setTheme, a as setMode, I as InitThemeOptions, b as ThemeMode } from '../theme-Bjf9qIIy.js';
|
|
11
11
|
export { M as MK_THEME_HEAD_SCRIPT, t as themeHeadScript } from '../theme-Bjf9qIIy.js';
|
|
12
|
-
import { F as ThemePickerOptions, Q as ToasterLabels, b as ChatLabels, C as ChatInstance, _ as capturePending, d as ChatRole, n as NavStyle, o as NavStyleAlias, g as CursorVariant, f as CursorOptions, j as IslandOptions, I as IslandInstance, W as ToolbarOptions, V as ToolbarInstance, a as BidirectionalSliderOptions, B as BidirectionalSliderInstance, Y as VoiceDotsOptions, X as VoiceDotsInstance, s as PieChartOptions, r as PieChartInstance, u as RadarChartOptions, R as RadarChartInstance, x as RadialChartOptions, w as RadialChartInstance, z as SankeyChartOptions, S as SankeyChartInstance, h as HeatmapChartOptions, H as HeatmapChartInstance, q as OrbitMenuOptions, O as OrbitMenuInstance } from '../store-
|
|
13
|
-
export { N as NAV_STYLES, k as NAV_STYLE_ALIASES, G as ToastAction, K as ToastOptions, L as ToastTone, a0 as clearToasts, ag as dismissToast, am as toNavStyle, an as toast } from '../store-
|
|
12
|
+
import { F as ThemePickerOptions, Q as ToasterLabels, b as ChatLabels, C as ChatInstance, _ as capturePending, d as ChatRole, n as NavStyle, o as NavStyleAlias, g as CursorVariant, f as CursorOptions, j as IslandOptions, I as IslandInstance, W as ToolbarOptions, V as ToolbarInstance, a as BidirectionalSliderOptions, B as BidirectionalSliderInstance, Y as VoiceDotsOptions, X as VoiceDotsInstance, s as PieChartOptions, r as PieChartInstance, u as RadarChartOptions, R as RadarChartInstance, x as RadialChartOptions, w as RadialChartInstance, z as SankeyChartOptions, S as SankeyChartInstance, h as HeatmapChartOptions, H as HeatmapChartInstance, q as OrbitMenuOptions, O as OrbitMenuInstance } from '../store-CAHWkurn.js';
|
|
13
|
+
export { N as NAV_STYLES, k as NAV_STYLE_ALIASES, G as ToastAction, K as ToastOptions, L as ToastTone, a0 as clearToasts, ag as dismissToast, am as toNavStyle, an as toast } from '../store-CAHWkurn.js';
|
|
14
14
|
import { C as CapturedLayout } from '../confetti-BSX1CLLV.js';
|
|
15
15
|
export { A as ANIMATIONS, b as AnimationName, d as ConfettiOptions, e as animate, g as confetti, l as leave } from '../confetti-BSX1CLLV.js';
|
|
16
16
|
import 'gsap/SplitText';
|
|
@@ -210,6 +210,7 @@ declare const ICON_PATHS: {
|
|
|
210
210
|
readonly mic: "M12 3a3 3 0 00-3 3v6a3 3 0 006 0V6a3 3 0 00-3-3zM5.5 11a6.5 6.5 0 0013 0M12 17.5V21";
|
|
211
211
|
readonly sparkle: "M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z";
|
|
212
212
|
readonly grip: "M9 6h.01M15 6h.01M9 12h.01M15 12h.01M9 18h.01M15 18h.01";
|
|
213
|
+
readonly toTop: "M12 20V9M6.5 14.5L12 9l5.5 5.5M6 4.5h12";
|
|
213
214
|
};
|
|
214
215
|
type IconName = keyof typeof ICON_PATHS;
|
|
215
216
|
|
|
@@ -1378,4 +1379,16 @@ interface NotFoundProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'
|
|
|
1378
1379
|
}
|
|
1379
1380
|
declare function NotFound({ brand, title, description, homeHref, homeLabel, backLabel, showBack, onBack, instanceRef, className, ...props }: NotFoundProps): react_jsx_runtime.JSX.Element;
|
|
1380
1381
|
|
|
1381
|
-
|
|
1382
|
+
interface ScrollAreaProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onScroll'>, Omit<ScrollAreaOptions, 'viewport'> {
|
|
1383
|
+
/** Class and style of the element that scrolls (padding, gap, layout of the content). */
|
|
1384
|
+
viewportClassName?: string;
|
|
1385
|
+
viewportStyle?: CSSProperties;
|
|
1386
|
+
unstyled?: boolean;
|
|
1387
|
+
instanceRef?: MutableRefObject<ScrollAreaInstance | null>;
|
|
1388
|
+
}
|
|
1389
|
+
/**
|
|
1390
|
+
* <ScrollArea style={{ height: 320 }} backToTop>…</ScrollArea>: the children scroll in a viewport with the kit's bars.
|
|
1391
|
+
*/
|
|
1392
|
+
declare function ScrollArea({ visibility, axis, idle, fade, backToTop, label, focusable, decorative, onScroll, viewportClassName, viewportStyle, unstyled, instanceRef, className, children, ...props }: ScrollAreaProps): react_jsx_runtime.JSX.Element;
|
|
1393
|
+
|
|
1394
|
+
export { ActivityFeed, type ActivityFeedHandle, type ActivityFeedProps, ActivityItem, AddToCart, type AddToCartProps, AnimatedNumber, type AnimatedNumberProps, Attachment, type AttachmentProps, type AttachmentUpload, BadgeButton, type BadgeButtonProps, BentoGrid, type BentoGridProps, BidirectionalSlider, type BidirectionalSliderProps, Breadcrumb, type BreadcrumbProps, Calendar, type CalendarProps, Chart, type ChartProps, ChartTooltip, type ChartTooltipProps, Chat, ChatBackground, type ChatBackgroundProps, type ChatComposerProps, type ChatMessageProps, type ChatMessagesProps, type ChatRootProps, CodeBlock, type CodeBlockProps, ColorArea, type ColorAreaProps, ColorField, type ColorFieldProps, ColorPicker, type ColorPickerProps, ColorSlider, type ColorSliderProps, CommandItem, CommandSearch, type CommandSearchProps, ContextMenu, type ContextMenuProps, CreditCard, type CreditCardProps, Cursor, type CursorProps, DataRow, DataTable, type DataTableHandle, type DataTableProps, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, Dialog, type DialogContentProps, Drawer, type DrawerRootProps, DrilldownMenu, type DrilldownMenuHandle, type DrilldownMenuProps, EditableTable, type EditableTableHandle, type EditableTableProps, EmptyState, type EmptyStateProps, EqualizerSlider, type EqualizerSliderProps, FileEntry, FileExplorer, type FileExplorerHandle, type FileExplorerProps, FilterBuilder, type FilterBuilderProps, FlipGroup, type FlipGroupProps, Frost, type FrostProps, HandwritingText, type HandwritingTextProps, HeatmapChart, type HeatmapChartProps, HoldConfirm, type HoldConfirmProps, HoverCard, type HoverCardProps, ImagePreview, type ImagePreviewProps, InputOtp, type InputOtpProps, Island, IslandDots, type IslandPanel, type IslandProps, JsonViewer, type JsonViewerHandle, type JsonViewerProps, LikeButton, type LikeButtonProps, LinkPreview, type LinkPreviewProps, LoadingButton, type LoadingButtonProps, MagnetizeButton, type MagnetizeButtonProps, Menu, type MenuRootProps, MkIcon, MorphingPageDots, type MorphingPageDotsProps, MultiSelect, type MultiSelectProps, Nav, type NavItem, type NavProps, NavStyle, NavStyleAlias, NotFound, type NotFoundProps, NotificationBell, type NotificationBellProps, NotificationStack, type NotificationStackProps, OrbitMenu, type OrbitMenuProps, Pagination, type PaginationProps, ParticleButton, type ParticleButtonProps, PasswordStrength, type PasswordStrengthProps, PieChart, type PieChartProps, PillButton, type PillButtonProps, Popover, type PopoverProps, type PreviewImage, Progress, type ProgressProps, Quantity, type QuantityProps, type Question, type QuestionOption, type QuestionType, Questionnaire, type QuestionnaireProps, RadarChart, type RadarChartProps, RadialChart, type RadialChartProps, RadioGroup, type RadioGroupProps, RangeCalendar, type RangeCalendarProps, RangeSlider, type RangeSliderProps, RatingScale, type RatingScaleProps, ResizablePanel, type ResizablePanelHandle, type ResizablePanelProps, RichTextEditor, type RichTextEditorHandle, type RichTextEditorProps, SankeyChart, type SankeyChartProps, ScratchCard, type ScratchCardProps, ScrollArea, type ScrollAreaProps, ScrollIsland, type ScrollIslandProps, ScrollPreviewDock, type ScrollPreviewDockProps, Select, type SelectProps, SignaturePad, type SignaturePadProps, Skeleton, type SkeletonProps, SlotPicker, type SlotPickerProps, SlotText, type SlotTextProps, SplitView, type SplitViewHandle, type SplitViewProps, StarRating, type StarRatingProps, StatCard, type StatCardProps, Stepper, type StepperProps, Steps, type StepsProps, StickyHeader, type StickyHeaderProps, StudioDock, type StudioDockProps, type SurfaceRootProps, type SwipeAction, SwipeActions, type SwipeActionsProps, type SwipeRowProps, TagInput, type TagInputProps, TemperatureSlider, type TemperatureSliderProps, type ThemeContextValue, ThemePicker, type ThemePickerProps, ThemeProvider, type ThemeProviderProps, TimeField, type TimeFieldProps, Timeline, TimelineEvent, type TimelineProps, Toaster, type ToasterProps, Toolbar, type ToolbarProps, Tooltip, type TooltipProps, Trailer, type TrailerProps, TreeNode, TreeView, type TreeViewHandle, type TreeViewProps, type UseStretchFooterOptions, VirtualList, type VirtualListHandle, type VirtualListProps, VoiceDots, type VoiceDotsProps, VoiceMessageBubble, type VoiceMessageBubbleProps, WaveformPlayer, type WaveformPlayerProps, WheelPicker, type WheelPickerProps, useActionButton, useCardDock, useCascade, useChat, useContrast, useCounter, useCurvedCarousel, useDepthGrid, useDetails, useDialog, useDockPill, useDragRuler, useDrawer, useEditorialReveal, useFillText, useFilmHero, useFitText, useFlow, useFontCycle, useFrameZoom, useImageZoom, useInfiniteReel, useIsomorphicLayoutEffect, useJoinedCta, useLatest, useLetters, useLiquidBlend, useLocalClock, useMarquee, useMaskText, useMatcap, useParallax, useParticleHero, usePile, usePop, useRadialMenu, useRecipe, useReflow, useRepelBento, useReveal, useRotator, useScrollDock, useShaderBlur, useShaderGrain, useSlotText, useSnapStrip, useSortable, useSpringCards, useSticker, useStretchFooter, useStudioDock, useTabs, useTextRoll, useTheme, useThumbnailNav, useTicketMenu, useTrailer, useWeightHover, useWords };
|
package/dist/react/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ANIMATIONS,
|
|
4
4
|
animate,
|
|
5
5
|
leave
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-H4STLMCM.js";
|
|
7
7
|
import {
|
|
8
8
|
captureLayout,
|
|
9
9
|
createActionButton,
|
|
@@ -55,9 +55,8 @@ import {
|
|
|
55
55
|
pileLayers,
|
|
56
56
|
pileStyle,
|
|
57
57
|
reflowLayout
|
|
58
|
-
} from "../chunk-
|
|
58
|
+
} from "../chunk-KDIJX6G4.js";
|
|
59
59
|
import {
|
|
60
|
-
ICON_PATHS,
|
|
61
60
|
NAV_STYLES,
|
|
62
61
|
NAV_STYLE_ALIASES,
|
|
63
62
|
PENDING_ID,
|
|
@@ -84,8 +83,9 @@ import {
|
|
|
84
83
|
revealShell,
|
|
85
84
|
toNavStyle,
|
|
86
85
|
toast
|
|
87
|
-
} from "../chunk-
|
|
86
|
+
} from "../chunk-PEDYJ2TV.js";
|
|
88
87
|
import {
|
|
88
|
+
ICON_PATHS,
|
|
89
89
|
confetti,
|
|
90
90
|
createActivityFeed,
|
|
91
91
|
createAddToCart,
|
|
@@ -145,6 +145,7 @@ import {
|
|
|
145
145
|
createResizablePanel,
|
|
146
146
|
createRichTextEditor,
|
|
147
147
|
createScratchCard,
|
|
148
|
+
createScrollArea,
|
|
148
149
|
createScrollIsland,
|
|
149
150
|
createScrollPreviewDock,
|
|
150
151
|
createSelect,
|
|
@@ -185,7 +186,7 @@ import {
|
|
|
185
186
|
tokenLines,
|
|
186
187
|
tokenize,
|
|
187
188
|
tweenNumber
|
|
188
|
-
} from "../chunk-
|
|
189
|
+
} from "../chunk-Y4GIBTRG.js";
|
|
189
190
|
import {
|
|
190
191
|
DEFAULT_THEME,
|
|
191
192
|
MK_THEME_HEAD_SCRIPT,
|
|
@@ -201,12 +202,12 @@ import {
|
|
|
201
202
|
createParticleHero,
|
|
202
203
|
createShaderBlur,
|
|
203
204
|
createShaderGrain
|
|
204
|
-
} from "../chunk-
|
|
205
|
+
} from "../chunk-CQP66AZK.js";
|
|
205
206
|
import "../chunk-34EZ7DF4.js";
|
|
206
207
|
import {
|
|
207
208
|
MK_HEAD_SCRIPT,
|
|
208
209
|
TIMING
|
|
209
|
-
} from "../chunk-
|
|
210
|
+
} from "../chunk-OLT3CWDJ.js";
|
|
210
211
|
import "../chunk-TGV27ZWM.js";
|
|
211
212
|
|
|
212
213
|
// src/react/use-recipe.ts
|
|
@@ -4361,6 +4362,53 @@ function NotFound({ brand, title, description, homeHref, homeLabel, backLabel, s
|
|
|
4361
4362
|
}, [instanceRef, brand, title, description, homeHref, homeLabel, backLabel, showBack, hasBack]);
|
|
4362
4363
|
return /* @__PURE__ */ jsx104("div", { ...safe, ref: root, className: ["mk-not-found", className].filter(Boolean).join(" ") });
|
|
4363
4364
|
}
|
|
4365
|
+
|
|
4366
|
+
// src/components/scroll-area/react.tsx
|
|
4367
|
+
import { useRef as useRef99 } from "react";
|
|
4368
|
+
import { jsx as jsx105 } from "react/jsx-runtime";
|
|
4369
|
+
function ScrollArea({
|
|
4370
|
+
visibility,
|
|
4371
|
+
axis,
|
|
4372
|
+
idle,
|
|
4373
|
+
fade,
|
|
4374
|
+
backToTop,
|
|
4375
|
+
label,
|
|
4376
|
+
focusable,
|
|
4377
|
+
decorative,
|
|
4378
|
+
onScroll,
|
|
4379
|
+
viewportClassName,
|
|
4380
|
+
viewportStyle,
|
|
4381
|
+
unstyled,
|
|
4382
|
+
instanceRef,
|
|
4383
|
+
className,
|
|
4384
|
+
children,
|
|
4385
|
+
...props
|
|
4386
|
+
}) {
|
|
4387
|
+
const ref = useRef99(null);
|
|
4388
|
+
const viewport = useRef99(null);
|
|
4389
|
+
const scrolled = useLatest(onScroll);
|
|
4390
|
+
useIsomorphicLayoutEffect(() => {
|
|
4391
|
+
const instance = createScrollArea(ref.current, {
|
|
4392
|
+
visibility,
|
|
4393
|
+
axis,
|
|
4394
|
+
idle,
|
|
4395
|
+
fade,
|
|
4396
|
+
backToTop,
|
|
4397
|
+
label,
|
|
4398
|
+
focusable,
|
|
4399
|
+
decorative,
|
|
4400
|
+
viewport: viewport.current,
|
|
4401
|
+
onScroll: (progress) => scrolled.current?.(progress)
|
|
4402
|
+
});
|
|
4403
|
+
if (instanceRef) instanceRef.current = instance;
|
|
4404
|
+
return () => {
|
|
4405
|
+
instance.destroy();
|
|
4406
|
+
if (instanceRef) instanceRef.current = null;
|
|
4407
|
+
};
|
|
4408
|
+
}, [visibility, axis, idle, fade, backToTop, label, focusable, decorative]);
|
|
4409
|
+
const classes = [unstyled ? null : "mk-scroll-area", className].filter(Boolean).join(" ");
|
|
4410
|
+
return /* @__PURE__ */ jsx105("div", { ...props, ref, className: classes || void 0, children: /* @__PURE__ */ jsx105("div", { ref: viewport, "data-mk-scroll-viewport": "", className: viewportClassName, style: viewportStyle, children }) });
|
|
4411
|
+
}
|
|
4364
4412
|
export {
|
|
4365
4413
|
ANIMATIONS,
|
|
4366
4414
|
ActivityFeed,
|
|
@@ -4443,6 +4491,7 @@ export {
|
|
|
4443
4491
|
RichTextEditor,
|
|
4444
4492
|
SankeyChart,
|
|
4445
4493
|
ScratchCard,
|
|
4494
|
+
ScrollArea,
|
|
4446
4495
|
ScrollIsland,
|
|
4447
4496
|
ScrollPreviewDock,
|
|
4448
4497
|
Select,
|