@theroutingcompany/components 0.0.148-alpha.7 → 0.0.149-alpha.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.
@@ -15384,7 +15384,8 @@ const Ed = {
15384
15384
  color: ${f.color_deprecated_fill_inverse_hover};
15385
15385
  }
15386
15386
 
15387
- &[data-state~='pressed'] {
15387
+ &[data-state~='pressed'],
15388
+ &[data-active='true'] {
15388
15389
  background: ${f.color_deprecated_fill_primary_pressed};
15389
15390
  }
15390
15391
 
@@ -15461,25 +15462,29 @@ const Ed = {
15461
15462
  autoFocus: s,
15462
15463
  children: c,
15463
15464
  style: d = {},
15464
- ...p
15465
- } = e, h = qr(), v = u ?? h, { buttonProps: g, isPressed: b } = Jn(
15465
+ as: p,
15466
+ active: h,
15467
+ ...v
15468
+ } = e, g = qr(), b = u ?? g, { buttonProps: y, isPressed: D } = Jn(
15466
15469
  {
15467
15470
  onPress: l,
15468
- isDisabled: v,
15471
+ isDisabled: b,
15469
15472
  autoFocus: s
15470
15473
  },
15471
15474
  r
15472
- ), { isFocusVisible: y, focusProps: D } = ga({ autoFocus: s }), E = Hb({ isFocusVisible: y, isPressed: b }), x = bR[i], S = A1[a], w = Ed[o], P = Re(D, p, g, {
15473
- "data-state": E
15475
+ ), { isFocusVisible: E, focusProps: x } = ga({ autoFocus: s }), S = Hb({ isFocusVisible: E, isPressed: D }), w = bR[i], P = A1[a], k = Ed[o], B = Re(x, v, y, {
15476
+ "data-state": S,
15477
+ "data-active": h ? "true" : "false"
15474
15478
  });
15475
15479
  return /* @__PURE__ */ m(
15476
- x,
15480
+ w,
15477
15481
  {
15478
15482
  ref: r,
15479
- ...P,
15483
+ ...B,
15484
+ as: p,
15480
15485
  style: {
15481
- "--icon-button-size": w,
15482
- "--icon-button-border-radius": S,
15486
+ "--icon-button-size": k,
15487
+ "--icon-button-border-radius": P,
15483
15488
  ...d
15484
15489
  },
15485
15490
  children: /* @__PURE__ */ m(dl, { label: n, children: c })
@@ -18543,7 +18548,7 @@ const BI = mt`
18543
18548
  line-height: ${f.line_height_deprecated_133};
18544
18549
  font-family: ${f.font_family_pingo};
18545
18550
  max-width: ${f.sizing_1000};
18546
- z-index: 30;
18551
+ z-index: 2100;
18547
18552
  animation-duration: 400ms;
18548
18553
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
18549
18554
 
@@ -30229,25 +30234,35 @@ const f0 = H.createContext({
30229
30234
  position: relative;
30230
30235
  width: inherit;
30231
30236
  `, ci = Me((e, t) => {
30232
- const [r, n] = re(!1), [o, i] = re(null), a = vn(t);
30237
+ const [r, n] = re(!1), [o, i] = re(null), a = vn(t), u = e.isOpen !== void 0, l = u ? e.isOpen ?? !1 : r, s = ne(
30238
+ (c) => {
30239
+ var d;
30240
+ if (u) {
30241
+ const p = typeof c == "function" ? c(e.isOpen ?? !1) : c;
30242
+ (d = e.onOpenChange) == null || d.call(e, p);
30243
+ } else
30244
+ n(c);
30245
+ },
30246
+ [u, e]
30247
+ );
30233
30248
  return ue(() => {
30234
- const u = document.getElementById(d0);
30235
- function l(s) {
30236
- const c = s.target;
30237
- a.current && !a.current.contains(c) && !(u != null && u.contains(c)) && n(!1);
30249
+ const c = document.getElementById(d0);
30250
+ function d(p) {
30251
+ const h = p.target;
30252
+ a.current && !a.current.contains(h) && !(c != null && c.contains(h)) && s(!1);
30238
30253
  }
30239
- return document.addEventListener("mousedown", l), () => {
30240
- document.removeEventListener("mousedown", l);
30254
+ return document.addEventListener("mousedown", d), () => {
30255
+ document.removeEventListener("mousedown", d);
30241
30256
  };
30242
- }, [a]), /* @__PURE__ */ m(
30257
+ }, [a, s]), /* @__PURE__ */ m(
30243
30258
  f0.Provider,
30244
30259
  {
30245
30260
  value: {
30246
30261
  menuRef: a,
30247
30262
  triggerRef: o,
30248
30263
  setTriggerRef: i,
30249
- open: r,
30250
- setOpen: n,
30264
+ open: l,
30265
+ setOpen: s,
30251
30266
  direction: e.direction ?? "Down"
30252
30267
  /* Down */
30253
30268
  },