@keeper-security/keeper-js-ui 0.5.0 → 0.7.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 CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.7.0](https://github.com/Keeper-Security/keeper-js-ui/compare/v0.6.0...v0.7.0) (2025-03-07)
4
+
5
+
6
+ ### Features
7
+
8
+ * add Dialog component ([#147](https://github.com/Keeper-Security/keeper-js-ui/issues/147)) ([9268524](https://github.com/Keeper-Security/keeper-js-ui/commit/926852454d4e7d219a841d80a98e7c98a2c09741))
9
+ * add Tooltip component ([#29](https://github.com/Keeper-Security/keeper-js-ui/issues/29)) ([8361d14](https://github.com/Keeper-Security/keeper-js-ui/commit/8361d14a125fe9db763b0080391d5af82e25f7ca))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **Button:** remove font-weight 500 rule ([#180](https://github.com/Keeper-Security/keeper-js-ui/issues/180)) ([8408c8d](https://github.com/Keeper-Security/keeper-js-ui/commit/8408c8d61448dd8792c270abca7271bbe862eb16)), closes [#178](https://github.com/Keeper-Security/keeper-js-ui/issues/178)
15
+
16
+ ## [0.6.0](https://github.com/Keeper-Security/keeper-js-ui/compare/v0.5.0...v0.6.0) (2025-01-22)
17
+
18
+
19
+ ### Features
20
+
21
+ * **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)
22
+
3
23
  ## [0.5.0](https://github.com/Keeper-Security/keeper-js-ui/compare/v0.4.0...v0.5.0) (2025-01-13)
4
24
 
5
25
 
package/README.md CHANGED
@@ -393,7 +393,7 @@ This provides 100% customizable opportunities and 100% ownership. It also relies
393
393
  - [.czrc](./.czrc) => [cz-cli/commitizen](https://github.com/commitizen/cz-cli#readme)
394
394
  - [.husky/\*](./.husky/) => [Husky](https://typicode.github.io/husky/how-to.html)
395
395
  - [.nvmrc](./.nvmrc) => [nvm](https://github.com/nvm-sh/nvm#readme)
396
- - [.prettierrc](./.prettierrc) => [Prettier](https://prettier.io/docs/en/configuration.html)
396
+ - [prettier.config.js](./prettier.config.js) => [Prettier](https://prettier.io/docs/en/configuration.html)
397
397
  - [.storybook/\*](./.storybook/) => [Storybook](https://storybook.js.org/docs/get-started/setup)
398
398
  - [commitlint.config.js](./commitlint.config.js) => [commitlint](https://commitlint.js.org/reference/configuration.html)
399
399
  - [components.json](./components.json) => [shadcn/ui](https://ui.shadcn.com/docs/components-json)
@@ -1,5 +1,6 @@
1
1
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
2
2
  import { ClassProp } from 'class-variance-authority/dist/types';
3
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
3
4
  import { DirectionProvider } from '@radix-ui/react-direction';
4
5
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
5
6
  import { JSX as JSX_2 } from 'react/jsx-runtime';
@@ -7,6 +8,7 @@ import * as React_2 from 'react';
7
8
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
8
9
  import * as SwitchPrimitives from '@radix-ui/react-switch';
9
10
  import * as ToastPrimitives from '@radix-ui/react-toast';
11
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
10
12
  import { VariantProps } from 'class-variance-authority';
11
13
 
12
14
  /**
@@ -83,15 +85,40 @@ declare interface ButtonProps extends ButtonBaseProps {
83
85
  }
84
86
 
85
87
  declare const buttonVariants: (props?: ({
86
- variant?: "link" | "solid" | "outline" | "plain" | null | undefined;
88
+ variant?: "link" | "solid" | "outline" | "plain" | "avatar" | null | undefined;
87
89
  color?: "neutral" | "primary" | "secondary" | "destructive" | null | undefined;
88
90
  fullWidth?: boolean | null | undefined;
89
- avatar?: boolean | null | undefined;
90
91
  iconOnly?: boolean | null | undefined;
91
- radius?: "md" | "full" | null | undefined;
92
+ radius?: "full" | null | undefined;
92
93
  size?: "sm" | "md" | "lg" | null | undefined;
93
94
  } & ClassProp) | undefined) => string;
94
95
 
96
+ export declare const Dialog: React_2.FC<DialogPrimitive.DialogProps>;
97
+
98
+ export declare const DialogClose: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React_2.RefAttributes<HTMLButtonElement>>;
99
+
100
+ export declare const DialogContent: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
101
+
102
+ export declare const DialogDescription: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>, "ref"> & React_2.RefAttributes<HTMLParagraphElement>>;
103
+
104
+ export declare const DialogFooter: {
105
+ ({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): JSX_2.Element;
106
+ displayName: string;
107
+ };
108
+
109
+ export declare const DialogHeader: {
110
+ ({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): JSX_2.Element;
111
+ displayName: string;
112
+ };
113
+
114
+ export declare const DialogOverlay: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
115
+
116
+ export declare const DialogPortal: React_2.FC<DialogPrimitive.DialogPortalProps>;
117
+
118
+ export declare const DialogTitle: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React_2.RefAttributes<HTMLHeadingElement>, "ref"> & React_2.RefAttributes<HTMLHeadingElement>>;
119
+
120
+ export declare const DialogTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
121
+
95
122
  export { DirectionProvider }
96
123
 
97
124
  export declare const DropdownMenu: React_2.FC<DropdownMenuPrimitive.DropdownMenuProps>;
@@ -214,6 +241,14 @@ declare type ToastProps = React_2.ComponentPropsWithoutRef<typeof ToastRoot>;
214
241
 
215
242
  declare const ToastRoot: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React_2.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ClassProp | undefined) => string> & React_2.RefAttributes<HTMLLIElement>>;
216
243
 
244
+ export declare const Tooltip: React_2.FC<TooltipPrimitive.TooltipProps>;
245
+
246
+ export declare const TooltipContent: React_2.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
247
+
248
+ export declare const TooltipProvider: React_2.FC<TooltipPrimitive.TooltipProviderProps>;
249
+
250
+ export declare const TooltipTrigger: React_2.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
251
+
217
252
  export declare function useToast(): {
218
253
  toast: typeof toast;
219
254
  dismiss: (toastId?: string) => void;