@newtonedev/editor 0.1.1 → 0.1.2

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.js CHANGED
@@ -1703,8 +1703,15 @@ function FontsSection({ state, dispatch }) {
1703
1703
  }
1704
1704
  function OthersSection({ state, dispatch }) {
1705
1705
  const tokens = useTokens();
1706
- const density = state.spacing?.density ?? 0.5;
1706
+ const spacingPreset = state.spacing?.preset ?? "md";
1707
1707
  const intensity = state.roundness?.intensity ?? 0.5;
1708
+ const spacingOptions = [
1709
+ { value: "xs", label: "Extra Small" },
1710
+ { value: "sm", label: "Small" },
1711
+ { value: "md", label: "Medium" },
1712
+ { value: "lg", label: "Large" },
1713
+ { value: "xl", label: "Extra Large" }
1714
+ ];
1708
1715
  return /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 16 }, children: [
1709
1716
  /* @__PURE__ */ jsxs("div", { children: [
1710
1717
  /* @__PURE__ */ jsx(
@@ -1722,14 +1729,12 @@ function OthersSection({ state, dispatch }) {
1722
1729
  }
1723
1730
  ),
1724
1731
  /* @__PURE__ */ jsx(
1725
- Slider,
1732
+ Select,
1726
1733
  {
1727
- value: Math.round(density * 100),
1728
- onValueChange: (v) => dispatch({ type: "SET_SPACING_DENSITY", density: v / 100 }),
1729
- min: 0,
1730
- max: 100,
1731
- label: "Density",
1732
- showValue: true
1734
+ value: spacingPreset,
1735
+ onValueChange: (preset) => dispatch({ type: "SET_SPACING_PRESET", preset }),
1736
+ options: spacingOptions,
1737
+ label: "Preset"
1733
1738
  }
1734
1739
  )
1735
1740
  ] }),