@fluidattacks/design 9.7.2 → 9.9.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/components/card/card-with-input/index.js +3 -2
- package/dist/components/drawer/index.js +77 -73
- package/dist/components/drawer/types.d.ts +2 -0
- package/dist/components/filters/filters-menu/index.js +24 -23
- package/dist/components/filters/index.d.ts +2 -2
- package/dist/components/filters/options-menu/index.js +21 -21
- package/dist/components/filters/options-menu/options/index.js +3 -2
- package/dist/components/filters/types.d.ts +2 -0
- package/dist/components/group-selector/index.js +44 -41
- package/dist/components/group-selector/index.stories.d.ts +2 -1
- package/dist/components/group-selector/option-container/index.d.ts +1 -1
- package/dist/components/group-selector/option-container/index.js +37 -24
- package/dist/components/group-selector/styles.d.ts +4 -2
- package/dist/components/group-selector/styles.js +9 -9
- package/dist/components/group-selector/types.d.ts +5 -0
- package/dist/components/list-item/index.d.ts +1 -1
- package/dist/components/list-item/index.js +67 -47
- package/dist/components/list-item/index.stories.d.ts +2 -1
- package/dist/components/list-item/item-action/index.d.ts +3 -0
- package/dist/components/list-item/item-action/index.js +36 -0
- package/dist/components/list-item/item-action/styles.d.ts +6 -0
- package/dist/components/list-item/item-action/styles.js +17 -0
- package/dist/components/list-item/item-action/types.d.ts +14 -0
- package/dist/components/list-item/styles.d.ts +5 -1
- package/dist/components/list-item/styles.js +10 -10
- package/dist/components/list-item/types.d.ts +17 -1
- package/dist/components/menu/index.js +3 -2
- package/dist/components/modal/columns-modal/preview-panel/styles.d.ts +1 -1
- package/dist/components/modal/columns-modal/search-panel/styles.d.ts +1 -1
- package/dist/components/slider/index.js +3 -2
- package/package.json +1 -1
|
@@ -11,6 +11,20 @@ interface ILabelProps {
|
|
|
11
11
|
color: string;
|
|
12
12
|
href?: string;
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Item action props.
|
|
16
|
+
* @interface IItemAction
|
|
17
|
+
* @property { IIconModifiable["icon"] } icon - The icon of the action button.
|
|
18
|
+
* @property { string } label - The label of the action button.
|
|
19
|
+
* @property { Function } onClick - The function to call with the item value when the action is clicked.
|
|
20
|
+
* @property { boolean } [showOnHover] - Whether the action shows only while the item is hovered or focused.
|
|
21
|
+
*/
|
|
22
|
+
interface IItemAction {
|
|
23
|
+
icon: IIconModifiable["icon"];
|
|
24
|
+
label: string;
|
|
25
|
+
onClick: (value: string) => void;
|
|
26
|
+
showOnHover?: boolean;
|
|
27
|
+
}
|
|
14
28
|
/**
|
|
15
29
|
* List item component props.
|
|
16
30
|
* @interface IListItemProps
|
|
@@ -22,6 +36,7 @@ interface ILabelProps {
|
|
|
22
36
|
* @property { string } [value] - The value for the list item.
|
|
23
37
|
* @property { IIconModifiable["icon"] } [rightIcon] - The icon for the right side of the list item.
|
|
24
38
|
* @property { IIconProps["onClick"] } [onClickIcon] - The function to call when the icon on the left side is clicked.
|
|
39
|
+
* @property { IItemAction } [itemAction] - The action button on the right side of the list item. When set, `rightIcon` and the selected check are not rendered.
|
|
25
40
|
*/
|
|
26
41
|
interface IListItemProps extends Partial<Pick<IIconModifiable, "icon" | "iconType">>, HTMLAttributes<HTMLLIElement>, HTMLProps<HTMLLIElement> {
|
|
27
42
|
href?: string;
|
|
@@ -29,5 +44,6 @@ interface IListItemProps extends Partial<Pick<IIconModifiable, "icon" | "iconTyp
|
|
|
29
44
|
value?: string;
|
|
30
45
|
rightIcon?: IIconModifiable["icon"];
|
|
31
46
|
onClickIcon?: IIconProps["onClick"];
|
|
47
|
+
itemAction?: IItemAction;
|
|
32
48
|
}
|
|
33
|
-
export type { IListItemProps, ILabelProps };
|
|
49
|
+
export type { IItemAction, IListItemProps, ILabelProps };
|
|
@@ -4,6 +4,7 @@ import { useTheme as x } from "styled-components";
|
|
|
4
4
|
import { Container as t } from "../container/index.js";
|
|
5
5
|
import { Divider as s } from "../divider/index.js";
|
|
6
6
|
import "react";
|
|
7
|
+
import "../button/index.js";
|
|
7
8
|
import { ListItemsWrapper as y } from "../list-item/styles.js";
|
|
8
9
|
import "../icon/index.js";
|
|
9
10
|
import { Tag as v } from "../tag/index.js";
|
|
@@ -11,7 +12,7 @@ import "../typography/heading/index.js";
|
|
|
11
12
|
import "../typography/span/index.js";
|
|
12
13
|
import { Text as o } from "../typography/text/index.js";
|
|
13
14
|
import { useClickOutside as z } from "../../hooks/use-click-outside.js";
|
|
14
|
-
const
|
|
15
|
+
const M = ({
|
|
15
16
|
children: a,
|
|
16
17
|
commitShortSha: l,
|
|
17
18
|
parentElement: d,
|
|
@@ -56,5 +57,5 @@ const I = ({
|
|
|
56
57
|
] });
|
|
57
58
|
};
|
|
58
59
|
export {
|
|
59
|
-
|
|
60
|
+
M as Menu
|
|
60
61
|
};
|
|
@@ -6,5 +6,5 @@ declare const StyledReorderItem: import('styled-components/dist/types').IStyledC
|
|
|
6
6
|
ref?: ((instance: HTMLLIElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLLIElement> | null | undefined;
|
|
7
7
|
}, "$isDragging"> & {
|
|
8
8
|
$isDragging?: boolean;
|
|
9
|
-
}, never>>> & string & Omit<({ children, disabled, icon, iconType, href, onClick, onClickIcon, onKeyDown, rightIcon, selected, value, ...props }: Readonly<import('../../../list-item').IListItemProps>) => JSX.Element, keyof import('react').Component<any, {}, any>>;
|
|
9
|
+
}, never>>> & string & Omit<({ children, disabled, icon, iconType, href, itemAction, onClick, onClickIcon, onKeyDown, rightIcon, selected, value, ...props }: Readonly<import('../../../list-item').IListItemProps>) => JSX.Element, keyof import('react').Component<any, {}, any>>;
|
|
10
10
|
export { StyledReorderItem };
|
|
@@ -2,5 +2,5 @@ declare const StyledList: import('styled-components/dist/types').IStyledComponen
|
|
|
2
2
|
ref?: ((instance: HTMLLIElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLLIElement> | null | undefined;
|
|
3
3
|
}, never> & Partial<Pick<Omit<Readonly<import('../../../list-item').IListItemProps>, "ref"> & {
|
|
4
4
|
ref?: ((instance: HTMLLIElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLLIElement> | null | undefined;
|
|
5
|
-
}, never>>> & string & Omit<({ children, disabled, icon, iconType, href, onClick, onClickIcon, onKeyDown, rightIcon, selected, value, ...props }: Readonly<import('../../../list-item').IListItemProps>) => JSX.Element, keyof import('react').Component<any, {}, any>>;
|
|
5
|
+
}, never>>> & string & Omit<({ children, disabled, icon, iconType, href, itemAction, onClick, onClickIcon, onKeyDown, rightIcon, selected, value, ...props }: Readonly<import('../../../list-item').IListItemProps>) => JSX.Element, keyof import('react').Component<any, {}, any>>;
|
|
6
6
|
export { StyledList };
|
|
@@ -9,6 +9,7 @@ import { Thumb as k } from "./thumb/index.js";
|
|
|
9
9
|
import { normalizeValue as v } from "./utils.js";
|
|
10
10
|
import { Container as w } from "../container/index.js";
|
|
11
11
|
import { OutlineContainer as y } from "../inputs/outline-container/index.js";
|
|
12
|
+
import "../inputs/styles.js";
|
|
12
13
|
import "../checkbox/index.js";
|
|
13
14
|
import "../icon/index.js";
|
|
14
15
|
import "../../_virtual/lodash.js";
|
|
@@ -22,7 +23,7 @@ import "react-dom";
|
|
|
22
23
|
import "../layout/categories/buttons/index.js";
|
|
23
24
|
import "../inputs/utils/action-button/index.js";
|
|
24
25
|
import "../../node_modules/react-international-phone/dist/index.js";
|
|
25
|
-
const
|
|
26
|
+
const re = (o) => {
|
|
26
27
|
const p = S(), m = $(null), { label: s, minValue: i = 0, maxValue: n = 100, name: r, setValue: d, watch: c } = o, a = x(), t = V({
|
|
27
28
|
...o,
|
|
28
29
|
numberFormatter: a,
|
|
@@ -75,6 +76,6 @@ const ee = (o) => {
|
|
|
75
76
|
) });
|
|
76
77
|
};
|
|
77
78
|
export {
|
|
78
|
-
|
|
79
|
+
re as Slider,
|
|
79
80
|
x as useNumberFormatter
|
|
80
81
|
};
|
package/package.json
CHANGED