@particle-academy/react-fancy 5.42.0 → 5.42.1
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 +28 -0
- package/dist/button.cjs +3 -3
- package/dist/button.js +1 -1
- package/dist/{chunk-FQLL2JI7.js → chunk-G4WYCWIQ.js} +3 -3
- package/dist/{chunk-FQLL2JI7.js.map → chunk-G4WYCWIQ.js.map} +1 -1
- package/dist/{chunk-RMJGF7MN.cjs → chunk-ICQJ6475.cjs} +7 -6
- package/dist/chunk-ICQJ6475.cjs.map +1 -0
- package/dist/{chunk-46IPQEUP.js → chunk-JJRD3WX3.js} +7 -6
- package/dist/chunk-JJRD3WX3.js.map +1 -0
- package/dist/{chunk-DCDW3LW6.js → chunk-JVGJHIIQ.js} +3 -3
- package/dist/{chunk-DCDW3LW6.js.map → chunk-JVGJHIIQ.js.map} +1 -1
- package/dist/{chunk-IWQ3ZFLZ.cjs → chunk-K4NHVCY6.cjs} +15 -15
- package/dist/{chunk-IWQ3ZFLZ.cjs.map → chunk-K4NHVCY6.cjs.map} +1 -1
- package/dist/{chunk-MTUH2X3W.cjs → chunk-MQ4ULIOU.cjs} +4 -4
- package/dist/{chunk-MTUH2X3W.cjs.map → chunk-MQ4ULIOU.cjs.map} +1 -1
- package/dist/{chunk-5Q7EQQTT.cjs → chunk-MRARASNZ.cjs} +4 -4
- package/dist/{chunk-5Q7EQQTT.cjs.map → chunk-MRARASNZ.cjs.map} +1 -1
- package/dist/{chunk-2OMB3OOR.js → chunk-P7WMYJ5I.js} +3 -3
- package/dist/{chunk-2OMB3OOR.js.map → chunk-P7WMYJ5I.js.map} +1 -1
- package/dist/{chunk-YLPVTEUH.js → chunk-SF5OAVGD.js} +3 -3
- package/dist/{chunk-YLPVTEUH.js.map → chunk-SF5OAVGD.js.map} +1 -1
- package/dist/{chunk-FJ2GMQLC.cjs → chunk-UUBHUSUP.cjs} +6 -6
- package/dist/{chunk-FJ2GMQLC.cjs.map → chunk-UUBHUSUP.cjs.map} +1 -1
- package/dist/index.cjs +25 -25
- package/dist/index.js +5 -5
- package/dist/json-editor.cjs +13 -13
- package/dist/json-editor.js +2 -2
- package/dist/magic-wand.cjs +3 -3
- package/dist/magic-wand.js +2 -2
- package/dist/prompt-input.cjs +3 -3
- package/dist/prompt-input.js +2 -2
- package/dist/reason-tag.cjs +3 -3
- package/dist/reason-tag.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-46IPQEUP.js.map +0 -1
- package/dist/chunk-RMJGF7MN.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,34 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
11
11
|
|
|
12
12
|
## [Unreleased]
|
|
13
13
|
|
|
14
|
+
## [5.42.1] - 2026-10-17
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- **A filled `Button`'s icon and badge now take the label's colour** (react-fancy#34,
|
|
19
|
+
from the MOIC estate). They were hard-coded `text-white`, so on
|
|
20
|
+
`color="brand"` with a host's per-mode pair (pale blue `#BFD7EA` with navy
|
|
21
|
+
`#003057` contrast) the label turned navy and the icon stayed WHITE on pale
|
|
22
|
+
blue — nearly invisible. The same bug hit **every host** on `amber`, `yellow`
|
|
23
|
+
and `lime`, whose labels are dark: white icons on yellow. The icon is now
|
|
24
|
+
`text-current` and the badge `bg-current/20 text-current`, following the
|
|
25
|
+
colour's own text class. White-label colours (`blue`, `red`, …) look exactly
|
|
26
|
+
as before.
|
|
27
|
+
- **A `badge` or `avatar` no longer renders twice.** With `badgeTrailing` /
|
|
28
|
+
`avatarTrailing` unset, the check `badgeTrailing ?? trailing` was true in BOTH
|
|
29
|
+
the leading and trailing passes, so every badge appeared before and after the
|
|
30
|
+
label. They now render once, leading unless the `…Trailing` prop says
|
|
31
|
+
otherwise, as the docs and `alertIconTrailing` already had it.
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
|
|
35
|
+
- `data-action-icon` (`leading` / `trailing`) on a Button's icon wrapper, beside
|
|
36
|
+
the existing `data-action-badge` / `data-action-avatar` handles.
|
|
37
|
+
|
|
38
|
+
**What you must DO: nothing.** If you had added a `className` to force a dark
|
|
39
|
+
icon onto a light-filled button, you can remove it; if you had hidden one of
|
|
40
|
+
the two duplicate badges with CSS, remove that too.
|
|
41
|
+
|
|
14
42
|
## [5.42.0] - 2026-10-17
|
|
15
43
|
|
|
16
44
|
### Fixed
|
package/dist/button.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('./chunk-M5MUGSON.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkICQJ6475_cjs = require('./chunk-ICQJ6475.cjs');
|
|
5
5
|
require('./chunk-BFKCVSNK.cjs');
|
|
6
6
|
require('./chunk-XCZZVRBY.cjs');
|
|
7
7
|
require('./chunk-QKFOJKVE.cjs');
|
|
@@ -11,11 +11,11 @@ require('./chunk-ZU5Q77OT.cjs');
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "Action", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkICQJ6475_cjs.Action; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "Button", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkICQJ6475_cjs.Button; }
|
|
19
19
|
});
|
|
20
20
|
//# sourceMappingURL=button.cjs.map
|
|
21
21
|
//# sourceMappingURL=button.cjs.map
|
package/dist/button.js
CHANGED
|
@@ -7,7 +7,7 @@ import { DisplayValue } from './chunk-KKWNKBKR.js';
|
|
|
7
7
|
import { resolveOption } from './chunk-GFYSELJF.js';
|
|
8
8
|
import { ColorPicker } from './chunk-F2GAZZVS.js';
|
|
9
9
|
import { Badge } from './chunk-6FCQD2KQ.js';
|
|
10
|
-
import { Button } from './chunk-
|
|
10
|
+
import { Button } from './chunk-JJRD3WX3.js';
|
|
11
11
|
import { Callout } from './chunk-ZXZJYVWP.js';
|
|
12
12
|
import { Text } from './chunk-5RLP77KK.js';
|
|
13
13
|
import { useInlineEdit } from './chunk-OL53XYHF.js';
|
|
@@ -1337,5 +1337,5 @@ function buildItems({
|
|
|
1337
1337
|
}
|
|
1338
1338
|
|
|
1339
1339
|
export { JSON_FIELD_TYPES, JsonEditor, applyJsonEdit, describeEdit, findJsonConflicts, getAtPath, inferType, parseKeyMap, parsePath, pathToString, resolveKeyRule, typeMatches };
|
|
1340
|
-
//# sourceMappingURL=chunk-
|
|
1341
|
-
//# sourceMappingURL=chunk-
|
|
1340
|
+
//# sourceMappingURL=chunk-G4WYCWIQ.js.map
|
|
1341
|
+
//# sourceMappingURL=chunk-G4WYCWIQ.js.map
|