@primer/react 0.0.0-20260220215233 → 0.0.0-20260220222317
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 +1 -3
- package/dist/ActionList/Description.d.ts.map +1 -1
- package/dist/ActionList/Description.js +40 -93
- package/dist/ActionList/Item.d.ts.map +1 -1
- package/dist/ActionList/Item.js +52 -97
- package/dist/ActionList/shared.d.ts +0 -1
- package/dist/ActionList/shared.d.ts.map +1 -1
- package/generated/components.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @primer/react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-20260220222317
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
|
|
9
9
|
### Patch Changes
|
|
10
10
|
|
|
11
|
-
- [#7529](https://github.com/primer/react/pull/7529) [`7b11c23`](https://github.com/primer/react/commit/7b11c23088e9887608d28b8198f3370425f4cd8a) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Add keyboard-accessible tooltip for truncated ActionList.Description
|
|
12
|
-
|
|
13
11
|
- Fake entry to force publishing
|
|
14
12
|
|
|
15
13
|
- [#7555](https://github.com/primer/react/pull/7555) [`64c2243`](https://github.com/primer/react/commit/64c2243d07fc580a5565493b917b27081ef6a191) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(useSlots): short-circuit iteration and skip filled slots
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../src/ActionList/Description.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../src/ActionList/Description.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAA;AAE1D,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;IAE5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,gBAAgB,CAAC,KAAK,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,CAgD7F,CAAA"}
|
|
@@ -3,12 +3,11 @@ import React from 'react';
|
|
|
3
3
|
import { ItemContext } from './shared.js';
|
|
4
4
|
import classes from './ActionList.module.css.js';
|
|
5
5
|
import { clsx } from 'clsx';
|
|
6
|
-
import { useResizeObserver } from '../hooks/useResizeObserver.js';
|
|
7
6
|
import { jsx } from 'react/jsx-runtime';
|
|
8
7
|
import Truncate from '../Truncate/Truncate.js';
|
|
9
8
|
|
|
10
9
|
const Description = t0 => {
|
|
11
|
-
const $ = c(
|
|
10
|
+
const $ = c(26);
|
|
12
11
|
let className;
|
|
13
12
|
let props;
|
|
14
13
|
let style;
|
|
@@ -38,8 +37,7 @@ const Description = t0 => {
|
|
|
38
37
|
const variant = t1 === undefined ? "inline" : t1;
|
|
39
38
|
const {
|
|
40
39
|
blockDescriptionId,
|
|
41
|
-
inlineDescriptionId
|
|
42
|
-
setTruncatedText
|
|
40
|
+
inlineDescriptionId
|
|
43
41
|
} = React.useContext(ItemContext);
|
|
44
42
|
const containerRef = React.useRef(null);
|
|
45
43
|
const [computedTitle, setComputedTitle] = React.useState("");
|
|
@@ -67,117 +65,66 @@ const Description = t0 => {
|
|
|
67
65
|
}
|
|
68
66
|
React.useEffect(t2, t3);
|
|
69
67
|
const effectiveTitle = typeof props.children === "string" ? props.children : computedTitle;
|
|
70
|
-
const truncateEnabled = truncate && !!setTruncatedText;
|
|
71
|
-
let t4;
|
|
72
|
-
if ($[11] !== effectiveTitle || $[12] !== setTruncatedText) {
|
|
73
|
-
t4 = () => {
|
|
74
|
-
const el = containerRef.current;
|
|
75
|
-
if (!el || !setTruncatedText) {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
setTruncatedText(el.scrollWidth > el.clientWidth ? effectiveTitle : undefined);
|
|
79
|
-
};
|
|
80
|
-
$[11] = effectiveTitle;
|
|
81
|
-
$[12] = setTruncatedText;
|
|
82
|
-
$[13] = t4;
|
|
83
|
-
} else {
|
|
84
|
-
t4 = $[13];
|
|
85
|
-
}
|
|
86
|
-
let t5;
|
|
87
|
-
if ($[14] !== effectiveTitle || $[15] !== truncateEnabled) {
|
|
88
|
-
t5 = [truncateEnabled, effectiveTitle];
|
|
89
|
-
$[14] = effectiveTitle;
|
|
90
|
-
$[15] = truncateEnabled;
|
|
91
|
-
$[16] = t5;
|
|
92
|
-
} else {
|
|
93
|
-
t5 = $[16];
|
|
94
|
-
}
|
|
95
|
-
useResizeObserver(t4, containerRef, t5);
|
|
96
|
-
let t6;
|
|
97
|
-
let t7;
|
|
98
|
-
if ($[17] !== effectiveTitle || $[18] !== setTruncatedText || $[19] !== truncateEnabled) {
|
|
99
|
-
t6 = () => {
|
|
100
|
-
if (!truncateEnabled || !containerRef.current) {
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
const el_0 = containerRef.current;
|
|
104
|
-
setTruncatedText(el_0.scrollWidth > el_0.clientWidth ? effectiveTitle : undefined);
|
|
105
|
-
return () => {
|
|
106
|
-
setTruncatedText(undefined);
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
t7 = [truncateEnabled, effectiveTitle, setTruncatedText];
|
|
110
|
-
$[17] = effectiveTitle;
|
|
111
|
-
$[18] = setTruncatedText;
|
|
112
|
-
$[19] = truncateEnabled;
|
|
113
|
-
$[20] = t6;
|
|
114
|
-
$[21] = t7;
|
|
115
|
-
} else {
|
|
116
|
-
t6 = $[20];
|
|
117
|
-
t7 = $[21];
|
|
118
|
-
}
|
|
119
|
-
React.useEffect(t6, t7);
|
|
120
68
|
if (variant === "block" || !truncate) {
|
|
121
|
-
const
|
|
122
|
-
let
|
|
123
|
-
if ($[
|
|
124
|
-
|
|
125
|
-
$[
|
|
126
|
-
$[
|
|
69
|
+
const t4 = variant === "block" ? blockDescriptionId : inlineDescriptionId;
|
|
70
|
+
let t5;
|
|
71
|
+
if ($[11] !== className) {
|
|
72
|
+
t5 = clsx(className, classes.Description);
|
|
73
|
+
$[11] = className;
|
|
74
|
+
$[12] = t5;
|
|
127
75
|
} else {
|
|
128
|
-
|
|
76
|
+
t5 = $[12];
|
|
129
77
|
}
|
|
130
|
-
let
|
|
131
|
-
if ($[
|
|
132
|
-
|
|
133
|
-
id:
|
|
134
|
-
className:
|
|
78
|
+
let t6;
|
|
79
|
+
if ($[13] !== props.children || $[14] !== style || $[15] !== t4 || $[16] !== t5) {
|
|
80
|
+
t6 = /*#__PURE__*/jsx("span", {
|
|
81
|
+
id: t4,
|
|
82
|
+
className: t5,
|
|
135
83
|
style: style,
|
|
136
84
|
"data-component": "ActionList.Description",
|
|
137
85
|
children: props.children
|
|
138
86
|
});
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
141
|
-
$[
|
|
142
|
-
$[
|
|
143
|
-
$[
|
|
87
|
+
$[13] = props.children;
|
|
88
|
+
$[14] = style;
|
|
89
|
+
$[15] = t4;
|
|
90
|
+
$[16] = t5;
|
|
91
|
+
$[17] = t6;
|
|
144
92
|
} else {
|
|
145
|
-
|
|
93
|
+
t6 = $[17];
|
|
146
94
|
}
|
|
147
|
-
return
|
|
95
|
+
return t6;
|
|
148
96
|
} else {
|
|
149
|
-
let
|
|
150
|
-
if ($[
|
|
151
|
-
|
|
152
|
-
$[
|
|
153
|
-
$[
|
|
97
|
+
let t4;
|
|
98
|
+
if ($[18] !== className) {
|
|
99
|
+
t4 = clsx(className, classes.Description);
|
|
100
|
+
$[18] = className;
|
|
101
|
+
$[19] = t4;
|
|
154
102
|
} else {
|
|
155
|
-
|
|
103
|
+
t4 = $[19];
|
|
156
104
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
t10 = /*#__PURE__*/jsx(Truncate, {
|
|
105
|
+
let t5;
|
|
106
|
+
if ($[20] !== effectiveTitle || $[21] !== inlineDescriptionId || $[22] !== props.children || $[23] !== style || $[24] !== t4) {
|
|
107
|
+
t5 = /*#__PURE__*/jsx(Truncate, {
|
|
161
108
|
ref: containerRef,
|
|
162
109
|
id: inlineDescriptionId,
|
|
163
|
-
className:
|
|
110
|
+
className: t4,
|
|
164
111
|
style: style,
|
|
165
|
-
title:
|
|
112
|
+
title: effectiveTitle,
|
|
166
113
|
inline: true,
|
|
167
114
|
maxWidth: "100%",
|
|
168
115
|
"data-component": "ActionList.Description",
|
|
169
116
|
children: props.children
|
|
170
117
|
});
|
|
171
|
-
$[
|
|
172
|
-
$[
|
|
173
|
-
$[
|
|
174
|
-
$[
|
|
175
|
-
$[
|
|
176
|
-
$[
|
|
118
|
+
$[20] = effectiveTitle;
|
|
119
|
+
$[21] = inlineDescriptionId;
|
|
120
|
+
$[22] = props.children;
|
|
121
|
+
$[23] = style;
|
|
122
|
+
$[24] = t4;
|
|
123
|
+
$[25] = t5;
|
|
177
124
|
} else {
|
|
178
|
-
|
|
125
|
+
t5 = $[25];
|
|
179
126
|
}
|
|
180
|
-
return
|
|
127
|
+
return t5;
|
|
181
128
|
}
|
|
182
129
|
};
|
|
183
130
|
Description.__SLOT__ = Symbol('ActionList.Description');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../src/ActionList/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../src/ActionList/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAA;AAmBrC,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAEpD,CAAA;AA0SD,QAAA,MAAM,IAAI,IAlRa,EAAE,SAAS,KAAK,CAAC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqRjD,CAAA;AAEF,OAAO,EAAC,IAAI,EAAC,CAAA"}
|
package/dist/ActionList/Item.js
CHANGED
|
@@ -15,44 +15,8 @@ import VisuallyHidden from '../_VisuallyHidden.js';
|
|
|
15
15
|
import classes from './ActionList.module.css.js';
|
|
16
16
|
import { clsx } from 'clsx';
|
|
17
17
|
import { fixedForwardRef } from '../utils/modern-polymorphic.js';
|
|
18
|
-
import { TooltipContext, Tooltip } from '../TooltipV2/Tooltip.js';
|
|
19
18
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
20
19
|
|
|
21
|
-
/**
|
|
22
|
-
* Stable wrapper that keeps Tooltip in the tree for button-semantic items
|
|
23
|
-
* to avoid remount cycles when truncation state changes.
|
|
24
|
-
* For non-button-semantic items, renders children directly.
|
|
25
|
-
*/
|
|
26
|
-
function ConditionalTooltip(t0) {
|
|
27
|
-
const $ = c(4);
|
|
28
|
-
const {
|
|
29
|
-
text,
|
|
30
|
-
enabled,
|
|
31
|
-
children
|
|
32
|
-
} = t0;
|
|
33
|
-
if (!enabled) {
|
|
34
|
-
return children;
|
|
35
|
-
}
|
|
36
|
-
const t1 = text || "";
|
|
37
|
-
const t2 = !text;
|
|
38
|
-
let t3;
|
|
39
|
-
if ($[0] !== children || $[1] !== t1 || $[2] !== t2) {
|
|
40
|
-
t3 = /*#__PURE__*/jsx(Tooltip, {
|
|
41
|
-
text: t1,
|
|
42
|
-
direction: "e",
|
|
43
|
-
delay: "medium",
|
|
44
|
-
_privateDisableTooltip: t2,
|
|
45
|
-
children: children
|
|
46
|
-
});
|
|
47
|
-
$[0] = children;
|
|
48
|
-
$[1] = t1;
|
|
49
|
-
$[2] = t2;
|
|
50
|
-
$[3] = t3;
|
|
51
|
-
} else {
|
|
52
|
-
t3 = $[3];
|
|
53
|
-
}
|
|
54
|
-
return t3;
|
|
55
|
-
}
|
|
56
20
|
const SubItem = t0 => {
|
|
57
21
|
const $ = c(2);
|
|
58
22
|
const {
|
|
@@ -254,7 +218,6 @@ const UnwrappedItem = ({
|
|
|
254
218
|
const blockDescriptionId = `${itemId}--block-description`;
|
|
255
219
|
const trailingVisualId = `${itemId}--trailing-visual`;
|
|
256
220
|
const inactiveWarningId = inactive && !showInactiveIndicator ? `${itemId}--warning-message` : undefined;
|
|
257
|
-
const [truncatedText, setTruncatedText] = React.useState(undefined);
|
|
258
221
|
const DefaultItemWrapper = listSemantics ? DivItemContainerNoBox : ButtonItemContainerNoBox;
|
|
259
222
|
const ItemWrapper = _PrivateItemWrapper || DefaultItemWrapper;
|
|
260
223
|
|
|
@@ -275,8 +238,8 @@ const UnwrappedItem = ({
|
|
|
275
238
|
'data-inactive': inactive ? true : undefined,
|
|
276
239
|
'data-loading': loading && !inactive ? true : undefined,
|
|
277
240
|
tabIndex: focusable ? undefined : 0,
|
|
278
|
-
'aria-labelledby': `${labelId} ${slots.trailingVisual ? trailingVisualId : ''}`,
|
|
279
|
-
'aria-describedby': [slots.description && descriptionVariant === 'block' ? blockDescriptionId : undefined,
|
|
241
|
+
'aria-labelledby': `${labelId} ${slots.trailingVisual ? trailingVisualId : ''} ${slots.description && descriptionVariant === 'inline' ? inlineDescriptionId : ''}`,
|
|
242
|
+
'aria-describedby': [slots.description && descriptionVariant === 'block' ? blockDescriptionId : undefined, inactiveWarningId !== null && inactiveWarningId !== void 0 ? inactiveWarningId : undefined].filter(String).join(' ').trim() || undefined,
|
|
280
243
|
...(includeSelectionAttribute && {
|
|
281
244
|
[itemSelectionAttribute]: selected
|
|
282
245
|
}),
|
|
@@ -306,8 +269,7 @@ const UnwrappedItem = ({
|
|
|
306
269
|
inactive: Boolean(inactiveText),
|
|
307
270
|
inlineDescriptionId,
|
|
308
271
|
blockDescriptionId,
|
|
309
|
-
trailingVisualId
|
|
310
|
-
setTruncatedText: buttonSemantics ? setTruncatedText : undefined
|
|
272
|
+
trailingVisualId
|
|
311
273
|
},
|
|
312
274
|
children: /*#__PURE__*/jsxs("li", {
|
|
313
275
|
...containerProps,
|
|
@@ -319,62 +281,55 @@ const UnwrappedItem = ({
|
|
|
319
281
|
"data-has-subitem": slots.subItem ? true : undefined,
|
|
320
282
|
"data-has-description": slots.description ? true : false,
|
|
321
283
|
className: clsx(classes.ActionListItem, className),
|
|
322
|
-
children: [/*#__PURE__*/
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
"
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
className: classes.InactiveWarning,
|
|
372
|
-
id: inactiveWarningId,
|
|
373
|
-
children: inactiveText
|
|
374
|
-
}) : null]
|
|
375
|
-
})]
|
|
376
|
-
})
|
|
377
|
-
})
|
|
284
|
+
children: [/*#__PURE__*/jsxs(ItemWrapper, {
|
|
285
|
+
...wrapperProps,
|
|
286
|
+
className: classes.ActionListContent,
|
|
287
|
+
"data-size": size
|
|
288
|
+
// @ts-ignore: ItemWrapper is polymorphic and the ref type depends on the rendered element ('button' or 'li')
|
|
289
|
+
,
|
|
290
|
+
ref: forwardedRef,
|
|
291
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
292
|
+
className: classes.Spacer
|
|
293
|
+
}), /*#__PURE__*/jsx(Selection, {
|
|
294
|
+
selected: selected,
|
|
295
|
+
className: classes.LeadingAction
|
|
296
|
+
}), /*#__PURE__*/jsx(VisualOrIndicator, {
|
|
297
|
+
inactiveText: showInactiveIndicator ? inactiveText : undefined,
|
|
298
|
+
itemHasLeadingVisual: Boolean(slots.leadingVisual),
|
|
299
|
+
labelId: labelId,
|
|
300
|
+
loading: loading,
|
|
301
|
+
position: "leading",
|
|
302
|
+
children: slots.leadingVisual
|
|
303
|
+
}), /*#__PURE__*/jsxs("span", {
|
|
304
|
+
className: classes.ActionListSubContent,
|
|
305
|
+
"data-component": "ActionList.Item--DividerContainer",
|
|
306
|
+
children: [/*#__PURE__*/jsxs(ConditionalWrapper, {
|
|
307
|
+
if: !!slots.description,
|
|
308
|
+
className: classes.ItemDescriptionWrap,
|
|
309
|
+
"data-description-variant": descriptionVariant,
|
|
310
|
+
children: [/*#__PURE__*/jsxs("span", {
|
|
311
|
+
id: labelId,
|
|
312
|
+
className: classes.ItemLabel,
|
|
313
|
+
children: [childrenWithoutSlots, loading === true && !inactive && /*#__PURE__*/jsx(VisuallyHidden, {
|
|
314
|
+
children: "Loading"
|
|
315
|
+
})]
|
|
316
|
+
}), slots.description]
|
|
317
|
+
}), /*#__PURE__*/jsx(VisualOrIndicator, {
|
|
318
|
+
inactiveText: showInactiveIndicator ? inactiveText : undefined,
|
|
319
|
+
itemHasLeadingVisual: Boolean(slots.leadingVisual),
|
|
320
|
+
labelId: labelId,
|
|
321
|
+
loading: loading,
|
|
322
|
+
position: "trailing",
|
|
323
|
+
children: trailingVisual
|
|
324
|
+
}),
|
|
325
|
+
// If the item is inactive, but it's not in an overlay (e.g. ActionMenu, SelectPanel),
|
|
326
|
+
// render the inactive warning message directly in the item.
|
|
327
|
+
!showInactiveIndicator && inactiveText ? /*#__PURE__*/jsx("span", {
|
|
328
|
+
className: classes.InactiveWarning,
|
|
329
|
+
id: inactiveWarningId,
|
|
330
|
+
children: inactiveText
|
|
331
|
+
}) : null]
|
|
332
|
+
})]
|
|
378
333
|
}), !inactive && !loading && !menuContext && Boolean(slots.trailingAction) && slots.trailingAction, slots.subItem]
|
|
379
334
|
})
|
|
380
335
|
});
|
|
@@ -77,7 +77,6 @@ export type ItemContext = Pick<ActionListItemProps<React.ElementType>, 'variant'
|
|
|
77
77
|
blockDescriptionId?: string;
|
|
78
78
|
trailingVisualId?: string;
|
|
79
79
|
inactive?: boolean;
|
|
80
|
-
setTruncatedText?: (text: string | undefined) => void;
|
|
81
80
|
};
|
|
82
81
|
export declare const ItemContext: React.Context<ItemContext>;
|
|
83
82
|
export declare const getVariantStyles: (variant: ActionListItemProps<React.ElementType>["variant"], disabled: ActionListItemProps<React.ElementType>["disabled"], inactive?: boolean) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/ActionList/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAA;AAC5C,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,6BAA6B,CAAA;AAIjE,KAAK,yBAAyB,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,GAAG,IAAI,CAAC,CAAC,EAAE,UAAU,CAAC,GAAG,KAAK,CAAA;AAE/E,MAAM,MAAM,mBAAmB,CAAC,EAAE,SAAS,KAAK,CAAC,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GAAG,MAAM,CAAA;IAC/C;;OAEG;IACH,gBAAgB,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAA;IAClD;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC,CACH,CAAA;AAED,KAAK,YAAY,GAAG,IAAI,CACtB,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,EAClC,SAAS,GAAG,kBAAkB,GAAG,cAAc,GAAG,MAAM,CACzD,GAAG;IACF,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,6BAAwC,CAAA"}
|
|
@@ -1759,7 +1759,7 @@
|
|
|
1759
1759
|
},
|
|
1760
1760
|
{
|
|
1761
1761
|
"id": "components-button-features--inactive",
|
|
1762
|
-
"code": "() => (\n <div\n style={{\n display: 'flex',\n flexDirection: 'row',\n gap: '1rem',\n }}\n >\n <Button inactive
|
|
1762
|
+
"code": "() => (\n <div\n style={{\n display: 'flex',\n flexDirection: 'row',\n gap: '1rem',\n }}\n >\n <VisuallyHidden id=\"inactive-state\">Inactive</VisuallyHidden>\n\n <Button inactive aria-describedby=\"inactive-state\">\n Default\n </Button>\n <Button variant=\"primary\" inactive aria-describedby=\"inactive-state\">\n Primary\n </Button>\n <Button variant=\"danger\" inactive aria-describedby=\"inactive-state\">\n Danger\n </Button>\n <Button variant=\"invisible\" inactive aria-describedby=\"inactive-state\">\n Invisible\n </Button>\n </div>\n)"
|
|
1763
1763
|
},
|
|
1764
1764
|
{
|
|
1765
1765
|
"id": "components-button-features--small",
|
package/package.json
CHANGED