@devtable/settings-form 9.14.2 → 9.15.0

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.
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { IStyles } from './styles';
3
+ interface IAddSQLSnippet {
4
+ styles?: IStyles;
5
+ onSuccess: () => void;
6
+ }
7
+ export declare function AddSQLSnippet({ onSuccess, styles }: IAddSQLSnippet): JSX.Element;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { IStyles } from './styles';
3
+ interface IDeleteSQLSnippet {
4
+ id: string;
5
+ onSuccess: () => void;
6
+ styles?: IStyles;
7
+ }
8
+ export declare function DeleteSQLSnippet({ id, onSuccess, styles }: IDeleteSQLSnippet): JSX.Element;
9
+ export {};
@@ -0,0 +1,4 @@
1
+ export * from './add-sql_snippet';
2
+ export * from './update-sql_snippet';
3
+ export * from './sql_snippet-list';
4
+ export * from './delete-sql_snippet';
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { IStyles } from './styles';
3
+ interface ISQLSnippetList {
4
+ styles?: IStyles;
5
+ config: ISettingsFormConfig;
6
+ }
7
+ export declare function SQLSnippetList({ styles, config }: ISQLSnippetList): JSX.Element;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ import { MantineSize } from '@mantine/core';
2
+ export interface IStyles {
3
+ size: MantineSize;
4
+ spacing: MantineSize;
5
+ button: {
6
+ size: MantineSize;
7
+ };
8
+ }
9
+ export declare const defaultStyles: IStyles;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { TUpdateSQLSnippetPayload } from '../api-caller/sql_snippet.typed';
3
+ import { IStyles } from './styles';
4
+ declare type TFormValues = TUpdateSQLSnippetPayload;
5
+ declare type TUpdateSQLSnippetProps = {
6
+ styles?: IStyles;
7
+ onSuccess: () => void;
8
+ } & TFormValues;
9
+ export declare function UpdateSQLSnippet({ onSuccess, styles, ...rest }: TUpdateSQLSnippetProps): JSX.Element;
10
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/settings-form",
3
- "version": "9.14.2",
3
+ "version": "9.15.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",