@bluealba/pae-ui-react-core 4.2.0 → 4.2.1-develop-1352

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,18 @@
1
+ export interface SelectOption {
2
+ value: string;
3
+ label: string;
4
+ disabled?: boolean;
5
+ }
6
+ export interface SelectProps {
7
+ name?: string;
8
+ label?: string;
9
+ helperText?: string;
10
+ value?: string;
11
+ options: SelectOption[];
12
+ placeholder?: string;
13
+ disabled?: boolean;
14
+ className?: string;
15
+ onValueChange?: (value: string) => void;
16
+ }
17
+ export declare const Select: import('react').ForwardRefExoticComponent<SelectProps & import('react').RefAttributes<HTMLButtonElement>>;
18
+ export default Select;
@@ -0,0 +1,2 @@
1
+ export { Select, default } from './Select';
2
+ export type { SelectProps, SelectOption } from './Select';
@@ -18,6 +18,7 @@ export type ColumnType<T> = {
18
18
  isSortable?: boolean;
19
19
  sortName?: string;
20
20
  width?: number;
21
+ maxWidth?: number;
21
22
  valueGetter?: (row: T) => string | number;
22
23
  cellRenderer?: (row: T) => ReactNode | null;
23
24
  };
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+
3
+ export interface TextWithTooltipProps {
4
+ children: string;
5
+ className?: string;
6
+ tooltipSide?: "right" | "top" | "bottom" | "left";
7
+ tooltipClassName?: string;
8
+ }
9
+ export declare const TextWithTooltip: FC<TextWithTooltipProps>;
10
+ export default TextWithTooltip;
@@ -13,8 +13,12 @@ export { Label } from './Label/Label';
13
13
  export type { LabelProps } from './Label/Label';
14
14
  export { default as Select } from './Select/Select';
15
15
  export type { SelectProps } from './Select/Select';
16
+ export { default as Select2 } from './Select2/Select';
17
+ export type { SelectProps as Select2Props } from './Select2/Select';
16
18
  export { TextArea } from './TextArea/TextArea';
17
19
  export type { TextAreaProps } from './TextArea/TextArea';
20
+ export { TextWithTooltip } from './TextWithTooltip/TextWithTooltip';
21
+ export type { TextWithTooltipProps } from './TextWithTooltip/TextWithTooltip';
18
22
  export { SearchInput } from './SearchInput/SearchInput';
19
23
  export type { SearchInputProps } from './SearchInput/SearchInput';
20
24
  export { SearchAutocomplete } from './SearchAutocomplete/SearchAutocomplete';
@@ -5,5 +5,6 @@ export interface RoomsContextValue {
5
5
  joinRoom: (roomId: string) => void;
6
6
  leaveRoom: (roomId: string) => void;
7
7
  getRoomUsers: (roomId: string) => RoomUser[];
8
+ reconnect: () => void;
8
9
  }
9
10
  export declare const RoomsContext: import('react').Context<RoomsContextValue | null>;
@@ -21,6 +21,10 @@ export interface UseRoomReturn {
21
21
  hasJoined: boolean;
22
22
  joinRoom: () => void;
23
23
  leaveRoom: () => void;
24
+ /**
25
+ * Reconnects to the rooms WebSocket. This can be useful in scenarios where the connection is lost or needs to be refreshed.
26
+ */
27
+ reconnect: () => void;
24
28
  }
25
29
  export declare const DEFAULT_OPTIONS: UseRoomOptions;
26
30
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluealba/pae-ui-react-core",
3
- "version": "4.2.0",
3
+ "version": "4.2.1-develop-1352",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",
@@ -42,6 +42,7 @@
42
42
  "vite-plugin-lib-inject-css": "^2.1.1"
43
43
  },
44
44
  "dependencies": {
45
+ "@radix-ui/react-select": "^2.2.6",
45
46
  "@radix-ui/react-slot": "^1.1.0",
46
47
  "clsx": "^2.1.1",
47
48
  "color-parse": "^2.0.2",