@noya-app/noya-designsystem 0.1.28 → 0.1.29

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.mjs CHANGED
@@ -15048,7 +15048,7 @@ var TreeView;
15048
15048
 
15049
15049
  // src/components/WorkspaceLayout.tsx
15050
15050
  import { useKeyboardShortcuts as useKeyboardShortcuts3 } from "@noya-app/noya-keymap";
15051
- import React71, { forwardRef as forwardRef20, useImperativeHandle as useImperativeHandle4, useRef as useRef22 } from "react";
15051
+ import React71, { forwardRef as forwardRef20, memo as memo32, useImperativeHandle as useImperativeHandle4, useRef as useRef22 } from "react";
15052
15052
  import {
15053
15053
  Panel,
15054
15054
  PanelGroup,
@@ -15189,7 +15189,7 @@ function usePreservePanelSize(panelGroupRef, setPanelLayoutState) {
15189
15189
  }
15190
15190
 
15191
15191
  // src/components/WorkspaceLayout.tsx
15192
- var WorkspaceLayout = forwardRef20(function WorkspaceLayout2({
15192
+ var WorkspaceLayoutWithTheme = forwardRef20(function WorkspaceLayoutWithTheme2({
15193
15193
  autoSavePrefix,
15194
15194
  leftSidebarContent: leftPanelContent,
15195
15195
  children: centerPanelContent,
@@ -15370,6 +15370,9 @@ var WorkspaceLayout = forwardRef20(function WorkspaceLayout2({
15370
15370
  )
15371
15371
  );
15372
15372
  });
15373
+ var WorkspaceLayout = memo32(function WorkspaceLayout2(props) {
15374
+ return /* @__PURE__ */ React71.createElement(DesignSystemThemeProvider, null, /* @__PURE__ */ React71.createElement(WorkspaceLayoutWithTheme, { ...props }));
15375
+ });
15373
15376
 
15374
15377
  // src/hooks/usePlatform.ts
15375
15378
  function usePlatform() {
@@ -15413,7 +15416,7 @@ var SUPPORTED_CANVAS_UPLOAD_TYPES = [
15413
15416
 
15414
15417
  // src/components/ArrayController.tsx
15415
15418
  import { range as range2 } from "@noya-app/noya-utils";
15416
- import React73, { memo as memo33, useCallback as useCallback27, useMemo as useMemo24 } from "react";
15419
+ import React73, { memo as memo34, useCallback as useCallback27, useMemo as useMemo24 } from "react";
15417
15420
  import styled36, { useTheme as useTheme5 } from "styled-components";
15418
15421
 
15419
15422
  // src/components/InspectorPrimitives.tsx
@@ -15432,7 +15435,7 @@ __export(InspectorPrimitives_exports, {
15432
15435
  Title: () => Title3,
15433
15436
  VerticalSeparator: () => VerticalSeparator
15434
15437
  });
15435
- import React72, { memo as memo32 } from "react";
15438
+ import React72, { memo as memo33 } from "react";
15436
15439
  import styled35, { useTheme as useTheme4 } from "styled-components";
15437
15440
  var Section2 = styled35.div(({ theme, $padding = "10px", $gap }) => ({
15438
15441
  flex: "0 0 auto",
@@ -15500,7 +15503,7 @@ var RowLabel = styled35.span(({ theme, $textStyle }) => ({
15500
15503
  // Button height
15501
15504
  alignItems: "center"
15502
15505
  }));
15503
- var LabeledRow = memo32(function LabeledRow2({
15506
+ var LabeledRow = memo33(function LabeledRow2({
15504
15507
  id,
15505
15508
  children: children2,
15506
15509
  label,
@@ -15510,7 +15513,7 @@ var LabeledRow = memo32(function LabeledRow2({
15510
15513
  }) {
15511
15514
  return /* @__PURE__ */ React72.createElement(Row2, { id }, /* @__PURE__ */ React72.createElement(Column2, null, /* @__PURE__ */ React72.createElement(RowLabel, { $textStyle: labelTextStyle }, label, right && /* @__PURE__ */ React72.createElement(Spacer.Horizontal, null), right), /* @__PURE__ */ React72.createElement(Row2, { $gap: gap }, children2)));
15512
15515
  });
15513
- var LabeledSliderRow = memo32(function LabeledRow3({
15516
+ var LabeledSliderRow = memo33(function LabeledRow3({
15514
15517
  children: children2,
15515
15518
  label
15516
15519
  }) {
@@ -15527,7 +15530,7 @@ var ElementRow = styled36.div({
15527
15530
  var ItemContainer2 = styled36.div({
15528
15531
  position: "relative"
15529
15532
  });
15530
- var ArrayController = memo33(function ArrayController2({
15533
+ var ArrayController = memo34(function ArrayController2({
15531
15534
  id,
15532
15535
  items,
15533
15536
  title,
@@ -15621,11 +15624,11 @@ var ArrayController = memo33(function ArrayController2({
15621
15624
 
15622
15625
  // src/components/DimensionInput.tsx
15623
15626
  import { round } from "@noya-app/noya-utils";
15624
- import React74, { memo as memo34, useCallback as useCallback28 } from "react";
15627
+ import React74, { memo as memo35, useCallback as useCallback28 } from "react";
15625
15628
  function getNewValue(value, mode, delta) {
15626
15629
  return delta === void 0 ? value : mode === "replace" ? delta : value + delta;
15627
15630
  }
15628
- var DimensionInput = memo34(function DimensionInput2({
15631
+ var DimensionInput = memo35(function DimensionInput2({
15629
15632
  id,
15630
15633
  value,
15631
15634
  onSetValue,