Skip to content

Releases: pmndrs/leva

[email protected]

03 Apr 14:30
5e67844
Compare
Choose a tag to compare

Patch Changes

  • 50d850a: BREAKING CHANGE: Replace hideTitleBar with titleBar option.

    For hiding the title bar the usages of <Leva hideTitleBar /> must be replaced with <Leva titleBar={false} />.

    It is now possible to overwrite the six dots rendered as the title by default by providing a title option to the titleBar property.

    <Leva
      titleBar={{
        title: 'Some Title',
      }}
    />

    Its is now possible to disable dragging of the panel via the drag option to the titleBar property.

    <Leva
      titleBar={{
        drag: false,
      }}
    />

    It is now possible to enable or disable filtering of the panel values via the filter option on the titleBar property.

    <Leva
      titleBar={{
        filter: true,
      }}
    />

[email protected]

29 Mar 10:35
a63301d
Compare
Choose a tag to compare

Patch Changes

  • e0fdefc: types: fix beautifier union type.

[email protected]

28 Mar 20:40
3d0fbd5
Compare
Choose a tag to compare

Patch Changes

  • a7f9bf1: types: don't use union type when not using objects as plugin function args.

[email protected]

28 Mar 15:11
c53a986
Compare
Choose a tag to compare

Patch Changes

  • 7fd9f92: feat: allow input options to be spread inside custom plugin.

  • b4aa43d: Fix: add empty key warning.

  • 7fd9f92: fix: correct onUpdate for a blurred input: previously bluring an input from a
    store while selecting a second store would commit the change on the second
    store.

    fix: return number previous value when field is empty.

    types: (internal) fix default useInputContext types.

  • e21f2fe: fix: slider position overflowing with range input.

[email protected]

24 Mar 14:54
e3fb2b0
Compare
Choose a tag to compare

Patch Changes

  • c997410: Plugin: add the Bezier plugin

    import { bezier } from '@leva-ui/plugin-bezier'
    useControls({ curve: bezier([0.25, 0.1, 0.25, 1]) })

@leva-ui/[email protected]

24 Mar 14:54
e3fb2b0
Compare
Choose a tag to compare

Patch Changes

  • c997410: Plugin: add the Bezier plugin

    import { bezier } from '@leva-ui/plugin-bezier'
    useControls({ curve: bezier([0.25, 0.1, 0.25, 1]) })
  • Updated dependencies [c997410]

@leva-ui/[email protected]

24 Mar 14:54
e3fb2b0
Compare
Choose a tag to compare

Patch Changes

  • c997410: Plugin: add the Bezier plugin

    import { bezier } from '@leva-ui/plugin-bezier'
    useControls({ curve: bezier([0.25, 0.1, 0.25, 1]) })
  • Updated dependencies [c997410]

@leva-ui/[email protected]

24 Mar 18:01
093b629
Compare
Choose a tag to compare

Patch Changes

  • 26ead12: Feat: add cssEasing to returned prop

@leva-ui/[email protected]

24 Mar 14:54
e3fb2b0
Compare
Choose a tag to compare

Patch Changes

  • c997410: Plugin: add the Bezier plugin

    import { bezier } from '@leva-ui/plugin-bezier'
    useControls({ curve: bezier([0.25, 0.1, 0.25, 1]) })
  • Updated dependencies [c997410]

[email protected]

21 Mar 15:22
2b10e96
Compare
Choose a tag to compare

Minor Changes

  • edc8847: Breaking: change how leva/plugin exports components.

    // before
    import { Row, Label, String } from 'leva/plugin'
    
    // after
    import { Components } from 'leva/plugin'
    const { Row, Label, String } = Components

    Feat: add useValue / useValues hooks that let an input query other inputs values.

    Feat: normalize has additional arguments to its signature:

    /**
     * @path the path of the input
     * @data the data available in the store
     */
    const normalize = (input: Input, path: string, data: Data)

    Feat: sanitize has additional arguments to its signature:

    /**
     * @path the path of the input
     * @store the store
     */
    const sanitize = (
      value: any,
      settings: Settings,
      prevValue: any,
      path: string,
      store: StoreType
    )

    Styles: better feedback when dragging number from inner label.

    Plugin: add the Plot plugin 📈

    import { plot } from '@leva-ui/plugin-plot'
    useControls({ y: plot({ expression: 'cos(x)', graph: true, boundsX: [-10, 10], boundsY: [0, 100] }) })