rockin 0.0.15 → 0.0.16
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-5LE4X3CW.js → chunk-5QSYZSVL.js} +7 -1
- package/dist/{chunk-BDQJCK4S.js → chunk-M5NHRP6W.js} +1 -5
- package/dist/hooks/index.js +1 -1
- package/dist/icon/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.d.ts +2 -2
- package/dist/ui/index.d.ts +10 -1
- package/dist/ui/index.js +70 -24
- package/dist/utils/parms-client.js +1 -1
- package/package.json +2 -1
|
@@ -140,7 +140,13 @@ var BellIcon = forwardRef(
|
|
|
140
140
|
variants: bellVariants,
|
|
141
141
|
style: { transformOrigin: "top center" },
|
|
142
142
|
children: [
|
|
143
|
-
/* @__PURE__ */ jsx(
|
|
143
|
+
/* @__PURE__ */ jsx(
|
|
144
|
+
m.path,
|
|
145
|
+
{
|
|
146
|
+
d: "M10.268 21a2 2 0 0 0 3.464 0",
|
|
147
|
+
variants: clapperVariants
|
|
148
|
+
}
|
|
149
|
+
),
|
|
144
150
|
/* @__PURE__ */ jsx("path", { d: "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326" })
|
|
145
151
|
]
|
|
146
152
|
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
// src/utils/parms-client.ts
|
|
2
|
-
import {
|
|
3
|
-
createParser,
|
|
4
|
-
parseAsString,
|
|
5
|
-
parseAsStringLiteral
|
|
6
|
-
} from "nuqs";
|
|
2
|
+
import { createParser, parseAsString, parseAsStringLiteral } from "nuqs";
|
|
7
3
|
var parseAsPage = createParser({
|
|
8
4
|
parse(value) {
|
|
9
5
|
const page = Number(value);
|
package/dist/hooks/index.js
CHANGED
package/dist/icon/index.js
CHANGED
package/dist/index.js
CHANGED
package/dist/loader.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ComponentProps, ReactNode } from 'react';
|
|
|
3
3
|
import { ProgressProvider } from '@bprogress/next/app';
|
|
4
4
|
|
|
5
5
|
type ProgressProviderProps = ComponentProps<typeof ProgressProvider>;
|
|
6
|
-
type TopLoaderProps = Omit<ProgressProviderProps,
|
|
6
|
+
type TopLoaderProps = Omit<ProgressProviderProps, "children" | "color" | "height" | "options"> & {
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
/** Progress bar color. Accepts any valid CSS color, including a token. */
|
|
9
9
|
color?: string;
|
|
@@ -12,7 +12,7 @@ type TopLoaderProps = Omit<ProgressProviderProps, 'children' | 'color' | 'height
|
|
|
12
12
|
/** Show the provider's spinner alongside the top progress bar. */
|
|
13
13
|
showSpinner?: boolean;
|
|
14
14
|
/** Additional BProgress options. These override the component defaults. */
|
|
15
|
-
options?: ProgressProviderProps[
|
|
15
|
+
options?: ProgressProviderProps["options"];
|
|
16
16
|
};
|
|
17
17
|
declare function TopLoader({ children, color, height, options, showSpinner, ...props }: TopLoaderProps): React.JSX.Element;
|
|
18
18
|
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ import { Select as Select$1 } from '@base-ui/react/select';
|
|
|
41
41
|
import { GooeyToasterProps } from 'goey-toast';
|
|
42
42
|
import { DndContextProps, UniqueIdentifier, DragEndEvent, DragOverlay } from '@dnd-kit/core';
|
|
43
43
|
import { SortableContextProps } from '@dnd-kit/sortable';
|
|
44
|
+
import * as SwipeActionsPrimitive from '@ncdai/react-swipe-actions';
|
|
44
45
|
import { Switch as Switch$1 } from '@base-ui/react/switch';
|
|
45
46
|
import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
|
|
46
47
|
|
|
@@ -976,6 +977,14 @@ interface SortableOverlayProps extends Omit<React$1.ComponentProps<typeof DragOv
|
|
|
976
977
|
}
|
|
977
978
|
declare function SortableOverlay(props: SortableOverlayProps): React$1.ReactPortal | null;
|
|
978
979
|
|
|
980
|
+
type SwipeSide = SwipeActionsPrimitive.SwipeSide;
|
|
981
|
+
type SwipeState = SwipeActionsPrimitive.SwipeState;
|
|
982
|
+
declare const SwipeRoot: typeof SwipeActionsPrimitive.SwipeRoot;
|
|
983
|
+
declare const SwipeItem: typeof SwipeActionsPrimitive.SwipeItem;
|
|
984
|
+
declare const SwipeActions: typeof SwipeActionsPrimitive.SwipeActions;
|
|
985
|
+
declare function SwipeAction({ className, children, ...props }: ComponentProps<typeof SwipeActionsPrimitive.SwipeAction>): React$1.JSX.Element;
|
|
986
|
+
declare function SwipeContent({ className, ...props }: ComponentProps<typeof SwipeActionsPrimitive.SwipeContent>): React$1.JSX.Element;
|
|
987
|
+
|
|
979
988
|
declare function Switch({ className, size, ...props }: Switch$1.Root.Props & {
|
|
980
989
|
size?: "sm" | "default";
|
|
981
990
|
}): React$1.JSX.Element;
|
|
@@ -993,4 +1002,4 @@ declare function Tooltip({ ...props }: Tooltip$1.Root.Props): React$1.JSX.Elemen
|
|
|
993
1002
|
declare function TooltipTrigger({ ...props }: Tooltip$1.Trigger.Props): React$1.JSX.Element;
|
|
994
1003
|
declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: Tooltip$1.Popup.Props & Pick<Tooltip$1.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): React$1.JSX.Element;
|
|
995
1004
|
|
|
996
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AnimatedDiv, type AnimatedTAGProps, Apple, AppleHelloEffectEnglish, AppleHelloEffectHindi, AppleHelloEffectSpanish, Autocomplete, AutocompleteClear, AutocompleteCollection, AutocompleteEmpty, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInput, AutocompleteItem, AutocompleteList, AutocompletePopup, AutocompleteRow, AutocompleteSeparator, AutocompleteStatus, AutocompleteTrigger, AutocompleteValue, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BlogCardAnimation, Bottom, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CodeBlock, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type CustomRendererProps, DEFAULT_I18N, DEFAULT_OPERATORS, DashedSeparator, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dock, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerSwipeHandle, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EASE_DRAWER, EASE_IN_OUT, EASE_OUT, EASE_OUT_CSS, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FadeContainer, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type Filter, type FilterFieldConfig, type FilterFieldGroup, type FilterFieldsConfig, type FilterGroup, type FilterI18nConfig, type FilterOperator, type FilterOption, type FilterOptionListRenderProps, Filters, FiltersContent, Image, type ImageProps, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, JellyAction, JellyBlob, JellyEmpty, type JellyEmptyProps, JellyGroup, JellyLink, JellyMascot, type JellyMascotConfig, JellyMini, type JellySize, Kbd, KbdGroup, Label, ListItemVariant, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, NativeAppBridge, NumberStepper, OTPInput, type OTPInputProps, type OTPStatus, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, QuantityInput, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, RollingNumber, SPRING_LAYOUT, SPRING_MOUSE, SPRING_PANEL, SPRING_PRESS, SPRING_SWAP, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, ShimmerSkeleton, type SkeletonProps as ShimmerSkeletonProps, Skeleton, SkeletonAvatar, SkeletonButton, type SkeletonProps, type SkeletonRounded, SkeletonText, type SkeletonVariant, Sortable, SortableContent, SortableItem, SortableItemHandle, SortableOverlay, type SortableProps, Switch, Textarea, ThemeToggle, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Top, activityItemAnimation, badgeVariants, buttonGroupVariants, buttonVariants, createFilter, createFilterGroup, fromLeftChildren, fromLeftVariant, fromRightVariant, fromTopVariant, getSkeletonVariantDuration, hamFastFadeContainer, headingFromLeft, kanbanOrderCardAnimation, kanbanOrderCardLayoutTransition, kanbanOrderCardReducedMotionAnimation, mobileNavItemSideways, opacityVariant, popUp, popUpFromBottomForText, resolveSkeletonA11yProps, searchBarSlideAnimation, skeletonRoundedClasses, skeletonVariantDefaultDuration, svgVariant, useAutocompleteFilter, useCarousel, useComboboxAnchor, useJellyMood };
|
|
1005
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AnimatedDiv, type AnimatedTAGProps, Apple, AppleHelloEffectEnglish, AppleHelloEffectHindi, AppleHelloEffectSpanish, Autocomplete, AutocompleteClear, AutocompleteCollection, AutocompleteEmpty, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInput, AutocompleteItem, AutocompleteList, AutocompletePopup, AutocompleteRow, AutocompleteSeparator, AutocompleteStatus, AutocompleteTrigger, AutocompleteValue, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BlogCardAnimation, Bottom, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CodeBlock, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type CustomRendererProps, DEFAULT_I18N, DEFAULT_OPERATORS, DashedSeparator, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dock, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerSwipeHandle, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EASE_DRAWER, EASE_IN_OUT, EASE_OUT, EASE_OUT_CSS, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FadeContainer, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type Filter, type FilterFieldConfig, type FilterFieldGroup, type FilterFieldsConfig, type FilterGroup, type FilterI18nConfig, type FilterOperator, type FilterOption, type FilterOptionListRenderProps, Filters, FiltersContent, Image, type ImageProps, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, JellyAction, JellyBlob, JellyEmpty, type JellyEmptyProps, JellyGroup, JellyLink, JellyMascot, type JellyMascotConfig, JellyMini, type JellySize, Kbd, KbdGroup, Label, ListItemVariant, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, NativeAppBridge, NumberStepper, OTPInput, type OTPInputProps, type OTPStatus, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, QuantityInput, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, RollingNumber, SPRING_LAYOUT, SPRING_MOUSE, SPRING_PANEL, SPRING_PRESS, SPRING_SWAP, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, ShimmerSkeleton, type SkeletonProps as ShimmerSkeletonProps, Skeleton, SkeletonAvatar, SkeletonButton, type SkeletonProps, type SkeletonRounded, SkeletonText, type SkeletonVariant, Sortable, SortableContent, SortableItem, SortableItemHandle, SortableOverlay, type SortableProps, SwipeAction, SwipeActions, SwipeContent, SwipeItem, SwipeRoot, type SwipeSide, type SwipeState, Switch, Textarea, ThemeToggle, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Top, activityItemAnimation, badgeVariants, buttonGroupVariants, buttonVariants, createFilter, createFilterGroup, fromLeftChildren, fromLeftVariant, fromRightVariant, fromTopVariant, getSkeletonVariantDuration, hamFastFadeContainer, headingFromLeft, kanbanOrderCardAnimation, kanbanOrderCardLayoutTransition, kanbanOrderCardReducedMotionAnimation, mobileNavItemSideways, opacityVariant, popUp, popUpFromBottomForText, resolveSkeletonA11yProps, searchBarSlideAnimation, skeletonRoundedClasses, skeletonVariantDefaultDuration, svgVariant, useAutocompleteFilter, useCarousel, useComboboxAnchor, useJellyMood };
|
package/dist/ui/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "../chunk-ATPUW3SQ.js";
|
|
19
19
|
import {
|
|
20
20
|
IconSwap
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-5QSYZSVL.js";
|
|
22
22
|
|
|
23
23
|
// src/ui/accordion.tsx
|
|
24
24
|
import { Accordion as AccordionPrimitive } from "@base-ui/react/accordion";
|
|
@@ -117,7 +117,7 @@ import { cva } from "class-variance-authority";
|
|
|
117
117
|
import { cn as cn2 } from "cn";
|
|
118
118
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
119
119
|
var buttonVariants = cva(
|
|
120
|
-
"group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-[background-color,border-color,color,box-shadow,opacity,transform] duration-150 ease-[var(--ease-out)] outline-none select-none
|
|
120
|
+
"group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-[background-color,border-color,color,box-shadow,opacity,transform] duration-150 ease-[var(--ease-out)] outline-none select-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 motion-reduce:transition-none dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:opacity-70 [&_svg:not([class*='size-'])]:size-4",
|
|
121
121
|
{
|
|
122
122
|
variants: {
|
|
123
123
|
variant: {
|
|
@@ -1184,7 +1184,7 @@ import { useRender } from "@base-ui/react/use-render";
|
|
|
1184
1184
|
import { cva as cva2 } from "class-variance-authority";
|
|
1185
1185
|
import { cn as cn11 } from "cn";
|
|
1186
1186
|
var badgeVariants = cva2(
|
|
1187
|
-
"group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[background-color,border-color,color,box-shadow,opacity] duration-150 ease-[var(--ease-out)]
|
|
1187
|
+
"group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[background-color,border-color,color,box-shadow,opacity] duration-150 ease-[var(--ease-out)] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 motion-reduce:transition-none dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",
|
|
1188
1188
|
{
|
|
1189
1189
|
variants: {
|
|
1190
1190
|
variant: {
|
|
@@ -2067,13 +2067,17 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
2067
2067
|
import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
|
|
2068
2068
|
import { cn as cn18 } from "cn";
|
|
2069
2069
|
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
2070
|
-
function Checkbox({
|
|
2070
|
+
function Checkbox({
|
|
2071
|
+
className,
|
|
2072
|
+
children,
|
|
2073
|
+
...props
|
|
2074
|
+
}) {
|
|
2071
2075
|
return /* @__PURE__ */ jsx18(
|
|
2072
2076
|
CheckboxPrimitive.Root,
|
|
2073
2077
|
{
|
|
2074
2078
|
"data-slot": "checkbox",
|
|
2075
2079
|
className: cn18(
|
|
2076
|
-
"peer inline-flex size-5 shrink-0 items-center justify-center rounded border border-border bg-background text-primary
|
|
2080
|
+
"peer inline-flex size-5 shrink-0 items-center justify-center rounded border border-border bg-background text-primary transition-[background-color,border-color,box-shadow,opacity] duration-150 ease-out outline-none focus-visible:ring-2 focus-visible:ring-ring/50 motion-reduce:transition-none data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
2077
2081
|
className
|
|
2078
2082
|
),
|
|
2079
2083
|
...props,
|
|
@@ -5781,7 +5785,7 @@ function InputOTPSlot({
|
|
|
5781
5785
|
"data-slot": "input-otp-slot",
|
|
5782
5786
|
"data-active": isActive,
|
|
5783
5787
|
className: cn35(
|
|
5784
|
-
"relative flex size-8 items-center justify-center border-y border-r border-input text-sm transition-[background-color,border-color,box-shadow,opacity] duration-150 ease-out outline-none
|
|
5788
|
+
"relative flex size-8 items-center justify-center border-y border-r border-input text-sm transition-[background-color,border-color,box-shadow,opacity] duration-150 ease-out outline-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 motion-reduce:transition-none dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40",
|
|
5785
5789
|
className
|
|
5786
5790
|
),
|
|
5787
5791
|
...props,
|
|
@@ -6987,7 +6991,7 @@ function OTPInput2({
|
|
|
6987
6991
|
className: cn41(
|
|
6988
6992
|
"relative grid size-11 place-items-center overflow-hidden rounded-xl border bg-card text-xl font-semibold tabular-nums transition-colors duration-200",
|
|
6989
6993
|
showSuccess ? "border-emerald-500/60 text-foreground" : status === "error" ? "border-destructive/60 text-foreground" : char ? "border-border-strong text-foreground" : "border-border text-muted-foreground",
|
|
6990
|
-
isActive && !showSuccess && status !== "error" && "border-
|
|
6994
|
+
isActive && !showSuccess && status !== "error" && "border-2 border-brand ring-0",
|
|
6991
6995
|
disabled && "opacity-50"
|
|
6992
6996
|
),
|
|
6993
6997
|
children: [
|
|
@@ -7002,7 +7006,7 @@ function OTPInput2({
|
|
|
7002
7006
|
ease: "linear"
|
|
7003
7007
|
},
|
|
7004
7008
|
className: cn41(
|
|
7005
|
-
"
|
|
7009
|
+
"pointer-events-none absolute top-1/2 h-6 w-px -translate-y-1/2 bg-brand",
|
|
7006
7010
|
char ? "right-3" : "left-1/2 -translate-x-1/2"
|
|
7007
7011
|
)
|
|
7008
7012
|
}
|
|
@@ -7754,7 +7758,6 @@ import {
|
|
|
7754
7758
|
import { CSS } from "@dnd-kit/utilities";
|
|
7755
7759
|
import * as React16 from "react";
|
|
7756
7760
|
import * as ReactDOM from "react-dom";
|
|
7757
|
-
import { cn as cn47 } from "cn";
|
|
7758
7761
|
|
|
7759
7762
|
// src/hooks/use-isomorphic-layout-effect.ts
|
|
7760
7763
|
import * as React14 from "react";
|
|
@@ -7799,6 +7802,7 @@ function useComposedRefs(...refs) {
|
|
|
7799
7802
|
}
|
|
7800
7803
|
|
|
7801
7804
|
// src/ui/sortable.tsx
|
|
7805
|
+
import { cn as cn47 } from "cn";
|
|
7802
7806
|
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
7803
7807
|
var orientationConfig = {
|
|
7804
7808
|
vertical: {
|
|
@@ -8218,26 +8222,63 @@ function SortableOverlay(props) {
|
|
|
8218
8222
|
);
|
|
8219
8223
|
}
|
|
8220
8224
|
|
|
8221
|
-
// src/ui/
|
|
8222
|
-
import
|
|
8225
|
+
// src/ui/swipe-actions.tsx
|
|
8226
|
+
import * as SwipeActionsPrimitive from "@ncdai/react-swipe-actions";
|
|
8223
8227
|
import { cn as cn48 } from "cn";
|
|
8224
8228
|
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
8229
|
+
var SwipeRoot2 = SwipeActionsPrimitive.SwipeRoot;
|
|
8230
|
+
var SwipeItem2 = SwipeActionsPrimitive.SwipeItem;
|
|
8231
|
+
var SwipeActions2 = SwipeActionsPrimitive.SwipeActions;
|
|
8232
|
+
function SwipeAction2({
|
|
8233
|
+
className,
|
|
8234
|
+
children,
|
|
8235
|
+
...props
|
|
8236
|
+
}) {
|
|
8237
|
+
return /* @__PURE__ */ jsx51(
|
|
8238
|
+
SwipeActionsPrimitive.SwipeAction,
|
|
8239
|
+
{
|
|
8240
|
+
className: cn48(
|
|
8241
|
+
"bg-secondary text-xs font-medium whitespace-nowrap text-secondary-foreground select-none focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-foreground data-armed:brightness-90 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
8242
|
+
className
|
|
8243
|
+
),
|
|
8244
|
+
...props,
|
|
8245
|
+
children: /* @__PURE__ */ jsx51(SwipeActionsPrimitive.SwipeActionContent, { className: "min-w-20 flex-col items-center justify-center gap-1.5 px-4", children })
|
|
8246
|
+
}
|
|
8247
|
+
);
|
|
8248
|
+
}
|
|
8249
|
+
function SwipeContent2({
|
|
8250
|
+
className,
|
|
8251
|
+
...props
|
|
8252
|
+
}) {
|
|
8253
|
+
return /* @__PURE__ */ jsx51(
|
|
8254
|
+
SwipeActionsPrimitive.SwipeContent,
|
|
8255
|
+
{
|
|
8256
|
+
className: cn48("data-dragging:cursor-grabbing", className),
|
|
8257
|
+
...props
|
|
8258
|
+
}
|
|
8259
|
+
);
|
|
8260
|
+
}
|
|
8261
|
+
|
|
8262
|
+
// src/ui/switch.tsx
|
|
8263
|
+
import { Switch as SwitchPrimitive } from "@base-ui/react/switch";
|
|
8264
|
+
import { cn as cn49 } from "cn";
|
|
8265
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
8225
8266
|
function Switch({
|
|
8226
8267
|
className,
|
|
8227
8268
|
size = "default",
|
|
8228
8269
|
...props
|
|
8229
8270
|
}) {
|
|
8230
|
-
return /* @__PURE__ */
|
|
8271
|
+
return /* @__PURE__ */ jsx52(
|
|
8231
8272
|
SwitchPrimitive.Root,
|
|
8232
8273
|
{
|
|
8233
8274
|
"data-slot": "switch",
|
|
8234
8275
|
"data-size": size,
|
|
8235
|
-
className:
|
|
8276
|
+
className: cn49(
|
|
8236
8277
|
"peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-[background-color,border-color,box-shadow,opacity] duration-150 ease-out outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 motion-reduce:transition-none dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80 data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
8237
8278
|
className
|
|
8238
8279
|
),
|
|
8239
8280
|
...props,
|
|
8240
|
-
children: /* @__PURE__ */
|
|
8281
|
+
children: /* @__PURE__ */ jsx52(
|
|
8241
8282
|
SwitchPrimitive.Thumb,
|
|
8242
8283
|
{
|
|
8243
8284
|
"data-slot": "switch-thumb",
|
|
@@ -8249,11 +8290,11 @@ function Switch({
|
|
|
8249
8290
|
}
|
|
8250
8291
|
|
|
8251
8292
|
// src/ui/theme-toggle.tsx
|
|
8252
|
-
import { cn as
|
|
8293
|
+
import { cn as cn50 } from "cn";
|
|
8253
8294
|
import { motion as motion8, useReducedMotion as useReducedMotion3 } from "motion/react";
|
|
8254
8295
|
import { useTheme as useTheme3 } from "next-themes";
|
|
8255
8296
|
import { useId as useId7 } from "react";
|
|
8256
|
-
import { jsx as
|
|
8297
|
+
import { jsx as jsx53, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
8257
8298
|
var MORPH = { type: "spring", visualDuration: 0.4, bounce: 0 };
|
|
8258
8299
|
var RAY_STAGGER = 0.018;
|
|
8259
8300
|
var EASE_OUT3 = [0.23, 1, 0.32, 1];
|
|
@@ -8284,14 +8325,14 @@ function ThemeToggle({
|
|
|
8284
8325
|
const activeVariant = variant ?? "ghost";
|
|
8285
8326
|
const maskId = `moon-${useId7().replace(/[^\w-]/g, "")}`;
|
|
8286
8327
|
const morph = reduceMotion ? { duration: 0 } : MORPH;
|
|
8287
|
-
return /* @__PURE__ */
|
|
8328
|
+
return /* @__PURE__ */ jsx53(
|
|
8288
8329
|
"button",
|
|
8289
8330
|
{
|
|
8290
8331
|
type: "button",
|
|
8291
8332
|
"aria-label": "Toggle theme",
|
|
8292
8333
|
"aria-pressed": dark,
|
|
8293
8334
|
onClick: () => setTheme(dark ? "light" : "dark"),
|
|
8294
|
-
className:
|
|
8335
|
+
className: cn50(
|
|
8295
8336
|
buttonVariants({ variant: activeVariant }),
|
|
8296
8337
|
"shadow-raised relative touch-manipulation rounded-full outline-hidden select-none",
|
|
8297
8338
|
"transition-[scale,background-color] duration-150 ease-out active:scale-[0.96] motion-reduce:transition-[background-color]",
|
|
@@ -8312,7 +8353,7 @@ function ThemeToggle({
|
|
|
8312
8353
|
animate: { rotate: dark ? MOON_TILT : 0 },
|
|
8313
8354
|
transition: morph,
|
|
8314
8355
|
children: [
|
|
8315
|
-
/* @__PURE__ */
|
|
8356
|
+
/* @__PURE__ */ jsx53("defs", { children: /* @__PURE__ */ jsxs28(
|
|
8316
8357
|
"mask",
|
|
8317
8358
|
{
|
|
8318
8359
|
id: maskId,
|
|
@@ -8322,8 +8363,8 @@ function ThemeToggle({
|
|
|
8322
8363
|
width: "24",
|
|
8323
8364
|
height: "24",
|
|
8324
8365
|
children: [
|
|
8325
|
-
/* @__PURE__ */
|
|
8326
|
-
/* @__PURE__ */
|
|
8366
|
+
/* @__PURE__ */ jsx53("rect", { width: "24", height: "24", fill: "white" }),
|
|
8367
|
+
/* @__PURE__ */ jsx53(
|
|
8327
8368
|
motion8.circle,
|
|
8328
8369
|
{
|
|
8329
8370
|
r: BITE_R,
|
|
@@ -8336,7 +8377,7 @@ function ThemeToggle({
|
|
|
8336
8377
|
]
|
|
8337
8378
|
}
|
|
8338
8379
|
) }),
|
|
8339
|
-
/* @__PURE__ */
|
|
8380
|
+
/* @__PURE__ */ jsx53(
|
|
8340
8381
|
motion8.circle,
|
|
8341
8382
|
{
|
|
8342
8383
|
cx: "12",
|
|
@@ -8348,10 +8389,10 @@ function ThemeToggle({
|
|
|
8348
8389
|
transition: morph
|
|
8349
8390
|
}
|
|
8350
8391
|
),
|
|
8351
|
-
/* @__PURE__ */
|
|
8392
|
+
/* @__PURE__ */ jsx53("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", children: RAYS.map((ray, i) => {
|
|
8352
8393
|
const { inner, outer } = dark ? RAY_IN : RAY_OUT;
|
|
8353
8394
|
const delay = reduceMotion ? 0 : dark ? i * RAY_STAGGER : 0.06 + (RAYS.length - 1 - i) * RAY_STAGGER;
|
|
8354
|
-
return /* @__PURE__ */
|
|
8395
|
+
return /* @__PURE__ */ jsx53(
|
|
8355
8396
|
motion8.line,
|
|
8356
8397
|
{
|
|
8357
8398
|
initial: false,
|
|
@@ -8637,6 +8678,11 @@ export {
|
|
|
8637
8678
|
SortableItem,
|
|
8638
8679
|
SortableItemHandle,
|
|
8639
8680
|
SortableOverlay,
|
|
8681
|
+
SwipeAction2 as SwipeAction,
|
|
8682
|
+
SwipeActions2 as SwipeActions,
|
|
8683
|
+
SwipeContent2 as SwipeContent,
|
|
8684
|
+
SwipeItem2 as SwipeItem,
|
|
8685
|
+
SwipeRoot2 as SwipeRoot,
|
|
8640
8686
|
Switch,
|
|
8641
8687
|
Textarea,
|
|
8642
8688
|
ThemeToggle,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rockin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"description": "Reusable React UI components, hooks, icons, utilities, and styles for Rock Star projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -118,6 +118,7 @@
|
|
|
118
118
|
"@dnd-kit/sortable": "^10.0.0",
|
|
119
119
|
"@dnd-kit/utilities": "^3.2.2",
|
|
120
120
|
"@gravity-ui/icons": "^2.3.0",
|
|
121
|
+
"@ncdai/react-swipe-actions": "^0.3.0",
|
|
121
122
|
"@number-flow/react": "^0.6.2",
|
|
122
123
|
"@radix-ui/react-collapsible": "^1.1.20",
|
|
123
124
|
"@radix-ui/react-scroll-area": "^1.2.18",
|