concertina 0.13.0 → 0.13.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.
@@ -1351,6 +1351,7 @@ function injectStyles() {
1351
1351
  document.head.appendChild(style);
1352
1352
  injected = true;
1353
1353
  }
1354
+ injectStyles();
1354
1355
 
1355
1356
  // src/accordion/content.tsx
1356
1357
  var import_jsx_runtime11 = require("react/jsx-runtime");
package/dist/accordion.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  Trigger2,
9
9
  useConcertina,
10
10
  useExpanded
11
- } from "./chunk-OGJMPKZX.js";
11
+ } from "./chunk-6UMIJ4S7.js";
12
12
  export {
13
13
  ConcertinaContext,
14
14
  ConcertinaStore,
@@ -1312,6 +1312,7 @@ function injectStyles() {
1312
1312
  document.head.appendChild(style);
1313
1313
  injected = true;
1314
1314
  }
1315
+ injectStyles();
1315
1316
 
1316
1317
  // src/accordion/content.tsx
1317
1318
  import { jsx as jsx10 } from "react/jsx-runtime";
package/dist/index.cjs CHANGED
@@ -1373,6 +1373,7 @@ function injectStyles() {
1373
1373
  document.head.appendChild(style);
1374
1374
  injected = true;
1375
1375
  }
1376
+ injectStyles();
1376
1377
 
1377
1378
  // src/accordion/content.tsx
1378
1379
  var import_jsx_runtime11 = require("react/jsx-runtime");
@@ -1438,9 +1439,6 @@ var Slot = (0, import_react12.forwardRef)(
1438
1439
  }
1439
1440
  );
1440
1441
 
1441
- // src/components/hum.tsx
1442
- var import_react14 = require("react");
1443
-
1444
1442
  // src/components/vamp.tsx
1445
1443
  var import_react13 = require("react");
1446
1444
  var import_jsx_runtime14 = require("react/jsx-runtime");
@@ -1454,34 +1452,31 @@ function Vamp({ loading, children }) {
1454
1452
 
1455
1453
  // src/components/hum.tsx
1456
1454
  var import_jsx_runtime15 = require("react/jsx-runtime");
1457
- var Hum = (0, import_react14.forwardRef)(
1458
- function Hum2({ loading, as: Tag = "span", className, children, ...props }, ref) {
1459
- (0, import_react14.useInsertionEffect)(injectStyles, []);
1460
- const vampLoading = useVamp();
1461
- const isLoading = loading ?? vampLoading;
1462
- if (isLoading) {
1463
- const merged = className ? `concertina-warmup-line ${className}` : "concertina-warmup-line";
1464
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Tag, { ref, className: merged, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Tag, { inert: true, children }) });
1465
- }
1466
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Tag, { ref, className, ...props, children });
1455
+ function Hum({ loading, as: Tag = "span", className, children, ...props }) {
1456
+ const vampLoading = useVamp();
1457
+ const isLoading = loading ?? vampLoading;
1458
+ if (isLoading) {
1459
+ const merged = className ? `concertina-warmup-line ${className}` : "concertina-warmup-line";
1460
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Tag, { className: merged, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Tag, { inert: true, children }) });
1467
1461
  }
1468
- );
1462
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Tag, { className, ...props, children });
1463
+ }
1469
1464
 
1470
1465
  // src/components/overture.tsx
1471
- var import_react18 = require("react");
1466
+ var import_react17 = require("react");
1472
1467
 
1473
1468
  // src/components/gigbag.tsx
1474
- var import_react16 = require("react");
1469
+ var import_react15 = require("react");
1475
1470
 
1476
1471
  // src/primitives/use-stable-slot.ts
1477
- var import_react15 = require("react");
1472
+ var import_react14 = require("react");
1478
1473
  var RATCHET_FLOOR = -Infinity;
