@keeper-security/keeper-js-ui 0.6.0 → 0.8.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 +27 -0
- package/README.md +1 -11
- package/dist/index.es.d.ts +66 -4
- package/dist/index.es.js +8491 -4843
- package/dist/index.umd.js +45 -31
- package/dist/style.css +1 -1
- package/package.json +39 -34
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.8.0](https://github.com/Keeper-Security/keeper-js-ui/compare/v0.7.0...v0.8.0) (2025-03-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add ScrollArea component ([#187](https://github.com/Keeper-Security/keeper-js-ui/issues/187)) ([7359594](https://github.com/Keeper-Security/keeper-js-ui/commit/73595945489361d0353c98309548d70651f6ab20)), closes [#186](https://github.com/Keeper-Security/keeper-js-ui/issues/186)
|
|
9
|
+
* add Select component ([#71](https://github.com/Keeper-Security/keeper-js-ui/issues/71)) ([fb58584](https://github.com/Keeper-Security/keeper-js-ui/commit/fb58584da9df0959d47e7e7cba8df2aaae024ef0)), closes [#183](https://github.com/Keeper-Security/keeper-js-ui/issues/183)
|
|
10
|
+
* **Tooltip:** set position default to bottom, room permitting ([#191](https://github.com/Keeper-Security/keeper-js-ui/issues/191)) ([9b70ebb](https://github.com/Keeper-Security/keeper-js-ui/commit/9b70ebb6c5f91ad30544e2ee6a9bdf798402b9de))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **Tooltip:** set max-width so content wraps ([#189](https://github.com/Keeper-Security/keeper-js-ui/issues/189)) ([6ffa233](https://github.com/Keeper-Security/keeper-js-ui/commit/6ffa23393b14d1d1ba21bc63edff2be6986c634c))
|
|
16
|
+
|
|
17
|
+
## [0.7.0](https://github.com/Keeper-Security/keeper-js-ui/compare/v0.6.0...v0.7.0) (2025-03-07)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* 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))
|
|
23
|
+
* 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))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* **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)
|
|
29
|
+
|
|
3
30
|
## [0.6.0](https://github.com/Keeper-Security/keeper-js-ui/compare/v0.5.0...v0.6.0) (2025-01-22)
|
|
4
31
|
|
|
5
32
|
|
package/README.md
CHANGED
|
@@ -174,16 +174,6 @@ This will allow you to use any standard Tailwind CSS classes within the `classNa
|
|
|
174
174
|
> [!NOTE]
|
|
175
175
|
> Some pages, such as `Docs`, will always render the `light` theme regardless of the selected theme. The component itself will render in the correct theme but the surrounding UI will not. Switch to an actual story to see the full page rendered as the chosen theme.
|
|
176
176
|
|
|
177
|
-
There are four themes to choose from:
|
|
178
|
-
|
|
179
|
-
- light
|
|
180
|
-
- dark
|
|
181
|
-
- high contrast light
|
|
182
|
-
- high contrast dark
|
|
183
|
-
|
|
184
|
-
> [!NOTE]
|
|
185
|
-
> The `high contrast *` themes will make best efforts to render components using an example of simplified [system colors](https://developer.mozilla.org/en-US/docs/Web/CSS/system-color). This is to be used only as a quick reference, not as a source of truth. For accurate representations of component rendering in these modes, refer to [triggering forced-colors/high contrast modes](#triggering-forced-colorshigh-contrast-modes).
|
|
186
|
-
|
|
187
177
|
#### Triggering Forced-Colors/High Contrast Modes
|
|
188
178
|
|
|
189
179
|
- Safari and Firefox do not have this feature in their dev tools, but they will respect system-wide settings.
|
|
@@ -393,7 +383,7 @@ This provides 100% customizable opportunities and 100% ownership. It also relies
|
|
|
393
383
|
- [.czrc](./.czrc) => [cz-cli/commitizen](https://github.com/commitizen/cz-cli#readme)
|
|
394
384
|
- [.husky/\*](./.husky/) => [Husky](https://typicode.github.io/husky/how-to.html)
|
|
395
385
|
- [.nvmrc](./.nvmrc) => [nvm](https://github.com/nvm-sh/nvm#readme)
|
|
396
|
-
- [.
|
|
386
|
+
- [prettier.config.js](./prettier.config.js) => [Prettier](https://prettier.io/docs/en/configuration.html)
|
|
397
387
|
- [.storybook/\*](./.storybook/) => [Storybook](https://storybook.js.org/docs/get-started/setup)
|
|
398
388
|
- [commitlint.config.js](./commitlint.config.js) => [commitlint](https://commitlint.js.org/reference/configuration.html)
|
|
399
389
|
- [components.json](./components.json) => [shadcn/ui](https://ui.shadcn.com/docs/components-json)
|
package/dist/index.es.d.ts
CHANGED
|
@@ -1,14 +1,27 @@
|
|
|
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';
|
|
6
7
|
import * as React_2 from 'react';
|
|
8
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
9
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
7
10
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
8
11
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
9
12
|
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
13
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
10
14
|
import { VariantProps } from 'class-variance-authority';
|
|
11
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Ensures interactive elements, such as buttons and inputs, have associated descriptive text for a11y concerns.
|
|
18
|
+
*/
|
|
19
|
+
declare type AccessibleInteractiveElementHelper = AtLeastOneRequired<{
|
|
20
|
+
id: string;
|
|
21
|
+
'aria-labelledby': string;
|
|
22
|
+
'aria-label': string;
|
|
23
|
+
}>;
|
|
24
|
+
|
|
12
25
|
/**
|
|
13
26
|
* Utility type that ensures at least one of the props is present.
|
|
14
27
|
*
|
|
@@ -83,15 +96,40 @@ declare interface ButtonProps extends ButtonBaseProps {
|
|
|
83
96
|
}
|
|
84
97
|
|
|
85
98
|
declare const buttonVariants: (props?: ({
|
|
86
|
-
variant?: "link" | "solid" | "outline" | "plain" | null | undefined;
|
|
99
|
+
variant?: "link" | "solid" | "outline" | "plain" | "avatar" | null | undefined;
|
|
87
100
|
color?: "neutral" | "primary" | "secondary" | "destructive" | null | undefined;
|
|
88
101
|
fullWidth?: boolean | null | undefined;
|
|
89
|
-
avatar?: boolean | null | undefined;
|
|
90
102
|
iconOnly?: boolean | null | undefined;
|
|
91
|
-
radius?: "
|
|
103
|
+
radius?: "full" | null | undefined;
|
|
92
104
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
93
105
|
} & ClassProp) | undefined) => string;
|
|
94
106
|
|
|
107
|
+
export declare const Dialog: React_2.FC<DialogPrimitive.DialogProps>;
|
|
108
|
+
|
|
109
|
+
export declare const DialogClose: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
110
|
+
|
|
111
|
+
export declare const DialogContent: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
112
|
+
|
|
113
|
+
export declare const DialogDescription: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>, "ref"> & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
114
|
+
|
|
115
|
+
export declare const DialogFooter: {
|
|
116
|
+
({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): JSX_2.Element;
|
|
117
|
+
displayName: string;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export declare const DialogHeader: {
|
|
121
|
+
({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): JSX_2.Element;
|
|
122
|
+
displayName: string;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
export declare const DialogOverlay: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
126
|
+
|
|
127
|
+
export declare const DialogPortal: React_2.FC<DialogPrimitive.DialogPortalProps>;
|
|
128
|
+
|
|
129
|
+
export declare const DialogTitle: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React_2.RefAttributes<HTMLHeadingElement>, "ref"> & React_2.RefAttributes<HTMLHeadingElement>>;
|
|
130
|
+
|
|
131
|
+
export declare const DialogTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
132
|
+
|
|
95
133
|
export { DirectionProvider }
|
|
96
134
|
|
|
97
135
|
export declare const DropdownMenu: React_2.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
@@ -100,7 +138,7 @@ export declare const DropdownMenuCheckboxItem: React_2.ForwardRefExoticComponent
|
|
|
100
138
|
|
|
101
139
|
export declare const DropdownMenuContent: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
102
140
|
|
|
103
|
-
export declare const DropdownMenuGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
141
|
+
export declare const DropdownMenuGroup: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuGroupProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
104
142
|
|
|
105
143
|
export declare const DropdownMenuItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
106
144
|
inset?: boolean;
|
|
@@ -176,6 +214,22 @@ declare interface IconButtonProps extends ButtonBaseProps {
|
|
|
176
214
|
'aria-label': string;
|
|
177
215
|
}
|
|
178
216
|
|
|
217
|
+
export declare const ScrollArea: React_2.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
218
|
+
|
|
219
|
+
export declare const ScrollAreaViewport: React_2.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaViewportProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
220
|
+
|
|
221
|
+
export declare const ScrollBar: React_2.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
222
|
+
|
|
223
|
+
export declare const Select: React_2.FC<SelectPrimitive.SelectProps>;
|
|
224
|
+
|
|
225
|
+
export declare const SelectContent: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
226
|
+
|
|
227
|
+
export declare const SelectItem: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
228
|
+
|
|
229
|
+
export declare const SelectTrigger: React_2.ForwardRefExoticComponent<(AccessibleInteractiveElementHelper & Omit<SelectPrimitive.SelectTriggerProps & React_2.RefAttributes<HTMLButtonElement>, "ref">) & React_2.RefAttributes<HTMLButtonElement>>;
|
|
230
|
+
|
|
231
|
+
export declare const SelectValue: React_2.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
232
|
+
|
|
179
233
|
export declare const Separator: React_2.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
180
234
|
|
|
181
235
|
export declare const Switch: React_2.ForwardRefExoticComponent<SwitchProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
@@ -214,6 +268,14 @@ declare type ToastProps = React_2.ComponentPropsWithoutRef<typeof ToastRoot>;
|
|
|
214
268
|
|
|
215
269
|
declare const ToastRoot: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React_2.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ClassProp | undefined) => string> & React_2.RefAttributes<HTMLLIElement>>;
|
|
216
270
|
|
|
271
|
+
export declare const Tooltip: React_2.FC<TooltipPrimitive.TooltipProps>;
|
|
272
|
+
|
|
273
|
+
export declare const TooltipContent: React_2.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
274
|
+
|
|
275
|
+
export declare const TooltipProvider: React_2.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
276
|
+
|
|
277
|
+
export declare const TooltipTrigger: React_2.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
278
|
+
|
|
217
279
|
export declare function useToast(): {
|
|
218
280
|
toast: typeof toast;
|
|
219
281
|
dismiss: (toastId?: string) => void;
|