@univerjs/ui 1.0.0-beta.1 → 1.0.0-beta.2

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.
@@ -22,6 +22,7 @@ type IToolbarItemProps = IDisplayMenuItem<IMenuItem> & {
22
22
  iconSize?: number;
23
23
  iconColor?: string;
24
24
  fullWidth?: boolean;
25
+ preserveStrokeWidth?: boolean;
25
26
  };
26
27
  export declare const ToolbarItem: import("react").ForwardRefExoticComponent<IToolbarItemProps & import("react").RefAttributes<ITooltipWrapperRef>>;
27
28
  export {};
@@ -37,18 +37,20 @@ export declare function DropdownWrapper(props: Omit<Partial<IDropdownProps>, 'ov
37
37
  overlay: ReactNode;
38
38
  align?: 'start' | 'end' | 'center';
39
39
  }): import("react").JSX.Element;
40
- export declare function DropdownMenuLabel({ icon, value, option, onOptionSelect }: {
40
+ export declare function DropdownMenuLabel({ icon, value, option, preserveStrokeWidth, onOptionSelect }: {
41
41
  icon?: IMenuItem['icon'];
42
42
  value?: string | number;
43
43
  option: IValueOption;
44
+ preserveStrokeWidth?: boolean;
44
45
  onOptionSelect?: (option: IValueOption) => void;
45
46
  }): import("react").JSX.Element;
46
- export declare function DropdownMenuWrapper({ menuId, slot, value, options, children, disabled, onOptionSelect, }: {
47
+ export declare function DropdownMenuWrapper({ menuId, slot, value, options, children, disabled, preserveStrokeWidth, onOptionSelect, }: {
47
48
  menuId: string;
48
49
  slot?: boolean;
49
50
  value?: string | number;
50
51
  options: IValueOption[];
51
52
  children: ReactNode;
52
53
  disabled?: boolean;
54
+ preserveStrokeWidth?: boolean;
53
55
  onOptionSelect: (option: IValueOption) => void;
54
56
  }): import("react").JSX.Element;
@@ -19,6 +19,7 @@ import type { IMenuSelectorItem } from '../../services/menu/menu';
19
19
  export type ICustomLabelProps<T = undefined> = {
20
20
  className?: string;
21
21
  iconSize?: number;
22
+ preserveStrokeWidth?: boolean;
22
23
  value?: string | number | undefined;
23
24
  value$?: Observable<T>;
24
25
  onChange?(v: string | number): void;
@@ -13,9 +13,10 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import type { RefObject } from 'react';
16
17
  type ItemHeight<T> = (index: number, data: T) => number;
17
18
  export interface IVirtualListOptions<T> {
18
- containerTarget: React.RefObject<HTMLElement>;
19
+ containerTarget: RefObject<HTMLElement | null>;
19
20
  itemHeight: number | ItemHeight<T>;
20
21
  overscan?: number;
21
22
  }