@qodo/design-system 0.8.0 → 0.9.5

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
@@ -173,6 +173,45 @@ export declare function DialogTitle({ className, ...props }: React_2.ComponentPr
173
173
 
174
174
  export declare function DialogTrigger({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Trigger>): JSX_2.Element;
175
175
 
176
+ export declare interface EmailChipProps {
177
+ email: string;
178
+ isValid: boolean;
179
+ onRemove: (email: string) => void;
180
+ }
181
+
182
+ export declare interface EmailChipsActionsProps {
183
+ hasContent: boolean;
184
+ onClearAll: () => void;
185
+ emails: EmailItem[];
186
+ invalidEmailError: string;
187
+ invalidDomainError: string;
188
+ }
189
+
190
+ export declare const EmailChipsInput: ({ onChange, disabled, inviteMembersPlaceholder, inviteMembersDisabledTooltip, organization, inputClassName: propsInputClassName, chipClassName, wrapperClassName: propsWrapperClassName, invalidEmailError, invalidDomainError, }: EmailChipsInputProps) => JSX_2.Element;
191
+
192
+ export declare type EmailChipsInputProps = {
193
+ onChange?: (emails: EmailItem[]) => void;
194
+ disabled: boolean;
195
+ inviteMembersPlaceholder: (args: {
196
+ domain: string;
197
+ }) => string;
198
+ inviteMembersDisabledTooltip: string;
199
+ organization?: {
200
+ domains?: string[];
201
+ };
202
+ inputClassName?: string;
203
+ wrapperClassName?: string;
204
+ chipClassName?: string;
205
+ invalidEmailError?: string;
206
+ invalidDomainError?: string;
207
+ };
208
+
209
+ export declare interface EmailItem {
210
+ email: string;
211
+ isValid: boolean;
212
+ isDomainValid?: boolean;
213
+ }
214
+
176
215
  export declare type EmptyStateProps = {
177
216
  title?: string;
178
217
  description?: string;
@@ -310,7 +349,7 @@ export declare const Steps: {
310
349
 
311
350
  export declare function Switch({ className, ...props }: React_2.ComponentProps<typeof SwitchPrimitive.Root>): JSX_2.Element;
312
351
 
313
- export declare const Table: <T extends RowData>({ table, emptyStateComponent, noResultsComponent, errorComponent, isLoading, isError, onRowClick, emptyStateTitle, emptyStateDescription, noResultsTitle, }: TableProps<T>) => JSX_2.Element;
352
+ export declare const Table: <T extends RowData>({ table, emptyStateComponent, noResultsComponent, errorComponent, isLoading, isError, onRowClick, emptyStateTitle, emptyStateDescription, noResultsTitle, wrapperClassName, }: TableProps<T>) => JSX_2.Element;
314
353
 
315
354
  export declare type TableProps<T extends RowData> = {
316
355
  table: Table_2<T>;
@@ -323,6 +362,7 @@ export declare type TableProps<T extends RowData> = {
323
362
  emptyStateTitle?: string;
324
363
  emptyStateDescription?: string;
325
364
  noResultsTitle?: string;
365
+ wrapperClassName?: string;
326
366
  };
327
367
 
328
368
  export declare function Toggle({ className, variant, size, ...props }: React_2.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): JSX_2.Element;