@wacht/jsx 1.0.0-beta.49 → 1.0.0-beta.50

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
@@ -29,18 +29,15 @@ import { default as default_2 } from 'react';
29
29
  import { DeleteEndpointResponse } from '@wacht/types';
30
30
  import { Deployment } from '@wacht/types';
31
31
  import { DeploymentUISettings } from '@wacht/types';
32
- import { DetailedHTMLProps } from 'react';
33
32
  import { EndpointWithSubscriptions } from '@wacht/types';
34
33
  import { EnterpriseConnection } from '@wacht/types';
35
34
  import { ExternalAgentConnection } from '@wacht/types';
36
- import { FastOmit } from 'styled-components';
37
35
  import { FC } from 'react';
38
36
  import { FileData } from '@wacht/types';
39
37
  import { FormHTMLAttributes } from 'react';
40
38
  import { ForwardRefExoticComponent } from 'react';
41
39
  import { HTMLAttributes } from 'react';
42
40
  import { InputHTMLAttributes } from 'react';
43
- import { IStyledComponentBase } from 'styled-components/dist/types';
44
41
  import { JSX } from 'react/jsx-runtime';
45
42
  import { KeyedMutator } from 'swr';
46
43
  import { LabelHTMLAttributes } from 'react';
@@ -223,7 +220,7 @@ declare interface CreateWorkspaceDialogProps {
223
220
  organizationId?: string;
224
221
  }
225
222
 
226
- export declare const CreateWorkspaceForm: default_2.FC<CreateWorkspaceFormProps>;
223
+ export declare const CreateWorkspaceForm: React.FC<CreateWorkspaceFormProps>;
227
224
 
228
225
  declare interface CreateWorkspaceFormProps {
229
226
  organizationId?: string;
@@ -232,7 +229,13 @@ declare interface CreateWorkspaceFormProps {
232
229
  onCreateOrganization?: () => void;
233
230
  }
234
231
 
235
- export declare function DefaultStylesProvider({ children, style, ...props }: DefaultStylesProviderProps): JSX.Element | null;
232
+ /**
233
+ * Scopes the Wacht SDK token contract (`--wa-*`, defined in tokens.css under
234
+ * `.wacht-root`) to its subtree, and makes the `.w-*` component layer available.
235
+ * Renders a `display: contents` wrapper so it adds no box of its own. Dark mode
236
+ * is driven by a `.dark` class on any ancestor (or on this element).
237
+ */
238
+ export declare function DefaultStylesProvider({ children, className, style, ...props }: DefaultStylesProviderProps): JSX.Element | null;
236
239
 
237
240
  declare type DefaultStylesProviderProps = ComponentPropsWithoutRef<"div">;
238
241
 
@@ -319,17 +322,18 @@ declare interface DialogTriggerProps {
319
322
 
320
323
  export declare const Dropdown: ({ children, open, openChange, style, }: DropdownProps) => JSX.Element;
321
324
 
322
- export declare const DropdownDivider: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
325
+ export declare const DropdownDivider: () => JSX.Element;
323
326
 
324
- export declare const DropdownItem: IStyledComponentBase<"web", FastOmit<FastOmit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$destructive"> & {
325
- $destructive?: boolean;
326
- }, never> & Partial<Pick<FastOmit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$destructive"> & {
327
- $destructive?: boolean;
328
- }, never>>> & string;
327
+ export declare const DropdownItem: ForwardRefExoticComponent<DropdownItemProps & RefAttributes<HTMLButtonElement>>;
329
328
 
330
- export declare const DropdownItems: ({ children, style, }: {
329
+ declare interface DropdownItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
330
+ $destructive?: boolean;
331
+ }
332
+
333
+ export declare const DropdownItems: ({ children, style, className, }: {
331
334
  children: ReactNode;
332
335
  style?: React.CSSProperties;
336
+ className?: string;
333
337
  }) => JSX.Element | null;
334
338
 
335
339
  declare interface DropdownProps {
@@ -357,9 +361,9 @@ declare type EmailSignInParams = {
357
361
  password: string;
358
362
  };
359
363
 
360
- export declare const Form: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, never> & Partial<Pick<DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, never>>> & string;
364
+ export declare const Form: ForwardRefExoticComponent<FormHTMLAttributes<HTMLFormElement> & RefAttributes<HTMLFormElement>>;
361
365
 
362
- export declare const FormGroup: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
366
+ export declare const FormGroup: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>>;
363
367
 
364
368
  /**
365
369
  * Unified execution status mapping between frontend and backend
@@ -407,7 +411,9 @@ declare type InitSSOResponseType = {
407
411
  session: Session;
408
412
  };
409
413
 
410
- export declare const Input: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never> & Partial<Pick<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>>> & string;
414
+ export declare const Input: ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & {
415
+ as?: "input" | "textarea";
416
+ } & RefAttributes<HTMLInputElement>>;
411
417
 
412
418
  export declare const isExternalUrl: (url: string) => boolean;
413
419
 
@@ -423,7 +429,7 @@ export declare const isSafeUrl: (url: string) => boolean;
423
429
  */
424
430
  export declare function isWorkspaceAdmin(membership: WithWsRoles): boolean;
425
431
 
426
- export declare const Label: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never> & Partial<Pick<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>>> & string;
432
+ export declare const Label: ForwardRefExoticComponent<LabelHTMLAttributes<HTMLLabelElement> & RefAttributes<HTMLLabelElement>>;
427
433
 
428
434
  declare interface MagicLinkParams {
429
435
  token?: string;