@uxf/ui 11.33.0 → 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--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: "First item" },
18
- { label: "Second item" },
19
- { label: "Third item" },
20
- { label: "Fourth item", isDisabled: true },
21
- { label: "Fifth item" },
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" },
@@ -1,17 +1,33 @@
1
1
  .uxf-button-list {
2
- @apply flex items-center space-x-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
- @apply z-dropdown absolute right-0 mt-2 w-40 divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black/5 focus:outline-none;
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
- @apply divide-gray-700 bg-gray-900 ring-white/10;
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,49 @@
24
40
  }
25
41
 
26
42
  &__menu-button {
27
- @apply is-hoverable:cursor-pointer flex space-x-3 px-3 py-2 text-sm text-black hover:text-gray-800;
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
- @apply text-white hover:text-gray-200;
51
+ color: theme("colors.darkHigh");
31
52
  }
32
53
 
33
54
  &-icon {
34
- @apply text-lightMedium w-3;
55
+ color: theme("colors.lightMedium");
56
+ width: theme("width.3");
35
57
 
36
58
  :root .dark & {
37
- @apply text-darkMedium;
59
+ color: theme("colors.darkMedium");
38
60
  }
39
61
  }
40
62
 
41
63
  &.is-disabled {
42
- @apply text-lightLow;
64
+ color: theme("colors.lightLow");
65
+
66
+ .uxf-button-list__menu-button-icon {
67
+ color: theme("colors.lightLow");
68
+ }
43
69
 
44
70
  :root .dark & {
45
- @apply text-darkLow;
71
+ color: theme("colors.darkLow");
72
+
73
+ .uxf-button-list__menu-button-icon {
74
+ color: theme("colors.darkLow");
75
+ }
76
+ }
77
+ }
78
+
79
+ &--color {
80
+ &-negative {
81
+ color: theme("colors.red.500");
82
+
83
+ .uxf-button-list__menu-button-icon {
84
+ color: theme("colors.red.500");
85
+ }
46
86
  }
47
87
  }
48
88
  }
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");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/ui",
3
- "version": "11.33.0",
3
+ "version": "11.34.0",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "access": "public"