conversion-ui-library 1.0.7 → 1.0.8

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,73 @@
1
+ import { OnMount } from '@monaco-editor/react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import * as React from "react";
4
+ declare const editorFieldVariants: (props?: ({
5
+ variant?: "outlined" | "ghost" | "filled" | null | undefined;
6
+ error?: boolean | null | undefined;
7
+ success?: boolean | null | undefined;
8
+ disabled?: boolean | null | undefined;
9
+ } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
10
+ export interface EditorTextFieldProps extends VariantProps<typeof editorFieldVariants> {
11
+ /**
12
+ * The value of the editor
13
+ */
14
+ value?: string;
15
+ /**
16
+ * Default value if uncontrolled
17
+ */
18
+ defaultValue?: string;
19
+ /**
20
+ * Callback when editor value changes
21
+ */
22
+ onChange?: (value: string | undefined) => void;
23
+ /**
24
+ * Label text displayed above the editor
25
+ */
26
+ label?: string;
27
+ /**
28
+ * Helper text displayed below the editor
29
+ */
30
+ helperText?: string;
31
+ /**
32
+ * Whether the field is required
33
+ */
34
+ required?: boolean;
35
+ /**
36
+ * Whether the editor is disabled
37
+ */
38
+ disabled?: boolean;
39
+ /**
40
+ * Programming language for syntax highlighting
41
+ * @default "javascript"
42
+ */
43
+ language?: "javascript" | "typescript" | "python" | "java" | "json" | "html" | "css" | "sql" | "markdown" | "yaml" | "xml" | "plaintext";
44
+ /**
45
+ * Editor theme
46
+ * @default "light"
47
+ */
48
+ theme?: "light" | "vs-dark" | "hc-black";
49
+ /**
50
+ * Height of the editor
51
+ * @default "200px"
52
+ */
53
+ height?: string | number;
54
+ /**
55
+ * Placeholder text when editor is empty
56
+ */
57
+ placeholder?: string;
58
+ /**
59
+ * Additional className for the container
60
+ */
61
+ className?: string;
62
+ /**
63
+ * Options to pass to Monaco Editor
64
+ */
65
+ options?: any;
66
+ /**
67
+ * Callback when editor is mounted
68
+ */
69
+ onMount?: OnMount;
70
+ }
71
+ export declare const EditorTextField: React.ForwardRefExoticComponent<EditorTextFieldProps & React.RefAttributes<HTMLDivElement>>;
72
+ export {};
73
+ //# sourceMappingURL=EditorTextField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditorTextField.d.ts","sourceRoot":"","sources":["../../../src/components/EditorTextField/EditorTextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAe,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAGvD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,QAAA,MAAM,mBAAmB;;;;;mFA0BxB,CAAC;AAEF,MAAM,WAAW,oBACf,SAAQ,YAAY,CAAC,OAAO,mBAAmB,CAAC;IAChD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EACL,YAAY,GACZ,YAAY,GACZ,QAAQ,GACR,MAAM,GACN,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,UAAU,GACV,MAAM,GACN,KAAK,GACL,WAAW,CAAC;IAChB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;IACzC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,GAAG,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,eAAe,6FA8F3B,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { EditorTextField } from './EditorTextField';
3
+ declare const meta: Meta<typeof EditorTextField>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof EditorTextField>;
6
+ export declare const Default: Story;
7
+ export declare const WithLabel: Story;
8
+ export declare const TypeScript: Story;
9
+ export declare const JSON: Story;
10
+ export declare const Python: Story;
11
+ export declare const SQL: Story;
12
+ export declare const DarkTheme: Story;
13
+ export declare const WithError: Story;
14
+ export declare const WithSuccess: Story;
15
+ export declare const Disabled: Story;
16
+ export declare const Required: Story;
17
+ export declare const Variants: Story;
18
+ export declare const TallEditor: Story;
19
+ export declare const Controlled: Story;
20
+ export declare const MultipleLanguages: Story;
21
+ //# sourceMappingURL=EditorTextField.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditorTextField.stories.d.ts","sourceRoot":"","sources":["../../../src/components/EditorTextField/EditorTextField.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,eAAe,CA6DtC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9C,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAOvB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAwBxB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAclB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAcpB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,KAcjB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAoBvB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAQvB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAQzB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KA0BtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAgDxB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAoBxB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAuB/B,CAAC"}
@@ -6,6 +6,11 @@ declare const meta: {
6
6
  parameters: {
7
7
  layout: string;
8
8
  };
9
+ args: {
10
+ onConfirm: import('@vitest/spy').Mock<(...args: any[]) => any>;
11
+ onCancel: import('@vitest/spy').Mock<(...args: any[]) => any>;
12
+ onOpenChange: import('@vitest/spy').Mock<(...args: any[]) => any>;
13
+ };
9
14
  argTypes: {
10
15
  open: {
11
16
  control: "boolean";
@@ -25,12 +30,6 @@ declare const meta: {
25
30
  closable: {
26
31
  control: "boolean";
27
32
  };
28
- onConfirm: {
29
- action: string;
30
- };
31
- onCancel: {
32
- action: string;
33
- };
34
33
  };
35
34
  };
36
35
  export default meta;
@@ -1 +1 @@
1
- {"version":3,"file":"Popup.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAIhC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBoB,CAAC;AAE/B,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAInC,eAAO,MAAM,WAAW,EAAE,KAiEzB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAoCzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAoC9B,CAAC"}
1
+ {"version":3,"file":"Popup.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAIhC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBoB,CAAC;AAE/B,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAInC,eAAO,MAAM,WAAW,EAAE,KAiEzB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAoCzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAoC9B,CAAC"}