reykit 1.0.110 → 1.0.112
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/index.css +3 -1
- package/dist/index.js +37547 -49329
- package/dist/src/base.d.ts +7 -0
- package/dist/src/components/ui/alert-dialog.d.ts +1 -1
- package/dist/src/components/ui/button-group.d.ts +1 -1
- package/dist/src/components/ui/calendar.d.ts +1 -1
- package/dist/src/components/ui/carousel.d.ts +1 -1
- package/dist/src/components/ui/command.d.ts +1 -1
- package/dist/src/components/ui/field.d.ts +1 -1
- package/dist/src/components/ui/input-group.d.ts +1 -1
- package/dist/src/components/ui/item.d.ts +1 -1
- package/dist/src/components/ui/menubar.d.ts +1 -1
- package/dist/src/components/ui/pagination.d.ts +1 -1
- package/dist/src/components/ui/toggle-group.d.ts +1 -1
- package/dist/src/image.d.ts +20 -0
- package/dist/src/index.d.ts +2 -0
- package/package.json +12 -10
package/dist/src/base.d.ts
CHANGED
|
@@ -13,3 +13,10 @@ export type KeyByValue<T, V> = {
|
|
|
13
13
|
* Start debug CSS style, need to import 'reykit/debug' CSS style first.
|
|
14
14
|
*/
|
|
15
15
|
export declare function debugCss(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Browser download file from blob data.
|
|
18
|
+
*
|
|
19
|
+
* @param obj - Data or string of with data.
|
|
20
|
+
* @param fileName - File name.
|
|
21
|
+
*/
|
|
22
|
+
export declare function downloadFile(obj: Blob | string, fileName?: string): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog';
|
|
2
|
-
import { Button } from '
|
|
2
|
+
import { Button } from './button';
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
declare function AlertDialog({ ...props }: AlertDialogPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function AlertDialogTrigger({ ...props }: AlertDialogPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRender } from '@base-ui/react/use-render';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { Separator } from '
|
|
3
|
+
import { Separator } from './separator';
|
|
4
4
|
declare const buttonGroupVariants: (props?: ({
|
|
5
5
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DayPicker, DayButton, Locale } from 'react-day-picker';
|
|
2
|
-
import { Button } from '
|
|
2
|
+
import { Button } from './button';
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, locale, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
|
|
5
5
|
buttonVariant?: React.ComponentProps<typeof Button>["variant"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as useEmblaCarousel, UseEmblaCarouselType } from 'embla-carousel-react';
|
|
2
|
-
import { Button } from '
|
|
2
|
+
import { Button } from './button';
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
type CarouselApi = UseEmblaCarouselType[1];
|
|
5
5
|
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Command as CommandPrimitive } from 'cmdk';
|
|
2
|
-
import { Dialog } from '
|
|
2
|
+
import { Dialog } from './dialog';
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: Omit<React.ComponentProps<typeof Dialog>, "children"> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { Label } from '
|
|
2
|
+
import { Label } from './label';
|
|
3
3
|
declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<"legend"> & {
|
|
5
5
|
variant?: "legend" | "label";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { Button } from '
|
|
2
|
+
import { Button } from './button';
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
declare function InputGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare const inputGroupAddonVariants: (props?: ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRender } from '@base-ui/react/use-render';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { Separator } from '
|
|
3
|
+
import { Separator } from './separator';
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
declare function ItemGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare function ItemSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Menu as MenuPrimitive } from '@base-ui/react/menu';
|
|
2
2
|
import { Menubar as MenubarPrimitive } from '@base-ui/react/menubar';
|
|
3
|
-
import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from '
|
|
3
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from './dropdown-menu';
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
declare function Menubar({ className, ...props }: MenubarPrimitive.Props): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare function MenubarMenu({ ...props }: React.ComponentProps<typeof DropdownMenu>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button } from '
|
|
1
|
+
import { Button } from './button';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare function Pagination({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Toggle as TogglePrimitive } from '@base-ui/react/toggle';
|
|
2
2
|
import { ToggleGroup as ToggleGroupPrimitive } from '@base-ui/react/toggle-group';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import { toggleVariants } from '
|
|
4
|
+
import { toggleVariants } from './toggle';
|
|
5
5
|
declare function ToggleGroup({ className, variant, size, spacing, orientation, children, ...props }: ToggleGroupPrimitive.Props & VariantProps<typeof toggleVariants> & {
|
|
6
6
|
spacing?: number;
|
|
7
7
|
orientation?: "horizontal" | "vertical";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @Time : 2026-06-01
|
|
3
|
+
* @Author : Rey
|
|
4
|
+
* @Contact : reyxbo@163.com
|
|
5
|
+
* @Explain : Image methods.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Browser download qrcode file from text.
|
|
9
|
+
*
|
|
10
|
+
* @param text - QRCode Text.
|
|
11
|
+
* @param fileName - File name.
|
|
12
|
+
*/
|
|
13
|
+
export declare function downloadQrcode(text: string, fileName?: string): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Set qrcode URL to element `src` attribute.
|
|
16
|
+
*
|
|
17
|
+
* @param text - QRCode Text.
|
|
18
|
+
* @param element - Element instance or id.
|
|
19
|
+
*/
|
|
20
|
+
export declare function setElementQrcode(text: string, element: HTMLElement | string): Promise<void>;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as component from './components';
|
|
2
2
|
import * as base from './base';
|
|
3
3
|
import * as data from './data';
|
|
4
|
+
import * as image from './image';
|
|
4
5
|
import * as net from './net';
|
|
5
6
|
import * as re from './re';
|
|
6
7
|
import * as react from './react';
|
|
@@ -10,6 +11,7 @@ declare const _default: {
|
|
|
10
11
|
component: typeof component;
|
|
11
12
|
base: typeof base;
|
|
12
13
|
data: typeof data;
|
|
14
|
+
image: typeof image;
|
|
13
15
|
net: typeof net;
|
|
14
16
|
re: typeof re;
|
|
15
17
|
react: typeof react;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reykit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.112",
|
|
4
4
|
"description": "Kit method set.",
|
|
5
5
|
"author": "reyxbo",
|
|
6
6
|
"keywords": [
|
|
@@ -40,11 +40,7 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@base-ui/react": "^1.2.0",
|
|
42
42
|
"@fontsource-variable/inter": "^5.2.8",
|
|
43
|
-
"@tailwindcss/vite": "^4.2.1",
|
|
44
43
|
"@tanstack/react-query": "^5.90.21",
|
|
45
|
-
"@types/react": "^19.2.14",
|
|
46
|
-
"@types/react-dom": "^19.2.3",
|
|
47
|
-
"@vitejs/plugin-react": "^5.1.4",
|
|
48
44
|
"class-variance-authority": "^0.7.1",
|
|
49
45
|
"clsx": "^2.1.1",
|
|
50
46
|
"cmdk": "^1.1.1",
|
|
@@ -53,6 +49,7 @@
|
|
|
53
49
|
"input-otp": "^1.4.2",
|
|
54
50
|
"lucide-react": "^0.575.0",
|
|
55
51
|
"next-themes": "^0.4.6",
|
|
52
|
+
"qrcode": "^1.5.4",
|
|
56
53
|
"radix-ui": "^1.4.3",
|
|
57
54
|
"react": "19.2.4",
|
|
58
55
|
"react-day-picker": "^9.13.2",
|
|
@@ -62,13 +59,18 @@
|
|
|
62
59
|
"recharts": "^2.15.4",
|
|
63
60
|
"sonner": "^2.0.7",
|
|
64
61
|
"tailwind-merge": "^3.5.0",
|
|
65
|
-
"
|
|
66
|
-
"vaul": "^1.1.2",
|
|
67
|
-
"vite": "^7.3.1",
|
|
68
|
-
"vite-plugin-dts": "^4.5.4"
|
|
62
|
+
"vaul": "^1.1.2"
|
|
69
63
|
},
|
|
70
64
|
"devDependencies": {
|
|
65
|
+
"@tailwindcss/vite": "^4.3.0",
|
|
66
|
+
"@types/qrcode": "^1.5.6",
|
|
67
|
+
"@types/react": "^19.2.15",
|
|
68
|
+
"@types/react-dom": "^19.2.3",
|
|
69
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
71
70
|
"shadcn": "^3.8.5",
|
|
72
|
-
"
|
|
71
|
+
"tailwindcss": "^4.3.0",
|
|
72
|
+
"tw-animate-css": "^1.4.0",
|
|
73
|
+
"vite": "^8.0.15",
|
|
74
|
+
"vite-plugin-dts": "^5.0.1"
|
|
73
75
|
}
|
|
74
76
|
}
|