@graphty/compact-mantine 0.9.19 → 0.9.20
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/dist/index.cjs +14 -14
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1805,9 +1805,10 @@ export declare interface ControlSectionProps extends DisclosureProps {
|
|
|
1805
1805
|
/**
|
|
1806
1806
|
* Whether the section is set up at all.
|
|
1807
1807
|
*
|
|
1808
|
-
* An empty section is drawn as
|
|
1809
|
-
*
|
|
1810
|
-
*
|
|
1808
|
+
* An empty section is drawn as its 40px header alone, with the 1px rule
|
|
1809
|
+
* below it (41px in all): the name in the secondary text color, no chevron,
|
|
1810
|
+
* and a single "+" in the trailing slot. It shows no content and no
|
|
1811
|
+
* empty-state sentence, and its children are not rendered.
|
|
1811
1812
|
*
|
|
1812
1813
|
* The dimmed name is never the only thing that says so. The chevron is
|
|
1813
1814
|
* gone, the "+" is there, and the group holds nothing, so the state still
|
|
@@ -6506,7 +6507,7 @@ export declare interface ToggleRowProps {
|
|
|
6506
6507
|
* 1. **The verb is deleted from the label.** The checkbox already says
|
|
6507
6508
|
* "enable", so `Enable glow` is written `Glow`.
|
|
6508
6509
|
* 2. **A boolean with nothing underneath it is not this component.** Use
|
|
6509
|
-
* `ToggleRow`, which packs a lone boolean onto a
|
|
6510
|
+
* `ToggleRow`, which packs a lone boolean onto a 32px row with a slot at its
|
|
6510
6511
|
* end, and use two or more of those inside a `ToggleRowGroup`.
|
|
6511
6512
|
*
|
|
6512
6513
|
* The checkbox says out loud that it opens something: it is marked as expanded
|
package/dist/index.d.ts
CHANGED
|
@@ -1805,9 +1805,10 @@ export declare interface ControlSectionProps extends DisclosureProps {
|
|
|
1805
1805
|
/**
|
|
1806
1806
|
* Whether the section is set up at all.
|
|
1807
1807
|
*
|
|
1808
|
-
* An empty section is drawn as
|
|
1809
|
-
*
|
|
1810
|
-
*
|
|
1808
|
+
* An empty section is drawn as its 40px header alone, with the 1px rule
|
|
1809
|
+
* below it (41px in all): the name in the secondary text color, no chevron,
|
|
1810
|
+
* and a single "+" in the trailing slot. It shows no content and no
|
|
1811
|
+
* empty-state sentence, and its children are not rendered.
|
|
1811
1812
|
*
|
|
1812
1813
|
* The dimmed name is never the only thing that says so. The chevron is
|
|
1813
1814
|
* gone, the "+" is there, and the group holds nothing, so the state still
|
|
@@ -6506,7 +6507,7 @@ export declare interface ToggleRowProps {
|
|
|
6506
6507
|
* 1. **The verb is deleted from the label.** The checkbox already says
|
|
6507
6508
|
* "enable", so `Enable glow` is written `Glow`.
|
|
6508
6509
|
* 2. **A boolean with nothing underneath it is not this component.** Use
|
|
6509
|
-
* `ToggleRow`, which packs a lone boolean onto a
|
|
6510
|
+
* `ToggleRow`, which packs a lone boolean onto a 32px row with a slot at its
|
|
6510
6511
|
* end, and use two or more of those inside a `ToggleRowGroup`.
|
|
6511
6512
|
*
|
|
6512
6513
|
* The checkbox says out loud that it opens something: it is marked as expanded
|
package/dist/index.js
CHANGED
|
@@ -947,7 +947,7 @@ function Ls() {
|
|
|
947
947
|
e.push(`--cm-elevation-toast: ${Ss};`);
|
|
948
948
|
for (const [t, r] of Object.entries(As))
|
|
949
949
|
e.push(`--cm-${t}: ${r};`);
|
|
950
|
-
return e.push(`--cm-font-family: ${pr}
|
|
950
|
+
return e.push(`--cm-font-family: ${pr};`, `--cm-font-family-mono: ${za};`), e.join(`
|
|
951
951
|
`);
|
|
952
952
|
}
|
|
953
953
|
function Ps() {
|
|
@@ -1554,7 +1554,7 @@ function il() {
|
|
|
1554
1554
|
r = i.isTrusted && l instanceof HTMLInputElement && !l.hasAttribute("data-expanded") ? l : null;
|
|
1555
1555
|
}, a = (i) => {
|
|
1556
1556
|
const l = i.target;
|
|
1557
|
-
!i.isTrusted || l !== r || (r = null,
|
|
1557
|
+
!i.isTrusted || l !== r || (r = null, globalThis.setTimeout(() => {
|
|
1558
1558
|
const c = vn(l);
|
|
1559
1559
|
if (!c || !(l instanceof HTMLInputElement) || l.hasAttribute("aria-activedescendant"))
|
|
1560
1560
|
return;
|
|
@@ -7424,7 +7424,7 @@ function pu({ children: e }) {
|
|
|
7424
7424
|
}
|
|
7425
7425
|
const ee = Y ?? null, q = O ?? null, Z = D === !1 ? [] : m(ee), ne = [];
|
|
7426
7426
|
for (const ue of Z)
|
|
7427
|
-
ne.push(ue
|
|
7427
|
+
ne.push(ue, ...h(ue));
|
|
7428
7428
|
w(ne);
|
|
7429
7429
|
const ce = new Set(ne);
|
|
7430
7430
|
n.current = n.current.filter((ue) => !ce.has(ue)), n.current.push(I), a.current.set(I, S), i.current.set(I, ee), l.current.set(I, q), D !== !1 ? c.current.delete(I) : c.current.add(I), s((ue) => ue + 1);
|
|
@@ -10276,7 +10276,7 @@ const Jn = () => {
|
|
|
10276
10276
|
...w
|
|
10277
10277
|
}, v) {
|
|
10278
10278
|
const [T, f] = ge({ value: t, defaultValue: r, finalValue: !1, onChange: n }), g = X(!1), A = (E) => {
|
|
10279
|
-
m == null || m(E), !(E.button !== 0 || s) && (g.current = !0, E.currentTarget.hasPointerCapture(E.pointerId) && E.currentTarget.releasePointerCapture(E.pointerId), oo = !T,
|
|
10279
|
+
m == null || m(E), !(E.button !== 0 || s) && (g.current = !0, E.currentTarget.hasPointerCapture(E.pointerId) && E.currentTarget.releasePointerCapture(E.pointerId), oo = !T, globalThis.addEventListener("pointerup", Jn, { once: !0 }), globalThis.addEventListener("pointercancel", Jn, { once: !0 }), f(!T));
|
|
10280
10280
|
}, k = (E) => {
|
|
10281
10281
|
h == null || h(E), !(oo === null || (E.buttons & 1) === 0 || s || T === oo) && f(oo);
|
|
10282
10282
|
}, p = (E) => {
|