@snowbomb1/nova-ui 1.0.14 → 1.0.21

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.ts CHANGED
@@ -1,7 +1,10 @@
1
+ import { default as default_2 } from 'react';
2
+ import { ForwardRefExoticComponent } from 'react';
1
3
  import { JSX } from 'react/jsx-runtime';
2
4
  import { LabelHTMLAttributes } from 'react';
3
5
  import { MouseEvent as MouseEvent_2 } from 'react';
4
6
  import { ReactNode } from 'react';
7
+ import { RefAttributes } from 'react';
5
8
 
6
9
  export declare const Accordion: ({ title, children, defaultOpen }: AccordionProps) => JSX.Element;
7
10
 
@@ -49,7 +52,7 @@ export declare interface AppLayoutProps {
49
52
  children: ReactNode;
50
53
  }
51
54
 
52
- export declare const Box: ({ children, position, direction }: BoxProps) => JSX.Element;
55
+ export declare const Box: ForwardRefExoticComponent<BoxProps & RefAttributes<HTMLDivElement>>;
53
56
 
54
57
  export declare type BoxPosition = 'left' | 'right' | 'center';
55
58
 
@@ -57,6 +60,7 @@ export declare interface BoxProps {
57
60
  children: React.ReactNode;
58
61
  position?: BoxPosition;
59
62
  direction?: FlexDirection;
63
+ reverse?: boolean;
60
64
  }
61
65
 
62
66
  export declare const Button: ({ children, onClick, variant, disabled, disabledMessage, tooltipPosition, ...props }: ButtonProps) => JSX.Element;
@@ -81,7 +85,7 @@ export declare interface CheckboxProps {
81
85
  indeterminate?: boolean;
82
86
  }
83
87
 
84
- export declare const Container: ({ children, header, headerActions, footer, variant, padding, fullWidth }: ContainerProps) => JSX.Element;
88
+ export declare const Container: ForwardRefExoticComponent<ContainerProps & RefAttributes<HTMLDivElement>>;
85
89
 
86
90
  export declare type ContainerPadding = 'none' | 'sm' | 'md' | 'lg';
87
91
 
@@ -109,7 +113,7 @@ export declare interface FloatingButtonProps {
109
113
 
110
114
  export declare type FloatingButtonVariant = 'menu' | 'action';
111
115
 
112
- export declare const FormField: ({ label, helperText, error, required, disabled, children }: FormFieldProps) => JSX.Element;
116
+ export declare const FormField: ({ label, helperText, error, required, disabled, fullWidth, children }: FormFieldProps) => JSX.Element;
113
117
 
114
118
  export declare interface FormFieldProps extends LabelHTMLAttributes<HTMLLabelElement> {
115
119
  label?: string;
@@ -117,9 +121,29 @@ export declare interface FormFieldProps extends LabelHTMLAttributes<HTMLLabelEle
117
121
  error?: string;
118
122
  required?: boolean;
119
123
  disabled?: boolean;
124
+ fullWidth?: boolean;
120
125
  children: React.ReactNode;
121
126
  }
122
127
 
128
+ export declare const Grid: default_2.ForwardRefExoticComponent<GridProps & default_2.RefAttributes<HTMLDivElement>>;
129
+
130
+ export declare type GridCellDef = {
131
+ colspan: {
132
+ default: number;
133
+ sm?: number;
134
+ md?: number;
135
+ lg?: number;
136
+ };
137
+ };
138
+
139
+ export declare type GridGap = 'sm' | 'md' | 'lg';
140
+
141
+ export declare interface GridProps {
142
+ gridDefinition: GridCellDef[];
143
+ gap?: GridGap;
144
+ children: default_2.ReactNode[];
145
+ }
146
+
123
147
  export declare const Header: ({ children, variant }: HeaderProps) => JSX.Element;
124
148
 
125
149
  export declare interface HeaderProps {
@@ -129,7 +153,7 @@ export declare interface HeaderProps {
129
153
 
130
154
  export declare type HeaderVariant = 'h1' | 'h2' | 'h3' | 'h4';
131
155
 
132
- export declare const Input: ({ value, onChange, disabled, suggestions, placeholder, hideClear, label, error, required, helperText, ...props }: InputProps) => JSX.Element;
156
+ export declare const Input: ({ value, onChange, disabled, suggestions, placeholder, hideClear, label, error, required, fullWidth, helperText, ...props }: InputProps) => JSX.Element;
133
157
 
134
158
  export declare interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
135
159
  value: string | undefined;
@@ -140,6 +164,7 @@ export declare interface InputProps extends Omit<React.InputHTMLAttributes<HTMLI
140
164
  required?: boolean;
141
165
  label?: string;
142
166
  error?: string;
167
+ fullWidth?: boolean;
143
168
  helperText?: string;
144
169
  }
145
170
 
@@ -165,6 +190,8 @@ declare interface MultiSelectProps extends SharedProps {
165
190
  export declare type NavItem = {
166
191
  label: string;
167
192
  icon?: React.ReactNode;
193
+ destructive?: boolean;
194
+ type?: 'nav' | 'action';
168
195
  onClick: () => void;
169
196
  };
170
197
 
@@ -189,6 +216,7 @@ declare interface SharedProps {
189
216
  required?: boolean;
190
217
  label?: string;
191
218
  helperText?: string;
219
+ fullWidth?: boolean;
192
220
  error?: string;
193
221
  }
194
222