1479
1474
  function useStableSlot(options = {}) {
1480
1475
  const { axis = "both" } = options;
1481
- const [style, setStyle] = (0, import_react15.useState)({});
1482
- const maxRef = (0, import_react15.useRef)({ w: RATCHET_FLOOR, h: RATCHET_FLOOR });
1483
- const observerRef = (0, import_react15.useRef)(null);
1484
- const ref = (0, import_react15.useCallback)(
1476
+ const [style, setStyle] = (0, import_react14.useState)({});
1477
+ const maxRef = (0, import_react14.useRef)({ w: RATCHET_FLOOR, h: RATCHET_FLOOR });
1478
+ const observerRef = (0, import_react14.useRef)(null);
1479
+ const ref = (0, import_react14.useCallback)(
1485
1480
  (el) => {
1486
1481
  if (observerRef.current) {
1487
1482
  observerRef.current.disconnect();
@@ -1529,9 +1524,9 @@ function useStableSlot(options = {}) {
1529
1524
 
1530
1525
  // src/components/gigbag.tsx
1531
1526
  var import_jsx_runtime16 = require("react/jsx-runtime");
1532
- var Gigbag = (0, import_react16.forwardRef)(
1527
+ var Gigbag = (0, import_react15.forwardRef)(
1533
1528
  function Gigbag2({ axis = "height", as: Tag = "div", className, style, children, ...props }, fwdRef) {
1534
- (0, import_react16.useInsertionEffect)(injectStyles, []);
1529
+ (0, import_react15.useInsertionEffect)(injectStyles, []);
1535
1530
  const { ref: ratchetRef, style: ratchetStyle } = useStableSlot({ axis });
1536
1531
  const merged = className ? `concertina-gigbag ${className}` : "concertina-gigbag";
1537
1532
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
@@ -1548,11 +1543,11 @@ var Gigbag = (0, import_react16.forwardRef)(
1548
1543
  );
1549
1544
 
1550
1545
  // src/primitives/use-warmup-exit.ts
1551
- var import_react17 = require("react");
1546
+ var import_react16 = require("react");
1552
1547
  function useWarmupExit(loading, duration) {
1553
- const [exiting, setExiting] = (0, import_react17.useState)(false);
1554
- const prevLoading = (0, import_react17.useRef)(loading);
1555
- (0, import_react17.useEffect)(() => {
1548
+ const [exiting, setExiting] = (0, import_react16.useState)(false);
1549
+ const prevLoading = (0, import_react16.useRef)(loading);
1550
+ (0, import_react16.useEffect)(() => {
1556
1551
  if (prevLoading.current && !loading) {
1557
1552
  setExiting(true);
1558
1553
  const id = setTimeout(() => setExiting(false), duration);
@@ -1571,9 +1566,9 @@ function useWarmupExit(loading, duration) {
1571
1566
 
1572
1567
  // src/components/overture.tsx
1573
1568
  var import_jsx_runtime17 = require("react/jsx-runtime");
1574
- var Overture = (0, import_react18.forwardRef)(
1569
+ var Overture = (0, import_react17.forwardRef)(
1575
1570
  function Overture2({ loading, exitDuration, as: Tag = "div", className, children, ...props }, ref) {
1576
- (0, import_react18.useInsertionEffect)(injectStyles, []);
1571
+ (0, import_react17.useInsertionEffect)(injectStyles, []);
1577
1572
  const { showWarmup, exiting } = useWarmupExit(loading, exitDuration);
1578
1573
  const merged = exiting ? className ? `concertina-warmup-exiting ${className}` : "concertina-warmup-exiting" : className;
1579
1574
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Gigbag, { ref, axis: "height", as: Tag, className: merged, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Vamp, { loading: showWarmup, children }) });
@@ -1581,14 +1576,14 @@ var Overture = (0, import_react18.forwardRef)(
1581
1576
  );
1582
1577
 
1583
1578
  // src/components/ensemble.tsx
1584
- var import_react20 = require("react");
1579
+ var import_react19 = require("react");
1585
1580
 
1586
1581
  // src/components/warmup.tsx
1587
- var import_react19 = require("react");
1582
+ var import_react18 = require("react");
1588
1583
  var import_jsx_runtime18 = require("react/jsx-runtime");
1589
- var Warmup = (0, import_react19.forwardRef)(
1584
+ var Warmup = (0, import_react18.forwardRef)(
1590
1585
  function Warmup2({ rows, columns, as: Tag = "div", className, children, ...props }, ref) {
1591
- (0, import_react19.useInsertionEffect)(injectStyles, []);
1586
+ (0, import_react18.useInsertionEffect)(injectStyles, []);
1592
1587
  const merged = className ? `concertina-warmup ${className}` : "concertina-warmup";
1593
1588
  const count2 = columns ? rows * columns : rows;
1594
1589
  const cells = Array.from({ length: count2 }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "concertina-warmup-bone", children: [
@@ -1621,33 +1616,33 @@ function EnsembleInner({
1621
1616
  className,
1622
1617
  ...props
1623
1618
  }, ref) {
1624
- (0, import_react20.useInsertionEffect)(injectStyles, []);
1619
+ (0, import_react19.useInsertionEffect)(injectStyles, []);
1625
1620
  const { showWarmup, exiting } = useWarmupExit(loading, exitDuration);
1626
1621
  const warmupClass = exiting ? className ? `concertina-warmup-exiting ${className}` : "concertina-warmup-exiting" : className;
1627
1622
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Gigbag, { ref, axis: "height", as: Tag, ...props, children: showWarmup ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Warmup, { rows: stubCount, className: warmupClass }) : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Tag, { className, children: items.map(renderItem) }) });
1628
1623
  }
1629
- var Ensemble = (0, import_react20.forwardRef)(EnsembleInner);
1624
+ var Ensemble = (0, import_react19.forwardRef)(EnsembleInner);
1630
1625
 
1631
1626
  // src/components/warmup-line.tsx
1632
- var import_react21 = require("react");
1627
+ var import_react20 = require("react");
1633
1628
  var import_jsx_runtime20 = require("react/jsx-runtime");
1634
- var WarmupLine = (0, import_react21.forwardRef)(
1629
+ var WarmupLine = (0, import_react20.forwardRef)(
1635
1630
  function WarmupLine2({ as: Tag = "div", className, ...props }, ref) {
1636
- (0, import_react21.useInsertionEffect)(injectStyles, []);
1631
+ (0, import_react20.useInsertionEffect)(injectStyles, []);
1637
1632
  const merged = className ? `concertina-warmup-line ${className}` : "concertina-warmup-line";
1638
1633
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Tag, { ref, className: merged, ...props });
1639
1634
  }
1640
1635
  );
1641
1636
 
1642
1637
  // src/components/glide.tsx
1643
- var import_react23 = require("react");
1638
+ var import_react22 = require("react");
1644
1639
 
1645
1640
  // src/primitives/use-presence.ts
1646
- var import_react22 = require("react");
1641
+ var import_react21 = require("react");
1647
1642
  function usePresence2(show) {
1648
- const [mounted, setMounted] = (0, import_react22.useState)(show);
1649
- const [phase, setPhase] = (0, import_react22.useState)(show ? "entered" : "exiting");
1650
- (0, import_react22.useEffect)(() => {
1643
+ const [mounted, setMounted] = (0, import_react21.useState)(show);
1644
+ const [phase, setPhase] = (0, import_react21.useState)(show ? "entered" : "exiting");
1645
+ (0, import_react21.useEffect)(() => {
1651
1646
  if (show) {
1652
1647
  setMounted(true);
1653
1648
  setPhase("entering");
@@ -1655,7 +1650,7 @@ function usePresence2(show) {
1655
1650
  setPhase("exiting");
1656
1651
  }
1657
1652
  }, [show]);
1658
- const onAnimationEnd = (0, import_react22.useCallback)(
1653
+ const onAnimationEnd = (0, import_react21.useCallback)(
1659
1654
  (e) => {
1660
1655
  if (e.target !== e.currentTarget) return;
1661
1656
  if (phase === "entering") setPhase("entered");
@@ -1668,9 +1663,9 @@ function usePresence2(show) {
1668
1663
 
1669
1664
  // src/components/glide.tsx
1670
1665
  var import_jsx_runtime21 = require("react/jsx-runtime");
1671
- var Glide = (0, import_react23.forwardRef)(
1666
+ var Glide = (0, import_react22.forwardRef)(
1672
1667
  function Glide2({ show, as: Tag = "div", className, children, ...props }, ref) {
1673
- (0, import_react23.useInsertionEffect)(injectStyles, []);
1668
+ (0, import_react22.useInsertionEffect)(injectStyles, []);
1674
1669
  const { mounted, phase, onAnimationEnd } = usePresence2(show);
1675
1670
  if (!mounted) return null;
1676
1671
  const phaseClass = phase === "entering" ? "concertina-glide-entering" : phase === "exiting" ? "concertina-glide-exiting" : "";
@@ -1689,12 +1684,12 @@ var Glide = (0, import_react23.forwardRef)(
1689
1684
  );
1690
1685
 
1691
1686
  // src/primitives/use-size.ts
1692
- var import_react24 = require("react");
1687
+ var import_react23 = require("react");
1693
1688
  var NO_OBSERVATION = { width: Number.NaN, height: Number.NaN };
1694
1689
  function useSize() {
1695
- const [size, setSize] = (0, import_react24.useState)(NO_OBSERVATION);
1696
- const observerRef = (0, import_react24.useRef)(null);
1697
- const ref = (0, import_react24.useCallback)((el) => {
1690
+ const [size, setSize] = (0, import_react23.useState)(NO_OBSERVATION);
1691
+ const observerRef = (0, import_react23.useRef)(null);
1692
+ const ref = (0, import_react23.useCallback)((el) => {
1698
1693
  if (observerRef.current) {
1699
1694
  observerRef.current.disconnect();
1700
1695
  observerRef.current = null;
@@ -1723,12 +1718,12 @@ function useSize() {
1723
1718
  }
1724
1719
 
1725
1720
  // src/accordion/use-concertina.ts
1726
- var import_react25 = require("react");
1721
+ var import_react24 = require("react");
1727
1722
  function useConcertina() {
1728
- const [value, setValue] = (0, import_react25.useState)("");
1729
- const [switching, setSwitching] = (0, import_react25.useState)(false);
1730
- const itemRefs = (0, import_react25.useRef)({});
1731
- const onValueChange = (0, import_react25.useCallback)(
1723
+ const [value, setValue] = (0, import_react24.useState)("");
1724
+ const [switching, setSwitching] = (0, import_react24.useState)(false);
1725
+ const itemRefs = (0, import_react24.useRef)({});
1726
+ const onValueChange = (0, import_react24.useCallback)(
1732
1727
  (newValue) => {
1733
1728
  if (!newValue) {
1734
1729
  setSwitching(false);
@@ -1740,14 +1735,14 @@ function useConcertina() {
1740
1735
  },
1741
1736
  [value]
1742
1737
  );
1743
- (0, import_react25.useLayoutEffect)(() => {
1738
+ (0, import_react24.useLayoutEffect)(() => {
1744
1739
  if (!value) return;
1745
1740
  pinToScrollTop(itemRefs.current[value]);
1746
1741
  }, [value]);
1747
- (0, import_react25.useEffect)(() => {
1742
+ (0, import_react24.useEffect)(() => {
1748
1743
  if (switching) setSwitching(false);
1749
1744
  }, [switching]);
1750
- const getItemRef = (0, import_react25.useCallback)(
1745
+ const getItemRef = (0, import_react24.useCallback)(
1751
1746
  (id) => (el) => {
1752
1747
  itemRefs.current[id] = el;
1753
1748
  },
package/dist/index.d.cts CHANGED
@@ -65,7 +65,7 @@ interface HumProps extends HTMLAttributes<HTMLElement> {
65
65
  * nearest `<Vamp>` ancestor. This lets a single provider control
66
66
  * shimmer state for an entire subtree.
67
67
  */
68
- declare const Hum: react.ForwardRefExoticComponent<HumProps & react.RefAttributes<HTMLElement>>;
68
+ declare function Hum({ loading, as: Tag, className, children, ...props }: HumProps): react_jsx_runtime.JSX.Element;
69
69
 
70
70
  /** Context carrying the ambient loading state set by Vamp. */
71
71
  declare const VampContext: react.Context<boolean>;
package/dist/index.d.ts CHANGED
@@ -65,7 +65,7 @@ interface HumProps extends HTMLAttributes<HTMLElement> {
65
65
  * nearest `<Vamp>` ancestor. This lets a single provider control
66
66
  * shimmer state for an entire subtree.
67
67
  */
68
- declare const Hum: react.ForwardRefExoticComponent<HumProps & react.RefAttributes<HTMLElement>>;
68
+ declare function Hum({ loading, as: Tag, className, children, ...props }: HumProps): react_jsx_runtime.JSX.Element;
69
69
 
70
70
  /** Context carrying the ambient loading state set by Vamp. */
71
71
  declare const VampContext: react.Context<boolean>;
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  useExpanded,
14
14
  useScrollPin,
15
15
  useTransitionLock
16
- } from "./chunk-OGJMPKZX.js";
16
+ } from "./chunk-6UMIJ4S7.js";
17
17
 
18
18
  // src/components/bellows.tsx
19
19
  import {
@@ -60,12 +60,6 @@ var Slot = forwardRef2(
60
60
  }
61
61
  );
62
62
 
63
- // src/components/hum.tsx
64
- import {
65
- forwardRef as forwardRef3,
66
- useInsertionEffect as useInsertionEffect3
67
- } from "react";
68
-
69
63
  // src/components/vamp.tsx
70
64
  import { createContext as createContext2, useContext as useContext2 } from "react";
71
65
  import { jsx as jsx3 } from "react/jsx-runtime";
@@ -79,27 +73,24 @@ function Vamp({ loading, children }) {
79
73
 
80
74
  // src/components/hum.tsx
81
75
  import { jsx as jsx4 } from "react/jsx-runtime";
82
- var Hum = forwardRef3(
83
- function Hum2({ loading, as: Tag = "span", className, children, ...props }, ref) {
84
- useInsertionEffect3(injectStyles, []);
85
- const vampLoading = useVamp();
86
- const isLoading = loading ?? vampLoading;
87
- if (isLoading) {
88
- const merged = className ? `concertina-warmup-line ${className}` : "concertina-warmup-line";
89
- return /* @__PURE__ */ jsx4(Tag, { ref, className: merged, ...props, children: /* @__PURE__ */ jsx4(Tag, { inert: true, children }) });
90
- }
91
- return /* @__PURE__ */ jsx4(Tag, { ref, className, ...props, children });
76
+ function Hum({ loading, as: Tag = "span", className, children, ...props }) {
77
+ const vampLoading = useVamp();
78
+ const isLoading = loading ?? vampLoading;
79
+ if (isLoading) {
80
+ const merged = className ? `concertina-warmup-line ${className}` : "concertina-warmup-line";
81
+ return /* @__PURE__ */ jsx4(Tag, { className: merged, ...props, children: /* @__PURE__ */ jsx4(Tag, { inert: true, children }) });
92
82
  }
93
- );
83
+ return /* @__PURE__ */ jsx4(Tag, { className, ...props, children });
84
+ }
94
85
 
95
86
  // src/components/overture.tsx
96
87
  import {
97
- forwardRef as forwardRef5,
98
- useInsertionEffect as useInsertionEffect5
88
+ forwardRef as forwardRef4,
89
+ useInsertionEffect as useInsertionEffect4
99
90
  } from "react";
100
91
 
101
92
  // src/components/gigbag.tsx
102
- import { forwardRef as forwardRef4, useInsertionEffect as useInsertionEffect4 } from "react";
93
+ import { forwardRef as forwardRef3, useInsertionEffect as useInsertionEffect3 } from "react";
103
94
 
104
95
  // src/primitives/use-stable-slot.ts
105
96
  import { useState, useCallback, useRef } from "react";
@@ -157,9 +148,9 @@ function useStableSlot(options = {}) {
157
148
 
158
149
  // src/components/gigbag.tsx
159
150
  import { jsx as jsx5 } from "react/jsx-runtime";
160
- var Gigbag = forwardRef4(
151
+ var Gigbag = forwardRef3(
161
152
  function Gigbag2({ axis = "height", as: Tag = "div", className, style, children, ...props }, fwdRef) {
162
- useInsertionEffect4(injectStyles, []);
153
+ useInsertionEffect3(injectStyles, []);
163
154
  const { ref: ratchetRef, style: ratchetStyle } = useStableSlot({ axis });
164
155
  const merged = className ? `concertina-gigbag ${className}` : "concertina-gigbag";
165
156
  return /* @__PURE__ */ jsx5(
@@ -199,9 +190,9 @@ function useWarmupExit(loading, duration) {
199
190
 
200
191
  // src/components/overture.tsx
201
192
  import { jsx as jsx6 } from "react/jsx-runtime";
202
- var Overture = forwardRef5(
193
+ var Overture = forwardRef4(
203
194
  function Overture2({ loading, exitDuration, as: Tag = "div", className, children, ...props }, ref) {
204
- useInsertionEffect5(injectStyles, []);
195
+ useInsertionEffect4(injectStyles, []);
205
196
  const { showWarmup, exiting } = useWarmupExit(loading, exitDuration);
206
197
  const merged = exiting ? className ? `concertina-warmup-exiting ${className}` : "concertina-warmup-exiting" : className;
207
198
  return /* @__PURE__ */ jsx6(Gigbag, { ref, axis: "height", as: Tag, className: merged, ...props, children: /* @__PURE__ */ jsx6(Vamp, { loading: showWarmup, children }) });
@@ -210,16 +201,16 @@ var Overture = forwardRef5(
210
201
 
211
202
  // src/components/ensemble.tsx
212
203
  import {
213
- forwardRef as forwardRef7,
214
- useInsertionEffect as useInsertionEffect7
204
+ forwardRef as forwardRef6,
205
+ useInsertionEffect as useInsertionEffect6
215
206
  } from "react";
216
207
 
217
208
  // src/components/warmup.tsx
218
- import { forwardRef as forwardRef6, useInsertionEffect as useInsertionEffect6 } from "react";
209
+ import { forwardRef as forwardRef5, useInsertionEffect as useInsertionEffect5 } from "react";
219
210
  import { jsx as jsx7, jsxs } from "react/jsx-runtime";
220
- var Warmup = forwardRef6(
211
+ var Warmup = forwardRef5(
221
212
  function Warmup2({ rows, columns, as: Tag = "div", className, children, ...props }, ref) {
222
- useInsertionEffect6(injectStyles, []);
213
+ useInsertionEffect5(injectStyles, []);
223
214
  const merged = className ? `concertina-warmup ${className}` : "concertina-warmup";
224
215
  const count = columns ? rows * columns : rows;
225
216
  const cells = Array.from({ length: count }, (_, i) => /* @__PURE__ */ jsxs("div", { className: "concertina-warmup-bone", children: [
@@ -252,19 +243,19 @@ function EnsembleInner({
252
243
  className,
253
244
  ...props
254
245
  }, ref) {
255
- useInsertionEffect7(injectStyles, []);
246
+ useInsertionEffect6(injectStyles, []);
256
247
  const { showWarmup, exiting } = useWarmupExit(loading, exitDuration);
257
248
  const warmupClass = exiting ? className ? `concertina-warmup-exiting ${className}` : "concertina-warmup-exiting" : className;
258
249
  return /* @__PURE__ */ jsx8(Gigbag, { ref, axis: "height", as: Tag, ...props, children: showWarmup ? /* @__PURE__ */ jsx8(Warmup, { rows: stubCount, className: warmupClass }) : /* @__PURE__ */ jsx8(Tag, { className, children: items.map(renderItem) }) });
259
250
  }
260
- var Ensemble = forwardRef7(EnsembleInner);
251
+ var Ensemble = forwardRef6(EnsembleInner);
261
252
 
262
253
  // src/components/warmup-line.tsx
263
- import { forwardRef as forwardRef8, useInsertionEffect as useInsertionEffect8 } from "react";
254
+ import { forwardRef as forwardRef7, useInsertionEffect as useInsertionEffect7 } from "react";
264
255
  import { jsx as jsx9 } from "react/jsx-runtime";
265
- var WarmupLine = forwardRef8(
256
+ var WarmupLine = forwardRef7(
266
257
  function WarmupLine2({ as: Tag = "div", className, ...props }, ref) {
267
- useInsertionEffect8(injectStyles, []);
258
+ useInsertionEffect7(injectStyles, []);
268
259
  const merged = className ? `concertina-warmup-line ${className}` : "concertina-warmup-line";
269
260
  return /* @__PURE__ */ jsx9(Tag, { ref, className: merged, ...props });
270
261
  }
@@ -272,8 +263,8 @@ var WarmupLine = forwardRef8(
272
263
 
273
264
  // src/components/glide.tsx
274
265
  import {
275
- forwardRef as forwardRef9,
276
- useInsertionEffect as useInsertionEffect9
266
+ forwardRef as forwardRef8,
267
+ useInsertionEffect as useInsertionEffect8
277
268
  } from "react";
278
269
 
279
270
  // src/primitives/use-presence.ts
@@ -306,9 +297,9 @@ function usePresence(show) {
306
297
 
307
298
  // src/components/glide.tsx
308
299
  import { jsx as jsx10 } from "react/jsx-runtime";
309
- var Glide = forwardRef9(
300
+ var Glide = forwardRef8(
310
301
  function Glide2({ show, as: Tag = "div", className, children, ...props }, ref) {
311
- useInsertionEffect9(injectStyles, []);
302
+ useInsertionEffect8(injectStyles, []);
312
303
  const { mounted, phase, onAnimationEnd } = usePresence(show);
313
304
  if (!mounted) return null;
314
305
  const phaseClass = phase === "entering" ? "concertina-glide-entering" : phase === "exiting" ? "concertina-glide-exiting" : "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "concertina",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "React toolkit for layout stability.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",