@zenkigen-inc/component-ui 1.23.1 → 1.24.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/dist/index.d.mts CHANGED
@@ -833,7 +833,7 @@ type Props$a = {
833
833
  placeholderIcon?: IconName;
834
834
  /** 現在選択されているオプション */
835
835
  selectedOption?: SelectOption | null;
836
- /** オプションリストの最大高さ */
836
+ /** オプションリストの最大高さ。未指定の場合はオプション 8.5 個分(x-small / small / medium: 282px、large: 350px)。"none" で制限を解除する */
837
837
  optionListMaxHeight?: CSSProperties['height'];
838
838
  /** 無効状態の制御 */
839
839
  isDisabled?: boolean;
@@ -841,6 +841,8 @@ type Props$a = {
841
841
  isError?: boolean;
842
842
  /** 選択状態の見た目を適用するかどうか */
843
843
  isOptionSelected?: boolean;
844
+ /** 「選択解除」を表示するかどうか。未指定の場合は後方互換の挙動(placeholder の有無に従う)となる */
845
+ hasDeselectButton?: boolean;
844
846
  /** 選択変更時のコールバック関数 */
845
847
  onChange?: (option: SelectOption | null) => void;
846
848
  /** ドロップダウンリストの幅をトリガーボタンの幅に合わせる */
@@ -850,7 +852,7 @@ type Props$a = {
850
852
  /** トリガーボタンに設定する aria-describedby。エラーメッセージ等と関連付けるために使用する */
851
853
  'aria-describedby'?: AriaAttributes['aria-describedby'];
852
854
  };
853
- declare function Select({ children, size, variant, width, maxWidth, placeholder, placeholderIcon, selectedOption, isDisabled, isError, isOptionSelected, onChange, optionListMaxHeight, matchListToTrigger, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedby, }: PropsWithChildren<Props$a>): react.JSX.Element;
855
+ declare function Select({ children, size, variant, width, maxWidth, placeholder, placeholderIcon, selectedOption, isDisabled, isError, isOptionSelected, hasDeselectButton, onChange, optionListMaxHeight, matchListToTrigger, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedby, }: PropsWithChildren<Props$a>): react.JSX.Element;
854
856
  declare namespace Select {
855
857
  var Option: typeof SelectItem;
856
858
  }
package/dist/index.d.ts CHANGED
@@ -833,7 +833,7 @@ type Props$a = {
833
833
  placeholderIcon?: IconName;
834
834
  /** 現在選択されているオプション */
835
835
  selectedOption?: SelectOption | null;
836
- /** オプションリストの最大高さ */
836
+ /** オプションリストの最大高さ。未指定の場合はオプション 8.5 個分(x-small / small / medium: 282px、large: 350px)。"none" で制限を解除する */
837
837
  optionListMaxHeight?: CSSProperties['height'];
838
838
  /** 無効状態の制御 */
839
839
  isDisabled?: boolean;
@@ -841,6 +841,8 @@ type Props$a = {
841
841
  isError?: boolean;
842
842
  /** 選択状態の見た目を適用するかどうか */
843
843
  isOptionSelected?: boolean;
844
+ /** 「選択解除」を表示するかどうか。未指定の場合は後方互換の挙動(placeholder の有無に従う)となる */
845
+ hasDeselectButton?: boolean;
844
846
  /** 選択変更時のコールバック関数 */
845
847
  onChange?: (option: SelectOption | null) => void;
846
848
  /** ドロップダウンリストの幅をトリガーボタンの幅に合わせる */
@@ -850,7 +852,7 @@ type Props$a = {
850
852
  /** トリガーボタンに設定する aria-describedby。エラーメッセージ等と関連付けるために使用する */
851
853
  'aria-describedby'?: AriaAttributes['aria-describedby'];
852
854
  };
853
- declare function Select({ children, size, variant, width, maxWidth, placeholder, placeholderIcon, selectedOption, isDisabled, isError, isOptionSelected, onChange, optionListMaxHeight, matchListToTrigger, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedby, }: PropsWithChildren<Props$a>): react.JSX.Element;
855
+ declare function Select({ children, size, variant, width, maxWidth, placeholder, placeholderIcon, selectedOption, isDisabled, isError, isOptionSelected, hasDeselectButton, onChange, optionListMaxHeight, matchListToTrigger, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedby, }: PropsWithChildren<Props$a>): react.JSX.Element;
854
856
  declare namespace Select {
855
857
  var Option: typeof SelectItem;
856
858
  }