@launchdarkly/toolbar 0.23.1-beta.1 → 0.24.0-beta.1

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.
@@ -0,0 +1,19 @@
1
+ import type { VariantProps } from 'class-variance-authority';
2
+ import type { Ref } from 'react';
3
+ import type { ButtonProps as AriaButtonProps, ContextValue } from 'react-aria-components';
4
+ declare const buttonStyles: (props?: ({
5
+ size?: "small" | "medium" | "large" | null | undefined;
6
+ variant?: "default" | "primary" | "destructive" | "minimal" | "picker" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ interface ButtonVariants extends VariantProps<typeof buttonStyles> {
9
+ }
10
+ interface ButtonProps extends AriaButtonProps, ButtonVariants {
11
+ ref?: Ref<HTMLButtonElement>;
12
+ }
13
+ interface ButtonContextValue extends ButtonProps {
14
+ isPressed?: boolean;
15
+ }
16
+ declare const ButtonContext: import("react").Context<ContextValue<ButtonContextValue, HTMLButtonElement>>;
17
+ declare const Button: ({ ref, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
18
+ export { Button, ButtonContext, buttonStyles };
19
+ export type { ButtonProps, ButtonVariants };
@@ -0,0 +1,11 @@
1
+ import type { Ref } from 'react';
2
+ import type { GroupProps as AriaGroupProps, ContextValue } from 'react-aria-components';
3
+ import type { InputVariants } from './Input';
4
+ declare const groupStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
5
+ interface GroupProps extends AriaGroupProps, InputVariants {
6
+ ref?: Ref<HTMLDivElement>;
7
+ }
8
+ declare const GroupContext: import("react").Context<ContextValue<GroupProps, HTMLDivElement>>;
9
+ declare const Group: ({ ref, ...props }: GroupProps) => import("react/jsx-runtime").JSX.Element;
10
+ export { Group, GroupContext, groupStyles };
11
+ export type { GroupProps };
@@ -0,0 +1,15 @@
1
+ import type { VariantProps } from 'class-variance-authority';
2
+ import type { Ref } from 'react';
3
+ import type { InputProps as AriaInputProps, ContextValue } from 'react-aria-components';
4
+ declare const inputStyles: (props?: ({
5
+ variant?: "default" | "minimal" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ interface InputVariants extends VariantProps<typeof inputStyles> {
8
+ }
9
+ interface InputProps extends AriaInputProps, InputVariants {
10
+ ref?: Ref<HTMLInputElement>;
11
+ }
12
+ declare const InputContext: import("react").Context<ContextValue<InputProps, HTMLInputElement>>;
13
+ declare const Input: ({ ref, ...props }: InputProps) => import("react/jsx-runtime").JSX.Element;
14
+ export { Input, InputContext, inputStyles };
15
+ export type { InputProps, InputVariants };
@@ -0,0 +1,15 @@
1
+ import type { Ref } from 'react';
2
+ import type { ListBoxItemProps as AriaListBoxItemProps, ListBoxProps as AriaListBoxProps, ContextValue } from 'react-aria-components';
3
+ declare const listBoxStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
4
+ declare const listBoxItemStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
5
+ interface ListBoxProps<T> extends AriaListBoxProps<T> {
6
+ ref?: Ref<HTMLDivElement>;
7
+ }
8
+ interface ListBoxItemProps<T> extends AriaListBoxItemProps<T> {
9
+ ref?: Ref<T>;
10
+ }
11
+ declare const ListBoxContext: import("react").Context<ContextValue<ListBoxProps<any>, HTMLDivElement>>;
12
+ declare const ListBox: <T extends object>({ ref, ...props }: ListBoxProps<T>) => import("react/jsx-runtime").JSX.Element;
13
+ declare const ListBoxItem: <T extends object>({ ref, ...props }: ListBoxItemProps<T>) => import("react/jsx-runtime").JSX.Element;
14
+ export { ListBox, ListBoxContext, ListBoxItem, listBoxItemStyles, listBoxStyles };
15
+ export type { ListBoxProps, ListBoxItemProps };
@@ -0,0 +1,13 @@
1
+ import type { VariantProps } from 'class-variance-authority';
2
+ import type { Ref } from 'react';
3
+ import type { PopoverProps as AriaPopoverProps, ContextValue } from 'react-aria-components';
4
+ interface PopoverProps extends AriaPopoverProps, VariantProps<typeof popoverStyles> {
5
+ ref?: Ref<HTMLElement>;
6
+ }
7
+ declare const PopoverContext: import("react").Context<ContextValue<PopoverProps, HTMLElement>>;
8
+ declare const popoverStyles: (props?: ({
9
+ width?: "trigger" | "default" | null | undefined;
10
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
+ declare const Popover: ({ ref, ...props }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
12
+ export { Popover, PopoverContext, popoverStyles };
13
+ export type { PopoverProps };
@@ -0,0 +1,10 @@
1
+ import type { Ref } from 'react';
2
+ import type { SearchFieldProps as AriaSearchFieldProps, ContextValue } from 'react-aria-components';
3
+ declare const searchFieldStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
4
+ interface SearchFieldProps extends AriaSearchFieldProps {
5
+ ref?: Ref<HTMLDivElement>;
6
+ }
7
+ declare const SearchFieldContext: import("react").Context<ContextValue<SearchFieldProps, HTMLDivElement>>;
8
+ declare const SearchField: ({ ref, ...props }: SearchFieldProps) => import("react/jsx-runtime").JSX.Element;
9
+ export { SearchField, SearchFieldContext, searchFieldStyles };
10
+ export type { SearchFieldProps };
@@ -0,0 +1,16 @@
1
+ import type { Ref } from 'react';
2
+ import type { SelectProps as AriaSelectProps, SelectValueProps as AriaSelectValueProps, ContextValue } from 'react-aria-components';
3
+ declare const selectStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
4
+ declare const selectValueStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
5
+ interface SelectProps<T extends object> extends AriaSelectProps<T> {
6
+ ref?: Ref<HTMLDivElement>;
7
+ }
8
+ interface SelectValueProps<T extends object> extends AriaSelectValueProps<T> {
9
+ ref?: Ref<HTMLSpanElement>;
10
+ }
11
+ declare const SelectContext: import("react").Context<ContextValue<SelectProps<any>, HTMLDivElement>>;
12
+ declare const SelectValueContext: import("react").Context<ContextValue<SelectValueProps<any>, HTMLSpanElement>>;
13
+ declare const Select: <T extends object>({ ref, ...props }: SelectProps<T>) => import("react/jsx-runtime").JSX.Element;
14
+ declare const SelectValue: <T extends object>({ ref, ...props }: SelectValueProps<T>) => import("react/jsx-runtime").JSX.Element;
15
+ export { Select, SelectContext, SelectValue, SelectValueContext, selectStyles, selectValueStyles };
16
+ export type { SelectProps, SelectValueProps };
@@ -0,0 +1,10 @@
1
+ import type { Ref } from 'react';
2
+ import type { SwitchProps as AriaSwitchProps, ContextValue } from 'react-aria-components';
3
+ declare const switchStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
4
+ interface SwitchProps extends AriaSwitchProps {
5
+ ref?: Ref<HTMLLabelElement>;
6
+ }
7
+ declare const SwitchContext: import("react").Context<ContextValue<SwitchProps, HTMLLabelElement>>;
8
+ declare const Switch: ({ ref, ...props }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
9
+ export { Switch, SwitchContext, switchStyles };
10
+ export type { SwitchProps };
@@ -0,0 +1,10 @@
1
+ import type { Ref } from 'react';
2
+ import type { TextFieldProps as AriaTextFieldProps, ContextValue } from 'react-aria-components';
3
+ declare const textFieldStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
4
+ interface TextFieldProps extends AriaTextFieldProps {
5
+ ref?: Ref<HTMLDivElement>;
6
+ }
7
+ declare const TextFieldContext: import("react").Context<ContextValue<TextFieldProps, HTMLDivElement>>;
8
+ declare const TextField: ({ ref, ...props }: TextFieldProps) => import("react/jsx-runtime").JSX.Element;
9
+ export { TextField, TextFieldContext, textFieldStyles };
10
+ export type { TextFieldProps };
@@ -0,0 +1,18 @@
1
+ export { Button, ButtonContext, buttonStyles } from './Button';
2
+ export type { ButtonProps, ButtonVariants } from './Button';
3
+ export { Group, GroupContext, groupStyles } from './Group';
4
+ export type { GroupProps } from './Group';
5
+ export { Input, InputContext, inputStyles } from './Input';
6
+ export type { InputProps, InputVariants } from './Input';
7
+ export { ListBox, ListBoxContext, ListBoxItem, listBoxItemStyles, listBoxStyles } from './ListBox';
8
+ export type { ListBoxProps, ListBoxItemProps } from './ListBox';
9
+ export { Popover, PopoverContext, popoverStyles } from './Popover';
10
+ export type { PopoverProps } from './Popover';
11
+ export { SearchField, SearchFieldContext, searchFieldStyles } from './SearchField';
12
+ export type { SearchFieldProps } from './SearchField';
13
+ export { Select, SelectContext, SelectValue, SelectValueContext, selectStyles, selectValueStyles } from './Select';
14
+ export type { SelectProps, SelectValueProps } from './Select';
15
+ export { Switch, SwitchContext, switchStyles } from './Switch';
16
+ export type { SwitchProps } from './Switch';
17
+ export { TextField, TextFieldContext, textFieldStyles } from './TextField';
18
+ export type { TextFieldProps } from './TextField';
@@ -0,0 +1,4 @@
1
+ import type { Context, Ref } from 'react';
2
+ import type { ContextValue, SlotProps } from 'react-aria-components';
3
+ declare const useLPContextProps: <T, U extends SlotProps, E>(props: T & SlotProps, ref: Ref<E> | undefined, context: Context<ContextValue<U, E>>) => [T, Ref<E | null>];
4
+ export { useLPContextProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@launchdarkly/toolbar",
3
- "version": "0.23.1-beta.1",
3
+ "version": "0.24.0-beta.1",
4
4
  "description": "A React component that provides a developer-friendly toolbar for interacting with LaunchDarkly during development",
5
5
  "keywords": [
6
6
  "launchdarkly",
@@ -83,8 +83,6 @@
83
83
  "access": "public"
84
84
  },
85
85
  "dependencies": {
86
- "@launchpad-ui/components": "0.16.9",
87
- "@launchpad-ui/tokens": "0.15.0",
88
86
  "@react-aria/focus": "3.21.1",
89
87
  "@react-aria/interactions": "3.25.5",
90
88
  "@react-aria/utils": "3.30.1",
@@ -93,6 +91,7 @@
93
91
  "@tanstack/react-virtual": "^3.13.12",
94
92
  "@vanilla-extract/css": "^1.17.4",
95
93
  "@vanilla-extract/webpack-plugin": "^2.3.22",
94
+ "class-variance-authority": "^0.7.1",
96
95
  "motion": "^12.19.2",
97
96
  "react-aria": "3.43.2",
98
97
  "react-aria-components": "1.12.2",