braid-design-system 33.11.1 → 33.11.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# braid-design-system
|
|
2
2
|
|
|
3
|
+
## 33.11.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- **ButtonIcon:** Better match `Tooltip` text size with `size` prop ([#1864](https://github.com/seek-oss/braid-design-system/pull/1864))
|
|
8
|
+
|
|
9
|
+
When using a `small` `ButtonIcon`, the `Tooltip` text size is now set to `small`.
|
|
10
|
+
For other sizes, the text remains at the default `standard` size.
|
|
11
|
+
|
|
3
12
|
## 33.11.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -105,18 +105,19 @@ const ButtonIconContent = react.forwardRef(
|
|
|
105
105
|
}
|
|
106
106
|
);
|
|
107
107
|
const ButtonIcon = react.forwardRef(
|
|
108
|
-
({ id, label, tooltipPlacement, ...restProps }, forwardedRef) => {
|
|
108
|
+
({ id, label, tooltipPlacement, size, ...restProps }, forwardedRef) => {
|
|
109
109
|
const resolvedId = lib_hooks_useFallbackId_cjs.useFallbackId(id);
|
|
110
110
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
111
111
|
lib_components_TooltipRenderer_TooltipRenderer_cjs.TooltipRenderer,
|
|
112
112
|
{
|
|
113
|
-
tooltip: /* @__PURE__ */ jsxRuntime.jsx(lib_components_Text_Text_cjs.Text, { children: label }),
|
|
113
|
+
tooltip: /* @__PURE__ */ jsxRuntime.jsx(lib_components_Text_Text_cjs.Text, { size: size === "small" ? "small" : "standard", children: label }),
|
|
114
114
|
placement: tooltipPlacement,
|
|
115
115
|
children: ({ triggerProps: { ref: triggerRef, tabIndex } }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
116
116
|
ButtonIconContent,
|
|
117
117
|
{
|
|
118
118
|
id: resolvedId,
|
|
119
119
|
label,
|
|
120
|
+
size,
|
|
120
121
|
ref: (node) => {
|
|
121
122
|
if (typeof forwardedRef === "function") {
|
|
122
123
|
forwardedRef(node);
|
|
@@ -102,18 +102,19 @@ const ButtonIconContent = forwardRef(
|
|
|
102
102
|
}
|
|
103
103
|
);
|
|
104
104
|
const ButtonIcon = forwardRef(
|
|
105
|
-
({ id, label, tooltipPlacement, ...restProps }, forwardedRef) => {
|
|
105
|
+
({ id, label, tooltipPlacement, size, ...restProps }, forwardedRef) => {
|
|
106
106
|
const resolvedId = useFallbackId(id);
|
|
107
107
|
return /* @__PURE__ */ jsx(
|
|
108
108
|
TooltipRenderer,
|
|
109
109
|
{
|
|
110
|
-
tooltip: /* @__PURE__ */ jsx(Text, { children: label }),
|
|
110
|
+
tooltip: /* @__PURE__ */ jsx(Text, { size: size === "small" ? "small" : "standard", children: label }),
|
|
111
111
|
placement: tooltipPlacement,
|
|
112
112
|
children: ({ triggerProps: { ref: triggerRef, tabIndex } }) => /* @__PURE__ */ jsx(
|
|
113
113
|
ButtonIconContent,
|
|
114
114
|
{
|
|
115
115
|
id: resolvedId,
|
|
116
116
|
label,
|
|
117
|
+
size,
|
|
117
118
|
ref: (node) => {
|
|
118
119
|
if (typeof forwardedRef === "function") {
|
|
119
120
|
forwardedRef(node);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "braid-design-system",
|
|
3
|
-
"version": "33.11.
|
|
3
|
+
"version": "33.11.2",
|
|
4
4
|
"description": "Themeable design system for the SEEK Group",
|
|
5
5
|
"homepage": "https://seek-oss.github.io/braid-design-system/",
|
|
6
6
|
"bugs": {
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
"fast-glob": "^3.3.2",
|
|
212
212
|
"fs-extra": "^10.1.0",
|
|
213
213
|
"html-validate": "^9.7.1",
|
|
214
|
-
"playroom": "0.44.
|
|
214
|
+
"playroom": "0.44.3",
|
|
215
215
|
"prettier": "^3.4.1",
|
|
216
216
|
"react": "^19.1.0",
|
|
217
217
|
"react-dom": "^19.1.0",
|