@keeper-security/keeper-js-ui 0.4.0 → 0.6.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.
- package/CHANGELOG.md +16 -0
- package/dist/index.es.d.ts +34 -1
- package/dist/index.es.js +2889 -1967
- package/dist/index.umd.js +23 -18
- package/dist/style.css +1 -1
- package/package.json +23 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.6.0](https://github.com/Keeper-Security/keeper-js-ui/compare/v0.5.0...v0.6.0) (2025-01-22)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **Toast:** set "down-to-up" animation as default ([#154](https://github.com/Keeper-Security/keeper-js-ui/issues/154)) ([7a2c5d8](https://github.com/Keeper-Security/keeper-js-ui/commit/7a2c5d822e29e9b4e928c9b5770ed331f9f68ac8)), closes [#153](https://github.com/Keeper-Security/keeper-js-ui/issues/153)
|
|
9
|
+
|
|
10
|
+
## [0.5.0](https://github.com/Keeper-Security/keeper-js-ui/compare/v0.4.0...v0.5.0) (2025-01-13)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* add Toast component ([#137](https://github.com/Keeper-Security/keeper-js-ui/issues/137)) ([3343f1e](https://github.com/Keeper-Security/keeper-js-ui/commit/3343f1ea4f58975deb49e33d2088c8de18589100))
|
|
16
|
+
* **Button:** add destructive button ([#138](https://github.com/Keeper-Security/keeper-js-ui/issues/138)) ([187d27f](https://github.com/Keeper-Security/keeper-js-ui/commit/187d27f8d5aef1fd40db5c3df7f8f0330108a00d))
|
|
17
|
+
* **Switch:** remove useDirection() ([#141](https://github.com/Keeper-Security/keeper-js-ui/issues/141)) ([4180cb0](https://github.com/Keeper-Security/keeper-js-ui/commit/4180cb07ec306a0ffbc918b9a69279ed20bb9125))
|
|
18
|
+
|
|
3
19
|
## [0.4.0](https://github.com/Keeper-Security/keeper-js-ui/compare/v0.3.1...v0.4.0) (2025-01-08)
|
|
4
20
|
|
|
5
21
|
|
package/dist/index.es.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
|
6
6
|
import * as React_2 from 'react';
|
|
7
7
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
8
8
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
9
|
+
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
9
10
|
import { VariantProps } from 'class-variance-authority';
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -83,7 +84,7 @@ declare interface ButtonProps extends ButtonBaseProps {
|
|
|
83
84
|
|
|
84
85
|
declare const buttonVariants: (props?: ({
|
|
85
86
|
variant?: "link" | "solid" | "outline" | "plain" | null | undefined;
|
|
86
|
-
color?: "neutral" | "primary" | "secondary" | null | undefined;
|
|
87
|
+
color?: "neutral" | "primary" | "secondary" | "destructive" | null | undefined;
|
|
87
88
|
fullWidth?: boolean | null | undefined;
|
|
88
89
|
avatar?: boolean | null | undefined;
|
|
89
90
|
iconOnly?: boolean | null | undefined;
|
|
@@ -187,4 +188,36 @@ declare type SwitchPropsA11y = {
|
|
|
187
188
|
'aria-label': string;
|
|
188
189
|
};
|
|
189
190
|
|
|
191
|
+
export declare const Toast: () => JSX_2.Element;
|
|
192
|
+
|
|
193
|
+
declare function toast({ ...props }: ToasterProps): {
|
|
194
|
+
id: string;
|
|
195
|
+
dismiss: () => void;
|
|
196
|
+
update: (props: ToasterToast) => void;
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
declare const ToastAction: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
200
|
+
|
|
201
|
+
declare type ToastActionElement = React_2.ReactElement<typeof ToastAction>;
|
|
202
|
+
|
|
203
|
+
declare type ToasterProps = Omit<ToasterToast, 'id'>;
|
|
204
|
+
|
|
205
|
+
declare type ToasterToast = ToastProps & {
|
|
206
|
+
id: string;
|
|
207
|
+
title?: React_2.ReactNode;
|
|
208
|
+
description?: React_2.ReactNode;
|
|
209
|
+
action?: ToastActionElement;
|
|
210
|
+
icon?: React_2.ReactNode;
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
declare type ToastProps = React_2.ComponentPropsWithoutRef<typeof ToastRoot>;
|
|
214
|
+
|
|
215
|
+
declare const ToastRoot: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React_2.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ClassProp | undefined) => string> & React_2.RefAttributes<HTMLLIElement>>;
|
|
216
|
+
|
|
217
|
+
export declare function useToast(): {
|
|
218
|
+
toast: typeof toast;
|
|
219
|
+
dismiss: (toastId?: string) => void;
|
|
220
|
+
toasts: ToasterToast[];
|
|
221
|
+
};
|
|
222
|
+
|
|
190
223
|
export { }
|