@wavv/ui 2.4.8-alpha.4 → 2.4.8

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.
@@ -76,7 +76,7 @@ type PanelProps = {
76
76
  children?: TabPanelProps['children'];
77
77
  className?: TabPanelProps['className'];
78
78
  style?: TabPanelProps['style'];
79
- } & Omit<TabPanelProps, 'id'>;
79
+ } & Padding & Omit<TabPanelProps, 'id'>;
80
80
  export declare const Panel: {
81
81
  (props: PanelProps): import("react/jsx-runtime").JSX.Element;
82
82
  displayName: string;
@@ -143,7 +143,7 @@ const PanelContainer = styled(TabPanel)(({ theme, detached, panelPosition })=>({
143
143
  '&[data-focused]': {
144
144
  outline: 'none'
145
145
  }
146
- }));
146
+ }), paddingProps);
147
147
  Tabs_Tabs.List = List;
148
148
  Tabs_Tabs.Item = Item;
149
149
  Tabs_Tabs.Panel = Panel;
@@ -64,14 +64,26 @@ type BaseSelectInputProps = {
64
64
  after?: ReactNode;
65
65
  maxHeight?: PopoverProps['maxHeight'];
66
66
  } & Omit<InputProps, 'iconRight'> & ShowHideCallbacks & Pick<PopoverProps, 'maxHeight'>;
67
- export type SelectInputProps = BaseSelectInputProps & {
67
+ type SingleSelectInputProps = BaseSelectInputProps & {
68
+ /** The selection mode for the select */
69
+ selectionMode?: 'single';
70
+ /** The controlled value of the input */
71
+ value?: Key;
72
+ /** The uncontrolled initial value of the input */
73
+ defaultValue?: Key;
74
+ /** The function to be called when an option is selected */
75
+ onChange?: (key: string) => void;
76
+ };
77
+ type MultipleSelectInputProps = BaseSelectInputProps & {
78
+ /** The selection mode for the select */
79
+ selectionMode: 'multiple';
68
80
  /** The controlled value of the input */
69
81
  value?: Key | Key[];
70
82
  /** The uncontrolled initial value of the input */
71
83
  defaultValue?: Key | Key[];
72
- /** The function to be called when an option is selected */
73
- onChange?: (key: string | string[]) => void;
84
+ onChange?: (keys: string | string[]) => void;
74
85
  };
86
+ export type SelectInputProps = SingleSelectInputProps | MultipleSelectInputProps;
75
87
  export type ComboBoxInputProps = BaseSelectInputProps & {
76
88
  /** The controlled value of the input */
77
89
  value?: Key;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavv/ui",
3
- "version": "2.4.8-alpha.4",
3
+ "version": "2.4.8",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {