ingred-ui 31.0.6 → 32.0.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.
Files changed (30) hide show
  1. package/dist/components/AdvancedFilter/hooks/useAdvancedFilterState.d.ts +4 -2
  2. package/dist/components/AdvancedFilter/index.d.ts +3 -3
  3. package/dist/components/AdvancedFilter/styled.d.ts +1 -0
  4. package/dist/components/AdvancedFilter/types.d.ts +24 -1
  5. package/dist/components/AdvancedFilter/utils/helpers.d.ts +13 -1
  6. package/dist/components/AdvancedFilter/utils/operators.d.ts +8 -0
  7. package/dist/components/AdvancedFilter/utils/positionCalculator.d.ts +5 -1
  8. package/dist/components/NavigationRail/Fixture/Fixture.d.ts +1 -1
  9. package/dist/components/NavigationRail/Fixture/styled.d.ts +2 -1
  10. package/dist/components/NavigationRail/NavigationRail.d.ts +5 -6
  11. package/dist/components/NavigationRail/NavigationRailContainer/NavigationRailContainer.d.ts +10 -0
  12. package/dist/components/NavigationRail/NavigationRailContainer/styled.d.ts +1 -1
  13. package/dist/components/NavigationRail/Slot/Slot.d.ts +13 -0
  14. package/dist/components/NavigationRail/Slot/SlotContent.d.ts +14 -0
  15. package/dist/components/NavigationRail/Slot/index.d.ts +4 -0
  16. package/dist/components/NavigationRail/Slot/styled.d.ts +6 -0
  17. package/dist/components/NavigationRail/constants.d.ts +6 -1
  18. package/dist/components/NavigationRail/hooks/useNavigationRail.d.ts +2 -0
  19. package/dist/components/NavigationRail/index.d.ts +2 -0
  20. package/dist/components/NavigationRail/styled.d.ts +0 -2
  21. package/dist/components/NavigationRail/utils.d.ts +9 -0
  22. package/dist/components/NotificationBadge/NotificationBadge.d.ts +12 -5
  23. package/dist/components/Select2/styled.d.ts +1 -1
  24. package/dist/components/Tag/Tag.d.ts +1 -1
  25. package/dist/components/Tag/types.d.ts +6 -1
  26. package/dist/index.es.js +877 -764
  27. package/dist/index.es.js.map +1 -1
  28. package/dist/index.js +892 -779
  29. package/dist/index.js.map +1 -1
  30. package/package.json +1 -1
@@ -5,9 +5,10 @@
5
5
  * メインコンポーネントの複雑性を軽減する。
6
6
  */
7
7
  /// <reference types="react" />
8
- import { AppliedFilter, FilterType, FilterConfig } from "../types";
8
+ import { AppliedFilter, FilterType, FilterConfig, AdvancedFilterSelectionMode } from "../types";
9
9
  export type UseAdvancedFilterStateProps = {
10
10
  types: FilterType[];
11
+ selectionMode?: AdvancedFilterSelectionMode;
11
12
  onFiltersChange?: (filters: AppliedFilter[]) => void;
12
13
  initialAppliedFilters?: AppliedFilter[];
13
14
  };
@@ -34,10 +35,11 @@ export type UseAdvancedFilterStateReturn = {
34
35
  y: number;
35
36
  } | null) => void;
36
37
  handleTypeSelect: (type: string) => void;
38
+ handleSlotClick: (type: string) => void;
37
39
  handleConfigApply: (config: FilterConfig) => void;
38
40
  handleRemoveFilter: (filterId: string) => void;
39
41
  handleClearAll: () => void;
40
42
  handleConfigCancel: () => void;
41
43
  handleEditFilter: (filter: AppliedFilter) => void;
42
44
  };
43
- export declare const useAdvancedFilterState: ({ types, onFiltersChange, initialAppliedFilters, }: UseAdvancedFilterStateProps) => UseAdvancedFilterStateReturn;
45
+ export declare const useAdvancedFilterState: ({ types, selectionMode, onFiltersChange, initialAppliedFilters, }: UseAdvancedFilterStateProps) => UseAdvancedFilterStateReturn;
@@ -26,10 +26,10 @@ export { AdvancedFilterTrigger } from "./AdvancedFilterTrigger";
26
26
  export { AdvancedFilterConfigPanel } from "./AdvancedFilterConfigPanel";
27
27
  export { useAdvancedFilterState } from "./hooks/useAdvancedFilterState";
