@zenkigen-inc/component-ui 1.9.8 → 1.9.10

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.
@@ -6,14 +6,16 @@ type Props = {
6
6
  size?: 'x-small' | 'small' | 'medium' | 'large';
7
7
  variant?: 'outline' | 'text';
8
8
  width?: CSSProperties['width'];
9
+ maxWidth?: CSSProperties['maxWidth'];
9
10
  placeholder?: string;
10
11
  placeholderIcon?: IconName;
11
12
  selectedOption?: SelectOption | null;
12
13
  optionListMaxHeight?: CSSProperties['height'];
13
14
  isDisabled?: boolean;
15
+ isOptionSelected?: boolean;
14
16
  onChange?: (option: SelectOption | null) => void;
15
17
  };
16
- export declare function Select({ children, size, variant, width, placeholder, placeholderIcon, selectedOption, isDisabled, onChange, optionListMaxHeight, }: PropsWithChildren<Props>): import("react").JSX.Element;
18
+ export declare function Select({ children, size, variant, width, maxWidth, placeholder, placeholderIcon, selectedOption, isDisabled, isOptionSelected, onChange, optionListMaxHeight, }: PropsWithChildren<Props>): import("react").JSX.Element;
17
19
  export declare namespace Select {
18
20
  var Option: typeof SelectItem;
19
21
  }
@@ -1,11 +1,11 @@
1
- import type { CSSProperties } from 'react';
1
+ import type { CSSProperties, ReactNode } from 'react';
2
2
  import type { TooltipHorizontalAlign, TooltipPosition, TooltipSize, TooltipVerticalPosition } from './type';
3
3
  export declare const TooltipContent: ({ content, horizontalAlign, verticalPosition, size, tooltipPosition, maxWidth, isPortal, }: {
4
- content: string;
4
+ content: ReactNode;
5
5
  size: TooltipSize;
6
6
  maxWidth: CSSProperties['maxWidth'];
7
7
  verticalPosition: TooltipVerticalPosition;
8
8
  horizontalAlign: TooltipHorizontalAlign;
9
9
  tooltipPosition: TooltipPosition;
10
- isPortal?: boolean | undefined;
10
+ isPortal?: boolean;
11
11
  }) => import("react").JSX.Element;
@@ -1,7 +1,7 @@
1
- import type { CSSProperties, PropsWithChildren } from 'react';
1
+ import type { CSSProperties, PropsWithChildren, ReactNode } from 'react';
2
2
  import type { TooltipHorizontalAlign, TooltipSize, TooltipVerticalPosition } from './type';
3
3
  type Props = {
4
- content: string;
4
+ content: ReactNode;
5
5
  size?: TooltipSize;
6
6
  maxWidth?: CSSProperties['maxWidth'];
7
7
  verticalPosition?: TooltipVerticalPosition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenkigen-inc/component-ui",
3
- "version": "1.9.8",
3
+ "version": "1.9.10",
4
4
  "repository": "https://github.com/zenkigen/zenkigen-component",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -19,15 +19,15 @@
19
19
  "devDependencies": {
20
20
  "hygen": "6.2.11",
21
21
  "microbundle": "0.15.1",
22
- "typescript": "5.4.3"
22
+ "typescript": "5.4.5"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "@types/react": "^18.0.0",
26
26
  "react": "^18.0.0"
27
27
  },
28
28
  "dependencies": {
29
- "@zenkigen-inc/component-icons": "1.9.8",
30
- "@zenkigen-inc/component-theme": "1.9.8",
31
- "clsx": "2.1.0"
29
+ "@zenkigen-inc/component-icons": "1.9.10",
30
+ "@zenkigen-inc/component-theme": "1.9.10",
31
+ "clsx": "2.1.1"
32
32
  }
33
33
  }