Customize palette to return custom elements only

is there away to return only custom palette elements without basic elements ?

It is. Your PaletteProvider's getPaletteEntries method can return a function which gets called with the current entries. Then, that function can return only your custom entries.

See example: https://github.com/bpmn-io/diagram-js/blob/77fe6a74de651e39cbac0d6bcb6368e37adf6b0c/lib/features/palette/Palette.js#L66