buildgrid-ui 1.3.6 → 1.4.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/blocks/empty-message/empty-message.d.ts +9 -0
- package/dist/blocks/empty-message/index.d.ts +1 -0
- package/dist/blocks/index.d.ts +1 -0
- package/dist/blocks/paginated-items/index.d.ts +1 -0
- package/dist/blocks/paginated-items/paginated-items.d.ts +16 -0
- package/dist/blocks/pagination-controls/pagination-controls.d.ts +4 -2
- package/dist/buildgrid-ui.es.js +4934 -4108
- package/dist/buildgrid-ui.umd.js +104 -86
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/spinner/index.d.ts +1 -0
- package/dist/components/spinner/spinner.d.ts +15 -0
- package/dist/lib/hooks/index.d.ts +7 -0
- package/dist/lib/hooks/use-array.d.ts +1 -0
- package/dist/lib/hooks/use-copy-to-clipboard.d.ts +4 -0
- package/dist/lib/hooks/use-disclosure-bool.d.ts +1 -0
- package/dist/lib/hooks/use-disclosure.d.ts +6 -0
- package/dist/lib/hooks/use-file-utilities.d.ts +5 -0
- package/dist/lib/hooks/use-key-press.d.ts +1 -0
- package/dist/lib/hooks/use-local-storage.d.ts +1 -0
- package/dist/lib/utils/index.d.ts +1 -0
- package/dist/lib/utils/string.d.ts +2 -0
- package/package.json +2 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
5
|
-
size?: "
|
|
4
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
|
+
size?: "icon" | "default" | "sm" | "lg" | "xl" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
8
|
isLoading?: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './spinner';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export type TSpinnerColors = NonNullable<VariantProps<typeof spinnerVariants>['color']>;
|
|
3
|
+
export declare const spinnerColors: TSpinnerColors[];
|
|
4
|
+
export type TSpinnerSizes = NonNullable<VariantProps<typeof spinnerVariants>['size']>;
|
|
5
|
+
export declare const spinnerSizes: TSpinnerSizes[];
|
|
6
|
+
declare const spinnerVariants: (props?: ({
|
|
7
|
+
color?: "secondary" | "error" | "primary" | "success" | "warning" | "info" | "white" | "neutral" | null | undefined;
|
|
8
|
+
size?: "sm" | "md" | "lg" | "xl" | "2xl" | "xs" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
10
|
+
export interface SpinnerProps extends VariantProps<typeof spinnerVariants> {
|
|
11
|
+
label?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const Spinner: (props: SpinnerProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
export * from './use-array';
|
|
2
|
+
export * from './use-copy-to-clipboard';
|
|
1
3
|
export * from './use-debounce';
|
|
2
4
|
export * from './use-dialog';
|
|
5
|
+
export * from './use-disclosure';
|
|
6
|
+
export * from './use-disclosure-bool';
|
|
7
|
+
export * from './use-file-utilities';
|
|
8
|
+
export * from './use-key-press';
|
|
9
|
+
export * from './use-local-storage';
|
|
3
10
|
export * from './use-media-query';
|
|
4
11
|
export * from './use-mobile';
|
|
5
12
|
export * from './use-pwa-install';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useArray: <T>() => (T[] | ((item: T) => void) | ((index: number) => void) | ((field: keyof T, value: T[keyof T]) => void))[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDisclosureBool: (initial?: boolean) => [boolean, () => void, () => void];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useKeyPress: (targetKey: string, callback?: (keyPressed: boolean) => void) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useLocalStorage<T>(key: string, initialValue: T): readonly [T, (value: T | ((val: T) => T)) => void, () => void];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "buildgrid-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"homepage": "http://adrianomaringolo.github.io/buildgrid-ui",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"@shadcn/ui": "^0.0.4",
|
|
52
52
|
"class-variance-authority": "^0.7.1",
|
|
53
53
|
"clsx": "^2.1.1",
|
|
54
|
+
"compressorjs": "^1.2.1",
|
|
54
55
|
"date-fns": "^4.1.0",
|
|
55
56
|
"date-fns-tz": "^3.2.0",
|
|
56
57
|
"lucide-react": "^0.469.0",
|