@ansh-ui/react 0.3.0 → 0.3.1
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/dist/{chunk-YACOHFYJ.cjs → chunk-2U7BHYIQ.cjs} +121 -121
- package/dist/chunk-2U7BHYIQ.cjs.map +1 -0
- package/dist/{chunk-WNWGYXJY.js → chunk-7QGB2X7R.js} +34 -26
- package/dist/chunk-7QGB2X7R.js.map +1 -0
- package/dist/{chunk-OLTS6G5M.js → chunk-GNA33V2J.js} +11 -6
- package/dist/chunk-GNA33V2J.js.map +1 -0
- package/dist/{chunk-IZ6T7LO3.cjs → chunk-MPX7QT4R.cjs} +2 -2
- package/dist/chunk-MPX7QT4R.cjs.map +1 -0
- package/dist/{chunk-PVDQPVYF.js → chunk-NJUVVMJV.js} +2 -2
- package/dist/chunk-NJUVVMJV.js.map +1 -0
- package/dist/{chunk-CWYBOVCZ.js → chunk-RGGNLAAA.js} +121 -121
- package/dist/chunk-RGGNLAAA.js.map +1 -0
- package/dist/{chunk-OJN5JBNP.cjs → chunk-VJI6V27F.cjs} +99 -99
- package/dist/chunk-VJI6V27F.cjs.map +1 -0
- package/dist/{chunk-HPGCILO4.js → chunk-XRKZPLUT.js} +99 -99
- package/dist/chunk-XRKZPLUT.js.map +1 -0
- package/dist/{chunk-DATBU46V.cjs → chunk-XYT6OXKP.cjs} +10 -4
- package/dist/chunk-XYT6OXKP.cjs.map +1 -0
- package/dist/{chunk-3SWO2M33.cjs → chunk-YVJB7AAZ.cjs} +34 -26
- package/dist/chunk-YVJB7AAZ.cjs.map +1 -0
- package/dist/data.cjs +16 -16
- package/dist/data.d.cts +23 -22
- package/dist/data.d.ts +23 -22
- package/dist/data.js +1 -1
- package/dist/form.cjs +36 -36
- package/dist/form.d.cts +2 -0
- package/dist/form.d.ts +2 -0
- package/dist/form.js +1 -1
- package/dist/index.cjs +99 -99
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -9
- package/dist/index.js.map +1 -1
- package/dist/{motion-DsQPOsTT.d.cts → motion-C6WfBFES.d.cts} +20 -17
- package/dist/{motion-DoT_sTl1.d.ts → motion-ugXmf505.d.ts} +20 -17
- package/dist/motion.cjs +17 -17
- package/dist/motion.d.cts +1 -1
- package/dist/motion.d.ts +1 -1
- package/dist/motion.js +1 -1
- package/dist/navigation.cjs +8 -8
- package/dist/navigation.js +1 -1
- package/dist/overlay.cjs +15 -15
- package/dist/overlay.d.cts +14 -12
- package/dist/overlay.d.ts +14 -12
- package/dist/overlay.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-3SWO2M33.cjs.map +0 -1
- package/dist/chunk-CWYBOVCZ.js.map +0 -1
- package/dist/chunk-DATBU46V.cjs.map +0 -1
- package/dist/chunk-HPGCILO4.js.map +0 -1
- package/dist/chunk-IZ6T7LO3.cjs.map +0 -1
- package/dist/chunk-OJN5JBNP.cjs.map +0 -1
- package/dist/chunk-OLTS6G5M.js.map +0 -1
- package/dist/chunk-PVDQPVYF.js.map +0 -1
- package/dist/chunk-WNWGYXJY.js.map +0 -1
- package/dist/chunk-YACOHFYJ.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -5,7 +5,7 @@ import { ForwardRefExoticComponent, ElementType, ReactNode, ComponentPropsWithou
|
|
|
5
5
|
import * as _ansh_ui_core from '@ansh-ui/core';
|
|
6
6
|
import { BaseEffectOptions, EffectDefinition, TextScrambleOptions } from '@ansh-ui/core';
|
|
7
7
|
export { AnimationControls, AnimationOptions, BaseEffectOptions, ColorInput, ColorSpace, EasingInput, EffectDefinition, FrameState, Gradient, Timeline as MotionTimeline, MotionValue, PaletteName, PointerState, ReducedMotionStrategy, Rgb, SpringOptions, StaggerFrom, StaggerOptions, animate, checkContrast, createGradient, createNoise, createScale, createTimeline, cubicBezier, easings, ensureContrast, generatePalette, getRegistry, getTicker, mixColors, motionValue, palettes, parseColor, pickReadable, prefersReducedMotion, registerEasing, setReducedMotionMode, signature as signatureEasings, springs, stagger, toHex, toOklchString } from '@ansh-ui/core';
|
|
8
|
-
export { A as AnimatePresence, a as AnimatePresenceProps, b as AnimatedText, c as AnimatedTextProps, B as BehaviourComponent, d as BehaviourComponentBaseProps, e as BehaviourComponentProps, D as Draggable, f as DraggableProps, G as GradientText, g as GradientTextProps, M as MagneticButton, h as Marquee, i as Motion, j as MotionConfig, k as MotionConfigProps, l as MotionConfigValue, m as MotionTransition, n as MotionValues, P as Parallax, R as Ripple, S as ScrollReveal, T as ThemeContextValue, o as ThemeProvider, p as ThemeProviderProps, q as ThemeSetting, r as TiltCard, s as createBehaviourComponent, t as themeScript, u as useBehaviour, v as useMotionConfig, w as useTheme } from './motion-
|
|
8
|
+
export { A as AnimatePresence, a as AnimatePresenceProps, b as AnimatedText, c as AnimatedTextProps, B as BehaviourComponent, d as BehaviourComponentBaseProps, e as BehaviourComponentProps, D as Draggable, f as DraggableProps, G as GradientText, g as GradientTextProps, M as MagneticButton, h as Marquee, i as Motion, j as MotionConfig, k as MotionConfigProps, l as MotionConfigValue, m as MotionTransition, n as MotionValues, P as Parallax, R as Ripple, S as ScrollReveal, T as ThemeContextValue, o as ThemeProvider, p as ThemeProviderProps, q as ThemeSetting, r as TiltCard, s as createBehaviourComponent, t as themeScript, u as useBehaviour, v as useMotionConfig, w as useTheme } from './motion-C6WfBFES.cjs';
|
|
9
9
|
export { A as Align, P as Placement, a as PositionOptions, b as PositionResult, R as Rect, S as Side, c as computePosition } from './position-CW6cGpSF.cjs';
|
|
10
10
|
export { AlertDialog, AlertDialogProps, CommandItem, CommandPalette, CommandPaletteProps, ContextMenu, ContextMenuProps, Dialog, DialogFooter, DialogProps, DialogSize, Drawer, DrawerProps, DrawerSide, DropdownMenu, HoverCard, HoverCardProps, MenuAction, MenuCheckbox, MenuEntry, MenuProps, MenuRadioGroup, MenuSubmenu, Popover, PopoverContent, PopoverContentProps, PopoverProps, PopoverTrigger, PopoverTriggerProps, Tooltip, TooltipProps, TooltipProvider, TooltipProviderProps, useCommandShortcut } from './overlay.cjs';
|
|
11
11
|
export { AspectRatio, AspectRatioProps, Center, Container, ContainerProps, Divider, DividerProps, Grid, GridItem, GridItemProps, GridProps, HStack, Resizable, ResizableProps, ScrollArea, ScrollAreaProps, SpaceToken, Spacer, SpacerProps, Stack, StackProps, VStack } from './layout.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { ForwardRefExoticComponent, ElementType, ReactNode, ComponentPropsWithou
|
|
|
5
5
|
import * as _ansh_ui_core from '@ansh-ui/core';
|
|
6
6
|
import { BaseEffectOptions, EffectDefinition, TextScrambleOptions } from '@ansh-ui/core';
|
|
7
7
|
export { AnimationControls, AnimationOptions, BaseEffectOptions, ColorInput, ColorSpace, EasingInput, EffectDefinition, FrameState, Gradient, Timeline as MotionTimeline, MotionValue, PaletteName, PointerState, ReducedMotionStrategy, Rgb, SpringOptions, StaggerFrom, StaggerOptions, animate, checkContrast, createGradient, createNoise, createScale, createTimeline, cubicBezier, easings, ensureContrast, generatePalette, getRegistry, getTicker, mixColors, motionValue, palettes, parseColor, pickReadable, prefersReducedMotion, registerEasing, setReducedMotionMode, signature as signatureEasings, springs, stagger, toHex, toOklchString } from '@ansh-ui/core';
|
|
8
|
-
export { A as AnimatePresence, a as AnimatePresenceProps, b as AnimatedText, c as AnimatedTextProps, B as BehaviourComponent, d as BehaviourComponentBaseProps, e as BehaviourComponentProps, D as Draggable, f as DraggableProps, G as GradientText, g as GradientTextProps, M as MagneticButton, h as Marquee, i as Motion, j as MotionConfig, k as MotionConfigProps, l as MotionConfigValue, m as MotionTransition, n as MotionValues, P as Parallax, R as Ripple, S as ScrollReveal, T as ThemeContextValue, o as ThemeProvider, p as ThemeProviderProps, q as ThemeSetting, r as TiltCard, s as createBehaviourComponent, t as themeScript, u as useBehaviour, v as useMotionConfig, w as useTheme } from './motion-
|
|
8
|
+
export { A as AnimatePresence, a as AnimatePresenceProps, b as AnimatedText, c as AnimatedTextProps, B as BehaviourComponent, d as BehaviourComponentBaseProps, e as BehaviourComponentProps, D as Draggable, f as DraggableProps, G as GradientText, g as GradientTextProps, M as MagneticButton, h as Marquee, i as Motion, j as MotionConfig, k as MotionConfigProps, l as MotionConfigValue, m as MotionTransition, n as MotionValues, P as Parallax, R as Ripple, S as ScrollReveal, T as ThemeContextValue, o as ThemeProvider, p as ThemeProviderProps, q as ThemeSetting, r as TiltCard, s as createBehaviourComponent, t as themeScript, u as useBehaviour, v as useMotionConfig, w as useTheme } from './motion-ugXmf505.js';
|
|
9
9
|
export { A as Align, P as Placement, a as PositionOptions, b as PositionResult, R as Rect, S as Side, c as computePosition } from './position-CW6cGpSF.js';
|
|
10
10
|
export { AlertDialog, AlertDialogProps, CommandItem, CommandPalette, CommandPaletteProps, ContextMenu, ContextMenuProps, Dialog, DialogFooter, DialogProps, DialogSize, Drawer, DrawerProps, DrawerSide, DropdownMenu, HoverCard, HoverCardProps, MenuAction, MenuCheckbox, MenuEntry, MenuProps, MenuRadioGroup, MenuSubmenu, Popover, PopoverContent, PopoverContentProps, PopoverProps, PopoverTrigger, PopoverTriggerProps, Tooltip, TooltipProps, TooltipProvider, TooltipProviderProps, useCommandShortcut } from './overlay.js';
|
|
11
11
|
export { AspectRatio, AspectRatioProps, Center, Container, ContainerProps, Divider, DividerProps, Grid, GridItem, GridItemProps, GridProps, HStack, Resizable, ResizableProps, ScrollArea, ScrollAreaProps, SpaceToken, Spacer, SpacerProps, Stack, StackProps, VStack } from './layout.js';
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
export { useAnimate, useIsMounted, useMotionStyle, useMotionValue, useMotionValueState, useSpringValue } from './chunk-O2PX54KX.js';
|
|
3
3
|
export { AspectRatio, Center, Container, Divider, Grid, GridItem, HStack, Resizable, ScrollArea, Spacer, Stack, VStack } from './chunk-BQJ6H3HC.js';
|
|
4
|
-
export { Calendar, Checkbox, ChoiceCard, ColorPicker, Combobox, DatePicker, DateRangePicker, Dropzone, Field, Fieldset, Input, NumberInput, OptionList, PinInput, Radio, RadioGroup, RangeSlider, Rating, Select, Slider, Switch, TagsInput, Textarea, VisuallyHidden, addDays, addMonths, filterOptions, firstEnabled, isSameDay, scoreOption, startOfDay, stepActive, useFieldContext, useFieldControl, useTypeahead } from './chunk-
|
|
5
|
-
export { AlertDialog, CommandPalette, ContextMenu, Dialog, DialogFooter, Drawer, DropdownMenu, HoverCard, Popover, PopoverContent, PopoverTrigger, Tooltip, TooltipProvider, useCommandShortcut } from './chunk-
|
|
4
|
+
export { Calendar, Checkbox, ChoiceCard, ColorPicker, Combobox, DatePicker, DateRangePicker, Dropzone, Field, Fieldset, Input, NumberInput, OptionList, PinInput, Radio, RadioGroup, RangeSlider, Rating, Select, Slider, Switch, TagsInput, Textarea, VisuallyHidden, addDays, addMonths, filterOptions, firstEnabled, isSameDay, scoreOption, startOfDay, stepActive, useFieldContext, useFieldControl, useTypeahead } from './chunk-7QGB2X7R.js';
|
|
5
|
+
export { AlertDialog, CommandPalette, ContextMenu, Dialog, DialogFooter, Drawer, DropdownMenu, HoverCard, Popover, PopoverContent, PopoverTrigger, Tooltip, TooltipProvider, useCommandShortcut } from './chunk-RGGNLAAA.js';
|
|
6
6
|
export { Presence, Slot, getTabbable, slotted, useAutoFocus, useFocusRestore, useFocusTrap, usePresence, useRovingFocus } from './chunk-742E5FQS.js';
|
|
7
7
|
export { Portal, computePosition, useAnchoredPosition, useDismiss, useScrollLock } from './chunk-XEP6P7E6.js';
|
|
8
|
-
export { Avatar, AvatarGroup, Badge, CircularProgress, CodeBlock, DataTable, DescriptionList, EmptyState, Kbd, Meter, Pagination, Progress, Stat, Table, Timeline } from './chunk-
|
|
9
|
-
|
|
8
|
+
export { Avatar, AvatarGroup, Badge, CircularProgress, CodeBlock, DataTable, DescriptionList, EmptyState, Kbd, Meter, Pagination, Progress, Stat, Table, Timeline } from './chunk-XRKZPLUT.js';
|
|
9
|
+
import { inertProps } from './chunk-GNA33V2J.js';
|
|
10
|
+
export { Accordion, Breadcrumbs, Collapsible, DisclosureList, NavigationMenu, Stepper, Tabs } from './chunk-GNA33V2J.js';
|
|
10
11
|
export { AppShell, Sidebar } from './chunk-5CFQFMP5.js';
|
|
11
12
|
import { useControllableState } from './chunk-LXCIXR5T.js';
|
|
12
13
|
export { useControllableState } from './chunk-LXCIXR5T.js';
|
|
13
|
-
import { useBehaviour } from './chunk-
|
|
14
|
-
export { AnimatePresence, AnimatedText, Draggable, GradientText, MagneticButton, Marquee, Motion, MotionConfig, Parallax, Ripple, ScrollReveal, ThemeProvider, TiltCard, createBehaviourComponent, themeScript, useBehaviour, useMotionConfig, useTheme } from './chunk-
|
|
14
|
+
import { useBehaviour } from './chunk-NJUVVMJV.js';
|
|
15
|
+
export { AnimatePresence, AnimatedText, Draggable, GradientText, MagneticButton, Marquee, Motion, MotionConfig, Parallax, Ripple, ScrollReveal, ThemeProvider, TiltCard, createBehaviourComponent, themeScript, useBehaviour, useMotionConfig, useTheme } from './chunk-NJUVVMJV.js';
|
|
15
16
|
import { useMergedRef, useInView } from './chunk-P5MRISBP.js';
|
|
16
17
|
export { useElementSize, useFrameBudget, useInView, useMergedRef, usePointer, useReducedMotion, useScrollProgress, useTicker, useTickerSubscriberCount, useWindowScroll } from './chunk-P5MRISBP.js';
|
|
17
18
|
import { cx } from './chunk-H34OXXJU.js';
|
|
@@ -806,7 +807,7 @@ function FAQAccordion({
|
|
|
806
807
|
"aria-labelledby": triggerId,
|
|
807
808
|
className: "ansh-accordion__panel",
|
|
808
809
|
"data-open": isOpen,
|
|
809
|
-
...isOpen
|
|
810
|
+
...inertProps(!isOpen),
|
|
810
811
|
children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("div", { className: "ansh-accordion__body", children: item.answer }) })
|
|
811
812
|
}
|
|
812
813
|
)
|
|
@@ -1092,7 +1093,7 @@ function CardStack({
|
|
|
1092
1093
|
className: "ansh-stack__card",
|
|
1093
1094
|
"data-rung": rung,
|
|
1094
1095
|
"aria-hidden": rung === 0 ? void 0 : "true",
|
|
1095
|
-
|
|
1096
|
+
...inertProps(rung !== 0),
|
|
1096
1097
|
style: {
|
|
1097
1098
|
transform: `translateY(${rung * OFFSET_Y}px) scale(${1 - rung * SCALE_STEP}) rotate(${rung === 0 ? 0 : (rung % 2 === 0 ? 1 : -1) * ROTATE_STEP}deg)`,
|
|
1098
1099
|
opacity: hidden ? 0 : 1,
|
|
@@ -1260,7 +1261,7 @@ function Carousel({
|
|
|
1260
1261
|
"aria-roledescription": "slide",
|
|
1261
1262
|
"aria-label": `${i + 1} of ${count}`,
|
|
1262
1263
|
"aria-hidden": i === active ? void 0 : "true",
|
|
1263
|
-
|
|
1264
|
+
...inertProps(i !== active),
|
|
1264
1265
|
children: item
|
|
1265
1266
|
},
|
|
1266
1267
|
i
|