@keeper-security/keeper-js-ui 0.7.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 CHANGED
@@ -1,5 +1,19 @@
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
+
3
17
  ## [0.7.0](https://github.com/Keeper-Security/keeper-js-ui/compare/v0.6.0...v0.7.0) (2025-03-07)
4
18
 
5
19
 
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.
@@ -5,12 +5,23 @@ import { DirectionProvider } from '@radix-ui/react-direction';
5
5
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
6
6
  import { JSX as JSX_2 } from 'react/jsx-runtime';
7
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';
8
10
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
9
11
  import * as SwitchPrimitives from '@radix-ui/react-switch';
10
12
  import * as ToastPrimitives from '@radix-ui/react-toast';
11
13
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
12
14
  import { VariantProps } from 'class-variance-authority';
13
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
+
14
25
  /**
15
26
  * Utility type that ensures at least one of the props is present.
16
27
  *
@@ -127,7 +138,7 @@ export declare const DropdownMenuCheckboxItem: React_2.ForwardRefExoticComponent
127
138
 
128
139
  export declare const DropdownMenuContent: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
129
140
 
130
- 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>>;
131
142
 
132
143
  export declare const DropdownMenuItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
133
144
  inset?: boolean;
@@ -203,6 +214,22 @@ declare interface IconButtonProps extends ButtonBaseProps {
203
214
  'aria-label': string;
204
215
  }
205
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
+
206
233
  export declare const Separator: React_2.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
207
234
 
208
235
  export declare const Switch: React_2.ForwardRefExoticComponent<SwitchProps & React_2.RefAttributes<HTMLButtonElement>>;