@process.co/ui 0.0.5 → 0.0.6

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.d.cts CHANGED
@@ -1,51 +1,7 @@
1
- import * as React from 'react';
2
1
  import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
-
5
- interface ExpressionContext {
6
- [key: string]: any;
7
- }
8
- interface ExpressionAST {
9
- kind: number;
10
- color?: string;
11
- left?: ExpressionAST;
12
- right?: ExpressionAST;
13
- name?: ExpressionAST;
14
- argumentExpression?: ExpressionAST;
15
- arguments?: ExpressionAST[];
16
- expression?: ExpressionAST;
17
- escapedText?: string;
18
- text?: string;
19
- operator?: string;
20
- type?: string;
21
- }
22
-
23
- interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
24
- }
25
- interface ExpressionResult {
26
- value: any;
27
- ast: ExpressionAST;
28
- error?: string;
29
- isValid: boolean;
30
- validation: {
31
- syntax: boolean;
32
- expression: boolean;
33
- context: boolean;
34
- type?: boolean;
35
- security?: boolean;
36
- };
37
- }
38
- declare function Input({ className, expectedType, ...props }: Omit<React.ComponentProps<'input'>, 'onChange'> & {
39
- error?: boolean;
40
- label?: string;
41
- rapperClassName?: string;
42
- expressionContext?: ExpressionContext;
43
- expressionResult?: ExpressionResult;
44
- isEvaluating?: boolean;
45
- isExpressionValid?: boolean;
46
- expectedType?: string;
47
- onChange?: (value: any) => void;
48
- }): React.JSX.Element;
4
+ export { i as fields } from './index-C1wa8N9L.cjs';
49
5
 
50
6
  declare const buttonVariants: (props?: ({
51
7
  variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
@@ -55,4 +11,4 @@ declare function Button({ className, variant, size, asChild, ...props }: React.C
55
11
  asChild?: boolean;
56
12
  }): React.JSX.Element;
57
13
 
58
- export { Button, type ExpressionResult, Input, type InputProps, buttonVariants };
14
+ export { Button, buttonVariants };
package/dist/index.d.ts CHANGED
@@ -1,51 +1,7 @@
1
- import * as React from 'react';
2
1
  import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
-
5
- interface ExpressionContext {
6
- [key: string]: any;
7
- }
8
- interface ExpressionAST {
9
- kind: number;
10
- color?: string;
11
- left?: ExpressionAST;
12
- right?: ExpressionAST;
13
- name?: ExpressionAST;
14
- argumentExpression?: ExpressionAST;
15
- arguments?: ExpressionAST[];
16
- expression?: ExpressionAST;
17
- escapedText?: string;
18
- text?: string;
19
- operator?: string;
20
- type?: string;
21
- }
22
-
23
- interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
24
- }
25
- interface ExpressionResult {
26
- value: any;
27
- ast: ExpressionAST;
28
- error?: string;
29
- isValid: boolean;
30
- validation: {
31
- syntax: boolean;
32
- expression: boolean;
33
- context: boolean;
34
- type?: boolean;
35
- security?: boolean;
36
- };
37
- }
38
- declare function Input({ className, expectedType, ...props }: Omit<React.ComponentProps<'input'>, 'onChange'> & {
39
- error?: boolean;
40
- label?: string;
41
- rapperClassName?: string;
42
- expressionContext?: ExpressionContext;
43
- expressionResult?: ExpressionResult;
44
- isEvaluating?: boolean;
45
- isExpressionValid?: boolean;
46
- expectedType?: string;
47
- onChange?: (value: any) => void;
48
- }): React.JSX.Element;
4
+ export { i as fields } from './index-C1wa8N9L.js';
49
5
 
50
6
  declare const buttonVariants: (props?: ({
51
7
  variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
@@ -55,4 +11,4 @@ declare function Button({ className, variant, size, asChild, ...props }: React.C
55
11
  asChild?: boolean;
56
12
  }): React.JSX.Element;
57
13
 
58
- export { Button, type ExpressionResult, Input, type InputProps, buttonVariants };
14
+ export { Button, buttonVariants };