@uxf/ui 11.33.2 → 11.34.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.
|
@@ -39,7 +39,7 @@ const MenuButton = (0, react_3.forwardRef)((props, ref) => {
|
|
|
39
39
|
const { variant, color, isIconButton, isFullWidth, size, icon, label, className, ...restProps } = props;
|
|
40
40
|
const anchorProps = (0, use_anchor_props_1.useAnchorProps)({
|
|
41
41
|
...restProps,
|
|
42
|
-
className: (0, cx_1.cx)("uxf-button-list__menu-button", `uxf-button-list__menu-button--color-${color}`, `uxf-button-list__menu-button--variant-${variant}`, className),
|
|
42
|
+
className: (0, cx_1.cx)("uxf-button-list__menu-button", `uxf-button-list__menu-button--color-${color !== null && color !== void 0 ? color : "default"}`, `uxf-button-list__menu-button--variant-${variant !== null && variant !== void 0 ? variant : "default"}`, className),
|
|
43
43
|
});
|
|
44
44
|
return (react_3.default.createElement("a", { ref: ref, ...anchorProps },
|
|
45
45
|
icon && react_3.default.createElement(icon_1.Icon, { className: "uxf-button-list__menu-button-icon", name: icon }),
|
|
@@ -14,18 +14,18 @@ exports.default = {
|
|
|
14
14
|
function Default() {
|
|
15
15
|
const component = (react_1.default.createElement(react_1.default.Fragment, null,
|
|
16
16
|
react_1.default.createElement(index_1.ButtonList, { buttons: [
|
|
17
|
-
{ label: "
|
|
18
|
-
{ label: "
|
|
19
|
-
{ label: "
|
|
20
|
-
{ label: "
|
|
21
|
-
{ label: "
|
|
22
|
-
{ label: "Sixth item" },
|
|
17
|
+
{ label: "Default" },
|
|
18
|
+
{ label: "Color Negative", color: "negative" },
|
|
19
|
+
{ label: "Color Negative", color: "negative", icon: "camera" },
|
|
20
|
+
{ label: "Disabled", isDisabled: true },
|
|
21
|
+
{ label: "Color Negative disabled", color: "negative", isDisabled: true, icon: "camera" },
|
|
22
|
+
{ label: "Sixth item", icon: "camera" },
|
|
23
23
|
{ label: "Seventh item" },
|
|
24
24
|
{ label: "Eighth item" },
|
|
25
25
|
{ label: "Nineth item" },
|
|
26
26
|
{ label: "Tenth item" },
|
|
27
27
|
{ label: "Eleventh item" },
|
|
28
|
-
], menuMaxHeight: 350, variant: "secondary", visibleButtonsCount: 0 }),
|
|
28
|
+
], classNameDropdown: "w-64", menuMaxHeight: 350, variant: "secondary", visibleButtonsCount: 0 }),
|
|
29
29
|
react_1.default.createElement(index_1.ButtonList, { buttons: [
|
|
30
30
|
{ label: "First item" },
|
|
31
31
|
{ label: "Second item" },
|
package/css/button-list.css
CHANGED
|
@@ -63,8 +63,16 @@
|
|
|
63
63
|
&.is-disabled {
|
|
64
64
|
color: theme("colors.lightLow");
|
|
65
65
|
|
|
66
|
+
.uxf-button-list__menu-button-icon {
|
|
67
|
+
color: theme("colors.lightLow");
|
|
68
|
+
}
|
|
69
|
+
|
|
66
70
|
:root .dark & {
|
|
67
71
|
color: theme("colors.darkLow");
|
|
72
|
+
|
|
73
|
+
.uxf-button-list__menu-button-icon {
|
|
74
|
+
color: theme("colors.darkLow");
|
|
75
|
+
}
|
|
68
76
|
}
|
|
69
77
|
}
|
|
70
78
|
|