@heliosgraphics/ui 2.0.1-alpha.3 → 2.0.1-alpha.4

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.
@@ -5,7 +5,9 @@
5
5
  user-select: none;
6
6
  }
7
7
 
8
- .dropdownOpen [data-ui-component="Icon"] {
8
+ .dropdownOpen .dropdown__activator [data-ui-icon="caret-down"],
9
+ .dropdownOpen .dropdown__activator [data-ui-icon="arrow-down"],
10
+ .dropdownOpen .dropdown__activator [data-ui-icon="chevron-down"] {
9
11
  transition: transform 96ms ease-in-out;
10
12
  transform: rotate(180deg);
11
13
  }
@@ -53,40 +55,19 @@
53
55
  position: absolute;
54
56
  z-index: var(--z-index-8);
55
57
 
56
- display: none;
57
58
  min-width: 240px;
58
59
  opacity: 0;
59
60
 
60
61
  transition:
61
- display 96ms ease-in-out allow-discrete,
62
62
  transform 96ms ease-in-out,
63
63
  opacity 96ms ease-in-out;
64
64
  pointer-events: none;
65
65
  }
66
66
 
67
- .dropdown__navActive {
68
- display: block;
69
- opacity: 1;
67
+ .dropdown__nav.dropdown__navActive {
68
+ opacity: 1 !important;
70
69
 
71
- transform: translateY(0);
70
+ transform: translateY(0) !important;
72
71
 
73
72
  pointer-events: all;
74
-
75
- @starting-style {
76
- opacity: 0;
77
- }
78
- }
79
-
80
- .dropdownBottomLeft .dropdown__navActive,
81
- .dropdownBottomRight .dropdown__navActive {
82
- @starting-style {
83
- transform: translateY(-6px);
84
- }
85
- }
86
-
87
- .dropdownTopLeft .dropdown__navActive,
88
- .dropdownTopRight .dropdown__navActive {
89
- @starting-style {
90
- transform: translateY(6px);
91
- }
92
73
  }
@@ -95,6 +95,7 @@ export const Dropdown: FC<DropdownProps> = ({ children, items, isDisabled, posit
95
95
  <div
96
96
  role="button"
97
97
  tabIndex={0}
98
+ className={styles.dropdown__activator}
98
99
  onClick={onSetVisible}
99
100
  onKeyDown={onKeyDown}
100
101
  aria-expanded={isVisible}
@@ -24,6 +24,7 @@ export const Icon: FC<IconProps> = ({ icon, className, emphasis, size }) => {
24
24
  style={iconSizeStyle}
25
25
  aria-hidden={true}
26
26
  data-ui-component="Icon"
27
+ data-ui-icon={icon}
27
28
  dangerouslySetInnerHTML={{ __html: icons[icon] || "" }}
28
29
  />
29
30
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heliosgraphics/ui",
3
- "version": "2.0.1-alpha.3",
3
+ "version": "2.0.1-alpha.4",
4
4
  "type": "module",
5
5
  "sideEffects": [
6
6
  "*.css",
@@ -1,5 +1,5 @@
1
1
  import { it, describe, expect } from "bun:test"
2
- import { renderMarkdown } from "./Markdown.utils"
2
+ import { renderMarkdown } from "./markdown"
3
3
 
4
4
  describe("markdown", () => {
5
5
  describe("renderMarkdown", () => {