@uxf/ui 11.33.0 → 11.33.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.
|
@@ -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--variant-${variant}`, className),
|
|
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),
|
|
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 }),
|
|
@@ -15,7 +15,7 @@ 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
17
|
{ label: "First item" },
|
|
18
|
-
{ label: "Second item" },
|
|
18
|
+
{ label: "Second item", color: "negative" },
|
|
19
19
|
{ label: "Third item" },
|
|
20
20
|
{ label: "Fourth item", isDisabled: true },
|
|
21
21
|
{ label: "Fifth item" },
|
package/css/button-list.css
CHANGED
|
@@ -1,17 +1,33 @@
|
|
|
1
1
|
.uxf-button-list {
|
|
2
|
-
|
|
2
|
+
align-items: center;
|
|
3
|
+
display: flex;
|
|
4
|
+
gap: theme("spacing.2");
|
|
3
5
|
|
|
4
6
|
&__menu {
|
|
5
|
-
@apply relative;
|
|
6
|
-
|
|
7
7
|
display: flex;
|
|
8
|
+
position: relative;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
&__menu-items {
|
|
11
|
-
|
|
12
|
+
background-color: theme("colors.white");
|
|
13
|
+
border-radius: theme("borderRadius.md");
|
|
14
|
+
margin-top: theme("spacing.2");
|
|
15
|
+
overflow: auto;
|
|
16
|
+
position: absolute;
|
|
17
|
+
right: 0;
|
|
18
|
+
width: theme("width.40");
|
|
19
|
+
z-index: theme("zIndex.dropdown");
|
|
20
|
+
|
|
21
|
+
&:focus-visible {
|
|
22
|
+
outline: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@apply divide-y divide-gray-100 shadow-lg ring-1 ring-black/5;
|
|
12
26
|
|
|
13
27
|
:root .dark & {
|
|
14
|
-
|
|
28
|
+
background-color: theme("colors.gray.900");
|
|
29
|
+
|
|
30
|
+
@apply divide-gray-700 ring-white/10;
|
|
15
31
|
}
|
|
16
32
|
}
|
|
17
33
|
|
|
@@ -24,25 +40,41 @@
|
|
|
24
40
|
}
|
|
25
41
|
|
|
26
42
|
&__menu-button {
|
|
27
|
-
|
|
43
|
+
color: theme("colors.lightHigh");
|
|
44
|
+
display: flex;
|
|
45
|
+
gap: theme("spacing.3");
|
|
46
|
+
padding: theme("spacing.2") theme("spacing.3");
|
|
47
|
+
|
|
48
|
+
@apply is-hoverable:cursor-pointer is-hoverable:opacity-75 text-sm transition-opacity;
|
|
28
49
|
|
|
29
50
|
:root .dark & {
|
|
30
|
-
|
|
51
|
+
color: theme("colors.darkHigh");
|
|
31
52
|
}
|
|
32
53
|
|
|
33
54
|
&-icon {
|
|
34
|
-
|
|
55
|
+
color: theme("colors.lightMedium");
|
|
56
|
+
width: theme("width.3");
|
|
35
57
|
|
|
36
58
|
:root .dark & {
|
|
37
|
-
|
|
59
|
+
color: theme("colors.darkMedium");
|
|
38
60
|
}
|
|
39
61
|
}
|
|
40
62
|
|
|
41
63
|
&.is-disabled {
|
|
42
|
-
|
|
64
|
+
color: theme("colors.lightLow");
|
|
43
65
|
|
|
44
66
|
:root .dark & {
|
|
45
|
-
|
|
67
|
+
color: theme("colors.darkLow");
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&--color {
|
|
72
|
+
&-negative {
|
|
73
|
+
color: theme("colors.red.500");
|
|
74
|
+
|
|
75
|
+
.uxf-button-list__menu-button-icon {
|
|
76
|
+
color: theme("colors.red.500");
|
|
77
|
+
}
|
|
46
78
|
}
|
|
47
79
|
}
|
|
48
80
|
}
|
package/message/README.md
CHANGED
|
@@ -5,6 +5,7 @@ Use component [ModalDialog](/docs/ui/modal-dialog) and method [openModal()](/doc
|
|
|
5
5
|
## CSS dependencies
|
|
6
6
|
|
|
7
7
|
```css
|
|
8
|
+
@import url("@uxf/ui/alert-bubble/alert-bubble.css");
|
|
8
9
|
@import url("@uxf/ui/message/message.css");
|
|
9
10
|
@import url("@uxf/ui/dialog/dialog.css");
|
|
10
11
|
@import url("@uxf/ui/button/button.css");
|