28
28
  export { useFilterMenuPosition } from "./hooks/useFilterMenuPosition";
29
- export { TEXT_OPERATORS, NUMBER_OPERATORS, DATE_OPERATORS, SELECTION_OPERATORS, PRESET_OPERATORS, getPresetOperators, createOperator, combineOperators, overrideOperatorLabels, changeOperatorLabel, getPresetOperatorsWithLabels, selectOperators, selectOperatorsByIndex, applyOperatorToValue, applyFilter, applyMultipleFilters, evaluateFilterConditions, } from "./utils/operators";
29
+ export { TEXT_OPERATORS, NUMBER_OPERATORS, DATE_OPERATORS, SELECTION_OPERATORS, PRESET_OPERATORS, getPresetOperators, createOperator, combineOperators, overrideOperatorLabels, changeOperatorLabel, getPresetOperatorsWithLabels, selectOperators, selectOperatorsByIndex, applyOperatorToValue, applyFilter, applyMultipleFilters, evaluateFilterConditions, normalizeForSearch, } from "./utils/operators";
30
30
  export { createValue, combineValues, overrideValueLabels, changeValueLabel, selectValues, selectValuesByIndex, getValueStrings, getValueLabels, getLabelsForValues, mergeValues, sortValues, } from "./utils/values";
31
31
  export type { ValueDefinition } from "./utils/values";
32
- export { isRangeOperator, isCustomOperator, isValidFilterConfig, isValidFilterType, generateTagText, generateTagTitle, getTagBoldText, getAvailableTypes, getFilterTypeLabel, } from "./utils/helpers";
32
+ export { isRangeOperator, isCustomOperator, isValidFilterConfig, isValidFilterType, generateTagText, generateTagTitle, getTagBoldText, getAvailableTypes, getFilterTypeLabel, buildFilterSlots, getPresetSlotId, isConfiguredFilter, getConfiguredFilters, } from "./utils/helpers";
33
33
  export { FilterPositionCalculator } from "./utils/positionCalculator";
34
34
  export { ADVANCED_FILTER_CONSTANTS } from "./constants";
35
- export type { AdvancedFilterProps, FilterType, FilterTypeConfig, FilterConfig, AppliedFilter, OperatorDefinition, AdvancedFilterSize, AdvancedFilterVariant, FilterOperator, FilterInputType, FilterPresetType, } from "./types";
35
+ export type { AdvancedFilterProps, FilterType, FilterTypeConfig, FilterConfig, AppliedFilter, OperatorDefinition, AdvancedFilterSize, AdvancedFilterVariant, FilterOperator, FilterInputType, FilterPresetType, AdvancedFilterSelectionMode, FilterSlotView, } from "./types";
@@ -82,6 +82,7 @@ export declare const IconArea: import("styled-components/dist/types").IStyledCom
82
82
  /**
83
83
  * 中央:タグエリア
84
84
  */
85
+ export declare const CONFIGURED_PRESET_SLOT_TAG_CLASS = "ingred-advanced-filter-configured-tag";
85
86
  export declare const TagArea: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string;
86
87
  /**
87
88
  * プレースホルダーテキスト
@@ -14,6 +14,7 @@
14
14
  * 注: FilterOperator, FilterInputType, FilterPresetType は src/utils/filterTypes.ts で
15
15
  * 定義され、本ファイルから re-export しています。
16
16
  */
17
+ import type { MouseEvent } from "react";
17
18
  import { Theme } from "../../themes";
18
19
  import type { FilterOperator, FilterInputType, FilterPresetType } from "../../utils/filterTypes";
19
20
  export type { FilterOperator, FilterInputType, FilterPresetType };
@@ -22,6 +23,20 @@ export type FilterType = {
22
23
  label: string;
23
24
  disabled?: boolean;
24
25
  };
