ingred-ui 25.12.1 → 25.13.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.
- package/dist/components/AdvancedFilter/index.d.ts +1 -1
- package/dist/components/DropdownButton/DropdownButton.stories.d.ts +1 -0
- package/dist/components/DropdownButton/types.d.ts +14 -1
- package/dist/index.es.js +498 -498
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -26,7 +26,7 @@ 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, } 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, } 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
32
|
export { isRangeOperator, isCustomOperator, isValidFilterConfig, isValidFilterType, generateTagText, generateTagTitle, getTagBoldText, getAvailableTypes, getFilterTypeLabel, } from "./utils/helpers";
|
|
@@ -26,3 +26,4 @@ export declare const SplitWithIcon: StoryObj<DropdownButtonProps>;
|
|
|
26
26
|
export declare const WithSelectedValue: StoryObj<DropdownButtonProps>;
|
|
27
27
|
export declare const WithConfirmModal: StoryObj<DropdownButtonProps>;
|
|
28
28
|
export declare const WithLoading: StoryObj<DropdownButtonProps>;
|
|
29
|
+
export declare const WithHeadingAndHelpText: StoryObj<DropdownButtonProps>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import { ButtonSize, ButtonColor } from "../Button/Button";
|
|
3
3
|
export type DropdownButtonColor = Exclude<ButtonColor, "danger">;
|
|
4
|
-
export type
|
|
4
|
+
export type ContextMenu2ButtonContent = {
|
|
5
|
+
type?: undefined;
|
|
5
6
|
text: string;
|
|
6
7
|
onClick: () => void;
|
|
7
8
|
divideTop?: boolean;
|
|
@@ -11,6 +12,18 @@ export type ContextMenu2ContentProp = {
|
|
|
11
12
|
checked?: boolean;
|
|
12
13
|
onChange?: (checked: boolean) => void;
|
|
13
14
|
};
|
|
15
|
+
export type ContextMenu2HeadingContent = {
|
|
16
|
+
type: "heading";
|
|
17
|
+
text: string;
|
|
18
|
+
divideTop?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type ContextMenu2HelpTextContent = {
|
|
21
|
+
type: "helpText";
|
|
22
|
+
text: string;
|
|
23
|
+
prepend?: ReactNode;
|
|
24
|
+
divideTop?: boolean;
|
|
25
|
+
};
|
|
26
|
+
export type ContextMenu2ContentProp = ContextMenu2ButtonContent | ContextMenu2HeadingContent | ContextMenu2HelpTextContent;
|
|
14
27
|
export type DropdownButtonProps = {
|
|
15
28
|
size?: ButtonSize;
|
|
16
29
|
color?: DropdownButtonColor;
|