react-devbelt 0.4.1 → 0.5.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.
@@ -143,7 +143,7 @@ import {
143
143
  usePrimitive,
144
144
  valueMissingMessage,
145
145
  watchFormDisabled
146
- } from "./chunk-EYWS436C.js";
146
+ } from "./chunk-6FUPE5IB.js";
147
147
  import {
148
148
  useToolbar
149
149
  } from "./chunk-6TOYYHSR.js";
@@ -6506,8 +6506,8 @@ function ViewportItem() {
6506
6506
  /* @__PURE__ */ jsxs13(
6507
6507
  TooltipTrigger,
6508
6508
  {
6509
- render: /* @__PURE__ */ jsx24(Toggle, { value: v.id }),
6510
- className: `${toolbarItemClass} px-3 data-pressed:text-fg-inverse data-pressed:hover:bg-transparent`,
6509
+ render: /* @__PURE__ */ jsx24(Toggle, { value: v.id, "aria-label": v.label }),
6510
+ className: `${toolbarItemClass} px-3 max-sm:px-1.5 data-pressed:text-fg-inverse data-pressed:[&_svg]:text-fg-inverse! data-pressed:hover:bg-transparent`,
6511
6511
  children: [
6512
6512
  v.id === activeId ? /* @__PURE__ */ jsx24(
6513
6513
  motion3.span,
@@ -6518,7 +6518,8 @@ function ViewportItem() {
6518
6518
  className: "pointer-events-none absolute inset-0 -z-10 rounded-full bg-inverse shadow-sm"
6519
6519
  }
6520
6520
  ) : null,
6521
- v.label
6521
+ /* @__PURE__ */ jsx24(ViewportGlyph, { id: v.id, className: "size-4 sm:hidden" }),
6522
+ /* @__PURE__ */ jsx24("span", { className: "max-sm:hidden", children: v.label })
6522
6523
  ]
6523
6524
  }
6524
6525
  ),
@@ -6606,6 +6607,10 @@ var VIEWPORT_ICONS = {
6606
6607
  pc: MonitorIcon,
6607
6608
  custom: RulerIcon
6608
6609
  };
6610
+ function ViewportGlyph({ id, className }) {
6611
+ const Icon = VIEWPORT_ICONS[id] ?? MonitorIcon;
6612
+ return /* @__PURE__ */ jsx24(Icon, { className, "aria-hidden": "true" });
6613
+ }
6609
6614
  function ViewportMenuSection() {
6610
6615
  const state3 = useViewportState();
6611
6616
  return /* @__PURE__ */ jsxs13(
@@ -8163,4 +8168,4 @@ export {
8163
8168
  storage,
8164
8169
  defaultPlugins
8165
8170
  };
8166
- //# sourceMappingURL=chunk-VVSEYZHW.js.map
8171
+ //# sourceMappingURL=chunk-AYUYZKKU.js.map