26
+ /**
27
+ * フィルター選択 UI のモード
28
+ * - menu: メニューからタイプを選んで追加(default)
29
+ * - presetSlots: types 分のスロットを常時表示。未設定はタイプ名のみ、クリックで ConfigPanel を直接開く
30
+ */
31
+ export type AdvancedFilterSelectionMode = "menu" | "presetSlots";
32
+ /** presetSlots モード用の表示スロット */
33
+ export type FilterSlotView = {
34
+ type: string;
35
+ typeLabel: string;
36
+ disabled?: boolean;
37
+ slotId: string;
38
+ filter: AppliedFilter | null;
39
+ };
25
40
  export type OperatorDefinition = {
26
41
  value: FilterOperator | (string & {});
27
42
  label: string;
@@ -148,14 +163,22 @@ export type AdvancedFilterProps = {
148
163
  onFiltersChange?: (filters: AppliedFilter[]) => void;
149
164
  /** Story等で初期表示用に事前適用されたフィルターを指定する */
150
165
  initialAppliedFilters?: AppliedFilter[];
166
+ /**
167
+ * フィルター選択 UI のモード
168
+ * @default 'menu'
169
+ */
170
+ selectionMode?: AdvancedFilterSelectionMode;
151
171
  };
152
172
  export type AdvancedFilterTriggerProps = {
153
173
  placeholder?: string;
154
174
  disabled?: boolean;
155
175
  isOpen?: boolean;
156
- onClick?: () => void;
176
+ onClick?: (event?: MouseEvent) => void;
157
177
  appliedFilters?: AppliedFilter[];
178
+ selectionMode?: AdvancedFilterSelectionMode;
179
+ filterSlots?: FilterSlotView[];
158
180
  onEditFilter?: (filter: AppliedFilter) => void;
181
+ onSlotClick?: (type: string) => void;
159
182
  onRemoveFilter?: (filterId: string) => void;
160
183
  onClearAll?: () => void;
161
184
  size?: "small" | "medium" | "large";
@@ -11,7 +11,7 @@
11
11
  * - タグ表示: タグのテキスト・タイトル生成
12
12
  * - バリデーション: フィルター設定・タイプの有効性チェック
13
13
  */
14
- import { AppliedFilter, FilterConfig, FilterInputType, FilterTypeConfig, MultiFilterConditionConfig, OperatorDefinition, ValueDefinition } from "../types";
14
+ import { AppliedFilter, FilterConfig, FilterInputType, FilterSlotView, FilterTypeConfig, MultiFilterConditionConfig, OperatorDefinition, ValueDefinition } from "../types";
15
15
  /**
16
16
  * 範囲指定が必要なオペレーターかどうかを判定
17
17
  * @param operator オペレーターのvalue
@@ -159,4 +159,16 @@ type ConditionForTextFocus = {
159
159
  * 複数条件モードで最初のテキスト入力条件の ID を取得する
160
160
  */
161
161
  export declare const getFirstTextConditionId: (filterConfig: FilterTypeConfig | undefined, conditions: ConditionForTextFocus[]) => string | null;
162
+ /** 未設定スロットの安定 ID */
163
+ export declare const getPresetSlotId: (type: string) => string;
164
+ /** 設定済み(値が入っている)フィルターかどうか */
165
+ export declare const isConfiguredFilter: (filter: AppliedFilter) => boolean;
166
+ /** 設定済みフィルターのみ返す */
167
+ export declare const getConfiguredFilters: (appliedFilters: AppliedFilter[]) => AppliedFilter[];
168
+ /** types と appliedFilters から presetSlots 表示用スロットを構築 */
169
+ export declare const buildFilterSlots: (types: Array<{
170
+ type: string;
171
+ label: string;
172
+ disabled?: boolean;
173
+ }>, appliedFilters: AppliedFilter[]) => FilterSlotView[];
162
174
  export {};
@@ -69,6 +69,14 @@ export declare const selectOperators: (operators: OperatorDefinition[], values:
69
69
  * オペレーター配列から指定されたインデックスの要素のみを抽出
70
70
  */
71
71
  export declare const selectOperatorsByIndex: (operators: OperatorDefinition[], indices: number[]) => OperatorDefinition[];
72
+ /**
73
+ * フィルタリング処理用のヘルパー関数群
74
+ * 実際のデータフィルタリング処理で使用
75
+ */
76
+ /**
77
+ * 文字列比較用の正規化(大文字小文字・全角半角を区別しない)
78
+ */
79
+ export declare const normalizeForSearch: (value: string) => string;
72
80
  /**
73
81
  * 単一の値に対してオペレーターを適用
74
82
  */
@@ -27,9 +27,13 @@ export declare class FilterPositionCalculator {
27
27
  */
28
28
  private static calculateSafePosition;
29
29
  /**
30
- * ConfigPanelの座標を計算
30
+ * ConfigPanelの座標を計算(AppliedFilter 用。後方互換)
31
31
  */
32
32
  static calculateConfigPanelPosition(filter: AppliedFilter, appliedFilters: AppliedFilter[], triggerRef: React.RefObject<HTMLDivElement>): MenuPosition;
33
+ /**
34
+ * ConfigPanelの座標を計算(slotId ベース。presetSlots モード用)
35
+ */
36
+ static calculateConfigPanelPositionBySlotId(slotId: string, slotIndex: number, triggerRef: React.RefObject<HTMLDivElement>): MenuPosition;
33
37
  /**
34
38
  * 実際のDOM要素から座標を計算
35
39
  */
@@ -3,5 +3,5 @@ export type LabelFixtureTooltip = (isFixed: boolean) => string;
3
3
  type Props = {
4
4
  labelFixtureTooltip?: LabelFixtureTooltip;
5
5
  };
6
- declare const Fixture: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
6
+ declare const Fixture: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLButtonElement>>;
7
7
  export { Fixture };
@@ -1 +1,2 @@
1
- export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never> & Partial<Pick<any, never>>> & string;
1
+ /** Tooltip の参照要素。子の入れ替え時もホバー追跡を安定させる */
2
+ export declare const FixtureTooltipAnchor: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string;
@@ -6,6 +6,7 @@ import { Fixture } from "./Fixture";
6
6
  import { Menu } from "./Menu";
7
7
  import { ExpansionMenu } from "./ExpansionMenu";
8
8
  import { ExpansionMenuItem } from "./ExpansionMenuItem";
9
+ import { Slot, SlotContent } from "./Slot";
9
10
  type ExportedComponentType = {
10
11
  (props: Props & React.RefAttributes<HTMLDivElement>): JSX.Element;
11
12
  Container: typeof NavigationRailContainer;
@@ -17,13 +18,11 @@ type ExportedComponentType = {
17
18
  ExpansionMenuItem: typeof ExpansionMenuItem;
18
19
  Fixture: typeof Fixture;
19
20
  MainContent: typeof MainContent;
21
+ Slot: typeof Slot;
22
+ SlotContent: typeof SlotContent;
20
23
  };
21
24
  type Props = {
22
25
  children?: React.ReactNode;
23
- /**
24
- * モバイルメニューが開いた時に、閉じるボタンとメニューの間に表示するコンテンツ
25
- */
26
- mobileHeaderContent?: React.ReactNode;
27
26
  };
28
- declare const _default: ExportedComponentType;
29
- export default _default;
27
+ declare const ExportedComponent: ExportedComponentType;
28
+ export default ExportedComponent;
@@ -12,6 +12,16 @@ export type NavigationRailContainerProps = {
12
12
  * It can define callback function that triggered when NavigationRail is `fixed`.
13
13
  */
14
14
  onChangeFixed?: (isFixed: boolean) => void;
15
+ /**
16
+ * モバイル向けの未読件数。メニュー内の `Menu` / `ExpansionMenu` 等も含めた合算を渡す。
17
+ * ドロワー閉時はメニューを開くボタンに赤ドット(件数なし)、開時は Slot 内の通知ボタンへ件数表示。
18
+ */
19
+ notificationCount?: number;
20
+ /**
21
+ * デスクトップ向け、Slot 領域のみの未読件数(通知ボタンへ件数表示)。
22
+ * 折りたたみ時の `Fixture` には 1 件以上で赤ドットのみ(件数なし)。メニュー行とは別管理。
23
+ */
24
+ slotNotificationCount?: number;
15
25
  children: React.ReactNode;
16
26
  };
17
27
  declare const NavigationRailContainer: React.ForwardRefExoticComponent<NavigationRailContainerProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,2 +1,2 @@
1
1
  export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string;
2
- export declare const MobileMenuButton: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string;
2
+ export declare const MobileMenuButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never> & Partial<Pick<any, never>>> & string;
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ export type SlotProps = {
3
+ children?: React.ReactNode;
4
+ /**
5
+ * 右端に表示する操作(デスクトップの Fixture など)。
6
+ * モバイル時は上段に閉じるボタンのみ表示し、`actions` は無視される。
7
+ * 下段 `children` の padding は利用側で指定する。
8
+ * 未指定時のデスクトップ: Fixture。
9
+ */
10
+ actions?: React.ReactNode;
11
+ };
12
+ declare const Slot: React.ForwardRefExoticComponent<SlotProps & React.RefAttributes<HTMLDivElement>>;
13
+ export { Slot };
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ export type SlotContentVisibility = "desktop" | "mobile" | "all";
3
+ export type SlotContentProps = {
4
+ children?: React.ReactNode;
5
+ /**
6
+ * 表示するビューポート。
7
+ * - `desktop`: 576px 超のみ
8
+ * - `mobile`: 576px 以下のみ
9
+ * - `all`: 常に(レール開閉による非表示は Slot 側で制御)
10
+ */
11
+ visibility?: SlotContentVisibility;
12
+ };
13
+ declare const SlotContent: React.ForwardRefExoticComponent<SlotContentProps & React.RefAttributes<HTMLDivElement>>;
14
+ export { SlotContent };
@@ -0,0 +1,4 @@
1
+ export { Slot } from "./Slot";
2
+ export type { SlotProps } from "./Slot";
3
+ export { SlotContent } from "./SlotContent";
4
+ export type { SlotContentProps, SlotContentVisibility } from "./SlotContent";
@@ -0,0 +1,6 @@
1
+ export declare const MobileSlotRoot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never> & Partial<Pick<any, never>>> & string;
2
+ export declare const MobileCloseBar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never> & Partial<Pick<any, never>>> & string;
3
+ export declare const SlotBar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never> & Partial<Pick<any, never>>> & string;
4
+ export declare const SlotCustom: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never> & Partial<Pick<any, never>>> & string;
5
+ export declare const SlotActions: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never> & Partial<Pick<any, never>>> & string;
6
+ export declare const SlotContentWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never> & Partial<Pick<any, never>>> & string;
@@ -1,9 +1,14 @@
1
1
  export declare const NavigationRailWidth: {
2
- readonly NARROW: "74px";
2
+ readonly NARROW: "64px";
3
3
  readonly WIDE: "256px";
4
4
  };
5
5
  export declare const NavigationRailContentHeight: {
6
6
  readonly HEADER: "72px";
7
7
  readonly FOOTER: "72px";
8
+ readonly SLOT: "56px";
9
+ /** モバイル Slot 上段(閉じるボタン専用行) */
10
+ readonly SLOT_MOBILE_CLOSE: "48px";
8
11
  };
9
12
  export declare const NavigationRailTransitionDuration = 0.3;
13
+ /** NotificationBadge overlay の角からのオフセット(%)。アイコンボタン向け */
14
+ export declare const NavigationRailBadgeOverlayOffsetPercent = 10;
@@ -0,0 +1,2 @@
1
+ import { type NavigationRailContextValues } from "../utils";
2
+ export declare function useNavigationRail(): NavigationRailContextValues;
@@ -3,4 +3,6 @@ export type { NavigationRailExpansionMenuProps } from "./ExpansionMenu";
3
3
  export type { NavigationRailExpansionMenuItemProps } from "./ExpansionMenuItem";
4
4
  export type { NavigationRailMenuProps } from "./Menu";
5
5
  export type { NavigationRailContainerProps } from "./NavigationRailContainer";
6
+ export type { SlotProps } from "./Slot";
7
+ export type { SlotContentProps, SlotContentVisibility } from "./Slot";
6
8
  export * from "./utils";
@@ -1,4 +1,2 @@
1
1
  export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never> & Partial<Pick<any, never>>> & string;
2
2
  export declare const MobileOverlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never> & Partial<Pick<any, never>>> & string;
3
- export declare const MobileCloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string;
4
- export declare const MobileHeaderContent: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string;
@@ -9,5 +9,14 @@ export type NavigationRailContextValues = {
9
9
  isMobile: boolean;
10
10
  isMobileMenuOpen: boolean;
11
11
  handleMobileMenuToggle?: () => void;
12
+ /**
13
+ * モバイル向けの未読件数(メニュー内の通知を含む合算。ドロワー閉時は開くボタンへ表示)。
14
+ */
15
+ notificationCount: number;
16
+ /**
17
+ * デスクトップ向け、Slot 領域のみの未読件数(通知ボタン・折りたたみ時の Fixture)。
18
+ */
19
+ slotNotificationCount: number;
12
20
  };
13
21
  export declare const NavigationRailContext: React.Context<NavigationRailContextValues>;
22
+ export { useNavigationRail } from "./hooks/useNavigationRail";
@@ -8,17 +8,23 @@ type NotificationBadgeBaseProps = NotificationBadgePillProps & {
8
8
  showZero?: boolean;
9
9
  invisible?: boolean;
10
10
  children: React.ReactNode;
11
+ /**
12
+ * overlay 時、角から外へずらす量(バッジ自身の幅・高さに対する %)。
13
+ * 小さいほど子(主にアイコン)に近づく。`0` で角に揃う。inline では無視される。
14
+ * @default 50
15
+ */
16
+ overlayOffsetPercent?: number;
11
17
  };
12
- type OverlayNormalProps = NotificationBadgeBaseProps & {
18
+ type OverlayLayoutProps = NotificationBadgeBaseProps & {
13
19
  layout?: "overlay";
14
- variant?: "normal";
15
20
  position?: "top-right" | "top-left" | "bottom-right" | "bottom-left";
21
+ };
22
+ type OverlayNormalProps = OverlayLayoutProps & {
23
+ variant?: "normal";
16
24
  dotSize?: never;
17
25
  };
18
- type OverlayDotProps = NotificationBadgeBaseProps & {
19
- layout?: "overlay";
26
+ type OverlayDotProps = OverlayLayoutProps & {
20
27
  variant: "dot";
21
- position?: "top-right" | "top-left" | "bottom-right" | "bottom-left";
22
28
  /** dot variant のサイズ */
23
29
  dotSize?: "small" | "medium" | "large";
24
30
  };
@@ -28,6 +34,7 @@ type InlineProps = NotificationBadgeBaseProps & {
28
34
  variant?: "normal";
29
35
  position?: never;
30
36
  dotSize?: never;
37
+ overlayOffsetPercent?: never;
31
38
  };
32
39
  export type NotificationBadgeProps = OverlayNormalProps | OverlayDotProps | InlineProps;
33
40
  declare const NotificationBadge: React.ForwardRefExoticComponent<NotificationBadgeProps & React.RefAttributes<HTMLDivElement>>;
@@ -7,7 +7,7 @@ export declare const SelectLabel: import("styled-components/dist/types").IStyled
7
7
  export declare const SelectLabelText: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string;
8
8
  export declare const SelectLabelIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never> & Partial<Pick<any, never>>> & string;
9
9
  export declare const TagContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never> & Partial<Pick<any, never>>> & string;
10
- export declare const StyledTag: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../Tag").TagProps, never> & Partial<Pick<import("../Tag").TagProps, never>>> & string & Omit<({ label, size, variant, onRemove, className, disabled, boldText, onClick, "aria-label": ariaLabel, "data-tag": dataTag, prepend, }: import("../Tag").TagProps) => JSX.Element, keyof import("react").Component<any, {}, any>>;
10
+ export declare const StyledTag: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../Tag").TagProps, never> & Partial<Pick<import("../Tag").TagProps, never>>> & string & Omit<({ label, size, variant, onRemove, className, disabled, boldText, onClick, onPointerDown, "aria-label": ariaLabel, "data-tag": dataTag, prepend, }: import("../Tag").TagProps) => JSX.Element, keyof import("react").Component<any, {}, any>>;
11
11
  export declare const Placeholder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never> & Partial<Pick<any, never>>> & string;
12
12
  export declare const IconArea: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never> & Partial<Pick<any, never>>> & string;
13
13
  export declare const StyledContextMenu2TextInputItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<{
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { TagProps } from "./types";
3
- export declare const Tag: ({ label, size, variant, onRemove, className, disabled, boldText, onClick, "aria-label": ariaLabel, "data-tag": dataTag, prepend, }: TagProps) => JSX.Element;
3
+ export declare const Tag: ({ label, size, variant, onRemove, className, disabled, boldText, onClick, onPointerDown, "aria-label": ariaLabel, "data-tag": dataTag, prepend, }: TagProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from "react";
1
+ import type { PointerEventHandler, ReactNode } from "react";
2
2
  export type TagSize = "small" | "medium" | "large" | "xl";
3
3
  export type TagVariant = "light" | "dark";
4
4
  export type TagProps = {
@@ -10,6 +10,11 @@ export type TagProps = {
10
10
  disabled?: boolean;
11
11
  boldText?: string | string[];
12
12
  onClick?: () => void;
13
+ /**
14
+ * ポインター押下時(マウス・タッチ)。`preventDefault` でフォーカス移動によるスクロールを抑止する用途向け。
15
+ * タッチでは `onMouseDown` だけでは効かないことがある。
16
+ */
17
+ onPointerDown?: PointerEventHandler<HTMLDivElement>;
13
18
  "aria-label"?: string;
14
19
  "data-tag"?: string;
15
20
  prepend?: ReactNode;