mac-human-design 0.1.8 → 0.1.10
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/changelog.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
This file tracks changes between published npm versions of `mac-human-design`.
|
|
4
4
|
|
|
5
|
+
## 0.1.10
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Fixed `SymbolIconButton` alignment by building it on the shared
|
|
10
|
+
`MacIconButton` primitive and centering fallback glyph content within the
|
|
11
|
+
icon box.
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- Bumped the package to `0.1.10`.
|
|
16
|
+
|
|
17
|
+
## 0.1.9
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- Removed an unused internal Motion helper parameter so strict TypeScript
|
|
22
|
+
consumers do not need to patch the published source.
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- Bumped the package to `0.1.9`.
|
|
27
|
+
|
|
5
28
|
## 0.1.8
|
|
6
29
|
|
|
7
30
|
### Added
|
package/package.json
CHANGED
|
@@ -111,7 +111,7 @@ function isDisabled(props: Record<string, unknown>) {
|
|
|
111
111
|
return Boolean(props.disabled || props["data-disabled"] || props["aria-disabled"]);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
function interactiveControlDefaults(
|
|
114
|
+
function interactiveControlDefaults(props: Record<string, unknown>): MotionDefaults {
|
|
115
115
|
if (isDisabled(props)) {
|
|
116
116
|
return {};
|
|
117
117
|
}
|
|
@@ -147,7 +147,7 @@ function getMotionDefaults(macClassName: string, props: Record<string, unknown>)
|
|
|
147
147
|
"hd-mac-disclosure-trigger",
|
|
148
148
|
])
|
|
149
149
|
) {
|
|
150
|
-
return interactiveControlDefaults(
|
|
150
|
+
return interactiveControlDefaults(props);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
if (macClassName.includes("hd-mac-input")) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
2
|
import { invoke } from "@tauri-apps/api/core";
|
|
3
|
-
import {
|
|
3
|
+
import { MacIconButton, MacTooltip } from "./MacBaseUI";
|
|
4
4
|
|
|
5
5
|
const SYMBOL_SCALE_MULTIPLIER = 2.5;
|
|
6
6
|
const SYMBOL_MIN_POINT_SIZE = 10;
|
|
@@ -82,7 +82,7 @@ export function SymbolIconButton({
|
|
|
82
82
|
<MacTooltip.Root>
|
|
83
83
|
<MacTooltip.Trigger
|
|
84
84
|
render={
|
|
85
|
-
<
|
|
85
|
+
<MacIconButton
|
|
86
86
|
aria-label={label}
|
|
87
87
|
title={label}
|
|
88
88
|
disabled={disabled || isLoading}
|
|
@@ -95,15 +95,14 @@ export function SymbolIconButton({
|
|
|
95
95
|
height: ICON_BUTTON_SIZE,
|
|
96
96
|
minHeight: ICON_BUTTON_SIZE,
|
|
97
97
|
borderRadius: ICON_BUTTON_RADIUS,
|
|
98
|
-
padding: 0,
|
|
99
98
|
}}
|
|
100
99
|
/>
|
|
101
100
|
}
|
|
102
101
|
>
|
|
103
102
|
<span
|
|
104
103
|
aria-hidden
|
|
104
|
+
className="hd-mac-symbol-icon"
|
|
105
105
|
style={{
|
|
106
|
-
display: "block",
|
|
107
106
|
width: glyphPx,
|
|
108
107
|
height: glyphPx,
|
|
109
108
|
color: "currentColor",
|
|
@@ -242,6 +242,22 @@
|
|
|
242
242
|
min-height: 28px;
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
+
.hd-mac-symbol-icon-button {
|
|
246
|
+
width: 30px;
|
|
247
|
+
min-width: 30px;
|
|
248
|
+
height: 30px;
|
|
249
|
+
min-height: 30px;
|
|
250
|
+
border-radius: 7px;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.hd-mac-symbol-icon {
|
|
254
|
+
display: inline-flex;
|
|
255
|
+
align-items: center;
|
|
256
|
+
justify-content: center;
|
|
257
|
+
text-align: center;
|
|
258
|
+
flex-shrink: 0;
|
|
259
|
+
}
|
|
260
|
+
|
|
245
261
|
.hd-mac-help-button {
|
|
246
262
|
display: inline-grid;
|
|
247
263
|
width: 18px;
|