@baseline-ui/core 0.35.0 → 0.36.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/Acknowledgements.md +274 -0
- package/dist/index.css +1 -1
- package/dist/index.d.mts +9 -15
- package/dist/index.d.ts +9 -15
- package/dist/index.js +74 -74
- package/dist/index.mjs +8 -8
- package/package.json +6 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { AriaRole, Key, ReactNode, Dispatch, SetStateAction } from 'react';
|
|
3
3
|
import { IconProps, SVGRProps } from '@baseline-ui/icons';
|
|
4
|
-
import * as react_stately from 'react-stately';
|
|
5
|
-
import { DraggableCollectionStateOptions, DroppableCollectionStateOptions, Orientation, ListState, OverlayTriggerProps, OverlayTriggerState, TooltipTriggerProps, SliderStateOptions, ToggleProps, MenuTriggerProps, NumberFieldStateOptions, ListProps, SelectStateOptions, Item as Item$2, Selection as Selection$1, ComboBoxStateOptions, Node as Node$2, TreeProps } from 'react-stately';
|
|
6
|
-
import * as react_aria from 'react-aria';
|
|
7
4
|
import { DraggableCollectionOptions, DroppableCollectionOptions, AriaListBoxProps, AriaListBoxOptions, OptionAria, AriaButtonProps, AriaPopoverProps, useOverlayTrigger, AriaTooltipProps, AriaPositionProps, FocusableOptions, AriaSliderProps, AriaSwitchProps, AriaSearchFieldProps, AriaMenuProps, AriaMenuTriggerProps, AriaLinkOptions, SeparatorProps as SeparatorProps$1, AriaProgressBarProps, AriaTextFieldProps, OverlayProps, AriaToggleButtonProps, AriaCheckboxProps, AriaNumberFieldProps, I18nProviderProps as I18nProviderProps$1, LocalizedStrings, useNumberFormatter, useDateFormatter, AriaTagGroupProps, AriaSelectOptions, Key as Key$1, AriaDialogProps, DropOptions, ClipboardProps, PressProps, AriaRadioGroupProps, AriaModalOverlayProps, AriaComboBoxOptions, AriaComboBoxProps, AriaGridListOptions, GridListItemAria, Locale } from 'react-aria';
|
|
8
5
|
export { I18nProviderProps, useCollator, useDateFormatter, useNumberFormatter } from 'react-aria';
|
|
6
|
+
import { DraggableCollectionStateOptions, DroppableCollectionStateOptions, Orientation, ListState, OverlayTriggerProps, OverlayTriggerState, TooltipTriggerProps, SliderStateOptions, ToggleProps, MenuTriggerProps, NumberFieldStateOptions, ListProps, SelectStateOptions, Item as Item$2, Selection as Selection$1, ComboBoxStateOptions, Node as Node$2, TreeProps } from 'react-stately';
|
|
9
7
|
import { Node as Node$1, DragItem, FocusableElement, DOMAttributes, AriaLabelingProps, AriaValidationProps, DOMProps } from '@react-types/shared';
|
|
10
8
|
import { PressHookProps, KeyboardProps } from '@react-aria/interactions';
|
|
11
9
|
import { Theme, Sprinkles } from '@baseline-ui/tokens';
|
|
@@ -885,6 +883,12 @@ interface TagGroupProps extends StylingProps, Omit<AriaTagGroupProps<Item$1>, "c
|
|
|
885
883
|
variant?: Item$1["variant"];
|
|
886
884
|
/** The label for the tag group. */
|
|
887
885
|
"aria-label": string;
|
|
886
|
+
/**
|
|
887
|
+
* The size of the tag group.
|
|
888
|
+
*
|
|
889
|
+
* @default "md"
|
|
890
|
+
*/
|
|
891
|
+
size?: "sm" | "md";
|
|
888
892
|
}
|
|
889
893
|
|
|
890
894
|
declare const TagGroup: React__default.ForwardRefExoticComponent<TagGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -1096,17 +1100,7 @@ declare type TabItemProps = StylingProps & {
|
|
|
1096
1100
|
children: React__default.ReactNode;
|
|
1097
1101
|
};
|
|
1098
1102
|
|
|
1099
|
-
declare const Tabs: React__default.ForwardRefExoticComponent<
|
|
1100
|
-
children: React__default.ReactNode;
|
|
1101
|
-
onRemove?: ((key: react_stately.Key) => void) | undefined;
|
|
1102
|
-
selectedValue?: string | undefined;
|
|
1103
|
-
defaultSelectedValue?: string | undefined;
|
|
1104
|
-
disabledValues?: Set<react_stately.Key> | undefined;
|
|
1105
|
-
actions?: Omit<ActionIconButtonProps, "size" | "variant">[] | undefined;
|
|
1106
|
-
variant?: "primary" | "ghost" | undefined;
|
|
1107
|
-
tabHeaderClassName?: string | undefined;
|
|
1108
|
-
tabHeaderStyle?: React__default.CSSProperties | undefined;
|
|
1109
|
-
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
1103
|
+
declare const Tabs: React__default.ForwardRefExoticComponent<TabsProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1110
1104
|
|
|
1111
1105
|
declare const TabItem: React__default.FC<TabItemProps>;
|
|
1112
1106
|
|
|
@@ -2665,7 +2659,7 @@ declare const ColorSwatchPicker: React__default.ForwardRefExoticComponent<ColorS
|
|
|
2665
2659
|
interface TreeListItem extends ListOption {
|
|
2666
2660
|
children?: TreeListItem[];
|
|
2667
2661
|
}
|
|
2668
|
-
interface TreeViewProps extends StylingProps, Omit<AriaLabelingProps, "aria-describedby" | "aria-details">, Omit<TreeProps<TreeListItem>, "items" | "children" | "disabledKeys" | "
|
|
2662
|
+
interface TreeViewProps extends StylingProps, Omit<AriaLabelingProps, "aria-describedby" | "aria-details">, Omit<TreeProps<TreeListItem>, "items" | "children" | "disabledKeys" | "defaultSelectedKeys" | "onSelectionChange" | "collection" | "selectionMode"> {
|
|
2669
2663
|
/**
|
|
2670
2664
|
* The items to display in the tree view. Each item can be a leaf or a
|
|
2671
2665
|
* section.
|