@particle-academy/react-fancy 5.49.1 → 5.51.0
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 +79 -0
- package/dist/button.cjs +4 -4
- package/dist/button.js +2 -2
- package/dist/chart.cjs +2 -2
- package/dist/chart.d.cts +9 -1
- package/dist/chart.d.ts +9 -1
- package/dist/chart.js +1 -1
- package/dist/{chunk-T5OCRKPD.cjs → chunk-23PAOCQQ.cjs} +4 -4
- package/dist/{chunk-T5OCRKPD.cjs.map → chunk-23PAOCQQ.cjs.map} +1 -1
- package/dist/{chunk-GBGJWAXZ.cjs → chunk-25UPDBI6.cjs} +4 -4
- package/dist/{chunk-GBGJWAXZ.cjs.map → chunk-25UPDBI6.cjs.map} +1 -1
- package/dist/chunk-3K2CEAI7.js +78 -0
- package/dist/chunk-3K2CEAI7.js.map +1 -0
- package/dist/{chunk-L637KPEA.js → chunk-4NBM3LXN.js} +3 -3
- package/dist/{chunk-L637KPEA.js.map → chunk-4NBM3LXN.js.map} +1 -1
- package/dist/chunk-6TBRBN7H.js +212 -0
- package/dist/chunk-6TBRBN7H.js.map +1 -0
- package/dist/{chunk-2QIGXSSZ.cjs → chunk-7ZDJPHLJ.cjs} +6 -6
- package/dist/{chunk-2QIGXSSZ.cjs.map → chunk-7ZDJPHLJ.cjs.map} +1 -1
- package/dist/{chunk-RLC2BE3D.cjs → chunk-ATANWEXA.cjs} +21 -21
- package/dist/{chunk-RLC2BE3D.cjs.map → chunk-ATANWEXA.cjs.map} +1 -1
- package/dist/{chunk-7B3HK6TY.cjs → chunk-B6CQ4KK7.cjs} +6 -4
- package/dist/chunk-B6CQ4KK7.cjs.map +1 -0
- package/dist/{chunk-YQJWD53X.js → chunk-ENYHLZ2X.js} +3 -3
- package/dist/{chunk-YQJWD53X.js.map → chunk-ENYHLZ2X.js.map} +1 -1
- package/dist/chunk-FQZE5N2N.cjs +80 -0
- package/dist/chunk-FQZE5N2N.cjs.map +1 -0
- package/dist/{chunk-PV5WDIGM.cjs → chunk-FVG3YXXM.cjs} +4 -4
- package/dist/{chunk-PV5WDIGM.cjs.map → chunk-FVG3YXXM.cjs.map} +1 -1
- package/dist/{chunk-3XJKJQSY.cjs → chunk-FWA4PCW7.cjs} +4 -4
- package/dist/{chunk-3XJKJQSY.cjs.map → chunk-FWA4PCW7.cjs.map} +1 -1
- package/dist/{chunk-KYZNCVRD.js → chunk-FYKOLKQZ.js} +43 -26
- package/dist/chunk-FYKOLKQZ.js.map +1 -0
- package/dist/{chunk-JHDO6CRT.js → chunk-GAB2QXHH.js} +103 -41
- package/dist/chunk-GAB2QXHH.js.map +1 -0
- package/dist/{chunk-EEKXWXYO.cjs → chunk-GCWIZNN2.cjs} +4 -4
- package/dist/{chunk-EEKXWXYO.cjs.map → chunk-GCWIZNN2.cjs.map} +1 -1
- package/dist/{chunk-Z43BI7CQ.cjs → chunk-GU5BYZTR.cjs} +4 -4
- package/dist/{chunk-Z43BI7CQ.cjs.map → chunk-GU5BYZTR.cjs.map} +1 -1
- package/dist/{chunk-TXCAIL5X.cjs → chunk-HKRB2Z6R.cjs} +4 -4
- package/dist/{chunk-TXCAIL5X.cjs.map → chunk-HKRB2Z6R.cjs.map} +1 -1
- package/dist/{chunk-VM5BNL4L.js → chunk-IAUJKZAQ.js} +4 -4
- package/dist/{chunk-VM5BNL4L.js.map → chunk-IAUJKZAQ.js.map} +1 -1
- package/dist/{chunk-GMNMJLZO.js → chunk-K6EJLBBQ.js} +12 -6
- package/dist/chunk-K6EJLBBQ.js.map +1 -0
- package/dist/{chunk-ZLYOMQ2J.js → chunk-KODD54GT.js} +3 -3
- package/dist/{chunk-ZLYOMQ2J.js.map → chunk-KODD54GT.js.map} +1 -1
- package/dist/{chunk-ODAPI4QJ.cjs → chunk-M52IS5SO.cjs} +11 -11
- package/dist/{chunk-ODAPI4QJ.cjs.map → chunk-M52IS5SO.cjs.map} +1 -1
- package/dist/{chunk-CK6LRROH.js → chunk-M5ACSJJ4.js} +6 -4
- package/dist/chunk-M5ACSJJ4.js.map +1 -0
- package/dist/{chunk-FNYUUVOK.cjs → chunk-MFQ5NBSV.cjs} +14 -7
- package/dist/chunk-MFQ5NBSV.cjs.map +1 -0
- package/dist/{chunk-SK4AEUO4.js → chunk-MGE5KOVA.js} +4 -4
- package/dist/{chunk-SK4AEUO4.js.map → chunk-MGE5KOVA.js.map} +1 -1
- package/dist/{chunk-TKDUT7ZA.cjs → chunk-MH4QS7OE.cjs} +10 -10
- package/dist/{chunk-TKDUT7ZA.cjs.map → chunk-MH4QS7OE.cjs.map} +1 -1
- package/dist/{chunk-P7F32HIH.js → chunk-N6OZZAOT.js} +3 -3
- package/dist/{chunk-P7F32HIH.js.map → chunk-N6OZZAOT.js.map} +1 -1
- package/dist/{chunk-K74R6IEB.js → chunk-PCTZNK2Z.js} +4 -4
- package/dist/{chunk-K74R6IEB.js.map → chunk-PCTZNK2Z.js.map} +1 -1
- package/dist/{chunk-VFIVF5YO.js → chunk-PHDIQ4VC.js} +3 -3
- package/dist/{chunk-VFIVF5YO.js.map → chunk-PHDIQ4VC.js.map} +1 -1
- package/dist/{chunk-MSRYJETY.cjs → chunk-R3UG6PVX.cjs} +42 -25
- package/dist/chunk-R3UG6PVX.cjs.map +1 -0
- package/dist/{chunk-I6XHZ3S2.cjs → chunk-SAPOYAGN.cjs} +103 -41
- package/dist/chunk-SAPOYAGN.cjs.map +1 -0
- package/dist/{chunk-BR27AXFE.cjs → chunk-SYVOGYJG.cjs} +9 -9
- package/dist/{chunk-BR27AXFE.cjs.map → chunk-SYVOGYJG.cjs.map} +1 -1
- package/dist/{chunk-NYDR2VSA.js → chunk-TNYWQ6EQ.js} +3 -3
- package/dist/{chunk-NYDR2VSA.js.map → chunk-TNYWQ6EQ.js.map} +1 -1
- package/dist/{chunk-SWBF2BXA.js → chunk-TT3K5D6J.js} +3 -3
- package/dist/{chunk-SWBF2BXA.js.map → chunk-TT3K5D6J.js.map} +1 -1
- package/dist/{chunk-62WPAKFS.js → chunk-UDEEPMQ4.js} +3 -3
- package/dist/{chunk-62WPAKFS.js.map → chunk-UDEEPMQ4.js.map} +1 -1
- package/dist/{chunk-W7IP6RT3.cjs → chunk-WBVWV2V7.cjs} +4 -4
- package/dist/{chunk-W7IP6RT3.cjs.map → chunk-WBVWV2V7.cjs.map} +1 -1
- package/dist/chunk-X2FC7ODX.cjs +215 -0
- package/dist/chunk-X2FC7ODX.cjs.map +1 -0
- package/dist/{chunk-EEWRLFTI.js → chunk-XB6YHUKW.js} +3 -3
- package/dist/{chunk-EEWRLFTI.js.map → chunk-XB6YHUKW.js.map} +1 -1
- package/dist/{chunk-D354R6T6.js → chunk-ZY4CVNNZ.js} +3 -3
- package/dist/{chunk-D354R6T6.js.map → chunk-ZY4CVNNZ.js.map} +1 -1
- package/dist/command.cjs +4 -4
- package/dist/command.js +2 -2
- package/dist/composer.cjs +7 -5
- package/dist/composer.js +5 -3
- package/dist/content-renderer.cjs +5 -5
- package/dist/content-renderer.js +2 -2
- package/dist/context-menu.cjs +4 -4
- package/dist/context-menu.js +2 -2
- package/dist/drawer.cjs +4 -4
- package/dist/drawer.js +2 -2
- package/dist/dropdown.cjs +4 -4
- package/dist/dropdown.js +2 -2
- package/dist/editor.cjs +6 -6
- package/dist/editor.js +4 -4
- package/dist/index.cjs +83 -79
- package/dist/index.d.cts +85 -8
- package/dist/index.d.ts +85 -8
- package/dist/index.js +21 -21
- package/dist/input.cjs +6 -4
- package/dist/input.js +5 -3
- package/dist/inputs.cjs +4 -4
- package/dist/inputs.js +3 -3
- package/dist/json-editor.cjs +17 -17
- package/dist/json-editor.js +6 -6
- package/dist/magic-wand.cjs +5 -4
- package/dist/magic-wand.d.cts +51 -6
- package/dist/magic-wand.d.ts +51 -6
- package/dist/magic-wand.js +4 -3
- package/dist/mobile-menu.cjs +4 -4
- package/dist/mobile-menu.js +2 -2
- package/dist/modal.cjs +4 -4
- package/dist/modal.js +2 -2
- package/dist/paste-pills.cjs +17 -15
- package/dist/paste-pills.d.cts +3 -1
- package/dist/paste-pills.d.ts +3 -1
- package/dist/paste-pills.js +4 -2
- package/dist/prompt-input.cjs +9 -6
- package/dist/prompt-input.js +8 -5
- package/dist/reason-tag.cjs +4 -4
- package/dist/reason-tag.js +3 -3
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.js +1 -1
- package/dist/styles.css.map +1 -1
- package/docs/Chart.md +6 -0
- package/docs/ContentRenderer.md +36 -0
- package/docs/MagicWand.md +29 -2
- package/package.json +1 -1
- package/dist/chunk-3WGRVDQR.cjs +0 -39
- package/dist/chunk-3WGRVDQR.cjs.map +0 -1
- package/dist/chunk-7B3HK6TY.cjs.map +0 -1
- package/dist/chunk-CHADHN6M.js +0 -37
- package/dist/chunk-CHADHN6M.js.map +0 -1
- package/dist/chunk-CK6LRROH.js.map +0 -1
- package/dist/chunk-FNYUUVOK.cjs.map +0 -1
- package/dist/chunk-GMNMJLZO.js.map +0 -1
- package/dist/chunk-I6XHZ3S2.cjs.map +0 -1
- package/dist/chunk-JHDO6CRT.js.map +0 -1
- package/dist/chunk-KYZNCVRD.js.map +0 -1
- package/dist/chunk-LRNWD26Z.cjs +0 -82
- package/dist/chunk-LRNWD26Z.cjs.map +0 -1
- package/dist/chunk-MSRYJETY.cjs.map +0 -1
- package/dist/chunk-QXYO76NZ.js +0 -79
- package/dist/chunk-QXYO76NZ.js.map +0 -1
package/dist/paste-pills.cjs
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkR3UG6PVX_cjs = require('./chunk-R3UG6PVX.cjs');
|
|
4
|
+
require('./chunk-WKNVZUWZ.cjs');
|
|
5
5
|
require('./chunk-J2DI6RMR.cjs');
|
|
6
6
|
require('./chunk-NBZC6LOB.cjs');
|
|
7
|
+
require('./chunk-57FQGQJK.cjs');
|
|
8
|
+
require('./chunk-RXDRYWVD.cjs');
|
|
7
9
|
require('./chunk-SNHU2AI4.cjs');
|
|
8
10
|
require('./chunk-ZU5Q77OT.cjs');
|
|
9
11
|
|
|
@@ -11,55 +13,55 @@ require('./chunk-ZU5Q77OT.cjs');
|
|
|
11
13
|
|
|
12
14
|
Object.defineProperty(exports, "HOST_ATTR", {
|
|
13
15
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkR3UG6PVX_cjs.HOST_ATTR; }
|
|
15
17
|
});
|
|
16
18
|
Object.defineProperty(exports, "InlinePasteEditor", {
|
|
17
19
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkR3UG6PVX_cjs.InlinePasteEditor; }
|
|
19
21
|
});
|
|
20
22
|
Object.defineProperty(exports, "InlinePill", {
|
|
21
23
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkR3UG6PVX_cjs.InlinePill; }
|
|
23
25
|
});
|
|
24
26
|
Object.defineProperty(exports, "PILL_MARK", {
|
|
25
27
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkR3UG6PVX_cjs.PILL_MARK; }
|
|
27
29
|
});
|
|
28
30
|
Object.defineProperty(exports, "PastedFilesInput", {
|
|
29
31
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkR3UG6PVX_cjs.PastedFilesInput; }
|
|
31
33
|
});
|
|
32
34
|
Object.defineProperty(exports, "endsOf", {
|
|
33
35
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkR3UG6PVX_cjs.endsOf; }
|
|
35
37
|
});
|
|
36
38
|
Object.defineProperty(exports, "expandMarkers", {
|
|
37
39
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkR3UG6PVX_cjs.expandMarkers; }
|
|
39
41
|
});
|
|
40
42
|
Object.defineProperty(exports, "markedIds", {
|
|
41
43
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkR3UG6PVX_cjs.markedIds; }
|
|
43
45
|
});
|
|
44
46
|
Object.defineProperty(exports, "pasteMarker", {
|
|
45
47
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkR3UG6PVX_cjs.pasteMarker; }
|
|
47
49
|
});
|
|
48
50
|
Object.defineProperty(exports, "segmentValue", {
|
|
49
51
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkR3UG6PVX_cjs.segmentValue; }
|
|
51
53
|
});
|
|
52
54
|
Object.defineProperty(exports, "useInlinePaste", {
|
|
53
55
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkR3UG6PVX_cjs.useInlinePaste; }
|
|
55
57
|
});
|
|
56
58
|
Object.defineProperty(exports, "usePastePills", {
|
|
57
59
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkR3UG6PVX_cjs.usePastePills; }
|
|
59
61
|
});
|
|
60
62
|
Object.defineProperty(exports, "withSeparators", {
|
|
61
63
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkR3UG6PVX_cjs.withSeparators; }
|
|
63
65
|
});
|
|
64
66
|
//# sourceMappingURL=paste-pills.cjs.map
|
|
65
67
|
//# sourceMappingURL=paste-pills.cjs.map
|
package/dist/paste-pills.d.cts
CHANGED
|
@@ -27,7 +27,9 @@ interface InlinePillProps {
|
|
|
27
27
|
* One pill inside the message, portalled by `Composer` into a placeholder the
|
|
28
28
|
* editor made. Internal — its own file so its props are not read as `Composer`'s.
|
|
29
29
|
*
|
|
30
|
-
* The
|
|
30
|
+
* The preview is a hover `Popover` (portalled, so the scrolling input cannot clip
|
|
31
|
+
* it), and it opens on FOCUS too, so a keyboard user reaches the same preview. It
|
|
32
|
+
* was a `Tooltip` until 5.51.0; a tooltip is for a short label, not an image.
|
|
31
33
|
*/
|
|
32
34
|
declare function InlinePill({ preview, previewChars, renderPastePreview, classNames, disabled, onExpand, }: InlinePillProps): react.JSX.Element;
|
|
33
35
|
|
package/dist/paste-pills.d.ts
CHANGED
|
@@ -27,7 +27,9 @@ interface InlinePillProps {
|
|
|
27
27
|
* One pill inside the message, portalled by `Composer` into a placeholder the
|
|
28
28
|
* editor made. Internal — its own file so its props are not read as `Composer`'s.
|
|
29
29
|
*
|
|
30
|
-
* The
|
|
30
|
+
* The preview is a hover `Popover` (portalled, so the scrolling input cannot clip
|
|
31
|
+
* it), and it opens on FOCUS too, so a keyboard user reaches the same preview. It
|
|
32
|
+
* was a `Tooltip` until 5.51.0; a tooltip is for a short label, not an image.
|
|
31
33
|
*/
|
|
32
34
|
declare function InlinePill({ preview, previewChars, renderPastePreview, classNames, disabled, onExpand, }: InlinePillProps): react.JSX.Element;
|
|
33
35
|
|
package/dist/paste-pills.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export { HOST_ATTR, InlinePasteEditor, InlinePill, PILL_MARK, PastedFilesInput, endsOf, expandMarkers, markedIds, pasteMarker, segmentValue, useInlinePaste, usePastePills, withSeparators } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { HOST_ATTR, InlinePasteEditor, InlinePill, PILL_MARK, PastedFilesInput, endsOf, expandMarkers, markedIds, pasteMarker, segmentValue, useInlinePaste, usePastePills, withSeparators } from './chunk-FYKOLKQZ.js';
|
|
2
|
+
import './chunk-6KXAFP2T.js';
|
|
3
3
|
import './chunk-MQ6VGG62.js';
|
|
4
4
|
import './chunk-WHEXTDPV.js';
|
|
5
|
+
import './chunk-RGANGU7X.js';
|
|
6
|
+
import './chunk-JXE5XID6.js';
|
|
5
7
|
import './chunk-EDYAXGUM.js';
|
|
6
8
|
import './chunk-MMW2JGKZ.js';
|
|
7
9
|
//# sourceMappingURL=paste-pills.js.map
|
package/dist/prompt-input.cjs
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-AIA5UNQ5.cjs');
|
|
5
|
-
require('./chunk-MSRYJETY.cjs');
|
|
3
|
+
var chunkMH4QS7OE_cjs = require('./chunk-MH4QS7OE.cjs');
|
|
6
4
|
require('./chunk-X7H75WVP.cjs');
|
|
5
|
+
require('./chunk-AIA5UNQ5.cjs');
|
|
6
|
+
require('./chunk-R3UG6PVX.cjs');
|
|
7
|
+
require('./chunk-WKNVZUWZ.cjs');
|
|
7
8
|
require('./chunk-M5MUGSON.cjs');
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-FWA4PCW7.cjs');
|
|
10
|
+
require('./chunk-X2FC7ODX.cjs');
|
|
10
11
|
require('./chunk-XCZZVRBY.cjs');
|
|
11
12
|
require('./chunk-QKFOJKVE.cjs');
|
|
12
13
|
require('./chunk-J2DI6RMR.cjs');
|
|
13
14
|
require('./chunk-NBZC6LOB.cjs');
|
|
15
|
+
require('./chunk-57FQGQJK.cjs');
|
|
16
|
+
require('./chunk-RXDRYWVD.cjs');
|
|
14
17
|
require('./chunk-SNHU2AI4.cjs');
|
|
15
18
|
require('./chunk-ZU5Q77OT.cjs');
|
|
16
19
|
|
|
@@ -18,7 +21,7 @@ require('./chunk-ZU5Q77OT.cjs');
|
|
|
18
21
|
|
|
19
22
|
Object.defineProperty(exports, "PromptInput", {
|
|
20
23
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkMH4QS7OE_cjs.PromptInput; }
|
|
22
25
|
});
|
|
23
26
|
//# sourceMappingURL=prompt-input.cjs.map
|
|
24
27
|
//# sourceMappingURL=prompt-input.cjs.map
|
package/dist/prompt-input.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
export { PromptInput } from './chunk-
|
|
2
|
-
import './chunk-TJ66S5K6.js';
|
|
3
|
-
import './chunk-KYZNCVRD.js';
|
|
1
|
+
export { PromptInput } from './chunk-MGE5KOVA.js';
|
|
4
2
|
import './chunk-CF5KRDN4.js';
|
|
3
|
+
import './chunk-TJ66S5K6.js';
|
|
4
|
+
import './chunk-FYKOLKQZ.js';
|
|
5
|
+
import './chunk-6KXAFP2T.js';
|
|
5
6
|
import './chunk-LQ4ICCN2.js';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-KODD54GT.js';
|
|
8
|
+
import './chunk-6TBRBN7H.js';
|
|
8
9
|
import './chunk-45BBNJQD.js';
|
|
9
10
|
import './chunk-IVRYSSM7.js';
|
|
10
11
|
import './chunk-MQ6VGG62.js';
|
|
11
12
|
import './chunk-WHEXTDPV.js';
|
|
13
|
+
import './chunk-RGANGU7X.js';
|
|
14
|
+
import './chunk-JXE5XID6.js';
|
|
12
15
|
import './chunk-EDYAXGUM.js';
|
|
13
16
|
import './chunk-MMW2JGKZ.js';
|
|
14
17
|
//# sourceMappingURL=prompt-input.js.map
|
package/dist/reason-tag.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkGCWIZNN2_cjs = require('./chunk-GCWIZNN2.cjs');
|
|
4
4
|
require('./chunk-WKNVZUWZ.cjs');
|
|
5
5
|
require('./chunk-M5MUGSON.cjs');
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-FWA4PCW7.cjs');
|
|
7
|
+
require('./chunk-X2FC7ODX.cjs');
|
|
8
8
|
require('./chunk-XCZZVRBY.cjs');
|
|
9
9
|
require('./chunk-QKFOJKVE.cjs');
|
|
10
10
|
require('./chunk-J2DI6RMR.cjs');
|
|
@@ -17,7 +17,7 @@ require('./chunk-ZU5Q77OT.cjs');
|
|
|
17
17
|
|
|
18
18
|
Object.defineProperty(exports, "ReasonTag", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkGCWIZNN2_cjs.ReasonTag; }
|
|
21
21
|
});
|
|
22
22
|
//# sourceMappingURL=reason-tag.cjs.map
|
|
23
23
|
//# sourceMappingURL=reason-tag.cjs.map
|
package/dist/reason-tag.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { ReasonTag } from './chunk-
|
|
1
|
+
export { ReasonTag } from './chunk-UDEEPMQ4.js';
|
|
2
2
|
import './chunk-6KXAFP2T.js';
|
|
3
3
|
import './chunk-LQ4ICCN2.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import './chunk-KODD54GT.js';
|
|
5
|
+
import './chunk-6TBRBN7H.js';
|
|
6
6
|
import './chunk-45BBNJQD.js';
|
|
7
7
|
import './chunk-IVRYSSM7.js';
|
|
8
8
|
import './chunk-MQ6VGG62.js';
|
package/dist/sidebar.cjs
CHANGED
|
@@ -4,7 +4,7 @@ var chunk6IBBAOQC_cjs = require('./chunk-6IBBAOQC.cjs');
|
|
|
4
4
|
require('./chunk-HPNIEYSJ.cjs');
|
|
5
5
|
require('./chunk-T6YELZPJ.cjs');
|
|
6
6
|
require('./chunk-TXTRTTG7.cjs');
|
|
7
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-FQZE5N2N.cjs');
|
|
8
8
|
require('./chunk-J2DI6RMR.cjs');
|
|
9
9
|
require('./chunk-57FQGQJK.cjs');
|
|
10
10
|
require('./chunk-RXDRYWVD.cjs');
|
package/dist/sidebar.js
CHANGED
|
@@ -2,7 +2,7 @@ export { Sidebar, useSidebar } from './chunk-YD4SXA6K.js';
|
|
|
2
2
|
import './chunk-FWCREAIT.js';
|
|
3
3
|
import './chunk-CPY7NHXM.js';
|
|
4
4
|
import './chunk-5U2DZ7AV.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-3K2CEAI7.js';
|
|
6
6
|
import './chunk-MQ6VGG62.js';
|
|
7
7
|
import './chunk-RGANGU7X.js';
|
|
8
8
|
import './chunk-JXE5XID6.js';
|
package/dist/styles.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/styles.css"],"sourcesContent":["/* @particle-academy/react-fancy — base styles + animations */\n\n/* ─── Brand colour scheme ────────────────────────────────────────────────────\n Three token families every Fancy package can rely on, so a component never\n has to invent a palette or hardcode a literal:\n\n brand one accent — the thing a consumer rebrands first\n primary-* the accent as a full 50→950 scale\n secondary-* the NEUTRAL scale for surfaces, borders and body text\n\n Why this exists: packages were already writing `bg-brand`, `text-primary-600`\n and `border-secondary-200` against tokens nothing defined. Tailwind generated\n no such utility, the class silently resolved to nothing, and the component\n rendered unstyled — correct markup, no colour, no error. Defining them here\n turns those classes into a contract instead of a hope.\n\n SECONDARY INVERTS WITH THE THEME. `text-secondary-900` means \"strongest\n foreground\", not \"nearly black\" — so it stays readable on a dark surface.\n That distinction is the whole point: mixing a literal background (`bg-white`)\n with a semantic foreground (`text-secondary-900`) is what produced\n white-on-white in a dark host.\n\n OVERRIDE IT. Redefine any of these in your own `@theme` (or on `:root`) and\n yours wins — nothing here is `!important`, and the utilities read the variable\n rather than baking a value in:\n\n @theme { --color-brand: var(--color-emerald-600); }\n ──────────────────────────────────────────────────────────────────────────── */\n@theme {\n /* THE HOST'S OWN COLOUR. `color=\"brand\"` on any component resolves to these.\n Three variables, not one: a generated hover assumes \"same hue, darker\",\n and a brand palette need not work that way — a navy whose hover is gold\n cannot be derived from navy. So the host states the hover instead of the\n kit guessing it.\n\n :root {\n --color-brand: #003057;\n --color-brand-contrast: #ffffff; text/icon ON the brand colour\n --color-brand-hover: #D4A017; need not be a shade of brand\n }\n\n PER MODE, SWAP THE PAIR. `--color-brand` and `--color-brand-contrast` only\n mean anything together. Repointing one alone fails QUIETLY -- the button\n still renders, it is just unreadable (a pale surface still carrying white\n text; or, on ghost/outline where brand is the LABEL, dark text on a dark\n background):\n\n .dark { --color-brand: #BFD7EA; --color-brand-contrast: #003057; }\n\n `--color-brand-hover` usually needs no per-mode value: an accent chosen to\n stand against the brand tends to stand against it in both modes.\n\n NOTE: this comment does not survive the build -- `@theme` is emitted\n without it. The consumer-facing copy is in README.md, and that is the one\n to keep correct.\n\n Defaults keep the kit's violet so nothing changes for a host that never\n sets them. Soft/outline/ghost variants derive their tints with opacity\n modifiers (`bg-brand/10`), which is what lets three variables cover four\n variants without asking for a whole scale. */\n --color-brand: var(--color-violet-600);\n --color-brand-contrast: var(--color-white);\n --color-brand-hover: var(--color-violet-700);\n\n --color-primary-50: var(--color-violet-50);\n --color-primary-100: var(--color-violet-100);\n --color-primary-200: var(--color-violet-200);\n --color-primary-300: var(--color-violet-300);\n --color-primary-400: var(--color-violet-400);\n --color-primary-500: var(--color-violet-500);\n --color-primary-600: var(--color-violet-600);\n --color-primary-700: var(--color-violet-700);\n --color-primary-800: var(--color-violet-800);\n --color-primary-900: var(--color-violet-900);\n --color-primary-950: var(--color-violet-950);\n\n /* Light-theme defaults: 50 = faintest surface, 900/950 = strongest text. */\n --color-secondary-50: var(--color-zinc-50);\n --color-secondary-100: var(--color-zinc-100);\n --color-secondary-200: var(--color-zinc-200);\n --color-secondary-300: var(--color-zinc-300);\n --color-secondary-400: var(--color-zinc-400);\n --color-secondary-500: var(--color-zinc-500);\n --color-secondary-600: var(--color-zinc-600);\n --color-secondary-700: var(--color-zinc-700);\n --color-secondary-800: var(--color-zinc-800);\n --color-secondary-900: var(--color-zinc-900);\n --color-secondary-950: var(--color-zinc-950);\n}\n\n@layer base {\n\n/* ─── Progress (circular) — named diameters ──────────────────────────────────\n These ship as real CSS rather than Tailwind classes on the element, because a\n consumer who has not @sourced this package gets no generated utilities and\n the ring would render with NO SIZE at all. They were inline styles before,\n which always worked but could not be overridden by className (issue #17).\n\n Being inside @layer base, a className utility now beats them — which is the\n whole point, and the reason #20 had to land first. */\n[data-react-fancy-progress][data-size=\"sm\"] { width: 2rem; height: 2rem; }\n[data-react-fancy-progress][data-size=\"md\"] { width: 3rem; height: 3rem; }\n[data-react-fancy-progress][data-size=\"lg\"] { width: 4rem; height: 4rem; }\n\n\n\n/* Dark: the neutral scale flips, so \"900\" still means strongest foreground and\n \"50\" still means faintest surface. Wrapped in :where() for zero specificity,\n matching the rest of this file — any consumer override beats it. */\n:where(.dark) {\n --color-secondary-50: var(--color-zinc-950);\n --color-secondary-100: var(--color-zinc-900);\n --color-secondary-200: var(--color-zinc-800);\n --color-secondary-300: var(--color-zinc-700);\n --color-secondary-400: var(--color-zinc-600);\n --color-secondary-500: var(--color-zinc-500);\n --color-secondary-600: var(--color-zinc-400);\n --color-secondary-700: var(--color-zinc-300);\n --color-secondary-800: var(--color-zinc-200);\n --color-secondary-900: var(--color-zinc-100);\n --color-secondary-950: var(--color-zinc-50);\n}\n\n/* ─── Input & Field defaults ─────────────────────────────────────────────────\n Better UX out of the box: spacing between stacked fields, smooth transitions,\n and polished dark-mode defaults. All overridable via data-attribute selectors.\n ──────────────────────────────────────────────────────────────────────────── */\n\n/* Field spacing is the CONTAINER's job, not the field's.\n ────────────────────────────────────────────────────────────────────────────\n This used to be:\n\n [data-react-fancy-field] + [data-react-fancy-field] { margin-top: 1rem; }\n\n An adjacent-sibling selector cannot know which way its parent lays children\n out. Stacked vertically it read as spacing; inside a `grid-cols-2` row it\n pushed the right-hand cell 16px down, and `items-start` could not fix it\n because a margin is not alignment. The only escape was wrapping every field\n in a plain <div> so each became an only-child.\n\n Space fields with the container instead — `space-y-4`, or `gap-4` on a flex\n or grid parent. A container knows its own axis; a sibling selector never\n can. See CHANGELOG 5.17.0 for the migration.\n ──────────────────────────────────────────────────────────────────────────── */\n\n/* Smooth transitions on all text inputs, selects, and textareas */\n[data-react-fancy-input] input,\n[data-react-fancy-textarea],\n[data-react-fancy-select],\n[data-react-fancy-date-picker],\n[data-react-fancy-autocomplete] input,\n[data-react-fancy-pillbox],\n[data-react-fancy-otp-input] input,\n[data-react-fancy-time-picker] input,\n[data-react-fancy-color-picker] input {\n transition: border-color 0.15s ease, box-shadow 0.15s ease,\n background-color 0.15s ease;\n}\n\n/* Dark-mode input refinements — slightly darker bg for contrast against page */\n/* ─── Inherent dark-mode defaults ────────────────────────────────────────────\n Every rule below is wrapped in :where() so it carries ZERO specificity, which\n buys two properties at once:\n 1. Inherent — a sensible dark appearance ships out of the box, even when the\n consumer's Tailwind build doesn't generate react-fancy's `dark:` utility\n classes (e.g. they didn't @source the package). This is what lets the\n overlays (Dropdown, Menu, Popover, …) go dark on their own.\n 2. Override-friendly — because specificity is 0, ANY consumer override wins:\n a plain `dark:bg-…` utility, a custom class, or the component's own\n `dark:` class (when it IS generated) all take precedence — no !important,\n no need to target the data-attribute.\n ──────────────────────────────────────────────────────────────────────────── */\n\n/* Inputs / selects / textareas — darker bg for contrast against the page */\n:where(.dark [data-react-fancy-input] input),\n:where(.dark [data-react-fancy-textarea]),\n:where(.dark [data-react-fancy-select]),\n:where(.dark [data-react-fancy-date-picker]),\n:where(.dark [data-react-fancy-autocomplete] input),\n:where(.dark [data-react-fancy-pillbox]),\n:where(.dark [data-react-fancy-otp-input] input),\n:where(.dark [data-react-fancy-time-picker] input) {\n background-color: #1e1e24;\n border-color: #3f3f46;\n}\n\n/* Focus ring — brighter border + subtle glow */\n:where(.dark [data-react-fancy-input] input:focus),\n:where(.dark [data-react-fancy-textarea]:focus),\n:where(.dark [data-react-fancy-select]:focus),\n:where(.dark [data-react-fancy-date-picker]:focus),\n:where(.dark [data-react-fancy-autocomplete] input:focus),\n:where(.dark [data-react-fancy-otp-input] input:focus),\n:where(.dark [data-react-fancy-time-picker] input:focus) {\n border-color: #60a5fa;\n box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);\n}\n\n/* Field labels — brighter for readability */\n:where(.dark [data-react-fancy-field] > label:first-child) {\n color: #f4f4f5;\n}\n\n/* Checkbox & radio */\n:where(.dark [data-react-fancy-checkbox] input),\n:where(.dark [data-react-fancy-radio-group] input) {\n background-color: #1e1e24;\n border-color: #3f3f46;\n}\n\n/* Switch unchecked track */\n:where(.dark [data-react-fancy-switch] button[aria-checked=\"false\"]) {\n background-color: #3f3f46;\n}\n\n/* Input wrapper affixes */\n:where(.dark [data-react-fancy-input-wrapper] > span:first-child),\n:where(.dark [data-react-fancy-input-wrapper] > span:last-child) {\n border-color: #3f3f46;\n background-color: #27272a;\n}\n\n/* Date picker icon (calendar, clock) */\n:where(.dark [data-react-fancy-date-picker]::-webkit-calendar-picker-indicator) {\n filter: invert(0.8);\n}\n\n/* ─── Overlays — inherent dark surfaces ──────────────────────────────────────\n Dropdown / Menu / Popover / ContextMenu / MobileMenu flyout / Modal / Toast.\n Mirrors the components' own `dark:` utilities (zinc-900 surface, zinc-700\n border, zinc-300 text) so overlays render correctly in dark mode WITHOUT the\n consumer @sourcing react-fancy. When those utilities ARE generated they win\n (specificity 0 here), so there's no drift or double-styling. */\n:where(.dark [data-react-fancy-dropdown]),\n:where(.dark [data-react-fancy-menu]),\n:where(.dark [data-react-fancy-popover]),\n:where(.dark [data-react-fancy-context-menu]),\n:where(.dark [data-react-fancy-context-menu-sub-content]),\n:where(.dark [data-react-fancy-mobile-menu-flyout]),\n:where(.dark [data-react-fancy-modal]),\n:where(.dark [data-react-fancy-toast-item]) {\n background-color: #18181b; /* zinc-900 */\n border-color: #3f3f46; /* zinc-700 */\n color: #d4d4d8; /* zinc-300 */\n}\n\n/* Overlay item hover states */\n:where(.dark [data-react-fancy-dropdown-item]:hover),\n:where(.dark [data-react-fancy-menu-item]:hover),\n:where(.dark [data-react-fancy-context-menu-item]:hover) {\n background-color: #27272a; /* zinc-800 */\n}\n\n/* Overlay separators */\n:where(.dark [data-react-fancy-dropdown-separator]),\n:where(.dark [data-react-fancy-context-menu-separator]) {\n background-color: #3f3f46; /* zinc-700 */\n}\n\n/* ─── Media viewer — transparency checkerboard ───────────────────────────────\n Backdrop for <ImageViewer> / <MediaViewer> so transparent images read clearly.\n Light + dark variants; the dark rule is wrapped in :where() (zero specificity)\n so it ships out of the box without the consumer @sourcing react-fancy. */\n.fancy-checkerboard {\n background-color: #ffffff;\n background-image:\n linear-gradient(45deg, #e5e7eb 25%, transparent 25%),\n linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),\n linear-gradient(45deg, transparent 75%, #e5e7eb 75%),\n linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);\n background-size: 16px 16px;\n background-position: 0 0, 0 8px, 8px -8px, -8px 0;\n}\n\n:where(.dark) .fancy-checkerboard {\n background-color: #18181b; /* zinc-900 */\n background-image:\n linear-gradient(45deg, #27272a 25%, transparent 25%),\n linear-gradient(-45deg, #27272a 25%, transparent 25%),\n linear-gradient(45deg, transparent 75%, #27272a 75%),\n linear-gradient(-45deg, transparent 75%, #27272a 75%);\n}\n}\n\n\n@keyframes fancy-fade-in {\n from {\n opacity: 0;\n transform: translateY(4px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n\n@keyframes fancy-slide-left {\n from {\n transform: translateX(100%);\n }\n to {\n transform: translateX(0);\n }\n}\n\n@keyframes fancy-slide-right {\n from {\n transform: translateX(-100%);\n }\n to {\n transform: translateX(0);\n }\n}\n\n@layer base {\n\n\n.fancy-fade-in {\n animation: fancy-fade-in 0.2s ease-out;\n}\n\n.fancy-slide-left {\n animation: fancy-slide-left 0.3s ease-out;\n}\n\n.fancy-slide-right {\n animation: fancy-slide-right 0.3s ease-out;\n}\n}\n\n\n/* Overlay / floating animations */\n\n@keyframes fancy-scale-in {\n from {\n opacity: 0;\n transform: scale(0.95);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n\n@keyframes fancy-slide-up {\n from {\n opacity: 0;\n transform: translateY(16px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n\n@keyframes fancy-fade-out {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n\n@keyframes fancy-toast-in {\n from {\n opacity: 0;\n transform: translateX(100%);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n}\n\n@keyframes fancy-collapse-open {\n from {\n grid-template-rows: 0fr;\n }\n to {\n grid-template-rows: 1fr;\n }\n}\n\n@keyframes fancy-collapse-close {\n from {\n grid-template-rows: 1fr;\n }\n to {\n grid-template-rows: 0fr;\n }\n}\n\n@layer base {\n\n\n.fancy-scale-in {\n animation: fancy-scale-in 0.15s ease-out;\n}\n\n.fancy-slide-up {\n animation: fancy-slide-up 0.2s ease-out;\n}\n\n.fancy-fade-out {\n animation: fancy-fade-out 0.15s ease-in forwards;\n}\n\n.fancy-toast-in {\n animation: fancy-toast-in 0.3s ease-out;\n}\n\n.fancy-collapse-open {\n animation: fancy-collapse-open 0.2s ease-out forwards;\n}\n\n.fancy-collapse-close {\n animation: fancy-collapse-close 0.15s ease-in forwards;\n}\n}\n\n\n/* Mobile flyout slide animations */\n\n@keyframes fancy-slide-in-left {\n from {\n transform: translateX(-100%);\n }\n to {\n transform: translateX(0);\n }\n}\n\n@keyframes fancy-slide-out-left {\n from {\n transform: translateX(0);\n }\n to {\n transform: translateX(-100%);\n }\n}\n\n@keyframes fancy-slide-in-right {\n from {\n transform: translateX(100%);\n }\n to {\n transform: translateX(0);\n }\n}\n\n/* Avatar glow — a looping halo ring (box-shadow only, no reflow). Color comes\n from the --fancy-glow custom property set on the element. */\n@keyframes fancy-avatar-glow {\n 0% {\n box-shadow: 0 0 0 0 color-mix(in srgb, var(--fancy-glow, #a855f7) 55%, transparent);\n opacity: 0.9;\n }\n 70% {\n box-shadow: 0 0 0 6px color-mix(in srgb, var(--fancy-glow, #a855f7) 0%, transparent);\n opacity: 0.5;\n }\n 100% {\n box-shadow: 0 0 0 0 color-mix(in srgb, var(--fancy-glow, #a855f7) 0%, transparent);\n opacity: 0.9;\n }\n}\n\n@layer base {\n\n\n.fancy-avatar-glow {\n position: absolute;\n inset: 0;\n border-radius: 9999px;\n pointer-events: none;\n box-shadow:\n 0 0 0 2px color-mix(in srgb, var(--fancy-glow, #a855f7) 70%, transparent),\n 0 0 10px 0 color-mix(in srgb, var(--fancy-glow, #a855f7) 45%, transparent);\n animation: fancy-avatar-glow 1.6s ease-out infinite;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fancy-avatar-glow {\n animation: none;\n }\n}\n}\n\n\n@keyframes fancy-slide-out-right {\n from {\n transform: translateX(0);\n }\n to {\n transform: translateX(100%);\n }\n}\n\n@layer base {\n\n\n.fancy-slide-in-left {\n animation: fancy-slide-in-left 0.25s ease-out;\n}\n\n.fancy-slide-out-left {\n animation: fancy-slide-out-left 0.2s ease-in forwards;\n}\n\n.fancy-slide-in-right {\n animation: fancy-slide-in-right 0.25s ease-out;\n}\n\n.fancy-slide-out-right {\n animation: fancy-slide-out-right 0.2s ease-in forwards;\n}\n}\n\n\n/* Vertical drawer edges. The horizontal pair above predates Drawer (it was\n built for MobileMenu.Flyout, which only ever opened left/right); these\n complete the set so `side=\"top\"`/`side=\"bottom\"` animate rather than pop. */\n\n@keyframes fancy-slide-in-top {\n from {\n transform: translateY(-100%);\n }\n to {\n transform: translateY(0);\n }\n}\n\n@keyframes fancy-slide-out-top {\n from {\n transform: translateY(0);\n }\n to {\n transform: translateY(-100%);\n }\n}\n\n@keyframes fancy-slide-in-bottom {\n from {\n transform: translateY(100%);\n }\n to {\n transform: translateY(0);\n }\n}\n\n@keyframes fancy-slide-out-bottom {\n from {\n transform: translateY(0);\n }\n to {\n transform: translateY(100%);\n }\n}\n\n@layer base {\n\n\n.fancy-slide-in-top {\n animation: fancy-slide-in-top 0.25s ease-out;\n}\n\n.fancy-slide-out-top {\n animation: fancy-slide-out-top 0.2s ease-in forwards;\n}\n\n.fancy-slide-in-bottom {\n animation: fancy-slide-in-bottom 0.25s ease-out;\n}\n\n.fancy-slide-out-bottom {\n animation: fancy-slide-out-bottom 0.2s ease-in forwards;\n}\n\n/* Reduced motion collapses the travel — but must NOT use `animation: none`.\n `useAnimation` unmounts on `animationend`, so removing the animation removes\n the event, and a closed drawer would stay in the DOM forever. A ~0 duration\n still fires it. */\n@media (prefers-reduced-motion: reduce) {\n .fancy-slide-in-left,\n .fancy-slide-out-left,\n .fancy-slide-in-right,\n .fancy-slide-out-right,\n .fancy-slide-in-top,\n .fancy-slide-out-top,\n .fancy-slide-in-bottom,\n .fancy-slide-out-bottom {\n animation-duration: 0.01ms;\n }\n}\n\n/* ─── Marquee ────────────────────────────────────────────────────────────────\n Edge-to-edge auto-scrolling strip. The track holds two identical copies of\n the content; translateX(-50%) over one loop shifts exactly one copy, so the\n wrap is seamless. Duration/gap/fade arrive as custom properties set by the\n component. No animation under prefers-reduced-motion.\n ──────────────────────────────────────────────────────────────────────────── */\n\n[data-react-fancy-marquee] {\n overflow: hidden;\n width: 100%;\n}\n\n.fancy-marquee--fade {\n -webkit-mask-image: linear-gradient(\n to right,\n transparent,\n black var(--fancy-marquee-fade, 48px),\n black calc(100% - var(--fancy-marquee-fade, 48px)),\n transparent\n );\n mask-image: linear-gradient(\n to right,\n transparent,\n black var(--fancy-marquee-fade, 48px),\n black calc(100% - var(--fancy-marquee-fade, 48px)),\n transparent\n );\n}\n\n.fancy-marquee__track {\n display: flex;\n width: max-content;\n animation: fancy-marquee var(--fancy-marquee-duration, 40s) linear infinite;\n will-change: transform;\n}\n\n[data-react-fancy-marquee][data-direction=\"right\"] .fancy-marquee__track {\n animation-direction: reverse;\n}\n\n.fancy-marquee--pause-hover:hover .fancy-marquee__track,\n[data-react-fancy-marquee][data-paused] .fancy-marquee__track {\n animation-play-state: paused;\n}\n\n.fancy-marquee__group {\n display: flex;\n flex: none;\n}\n\n.fancy-marquee__unit {\n display: flex;\n flex: none;\n align-items: center;\n gap: var(--fancy-marquee-gap, 40px);\n padding-inline-end: var(--fancy-marquee-gap, 40px);\n white-space: nowrap;\n}\n\n.fancy-marquee__item,\n.fancy-marquee__separator {\n flex: none;\n}\n}\n\n\n@keyframes fancy-marquee {\n from {\n transform: translateX(0);\n }\n to {\n transform: translateX(-50%);\n }\n}\n\n@layer base {\n\n\n@media (prefers-reduced-motion: reduce) {\n .fancy-marquee__track {\n animation: none;\n }\n}\n}\n\n"],"mappings":";AA4BA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iET,CAxDS;AAAA,IAyDT,CAhDS;AAAA,IAiDT,CAxCS;AAyCP,0BAAoB;AACtB;AACF;AASA,GAAC;AACC,cAAU;AACV,WAAO;AACT;AAEA,GAAC;AACC;AAAA,MAAoB;AAAA,QAClB,GAAG,KAAK;AAAA,QACR,WAAW;AAAA,QACX,MAAM,IAAI,oBAAoB,EAAE,KAAK;AAAA,QACrC,MAAM,KAAK,KAAK,EAAE,IAAI,oBAAoB,EAAE,MAAM;AAAA,QAClD;AAEF;AAAA,MAAY;AAAA,QACV,GAAG,KAAK;AAAA,QACR,WAAW;AAAA,QACX,MAAM,IAAI,oBAAoB,EAAE,KAAK;AAAA,QACrC,MAAM,KAAK,KAAK,EAAE,IAAI,oBAAoB,EAAE,MAAM;AAAA,QAClD;AAEJ;AAEA,GAAC;AACC,aAAS;AACT,WAAO;AACP,eAAW,cAAc,IAAI,wBAAwB,EAAE,KAAK,OAAO;AACnE,iBAAa;AACf;AAEA,GAAC,yBAAyB,CAAC,sBAAwB,CAPlD;AAQC,yBAAqB;AACvB;AAEA,GAAC,0BAA0B,OAAO,CAXjC;AAAA,EAYD,CAAC,yBAAyB,CAAC,aAAa,CAZvC;AAaC,0BAAsB;AACxB;AAEA,GAAC;AACC,aAAS;AACT,UAAM;AACR;AAEA,GAAC;AACC,aAAS;AACT,UAAM;AACN,iBAAa;AACb,SAAK,IAAI,mBAAmB,EAAE;AAC9B,wBAAoB,IAAI,mBAAmB,EAAE;AAC7C,iBAAa;AACf;AAEA,GAAC;AAAA,EACD,CAAC;AACC,UAAM;AACR;AACA;AAGA,WAlCa;AAmCX;AACE,eAAW,WAAW;AACxB;AACA;AACE,eAAW,WAAW;AACxB;AACF;AAEA;AAGA,UAAO,wBAAyB;AAC9B,KAlDD;AAmDG,iBAAW;AACb;AACF;AACA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/styles.css"],"sourcesContent":["/* @particle-academy/react-fancy — base styles + animations */\n\n/* ─── Brand colour scheme ────────────────────────────────────────────────────\n Three token families every Fancy package can rely on, so a component never\n has to invent a palette or hardcode a literal:\n\n brand one accent — the thing a consumer rebrands first\n primary-* the accent as a full 50→950 scale\n secondary-* the NEUTRAL scale for surfaces, borders and body text\n\n Why this exists: packages were already writing `bg-brand`, `text-primary-600`\n and `border-secondary-200` against tokens nothing defined. Tailwind generated\n no such utility, the class silently resolved to nothing, and the component\n rendered unstyled — correct markup, no colour, no error. Defining them here\n turns those classes into a contract instead of a hope.\n\n SECONDARY INVERTS WITH THE THEME. `text-secondary-900` means \"strongest\n foreground\", not \"nearly black\" — so it stays readable on a dark surface.\n That distinction is the whole point: mixing a literal background (`bg-white`)\n with a semantic foreground (`text-secondary-900`) is what produced\n white-on-white in a dark host.\n\n OVERRIDE IT. Redefine any of these in your own `@theme` (or on `:root`) and\n yours wins — nothing here is `!important`, and the utilities read the variable\n rather than baking a value in:\n\n @theme { --color-brand: var(--color-emerald-600); }\n ──────────────────────────────────────────────────────────────────────────── */\n@theme {\n /* THE HOST'S OWN COLOUR. `color=\"brand\"` on any component resolves to these.\n Three variables, not one: a generated hover assumes \"same hue, darker\",\n and a brand palette need not work that way — a navy whose hover is gold\n cannot be derived from navy. So the host states the hover instead of the\n kit guessing it.\n\n :root {\n --color-brand: #003057;\n --color-brand-contrast: #ffffff; text/icon ON the brand colour\n --color-brand-hover: #D4A017; need not be a shade of brand\n }\n\n PER MODE, SWAP THE PAIR. `--color-brand` and `--color-brand-contrast` only\n mean anything together. Repointing one alone fails QUIETLY -- the button\n still renders, it is just unreadable (a pale surface still carrying white\n text; or, on ghost/outline where brand is the LABEL, dark text on a dark\n background):\n\n .dark { --color-brand: #BFD7EA; --color-brand-contrast: #003057; }\n\n `--color-brand-hover` usually needs no per-mode value: an accent chosen to\n stand against the brand tends to stand against it in both modes.\n\n NOTE: this comment does not survive the build -- `@theme` is emitted\n without it. The consumer-facing copy is in README.md, and that is the one\n to keep correct.\n\n Defaults keep the kit's violet so nothing changes for a host that never\n sets them. Soft/outline/ghost variants derive their tints with opacity\n modifiers (`bg-brand/10`), which is what lets three variables cover four\n variants without asking for a whole scale. */\n --color-brand: var(--color-violet-600);\n --color-brand-contrast: var(--color-white);\n --color-brand-hover: var(--color-violet-700);\n\n --color-primary-50: var(--color-violet-50);\n --color-primary-100: var(--color-violet-100);\n --color-primary-200: var(--color-violet-200);\n --color-primary-300: var(--color-violet-300);\n --color-primary-400: var(--color-violet-400);\n --color-primary-500: var(--color-violet-500);\n --color-primary-600: var(--color-violet-600);\n --color-primary-700: var(--color-violet-700);\n --color-primary-800: var(--color-violet-800);\n --color-primary-900: var(--color-violet-900);\n --color-primary-950: var(--color-violet-950);\n\n /* Light-theme defaults: 50 = faintest surface, 900/950 = strongest text. */\n --color-secondary-50: var(--color-zinc-50);\n --color-secondary-100: var(--color-zinc-100);\n --color-secondary-200: var(--color-zinc-200);\n --color-secondary-300: var(--color-zinc-300);\n --color-secondary-400: var(--color-zinc-400);\n --color-secondary-500: var(--color-zinc-500);\n --color-secondary-600: var(--color-zinc-600);\n --color-secondary-700: var(--color-zinc-700);\n --color-secondary-800: var(--color-zinc-800);\n --color-secondary-900: var(--color-zinc-900);\n --color-secondary-950: var(--color-zinc-950);\n}\n\n@layer base {\n\n/* ─── Progress (circular) — named diameters ──────────────────────────────────\n These ship as real CSS rather than Tailwind classes on the element, because a\n consumer who has not @sourced this package gets no generated utilities and\n the ring would render with NO SIZE at all. They were inline styles before,\n which always worked but could not be overridden by className (issue #17).\n\n Being inside @layer base, a className utility now beats them — which is the\n whole point, and the reason #20 had to land first. */\n[data-react-fancy-progress][data-size=\"sm\"] { width: 2rem; height: 2rem; }\n[data-react-fancy-progress][data-size=\"md\"] { width: 3rem; height: 3rem; }\n[data-react-fancy-progress][data-size=\"lg\"] { width: 4rem; height: 4rem; }\n\n\n\n/* Dark: the neutral scale flips, so \"900\" still means strongest foreground and\n \"50\" still means faintest surface. Wrapped in :where() for zero specificity,\n matching the rest of this file — any consumer override beats it. */\n:where(.dark) {\n --color-secondary-50: var(--color-zinc-950);\n --color-secondary-100: var(--color-zinc-900);\n --color-secondary-200: var(--color-zinc-800);\n --color-secondary-300: var(--color-zinc-700);\n --color-secondary-400: var(--color-zinc-600);\n --color-secondary-500: var(--color-zinc-500);\n --color-secondary-600: var(--color-zinc-400);\n --color-secondary-700: var(--color-zinc-300);\n --color-secondary-800: var(--color-zinc-200);\n --color-secondary-900: var(--color-zinc-100);\n --color-secondary-950: var(--color-zinc-50);\n}\n\n/* ─── Input & Field defaults ─────────────────────────────────────────────────\n Better UX out of the box: spacing between stacked fields, smooth transitions,\n and polished dark-mode defaults. All overridable via data-attribute selectors.\n ──────────────────────────────────────────────────────────────────────────── */\n\n/* Field spacing is the CONTAINER's job, not the field's.\n ────────────────────────────────────────────────────────────────────────────\n This used to be:\n\n [data-react-fancy-field] + [data-react-fancy-field] { margin-top: 1rem; }\n\n An adjacent-sibling selector cannot know which way its parent lays children\n out. Stacked vertically it read as spacing; inside a `grid-cols-2` row it\n pushed the right-hand cell 16px down, and `items-start` could not fix it\n because a margin is not alignment. The only escape was wrapping every field\n in a plain <div> so each became an only-child.\n\n Space fields with the container instead — `space-y-4`, or `gap-4` on a flex\n or grid parent. A container knows its own axis; a sibling selector never\n can. See CHANGELOG 5.17.0 for the migration.\n ──────────────────────────────────────────────────────────────────────────── */\n\n/* Smooth transitions on all text inputs, selects, and textareas */\n[data-react-fancy-input] input,\n[data-react-fancy-textarea],\n[data-react-fancy-select],\n[data-react-fancy-date-picker],\n[data-react-fancy-autocomplete] input,\n[data-react-fancy-pillbox],\n[data-react-fancy-otp-input] input,\n[data-react-fancy-time-picker] input,\n[data-react-fancy-color-picker] input {\n transition: border-color 0.15s ease, box-shadow 0.15s ease,\n background-color 0.15s ease;\n}\n\n/* Dark-mode input refinements — slightly darker bg for contrast against page */\n/* ─── Inherent dark-mode defaults ────────────────────────────────────────────\n Every rule below is wrapped in :where() so it carries ZERO specificity, which\n buys two properties at once:\n 1. Inherent — a sensible dark appearance ships out of the box, even when the\n consumer's Tailwind build doesn't generate react-fancy's `dark:` utility\n classes (e.g. they didn't @source the package). This is what lets the\n overlays (Dropdown, Menu, Popover, …) go dark on their own.\n 2. Override-friendly — because specificity is 0, ANY consumer override wins:\n a plain `dark:bg-…` utility, a custom class, or the component's own\n `dark:` class (when it IS generated) all take precedence — no !important,\n no need to target the data-attribute.\n ──────────────────────────────────────────────────────────────────────────── */\n\n/* Inputs / selects / textareas — darker bg for contrast against the page */\n:where(.dark [data-react-fancy-input] input),\n:where(.dark [data-react-fancy-textarea]),\n:where(.dark [data-react-fancy-select]),\n:where(.dark [data-react-fancy-date-picker]),\n:where(.dark [data-react-fancy-autocomplete] input),\n:where(.dark [data-react-fancy-pillbox]),\n:where(.dark [data-react-fancy-otp-input] input),\n:where(.dark [data-react-fancy-time-picker] input) {\n background-color: #1e1e24;\n border-color: #3f3f46;\n}\n\n/* Focus ring — brighter border + subtle glow */\n:where(.dark [data-react-fancy-input] input:focus),\n:where(.dark [data-react-fancy-textarea]:focus),\n:where(.dark [data-react-fancy-select]:focus),\n:where(.dark [data-react-fancy-date-picker]:focus),\n:where(.dark [data-react-fancy-autocomplete] input:focus),\n:where(.dark [data-react-fancy-otp-input] input:focus),\n:where(.dark [data-react-fancy-time-picker] input:focus) {\n border-color: #60a5fa;\n box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);\n}\n\n/* Field labels — brighter for readability */\n:where(.dark [data-react-fancy-field] > label:first-child) {\n color: #f4f4f5;\n}\n\n/* Checkbox & radio */\n:where(.dark [data-react-fancy-checkbox] input),\n:where(.dark [data-react-fancy-radio-group] input) {\n background-color: #1e1e24;\n border-color: #3f3f46;\n}\n\n/* Switch unchecked track */\n:where(.dark [data-react-fancy-switch] button[aria-checked=\"false\"]) {\n background-color: #3f3f46;\n}\n\n/* Input wrapper affixes */\n:where(.dark [data-react-fancy-input-wrapper] > span:first-child),\n:where(.dark [data-react-fancy-input-wrapper] > span:last-child) {\n border-color: #3f3f46;\n background-color: #27272a;\n}\n\n/* Date picker icon (calendar, clock) */\n:where(.dark [data-react-fancy-date-picker]::-webkit-calendar-picker-indicator) {\n filter: invert(0.8);\n}\n\n/* ─── Overlays — inherent dark surfaces ──────────────────────────────────────\n Dropdown / Menu / Popover / ContextMenu / MobileMenu flyout / Modal / Toast.\n Mirrors the components' own `dark:` utilities (zinc-900 surface, zinc-700\n border, zinc-300 text) so overlays render correctly in dark mode WITHOUT the\n consumer @sourcing react-fancy. When those utilities ARE generated they win\n (specificity 0 here), so there's no drift or double-styling. */\n:where(.dark [data-react-fancy-dropdown]),\n:where(.dark [data-react-fancy-menu]),\n:where(.dark [data-react-fancy-popover]),\n:where(.dark [data-react-fancy-context-menu]),\n:where(.dark [data-react-fancy-context-menu-sub-content]),\n:where(.dark [data-react-fancy-mobile-menu-flyout]),\n:where(.dark [data-react-fancy-modal]),\n:where(.dark [data-react-fancy-toast-item]) {\n background-color: #18181b; /* zinc-900 */\n border-color: #3f3f46; /* zinc-700 */\n color: #d4d4d8; /* zinc-300 */\n}\n\n/* Overlay item hover states */\n:where(.dark [data-react-fancy-dropdown-item]:hover),\n:where(.dark [data-react-fancy-menu-item]:hover),\n:where(.dark [data-react-fancy-context-menu-item]:hover) {\n background-color: #27272a; /* zinc-800 */\n}\n\n/* Overlay separators */\n:where(.dark [data-react-fancy-dropdown-separator]),\n:where(.dark [data-react-fancy-context-menu-separator]) {\n background-color: #3f3f46; /* zinc-700 */\n}\n\n/* ─── Media viewer — transparency checkerboard ───────────────────────────────\n Backdrop for <ImageViewer> / <MediaViewer> so transparent images read clearly.\n Light + dark variants; the dark rule is wrapped in :where() (zero specificity)\n so it ships out of the box without the consumer @sourcing react-fancy. */\n.fancy-checkerboard {\n background-color: #ffffff;\n background-image:\n linear-gradient(45deg, #e5e7eb 25%, transparent 25%),\n linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),\n linear-gradient(45deg, transparent 75%, #e5e7eb 75%),\n linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);\n background-size: 16px 16px;\n background-position: 0 0, 0 8px, 8px -8px, -8px 0;\n}\n\n:where(.dark) .fancy-checkerboard {\n background-color: #18181b; /* zinc-900 */\n background-image:\n linear-gradient(45deg, #27272a 25%, transparent 25%),\n linear-gradient(-45deg, #27272a 25%, transparent 25%),\n linear-gradient(45deg, transparent 75%, #27272a 75%),\n linear-gradient(-45deg, transparent 75%, #27272a 75%);\n}\n}\n\n\n@keyframes fancy-fade-in {\n from {\n opacity: 0;\n transform: translateY(4px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n\n@keyframes fancy-slide-left {\n from {\n transform: translateX(100%);\n }\n to {\n transform: translateX(0);\n }\n}\n\n@keyframes fancy-slide-right {\n from {\n transform: translateX(-100%);\n }\n to {\n transform: translateX(0);\n }\n}\n\n@layer base {\n\n\n.fancy-fade-in {\n animation: fancy-fade-in 0.2s ease-out;\n}\n\n.fancy-slide-left {\n animation: fancy-slide-left 0.3s ease-out;\n}\n\n.fancy-slide-right {\n animation: fancy-slide-right 0.3s ease-out;\n}\n}\n\n\n/* Overlay / floating animations */\n\n@keyframes fancy-scale-in {\n from {\n opacity: 0;\n transform: scale(0.95);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n\n@keyframes fancy-slide-up {\n from {\n opacity: 0;\n transform: translateY(16px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n\n@keyframes fancy-fade-out {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n\n@keyframes fancy-toast-in {\n from {\n opacity: 0;\n transform: translateX(100%);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n}\n\n@keyframes fancy-collapse-open {\n from {\n grid-template-rows: 0fr;\n }\n to {\n grid-template-rows: 1fr;\n }\n}\n\n@keyframes fancy-collapse-close {\n from {\n grid-template-rows: 1fr;\n }\n to {\n grid-template-rows: 0fr;\n }\n}\n\n@layer base {\n\n\n.fancy-scale-in {\n animation: fancy-scale-in 0.15s ease-out;\n}\n\n.fancy-slide-up {\n animation: fancy-slide-up 0.2s ease-out;\n}\n\n.fancy-fade-out {\n animation: fancy-fade-out 0.15s ease-in forwards;\n}\n\n.fancy-toast-in {\n animation: fancy-toast-in 0.3s ease-out;\n}\n\n.fancy-collapse-open {\n animation: fancy-collapse-open 0.2s ease-out forwards;\n}\n\n.fancy-collapse-close {\n animation: fancy-collapse-close 0.15s ease-in forwards;\n}\n}\n\n\n/* Mobile flyout slide animations */\n\n@keyframes fancy-slide-in-left {\n from {\n transform: translateX(-100%);\n }\n to {\n transform: translateX(0);\n }\n}\n\n@keyframes fancy-slide-out-left {\n from {\n transform: translateX(0);\n }\n to {\n transform: translateX(-100%);\n }\n}\n\n@keyframes fancy-slide-in-right {\n from {\n transform: translateX(100%);\n }\n to {\n transform: translateX(0);\n }\n}\n\n/* Avatar glow — a looping halo ring (box-shadow only, no reflow). Color comes\n from the --fancy-glow custom property set on the element. */\n@keyframes fancy-avatar-glow {\n 0% {\n box-shadow: 0 0 0 0 color-mix(in srgb, var(--fancy-glow, #a855f7) 55%, transparent);\n opacity: 0.9;\n }\n 70% {\n box-shadow: 0 0 0 6px color-mix(in srgb, var(--fancy-glow, #a855f7) 0%, transparent);\n opacity: 0.5;\n }\n 100% {\n box-shadow: 0 0 0 0 color-mix(in srgb, var(--fancy-glow, #a855f7) 0%, transparent);\n opacity: 0.9;\n }\n}\n\n@layer base {\n\n\n.fancy-avatar-glow {\n position: absolute;\n inset: 0;\n border-radius: 9999px;\n pointer-events: none;\n box-shadow:\n 0 0 0 2px color-mix(in srgb, var(--fancy-glow, #a855f7) 70%, transparent),\n 0 0 10px 0 color-mix(in srgb, var(--fancy-glow, #a855f7) 45%, transparent);\n animation: fancy-avatar-glow 1.6s ease-out infinite;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fancy-avatar-glow {\n animation: none;\n }\n}\n}\n\n\n@keyframes fancy-slide-out-right {\n from {\n transform: translateX(0);\n }\n to {\n transform: translateX(100%);\n }\n}\n\n@layer base {\n\n\n.fancy-slide-in-left {\n animation: fancy-slide-in-left 0.25s ease-out;\n}\n\n.fancy-slide-out-left {\n animation: fancy-slide-out-left 0.2s ease-in forwards;\n}\n\n.fancy-slide-in-right {\n animation: fancy-slide-in-right 0.25s ease-out;\n}\n\n.fancy-slide-out-right {\n animation: fancy-slide-out-right 0.2s ease-in forwards;\n}\n}\n\n\n/* Vertical drawer edges. The horizontal pair above predates Drawer (it was\n built for MobileMenu.Flyout, which only ever opened left/right); these\n complete the set so `side=\"top\"`/`side=\"bottom\"` animate rather than pop. */\n\n@keyframes fancy-slide-in-top {\n from {\n transform: translateY(-100%);\n }\n to {\n transform: translateY(0);\n }\n}\n\n@keyframes fancy-slide-out-top {\n from {\n transform: translateY(0);\n }\n to {\n transform: translateY(-100%);\n }\n}\n\n@keyframes fancy-slide-in-bottom {\n from {\n transform: translateY(100%);\n }\n to {\n transform: translateY(0);\n }\n}\n\n@keyframes fancy-slide-out-bottom {\n from {\n transform: translateY(0);\n }\n to {\n transform: translateY(100%);\n }\n}\n\n@layer base {\n\n\n.fancy-slide-in-top {\n animation: fancy-slide-in-top 0.25s ease-out;\n}\n\n.fancy-slide-out-top {\n animation: fancy-slide-out-top 0.2s ease-in forwards;\n}\n\n.fancy-slide-in-bottom {\n animation: fancy-slide-in-bottom 0.25s ease-out;\n}\n\n.fancy-slide-out-bottom {\n animation: fancy-slide-out-bottom 0.2s ease-in forwards;\n}\n\n/* Reduced motion collapses the travel to a ~0 duration. Since 5.51.0\n `useAnimation` also unmounts when no animation runs at all, so this is no\n longer what keeps a closed drawer from staying in the DOM — but a ~0 duration\n keeps the exit on the same path as every other close. */\n@media (prefers-reduced-motion: reduce) {\n .fancy-slide-in-left,\n .fancy-slide-out-left,\n .fancy-slide-in-right,\n .fancy-slide-out-right,\n .fancy-slide-in-top,\n .fancy-slide-out-top,\n .fancy-slide-in-bottom,\n .fancy-slide-out-bottom {\n animation-duration: 0.01ms;\n }\n}\n\n/* ─── Marquee ────────────────────────────────────────────────────────────────\n Edge-to-edge auto-scrolling strip. The track holds two identical copies of\n the content; translateX(-50%) over one loop shifts exactly one copy, so the\n wrap is seamless. Duration/gap/fade arrive as custom properties set by the\n component. No animation under prefers-reduced-motion.\n ──────────────────────────────────────────────────────────────────────────── */\n\n[data-react-fancy-marquee] {\n overflow: hidden;\n width: 100%;\n}\n\n.fancy-marquee--fade {\n -webkit-mask-image: linear-gradient(\n to right,\n transparent,\n black var(--fancy-marquee-fade, 48px),\n black calc(100% - var(--fancy-marquee-fade, 48px)),\n transparent\n );\n mask-image: linear-gradient(\n to right,\n transparent,\n black var(--fancy-marquee-fade, 48px),\n black calc(100% - var(--fancy-marquee-fade, 48px)),\n transparent\n );\n}\n\n.fancy-marquee__track {\n display: flex;\n width: max-content;\n animation: fancy-marquee var(--fancy-marquee-duration, 40s) linear infinite;\n will-change: transform;\n}\n\n[data-react-fancy-marquee][data-direction=\"right\"] .fancy-marquee__track {\n animation-direction: reverse;\n}\n\n.fancy-marquee--pause-hover:hover .fancy-marquee__track,\n[data-react-fancy-marquee][data-paused] .fancy-marquee__track {\n animation-play-state: paused;\n}\n\n.fancy-marquee__group {\n display: flex;\n flex: none;\n}\n\n.fancy-marquee__unit {\n display: flex;\n flex: none;\n align-items: center;\n gap: var(--fancy-marquee-gap, 40px);\n padding-inline-end: var(--fancy-marquee-gap, 40px);\n white-space: nowrap;\n}\n\n.fancy-marquee__item,\n.fancy-marquee__separator {\n flex: none;\n}\n}\n\n\n@keyframes fancy-marquee {\n from {\n transform: translateX(0);\n }\n to {\n transform: translateX(-50%);\n }\n}\n\n@layer base {\n\n\n@media (prefers-reduced-motion: reduce) {\n .fancy-marquee__track {\n animation: none;\n }\n}\n}\n\n"],"mappings":";AA4BA,OAAO,EAgCL,aAAa,EAAE,IAAI,mBAAmB,EACtC,sBAAsB,EAAE,IAAI,cAAc,EAC1C,mBAAmB,EAAE,IAAI,mBAAmB,EAE5C,kBAAkB,EAAE,IAAI,kBAAkB,EAC1C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QAClB,GAAG,KAAK;AAAA,QACR,WAAW;AAAA,QACX,MAAM,IAAI,oBAAoB,EAAE,KAAK;AAAA,QACrC,MAAM,KAAK,KAAK,EAAE,IAAI,oBAAoB,EAAE,MAAM;AAAA,QAClD;AAEF;AAAA,MAAY;AAAA,QACV,GAAG,KAAK;AAAA,QACR,WAAW;AAAA,QACX,MAAM,IAAI,oBAAoB,EAAE,KAAK;AAAA,QACrC,MAAM,KAAK,KAAK,EAAE,IAAI,oBAAoB,EAAE,MAAM;AAAA,QAClD;AAEJ;AAEA,GAAC;AACC,aAAS;AACT,WAAO;AACP,eAAW,cAAc,IAAI,wBAAwB,EAAE,KAAK,OAAO;AACnE,iBAAa;AACf;AAEA,GAAC,yBAAyB,CAAC,sBAAwB,CAPlD;AAQC,yBAAqB;AACvB;AAEA,GAAC,0BAA0B,OAAO,CAXjC;AAAA,EAYD,CAAC,yBAAyB,CAAC,aAAa,CAZvC;AAaC,0BAAsB;AACxB;AAEA,GAAC;AACC,aAAS;AACT,UAAM;AACR;AAEA,GAAC;AACC,aAAS;AACT,UAAM;AACN,iBAAa;AACb,SAAK,IAAI,mBAAmB,EAAE;AAC9B,wBAAoB,IAAI,mBAAmB,EAAE;AAC7C,iBAAa;AACf;AAEA,GAAC;AAAA,EACD,CAAC;AACC,UAAM;AACR;AACA;AAGA,WAlCa;AAmCX;AACE,eAAW,WAAW;AACxB;AACA;AACE,eAAW,WAAW;AACxB;AACF;AAEA;AAGA,UAAO,wBAAyB;AAC9B,KAlDD;AAmDG,iBAAW;AACb;AACF;AACA;","names":[]}
|
package/docs/Chart.md
CHANGED
|
@@ -123,4 +123,10 @@ Same as `Chart.Line` without the `fill` prop (area fill is always enabled).
|
|
|
123
123
|
| width | `number` | - | Chart width in px |
|
|
124
124
|
| height | `number` | - | Chart height in px |
|
|
125
125
|
| color | `string` | - | Line color |
|
|
126
|
+
| min | `number` | data minimum | The value the bottom edge stands for. `min={0}` scales from zero, as `Chart.Line` / `Chart.Bar` do. A value below `min` extends the scale. |
|
|
126
127
|
| className | `string` | - | Additional CSS classes |
|
|
128
|
+
|
|
129
|
+
```tsx
|
|
130
|
+
// Activity per minute: a busy-but-quiet minute should not sit on the floor.
|
|
131
|
+
<Chart.Sparkline data={perMinute} min={0} />
|
|
132
|
+
```
|
package/docs/ContentRenderer.md
CHANGED
|
@@ -91,3 +91,39 @@ registerExtension({
|
|
|
91
91
|
```tsx
|
|
92
92
|
<ContentRenderer value="# Title\n\nParagraph with **bold** text." format="markdown" />
|
|
93
93
|
```
|
|
94
|
+
|
|
95
|
+
## Markdown and sanitising without the component
|
|
96
|
+
|
|
97
|
+
`renderMarkdown(markdown, sanitize?)` returns the same HTML `ContentRenderer`
|
|
98
|
+
renders, already sanitised, so a host never imports the markdown parser itself.
|
|
99
|
+
|
|
100
|
+
`sanitizeHtml(html)` is a blocklist: it strips what can run (script, iframe,
|
|
101
|
+
event handlers, `javascript:` URLs, ...) and keeps the rest. Pass options and it
|
|
102
|
+
becomes an **allowlist** that keeps only what you list:
|
|
103
|
+
|
|
104
|
+
```ts
|
|
105
|
+
import { renderMarkdown, sanitizeHtml, type SanitizeHtmlOptions } from "@particle-academy/react-fancy";
|
|
106
|
+
|
|
107
|
+
const CHAT_PROSE: SanitizeHtmlOptions = {
|
|
108
|
+
allowedTags: ["p", "br", "strong", "em", "a", "ul", "ol", "li", "code", "pre"],
|
|
109
|
+
allowedAttributes: ["href", "title"], // or { "*": ["title"], a: ["href"], span: ["data-*"] }
|
|
110
|
+
allowedSchemes: ["https:", "http:", "mailto:"], // the default
|
|
111
|
+
allowRelative: true, // /x, ../x, ?q, #frag; never //host. Default false
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
renderMarkdown(md, CHAT_PROSE); // same as sanitizeHtml(renderMarkdown(md), CHAT_PROSE)
|
|
115
|
+
sanitizeHtml(html, CHAT_PROSE);
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
| Rule | Allowlist mode |
|
|
119
|
+
|------|----------------|
|
|
120
|
+
| Tag not listed | removed, its text and cleaned children kept |
|
|
121
|
+
| `script`, `style`, `iframe`, `frame(set)`, `object`, `embed`, `applet`, `link`, `meta`, `base`, `form`, `title`, `template`, `noscript`, `noembed`, `noframes`, `xmp`, `plaintext`, `svg`, `math` | removed WITH content, even when listed |
|
|
122
|
+
| Attribute not listed | removed |
|
|
123
|
+
| `on*`, `srcdoc`, `srcset` | removed, even when listed |
|
|
124
|
+
| URL attribute with an unlisted scheme | removed |
|
|
125
|
+
| `javascript:`, `vbscript:` | removed, even when listed |
|
|
126
|
+
| Comments | removed |
|
|
127
|
+
| No DOM (SSR) | input returned as escaped text (fails closed) |
|
|
128
|
+
|
|
129
|
+
The allowlist can only narrow: nothing you list widens past the blocklist.
|
package/docs/MagicWand.md
CHANGED
|
@@ -36,15 +36,42 @@ const actions: MagicWandAction[] = [
|
|
|
36
36
|
|
|
37
37
|
| Prop | Type | Default | Description |
|
|
38
38
|
|------|------|---------|-------------|
|
|
39
|
-
| value | `string` | — | Controlled textarea
|
|
40
|
-
| onValueChange | `(v: string) => void` | — | Fires on every edit. |
|
|
39
|
+
| value | `string` | — | Controlled value, of the built-in textarea or of `target`. |
|
|
40
|
+
| onValueChange | `(v: string) => void` | — | Fires on every edit, and with an action's result. |
|
|
41
41
|
| actions | `MagicWandAction[]` | — | Action list. Each invokes a callback with the selection. |
|
|
42
|
+
| target | `RefObject<HTMLTextAreaElement \| HTMLInputElement> \| MagicWandTargetAdapter` | — | Act on a field or editor the host renders. MagicWand then renders no textarea, only the wand. See below. |
|
|
42
43
|
| appearance | `"floating" \| "pill"` | `"floating"` | `"pill"` is icon-only and compact. |
|
|
43
44
|
| autoHide | `boolean` | `true` | Hide the wand on click-away or scroll. |
|
|
44
45
|
| rows | `number` | `6` | Textarea rows. |
|
|
45
46
|
| placeholder | `string` | — | Textarea placeholder. |
|
|
46
47
|
| onAction | `(action, selection, replacement) => void` | — | Fires after an action successfully runs. |
|
|
47
48
|
|
|
49
|
+
## Acting on a field you own (`target`)
|
|
50
|
+
|
|
51
|
+
Pass a ref to your own textarea or input. MagicWand listens on it and floats the wand (portalled, viewport-positioned) over the selection; the result still arrives through `onValueChange`, so your `value` stays the one source of truth.
|
|
52
|
+
|
|
53
|
+
```tsx
|
|
54
|
+
const ref = useRef<HTMLTextAreaElement>(null);
|
|
55
|
+
|
|
56
|
+
<textarea ref={ref} value={body} onChange={(e) => setBody(e.target.value)} />
|
|
57
|
+
<MagicWand target={ref} value={body} onValueChange={setBody} actions={actions} />
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
For anything that is not a textarea or input (a code editor, a contenteditable), pass an adapter. It is read-only: the write is `onValueChange`.
|
|
61
|
+
|
|
62
|
+
```tsx
|
|
63
|
+
<MagicWand
|
|
64
|
+
target={{
|
|
65
|
+
element: editorRef, // listened on for mouseup / keyup / select
|
|
66
|
+
getSelection: () => editor.selection(), // { start, end } offsets into `value`, or null
|
|
67
|
+
getSelectionRect: () => editor.selectionRect(), // optional; default: top-centre of `element`
|
|
68
|
+
}}
|
|
69
|
+
value={code}
|
|
70
|
+
onValueChange={setCode}
|
|
71
|
+
actions={actions}
|
|
72
|
+
/>
|
|
73
|
+
```
|
|
74
|
+
|
|
48
75
|
## Action shape
|
|
49
76
|
|
|
50
77
|
```ts
|
package/package.json
CHANGED
package/dist/chunk-3WGRVDQR.cjs
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var react = require('react');
|
|
4
|
-
|
|
5
|
-
// src/hooks/use-animation.ts
|
|
6
|
-
function useAnimation({
|
|
7
|
-
open,
|
|
8
|
-
enterClass,
|
|
9
|
-
exitClass
|
|
10
|
-
}) {
|
|
11
|
-
const [mounted, setMounted] = react.useState(open);
|
|
12
|
-
const [animClass, setAnimClass] = react.useState(open ? enterClass : "");
|
|
13
|
-
const ref = react.useRef(null);
|
|
14
|
-
react.useEffect(() => {
|
|
15
|
-
if (open) {
|
|
16
|
-
setMounted(true);
|
|
17
|
-
setAnimClass(enterClass);
|
|
18
|
-
} else if (mounted) {
|
|
19
|
-
setAnimClass(exitClass);
|
|
20
|
-
}
|
|
21
|
-
}, [open, enterClass, exitClass, mounted]);
|
|
22
|
-
const handleAnimationEnd = react.useCallback(() => {
|
|
23
|
-
if (!open) {
|
|
24
|
-
setMounted(false);
|
|
25
|
-
setAnimClass("");
|
|
26
|
-
}
|
|
27
|
-
}, [open]);
|
|
28
|
-
react.useEffect(() => {
|
|
29
|
-
const el = ref.current;
|
|
30
|
-
if (!el) return;
|
|
31
|
-
el.addEventListener("animationend", handleAnimationEnd);
|
|
32
|
-
return () => el.removeEventListener("animationend", handleAnimationEnd);
|
|
33
|
-
}, [handleAnimationEnd, mounted]);
|
|
34
|
-
return { mounted, className: animClass, ref };
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
exports.useAnimation = useAnimation;
|
|
38
|
-
//# sourceMappingURL=chunk-3WGRVDQR.cjs.map
|
|
39
|
-
//# sourceMappingURL=chunk-3WGRVDQR.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/hooks/use-animation.ts"],"names":["useState","useRef","useEffect","useCallback"],"mappings":";;;;;AAcO,SAAS,YAAA,CAAa;AAAA,EAC3B,IAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF,CAAA,EAA4C;AAC1C,EAAA,MAAM,CAAC,OAAA,EAAS,UAAU,CAAA,GAAIA,eAAS,IAAI,CAAA;AAC3C,EAAA,MAAM,CAAC,SAAA,EAAW,YAAY,IAAIA,cAAA,CAAS,IAAA,GAAO,aAAa,EAAE,CAAA;AACjE,EAAA,MAAM,GAAA,GAAMC,aAA2B,IAAI,CAAA;AAE3C,EAAAC,eAAA,CAAU,MAAM;AACd,IAAA,IAAI,IAAA,EAAM;AACR,MAAA,UAAA,CAAW,IAAI,CAAA;AACf,MAAA,YAAA,CAAa,UAAU,CAAA;AAAA,IACzB,WAAW,OAAA,EAAS;AAClB,MAAA,YAAA,CAAa,SAAS,CAAA;AAAA,IACxB;AAAA,EACF,GAAG,CAAC,IAAA,EAAM,UAAA,EAAY,SAAA,EAAW,OAAO,CAAC,CAAA;AAEzC,EAAA,MAAM,kBAAA,GAAqBC,kBAAY,MAAM;AAC3C,IAAA,IAAI,CAAC,IAAA,EAAM;AACT,MAAA,UAAA,CAAW,KAAK,CAAA;AAChB,MAAA,YAAA,CAAa,EAAE,CAAA;AAAA,IACjB;AAAA,EACF,CAAA,EAAG,CAAC,IAAI,CAAC,CAAA;AAET,EAAAD,eAAA,CAAU,MAAM;AACd,IAAA,MAAM,KAAK,GAAA,CAAI,OAAA;AACf,IAAA,IAAI,CAAC,EAAA,EAAI;AAET,IAAA,EAAA,CAAG,gBAAA,CAAiB,gBAAgB,kBAAkB,CAAA;AACtD,IAAA,OAAO,MAAM,EAAA,CAAG,mBAAA,CAAoB,cAAA,EAAgB,kBAAkB,CAAA;AAAA,EACxE,CAAA,EAAG,CAAC,kBAAA,EAAoB,OAAO,CAAC,CAAA;AAEhC,EAAA,OAAO,EAAE,OAAA,EAAS,SAAA,EAAW,SAAA,EAAW,GAAA,EAAI;AAC9C","file":"chunk-3WGRVDQR.cjs","sourcesContent":["import { useCallback, useEffect, useRef, useState } from \"react\";\n\ninterface UseAnimationOptions {\n open: boolean;\n enterClass: string;\n exitClass: string;\n}\n\ninterface UseAnimationReturn {\n mounted: boolean;\n className: string;\n ref: React.RefObject<HTMLElement | null>;\n}\n\nexport function useAnimation({\n open,\n enterClass,\n exitClass,\n}: UseAnimationOptions): UseAnimationReturn {\n const [mounted, setMounted] = useState(open);\n const [animClass, setAnimClass] = useState(open ? enterClass : \"\");\n const ref = useRef<HTMLElement | null>(null);\n\n useEffect(() => {\n if (open) {\n setMounted(true);\n setAnimClass(enterClass);\n } else if (mounted) {\n setAnimClass(exitClass);\n }\n }, [open, enterClass, exitClass, mounted]);\n\n const handleAnimationEnd = useCallback(() => {\n if (!open) {\n setMounted(false);\n setAnimClass(\"\");\n }\n }, [open]);\n\n useEffect(() => {\n const el = ref.current;\n if (!el) return;\n\n el.addEventListener(\"animationend\", handleAnimationEnd);\n return () => el.removeEventListener(\"animationend\", handleAnimationEnd);\n }, [handleAnimationEnd, mounted]);\n\n return { mounted, className: animClass, ref };\n}\n"]}
|