buildgrid-ui 1.13.1 → 1.14.2

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.
@@ -34,13 +34,13 @@ export declare const buttonVariants: ((arg?: (({
34
34
  class?: never;
35
35
  className?: import("cva-extended").ClassValue;
36
36
  }) & {
37
- size?: "icon" | "sm" | "md" | "lg" | "xl" | undefined;
38
37
  variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | undefined;
38
+ size?: "md" | "sm" | "lg" | "xl" | "icon" | undefined;
39
39
  rounded?: boolean | undefined;
40
40
  }) | undefined) => string) & {
41
41
  variants: {
42
- size: readonly ("icon" | "sm" | "md" | "lg" | "xl")[];
43
42
  variant: readonly ("link" | "default" | "destructive" | "outline" | "secondary" | "ghost")[];
43
+ size: readonly ("md" | "sm" | "lg" | "xl" | "icon")[];
44
44
  rounded: readonly boolean[];
45
45
  };
46
46
  };
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from 'react';
3
3
  declare const inputVariants: (props?: ({
4
- sizing?: "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
4
+ sizing?: "md" | "sm" | "lg" | "xl" | "2xl" | null | undefined;
5
5
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
6
6
  export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
7
7
  }
@@ -5,7 +5,7 @@ export type TSpinnerSizes = NonNullable<VariantProps<typeof spinnerVariants>['si
5
5
  export declare const spinnerSizes: TSpinnerSizes[];
6
6
  declare const spinnerVariants: (props?: ({
7
7
  color?: "secondary" | "error" | "primary" | "success" | "warning" | "info" | "white" | "neutral" | null | undefined;
8
- size?: "sm" | "md" | "lg" | "xl" | "2xl" | "xs" | null | undefined;
8
+ size?: "md" | "sm" | "lg" | "xl" | "2xl" | "xs" | null | undefined;
9
9
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
10
10
  export interface SpinnerProps extends VariantProps<typeof spinnerVariants> {
11
11
  label?: string;
@@ -13,8 +13,8 @@ export declare const toast: {
13
13
  id?: number | string | undefined;
14
14
  icon?: React.ReactNode;
15
15
  onDismiss?: ((toast: import("sonner").ToastT) => void) | undefined;
16
- cancel?: React.ReactNode | import("sonner").Action;
17
16
  position?: ("top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center") | undefined;
17
+ cancel?: React.ReactNode | import("sonner").Action;
18
18
  richColors?: boolean | undefined;
19
19
  invert?: boolean | undefined;
20
20
  closeButton?: boolean | undefined;
@@ -7,3 +7,4 @@ export declare const sortByField: (a: any, b: any, field: string) => 0 | 1 | -1;
7
7
  export declare const sortByFieldDesc: (a: any, b: any, field: string) => 0 | 1 | -1;
8
8
  export declare const sortByNestedField: (a: any, b: any, field1: string | number, field2: string) => 0 | 1 | -1;
9
9
  export declare const capitalize: (text: string) => string;
10
+ export declare const replaceTemplateWithVariables: (template: string, values: Record<string, string | number>) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buildgrid-ui",
3
- "version": "1.13.1",
3
+ "version": "1.14.2",
4
4
  "homepage": "http://adrianomaringolo.github.io/buildgrid-ui",
5
5
  "publishConfig": {
6
6
  "access": "public"