buildgrid-ui 1.19.4 → 1.20.0

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.
@@ -1,8 +1,9 @@
1
1
  import type React from 'react';
2
2
  export interface AlertProps {
3
- variant?: 'info' | 'warning' | 'error' | 'success';
3
+ variant?: 'info' | 'warning' | 'error' | 'success' | 'tip';
4
4
  title?: string;
5
- children: React.ReactNode;
5
+ children?: React.ReactNode;
6
+ messages?: string[];
6
7
  showCloseButton?: boolean;
7
8
  onClose?: () => void;
8
9
  actionButton?: {
@@ -12,4 +13,4 @@ export interface AlertProps {
12
13
  };
13
14
  className?: string;
14
15
  }
15
- export declare function Alert({ variant, title, children, showCloseButton, onClose, actionButton, className, }: AlertProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function Alert({ variant, title, children, messages, showCloseButton, onClose, actionButton, className, }: AlertProps): import("react/jsx-runtime").JSX.Element;
@@ -1,47 +1,2 @@
1
- import React from 'react';
2
- import { ExternalToast } from 'sonner';
3
- export declare const toast: {
4
- success: (message: string | React.ReactNode, data?: ExternalToast) => string | number;
5
- error: (message: string | React.ReactNode, data?: ExternalToast) => string | number;
6
- warning: (message: string | React.ReactNode, data?: ExternalToast) => string | number;
7
- info: (message: string | React.ReactNode, data?: ExternalToast) => string | number;
8
- custom: (jsx: (id: number | string) => React.ReactElement, data?: ExternalToast) => string | number;
9
- message: (message: (React.ReactNode | (() => React.ReactNode)) | React.ReactNode, data?: ExternalToast) => string | number;
10
- promise: <ToastData>(promise: Promise<ToastData> | (() => Promise<ToastData>), data?: {
11
- style?: React.CSSProperties | undefined;
12
- className?: string | undefined;
13
- id?: number | string | undefined;
14
- icon?: React.ReactNode;
15
- onDismiss?: ((toast: import("sonner").ToastT) => void) | undefined;
16
- position?: ("top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center") | undefined;
17
- invert?: boolean | undefined;
18
- cancel?: React.ReactNode | import("sonner").Action;
19
- duration?: number | undefined;
20
- richColors?: boolean | undefined;
21
- closeButton?: boolean | undefined;
22
- dismissible?: boolean | undefined;
23
- action?: React.ReactNode | import("sonner").Action;
24
- onAutoClose?: ((toast: import("sonner").ToastT) => void) | undefined;
25
- cancelButtonStyle?: React.CSSProperties | undefined;
26
- actionButtonStyle?: React.CSSProperties | undefined;
27
- unstyled?: boolean | undefined;
28
- classNames?: import("sonner").ToastClassnames | undefined;
29
- descriptionClassName?: string | undefined;
30
- } & {
31
- loading?: string | React.ReactNode;
32
- success?: React.ReactNode | ((data: ToastData) => React.ReactNode | string | Promise<React.ReactNode | string>);
33
- error?: React.ReactNode | ((data: any) => React.ReactNode | string | Promise<React.ReactNode | string>);
34
- description?: React.ReactNode | ((data: any) => React.ReactNode | string | Promise<React.ReactNode | string>);
35
- finally?: () => void | Promise<void>;
36
- }) => (string & {
37
- unwrap: () => Promise<ToastData>;
38
- }) | (number & {
39
- unwrap: () => Promise<ToastData>;
40
- }) | {
41
- unwrap: () => Promise<ToastData>;
42
- };
43
- dismiss: (id?: number | string) => string | number;
44
- loading: (message: (React.ReactNode | (() => React.ReactNode)) | React.ReactNode, data?: ExternalToast) => string | number;
45
- getHistory: () => (import("sonner").ToastT | import("sonner").ToastToDismiss)[];
46
- getToasts: () => (import("sonner").ToastT | import("sonner").ToastToDismiss)[];
47
- };
1
+ import { toast as SoonerToast } from 'sonner';
2
+ export declare const toast: typeof SoonerToast;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buildgrid-ui",
3
- "version": "1.19.4",
3
+ "version": "1.20.0",
4
4
  "homepage": "http://adrianomaringolo.github.io/buildgrid-ui",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -66,6 +66,10 @@
66
66
  "author": "",
67
67
  "license": "ISC",
68
68
  "description": "",
69
+ "repository": {
70
+ "type": "git",
71
+ "url": "https://github.com/adrianomaringolo/buildgrid-ui"
72
+ },
69
73
  "dependencies": {
70
74
  "@radix-ui/react-accordion": "^1.2.11",
71
75
  "@radix-ui/react-alert-dialog": "^1.1.7",
@@ -85,40 +89,40 @@
85
89
  "@radix-ui/react-slot": "^1.2.3",
86
90
  "@radix-ui/react-switch": "^1.1.4",
87
91
  "@radix-ui/react-tabs": "^1.1.12",
88
- "@radix-ui/react-toggle": "^1.1.3",
89
- "@radix-ui/react-toggle-group": "^1.1.3",
90
- "@radix-ui/react-tooltip": "^1.2.7",
91
- "@tailwindcss/vite": "^4.1.11",
92
+ "@radix-ui/react-toggle": "^1.1.10",
93
+ "@radix-ui/react-toggle-group": "^1.1.11",
94
+ "@radix-ui/react-tooltip": "^1.2.8",
95
+ "@tailwindcss/vite": "^4.3.0",
92
96
  "class-variance-authority": "^0.7.1",
93
97
  "clsx": "^2.1.1",
94
98
  "cmdk": "^1.1.1",
95
- "compressorjs": "^1.2.1",
99
+ "compressorjs": "^1.3.0",
96
100
  "cva-extended": "^2.0.0",
97
101
  "date-fns": "^4.1.0",
98
102
  "date-fns-tz": "^3.2.0",
99
- "dompurify": "^3.3.1",
103
+ "dompurify": "^3.4.2",
100
104
  "embla-carousel-react": "^8.6.0",
101
105
  "highlight.js": "^11.11.1",
102
- "lucide-react": "^0.539.0",
106
+ "lucide-react": "^1.14.0",
103
107
  "radix-ui": "^1.4.3",
104
- "react-day-picker": "^9.8.1",
105
- "react-dropzone": "^14.3.8",
106
- "sonner": "^1.7.1",
107
- "tailwind-merge": "^3.3.1",
108
- "tw-animate-css": "^1.3.6"
108
+ "react-day-picker": "^10.0.0",
109
+ "react-dropzone": "^15.0.0",
110
+ "sonner": "^2.0.7",
111
+ "tailwind-merge": "^3.6.0",
112
+ "tw-animate-css": "^1.4.0"
109
113
  },
110
114
  "peerDependencies": {
111
115
  "react": "^18.0.0 || ^19.0.0",
112
116
  "react-dom": "^18.0.0 || ^19.0.0"
113
117
  },
114
118
  "devDependencies": {
115
- "@commitlint/cli": "^19.8.1",
116
- "@commitlint/config-conventional": "^19.8.1",
119
+ "@commitlint/cli": "^21.0.1",
120
+ "@commitlint/config-conventional": "^21.0.1",
117
121
  "@semantic-release/changelog": "^6.0.3",
118
122
  "@semantic-release/commit-analyzer": "^13.0.1",
119
123
  "@semantic-release/git": "^10.0.1",
120
- "@semantic-release/npm": "^12.0.2",
121
- "@semantic-release/release-notes-generator": "^14.0.3",
124
+ "@semantic-release/npm": "^13.1.5",
125
+ "@semantic-release/release-notes-generator": "^14.1.1",
122
126
  "@shadcn/ui": "^0.0.4",
123
127
  "@storybook/addon-docs": "^10.2.0",
124
128
  "@storybook/addon-onboarding": "^10.2.0",
@@ -154,7 +158,7 @@
154
158
  "pretty-quick": "^4.2.2",
155
159
  "react": "^19.1.1",
156
160
  "react-dom": "^19.1.1",
157
- "semantic-release": "^24.2.7",
161
+ "semantic-release": "^25.0.3",
158
162
  "storybook": "^10.2.0",
159
163
  "tailwindcss": "^4.1.11",
160
164
  "tailwindcss-animate": "^1.0.7",