@newtonedev/editor 0.1.1 → 0.1.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"OthersSection.d.ts","sourceRoot":"","sources":["../../../src/components/sections/OthersSection.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACzD;AAED,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,kBAAkB,2CA2DpE"}
1
+ {"version":3,"file":"OthersSection.d.ts","sourceRoot":"","sources":["../../../src/components/sections/OthersSection.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAiB,MAAM,0BAA0B,CAAC;AACjF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACzD;AAED,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,kBAAkB,2CAiEpE"}
package/dist/index.cjs CHANGED
@@ -1705,8 +1705,15 @@ function FontsSection({ state, dispatch }) {
1705
1705
  }
1706
1706
  function OthersSection({ state, dispatch }) {
1707
1707
  const tokens = components.useTokens();
1708
- const density = state.spacing?.density ?? 0.5;
1708
+ const spacingPreset = state.spacing?.preset ?? "md";
1709
1709
  const intensity = state.roundness?.intensity ?? 0.5;
1710
+ const spacingOptions = [
1711
+ { value: "xs", label: "Extra Small" },
1712
+ { value: "sm", label: "Small" },
1713
+ { value: "md", label: "Medium" },
1714
+ { value: "lg", label: "Large" },
1715
+ { value: "xl", label: "Extra Large" }
1716
+ ];
1710
1717
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 16 }, children: [
1711
1718
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1712
1719
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -1724,14 +1731,12 @@ function OthersSection({ state, dispatch }) {
1724
1731
  }
1725
1732
  ),
1726
1733
  /* @__PURE__ */ jsxRuntime.jsx(
1727
- components.Slider,
1734
+ components.Select,
1728
1735
  {
1729
- value: Math.round(density * 100),
1730
- onValueChange: (v) => dispatch({ type: "SET_SPACING_DENSITY", density: v / 100 }),
1731
- min: 0,
1732
- max: 100,
1733
- label: "Density",
1734
- showValue: true
1736
+ value: spacingPreset,
1737
+ onValueChange: (preset) => dispatch({ type: "SET_SPACING_PRESET", preset }),
1738
+ options: spacingOptions,
1739
+ label: "Preset"
1735
1740
  }
1736
1741
  )
1737
1742
  ] }),