Apply Radix Themes foundations and stateless view helpers in Foldkit.
Package entry point
@wsagency/wseffect-themes · MIT · source · MIT license · WS-AGENCY-NOTICE
This entry point is published in @wsagency/wseffect-themes@0.1.0-rc.1. Import it from the package subpath shown below; the signatures and documentation are read from the installed package declarations.
import * as Wseffect from '@wsagency/wseffect-themes'
Exported declarations
AccessibleIcon
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly label: Schema.String;
}>;
export type ViewProps = typeof Props.Type;
export declare const view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
AlertDialog
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
import * as Update from '@wsagency/wseffect-foldkit/update';
import * as UiDialog from '@wsagency/wseffect-foldkit-ui/dialog';
export { Model, Message, OutMessage, update, open, close, titleId, descriptionId } from '@wsagency/wseffect-foldkit-ui/dialog';
export declare const init: (config: UiDialog.InitConfig) => UiDialog.Model;
export type EmbedConfig<ParentMessage> = Readonly<{
slotId: string;
model: UiDialog.Model;
toParentMessage: (message: UiDialog.Message) => ParentMessage;
title: string;
description?: string;
cancelLabel: string;
content?: ReadonlyArray<Html | string>;
actions?: ReadonlyArray<Html | string>;
}>;
export declare const fold: <ParentModel, ParentMessage, ParentOutMessage>(config: Omit<Update.ChildFoldWithDerivedParentOutMessage<ParentModel, ParentMessage, UiDialog.Model, UiDialog.Message, UiDialog.Message, UiDialog.OutMessage, ParentOutMessage>, 'update'>) => Update.FoldWithOutMessage<ParentModel, ParentMessage, UiDialog.Message, ParentOutMessage>;
export declare const embed: <ParentMessage>(h: HtmlBuilder<ParentMessage>, config: EmbedConfig<ParentMessage>) => Html;
AspectRatio
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly ratio: Schema.optional<Schema.Number>;
}>;
export type ViewProps = typeof Props.Type;
export declare const view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Avatar
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly src: Schema.optional<Schema.String>;
readonly alt: Schema.optional<Schema.String>;
readonly fallback: Schema.Unknown;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["solid", "soft"]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly highContrast: Schema.optional<Schema.Boolean>;
readonly radius: Schema.optional<Schema.Literals<readonly ["none", "small", "medium", "large", "full"]>>;
}>;
export type ViewProps = Omit<typeof Props.Type, 'fallback'> & Readonly<{
fallback: Html | string;
}>;
export declare const view: <Message>(props: ViewProps, _children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Badge
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly role: Schema.optional<Schema.String>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["solid", "soft", "surface", "outline"]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly highContrast: Schema.optional<Schema.Boolean>;
readonly radius: Schema.optional<Schema.Literals<readonly ["none", "small", "medium", "large", "full"]>>;
}>;
export type ViewProps = typeof Props.Type;
export declare const view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Blockquote
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly weight: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly highContrast: Schema.optional<Schema.Boolean>;
readonly truncate: Schema.optional<Schema.Boolean>;
readonly wrap: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
export type ViewProps = typeof Props.Type;
export declare const view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Box
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
import type { ViewProps } from './box.props.js';
export { Props } from './box.props.js';
export type { ViewProps } from './box.props.js';
export declare const view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Button
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["classic", "solid", "soft", "surface", "outline", "ghost-offset", "ghost"]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly radius: Schema.optional<Schema.Literals<readonly ["none", "small", "medium", "large", "full"]>>;
readonly highContrast: Schema.optional<Schema.Boolean>;
readonly disabled: Schema.optional<Schema.Boolean>;
readonly loading: Schema.optional<Schema.Boolean>;
readonly type: Schema.optional<Schema.Literals<readonly ["button", "submit", "reset"]>>;
}>;
export type ViewProps<Message> = typeof Props.Type & Readonly<{
onClick?: Message;
'data-state'?: string;
}>;
export declare const view: <Message>(props: ViewProps<Message>, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Callout
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
declare const rootProps: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["soft", "surface", "outline"]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly highContrast: Schema.optional<Schema.Boolean>;
}>;
declare const iconProps: Schema.Struct<{}>;
declare const textProps: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly weight: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly align: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly trim: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly wrap: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly truncate: Schema.optional<Schema.Boolean>;
readonly highContrast: Schema.optional<Schema.Boolean>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
}>;
export type RootProps = typeof rootProps.Type;
export type IconProps = typeof iconProps.Type;
export type TextProps = typeof textProps.Type;
declare const rootView: <Message>(props: RootProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
declare const iconView: <Message>(_props: IconProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
declare const textView: <Message>(props: TextProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
export declare const Root: Readonly<{
Props: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["soft", "surface", "outline"]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly highContrast: Schema.optional<Schema.Boolean>;
}>;
view: typeof rootView;
}>;
export declare const Icon: Readonly<{
Props: Schema.Struct<{}>;
view: typeof iconView;
}>;
export declare const Text: Readonly<{
Props: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly weight: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly align: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly trim: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly wrap: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly truncate: Schema.optional<Schema.Boolean>;
readonly highContrast: Schema.optional<Schema.Boolean>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
}>;
view: typeof textView;
}>;
export {};
Card
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly as: Schema.optional<Schema.Literals<readonly ["div", "span"]>>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["surface", "classic", "ghost"]>>;
}>;
export type ViewProps = typeof Props.Type;
export declare const view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Checkbox
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly id: Schema.String;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["classic", "surface", "soft"]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly radius: Schema.optional<Schema.Literals<readonly ["none", "small", "medium", "large", "full"]>>;
readonly highContrast: Schema.optional<Schema.Boolean>;
readonly checked: Schema.optional<Schema.Boolean>;
readonly defaultChecked: Schema.optional<Schema.Boolean>;
readonly indeterminate: Schema.optional<Schema.Boolean>;
readonly disabled: Schema.optional<Schema.Boolean>;
readonly readOnly: Schema.optional<Schema.Boolean>;
readonly name: Schema.optional<Schema.String>;
readonly value: Schema.optional<Schema.String>;
readonly ariaLabel: Schema.optional<Schema.String>;
readonly onCheckedChange: Schema.declare<(checked: boolean) => unknown, unknown>;
}>;
export type Props = typeof Props.Type;
export declare const view: <Message>(props: Omit<Props, 'onCheckedChange'> & {
onCheckedChange: (checked: boolean) => Message;
}, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
CheckboxCards
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly id: Schema.String;
readonly label: Schema.optional<Schema.String>;
readonly ariaLabel: Schema.optional<Schema.String>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["surface", "classic"]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly highContrast: Schema.optional<Schema.Boolean>;
readonly columns: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly gap: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly isDisabled: Schema.optional<Schema.Boolean>;
}>;
export type Props = typeof Props.Type;
export type Option<Value extends string> = {
value: Value;
label: ReadonlyArray<Html | string>;
isDisabled?: boolean;
};
export declare const view: <Value extends string, Message>(props: Props & {
options: ReadonlyArray<Option<Value>>;
selected: ReadonlySet<Value>;
toggleMessage(value: Value, isChecked: boolean): Message;
}, h: HtmlBuilder<Message>) => Html;
CheckboxGroup
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly id: Schema.String;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["classic", "surface", "soft"]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly highContrast: Schema.optional<Schema.Boolean>;
readonly isDisabled: Schema.optional<Schema.Boolean>;
readonly ariaLabel: Schema.optional<Schema.String>;
}>;
export type Props = typeof Props.Type;
export type Option<Value extends string> = {
value: Value;
label: Html;
isDisabled?: boolean;
};
export declare const view: <Value extends string, Message>(props: Props & {
label?: Html;
ariaLabel?: string;
options: ReadonlyArray<Option<Value>>;
selected: ReadonlySet<Value>;
toggleMessage(value: Value, isChecked: boolean): Message;
}, h: HtmlBuilder<Message>) => Html;
Code
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["solid", "soft", "outline", "ghost"]>>;
readonly weight: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly highContrast: Schema.optional<Schema.Boolean>;
readonly truncate: Schema.optional<Schema.Boolean>;
readonly wrap: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
export type ViewProps = typeof Props.Type;
export declare const view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Container
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly position: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly inset: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly top: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly right: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly bottom: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly left: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly overflow: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly overflowX: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly overflowY: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly width: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly minWidth: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly maxWidth: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly height: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly minHeight: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly maxHeight: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly flexBasis: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly flexShrink: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly flexGrow: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly gridArea: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly gridColumn: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly gridColumnStart: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly gridColumnEnd: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly gridRow: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly gridRowStart: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly gridRowEnd: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly alignSelf: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly justifySelf: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly display: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly align: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
export type ViewProps = typeof Props.Type;
export declare const view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
ContextMenu
import * as UiMenu from '@wsagency/wseffect-foldkit-ui/menu';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
import * as Update from '@wsagency/wseffect-foldkit/update';
import type { ContextMenuConfig, ContextMenuGroup, ContextMenuItem, ContextMenuSeparator } from '@wsagency/wseffect-foldkit-ui/menu';
import { Schema } from 'effect';
export declare const Props: Schema.Struct<{
readonly variant: Schema.optional<Schema.Literals<readonly ["solid", "soft"]>>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly highContrast: Schema.optional<Schema.Boolean>;
}>;
export type Props = typeof Props.Type;
export declare const Model: Schema.Struct<{
readonly id: Schema.String;
readonly isOpen: Schema.Boolean;
readonly isAnimated: Schema.Boolean;
readonly isModal: Schema.Boolean;
readonly animation: Schema.Struct<{
readonly id: Schema.String;
readonly isShowing: Schema.Boolean;
readonly transitionState: Schema.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
readonly transitionGeneration: Schema.Number;
}>;
readonly maybeActiveItemIndex: Schema.Option<Schema.Number>;
readonly activationTrigger: Schema.Literals<readonly ["Pointer", "Keyboard"]>;
readonly searchQuery: Schema.String;
readonly searchVersion: Schema.Number;
readonly maybeLastPointerPosition: Schema.Option<Schema.Struct<{
readonly screenX: Schema.Number;
readonly screenY: Schema.Number;
}>>;
readonly maybeLastButtonPointerType: Schema.Option<Schema.String>;
readonly maybePointerOrigin: Schema.Option<Schema.Struct<{
readonly screenX: Schema.Number;
readonly screenY: Schema.Number;
readonly timeStamp: Schema.Number;
}>>;
readonly maybeContextInvocation: Schema.withDecodingDefaultTypeKey<Schema.Option<Schema.Struct<{
readonly invocation: Schema.Literals<readonly ["pointer", "keyboard", "touch"]>;
readonly sourceId: Schema.String;
readonly sourceToken: Schema.String;
readonly point: Schema.optional<Schema.Struct<{
readonly x: Schema.Number;
readonly y: Schema.Number;
}>>;
}>>, never>;
readonly longPressVersion: Schema.withDecodingDefaultTypeKey<Schema.Number, never>;
}>;
export type Model = UiMenu.Model;
export declare const Message: import("@wsagency/wseffect-foldkit/message").MessageUnion<{
readonly Opened: {
maybeActiveItemIndex: Schema.Option<Schema.Number>;
};
readonly OpenedAt: {
invocation: Schema.Struct<{
readonly invocation: Schema.Literals<readonly ["pointer", "keyboard", "touch"]>;
readonly sourceId: Schema.String;
readonly sourceToken: Schema.String;
readonly point: Schema.optional<Schema.Struct<{
readonly x: Schema.Number;
readonly y: Schema.Number;
}>>;
}>;
};
readonly LongPressExpired: {
version: Schema.Number;
};
readonly SourceUnmounted: {
token: Schema.String;
};
readonly Closed: {};
readonly BlurredItems: {};
readonly ActivatedItem: {
index: Schema.Number;
activationTrigger: Schema.Literals<readonly ["Pointer", "Keyboard"]>;
};
readonly DeactivatedItem: {};
readonly SelectedItem: {
index: Schema.Number;
item: Schema.String;
};
readonly RequestedItemClick: {
index: Schema.Number;
};
readonly Searched: {
key: Schema.String;
maybeTargetIndex: Schema.Option<Schema.Number>;
};
readonly CompletedDelayClearSearch: {
version: Schema.Number;
};
readonly MovedPointerOverItem: {
index: Schema.Number;
screenX: Schema.Number;
screenY: Schema.Number;
};
readonly CompletedFocusItems: {};
readonly CompletedFocusButton: {};
readonly CompletedLockScroll: {};
readonly CompletedUnlockScroll: {};
readonly CompletedInertOthers: {};
readonly CompletedRestoreInert: {};
readonly CompletedScrollIntoView: {};
readonly CompletedClickItem: {};
readonly IgnoredMouseClick: {};
readonly SuppressedSpaceScroll: {};
readonly CompletedAnchorMenu: {};
readonly CompletedPortalMenuBackdrop: {};
readonly GotAnimationMessage: {
message: import("@wsagency/wseffect-foldkit/message").MessageUnion<{
readonly Showed: {};
readonly Hid: {};
readonly CompletedWaitForPaint: {
generation: Schema.Number;
};
readonly EndedAnimation: {
generation: Schema.Number;
};
}>;
};
readonly PressedPointerOnButton: {
pointerType: Schema.String;
button: Schema.Number;
screenX: Schema.Number;
screenY: Schema.Number;
timeStamp: Schema.Number;
};
readonly ReleasedPointerOnItems: {
screenX: Schema.Number;
screenY: Schema.Number;
timeStamp: Schema.Number;
};
}>;
export declare const OutMessage: import("@wsagency/wseffect-foldkit/message").MessageUnion<{
readonly Selected: {
value: Schema.String;
index: Schema.Number;
};
}>;
export type Message = UiMenu.Message;
export type OutMessage<Value extends string> = UiMenu.OutMessage<Value>;
export type Config<Value extends string> = Omit<ContextMenuConfig<Value>, 'classes' | 'color'> & Props;
export type Item<Value extends string> = ContextMenuItem<Value>;
export type Group<Value extends string> = ContextMenuGroup<Value>;
export type Separator = ContextMenuSeparator;
export type Bundle<Value extends string> = Readonly<{
Model: typeof Model;
Message: typeof Message;
OutMessage: typeof UiMenu.OutMessage;
init: (config: Config<Value>) => Model;
update: (model: Model, message: Message) => Update.ReturnWithOutMessage<Model, Message, OutMessage<Value>>;
view: (model: Model, config: Config<Value>, h: HtmlBuilder<Message>) => Html;
fold: <ParentModel, ParentMessage, ParentOutMessage>(config: Omit<Update.ChildFoldWithDerivedParentOutMessage<ParentModel, ParentMessage, Model, Config<Value>, Message, OutMessage<Value>, ParentOutMessage>, 'update'>) => Update.FoldWithOutMessage<ParentModel, ParentMessage, Message, ParentOutMessage>;
embed: <ParentMessage>(h: HtmlBuilder<ParentMessage>, config: EmbedConfig<Value, ParentMessage>) => Html;
}>;
export type EmbedConfig<Value extends string, ParentMessage> = Readonly<{
slotId: string;
model: Model;
config: Config<Value>;
toParentMessage: (message: Message) => ParentMessage;
}>;
export declare const create: <Value extends string>() => Bundle<Value>;
DataList
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
declare const rootProps: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly orientation: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly trim: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
declare const itemProps: Schema.Struct<{
readonly align: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
declare const labelProps: Schema.Struct<{
readonly width: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly minWidth: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly maxWidth: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly highContrast: Schema.optional<Schema.Boolean>;
}>;
declare const emptyProps: Schema.Struct<{}>;
export declare const Root: {
Props: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly orientation: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly trim: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
view: <M>(props: typeof rootProps.Type, children: ReadonlyArray<Html | string>, h: HtmlBuilder<M>) => Html;
};
export declare const Item: {
Props: Schema.Struct<{
readonly align: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
view: <M>(props: typeof itemProps.Type, children: ReadonlyArray<Html | string>, h: HtmlBuilder<M>) => Html;
};
export declare const Label: {
Props: Schema.Struct<{
readonly width: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly minWidth: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly maxWidth: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly highContrast: Schema.optional<Schema.Boolean>;
}>;
view: <M>(props: typeof labelProps.Type, children: ReadonlyArray<Html | string>, h: HtmlBuilder<M>) => Html;
};
export declare const Value: {
Props: Schema.Struct<{}>;
view: <M>(_props: typeof emptyProps.Type, children: ReadonlyArray<Html | string>, h: HtmlBuilder<M>) => Html;
};
export {};
DataTable
import { Schema } from 'effect';
import { Update } from '@wsagency/wseffect-foldkit';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
import type { Config } from './data-table.props.js';
export type { Column, Config } from './data-table.props.js';
export declare const Model: Schema.Struct<{
readonly filter: Schema.String;
readonly sort: Schema.NullOr<Schema.Struct<{
readonly columnId: Schema.String;
readonly direction: Schema.Literals<readonly ["ascending", "descending"]>;
}>>;
readonly orderedRowIds: Schema.$Array<Schema.String>;
readonly activeCell: Schema.NullOr<Schema.Struct<{
readonly rowId: Schema.String;
readonly columnId: Schema.String;
}>>;
readonly pendingFocus: Schema.NullOr<Schema.Struct<{
readonly rowId: Schema.String;
readonly columnId: Schema.String;
}>>;
readonly virtualList: Schema.Struct<{
readonly id: Schema.String;
readonly rowHeightPx: Schema.Number;
readonly scrollTop: Schema.Number;
readonly measurement: import("@wsagency/wseffect-foldkit/schema").TaggedUnion<{
readonly Unmeasured: {};
readonly Measured: {
containerWidth: Schema.Number;
containerHeight: Schema.Number;
};
}>;
readonly initialContainerHeight: Schema.optional<Schema.Number>;
readonly leadingOffsetPx: Schema.optional<Schema.Number>;
readonly viewportAnchor: import("@wsagency/wseffect-foldkit/schema").TaggedUnion<{
readonly Offset: {
scrollTop: Schema.Number;
};
readonly Row: {
key: Schema.String;
index: Schema.Number;
viewportOffset: Schema.Number;
};
readonly End: {};
}>;
readonly measuredRowHeights: Schema.$Record<Schema.String, Schema.Number>;
readonly layoutVersion: Schema.Number;
readonly initialScroll: import("@wsagency/wseffect-foldkit/schema").TaggedUnion<{
readonly Applied: {};
readonly Pending: {
target: import("@wsagency/wseffect-foldkit/schema").TaggedUnion<{
readonly Index: {
index: Schema.Number;
};
readonly Key: {
key: Schema.String;
};
readonly Offset: {
offset: Schema.Number;
};
readonly End: {};
}>;
alignment: Schema.Literals<readonly ["Start", "Center", "End", "Nearest"]>;
};
}>;
readonly endBehavior: import("@wsagency/wseffect-foldkit/schema").TaggedUnion<{
readonly PreserveAnchor: {};
readonly Follow: {
thresholdPx: Schema.Number;
};
}>;
readonly pendingScroll: import("@wsagency/wseffect-foldkit/schema").TaggedUnion<{
readonly Idle: {};
readonly Pending: {
request: import("@wsagency/wseffect-foldkit/schema").TaggedUnion<{
readonly Target: {
target: import("@wsagency/wseffect-foldkit/schema").TaggedUnion<{
readonly Index: {
index: Schema.Number;
};
readonly Key: {
key: Schema.String;
};
readonly Offset: {
offset: Schema.Number;
};
readonly End: {};
}>;
alignment: Schema.Literals<readonly ["Start", "Center", "End", "Nearest"]>;
};
readonly Anchor: {
anchor: import("@wsagency/wseffect-foldkit/schema").TaggedUnion<{
readonly Offset: {
scrollTop: Schema.Number;
};
readonly Row: {
key: Schema.String;
index: Schema.Number;
viewportOffset: Schema.Number;
};
readonly End: {};
}>;
};
}>;
version: Schema.Number;
};
}>;
readonly pendingScrollVersion: Schema.Number;
}>;
}>;
export type Model = typeof Model.Type;
export declare const Message: import("@wsagency/wseffect-foldkit/message").MessageUnion<{
readonly RowsChanged: {};
readonly FilterChanged: {
value: Schema.String;
};
readonly SortChanged: {
columnId: Schema.String;
};
readonly ToggleRow: {
rowId: Schema.String;
};
readonly SelectVisible: {
selected: Schema.Boolean;
};
readonly ActiveCellChanged: {
rowId: Schema.String;
columnId: Schema.String;
};
readonly GridKey: {
key: Schema.String;
ctrlKey: Schema.Boolean;
};
readonly VirtualList: {
message: import("@wsagency/wseffect-foldkit/message").MessageUnion<{
readonly ObservedContainerScroll: {
scrollTop: Schema.Number;
scrollHeight: Schema.Number;
containerHeight: Schema.Number;
anchor: import("@wsagency/wseffect-foldkit/schema").TaggedUnion<{
readonly None: {};
readonly Row: {
key: Schema.String;
index: Schema.Number;
viewportOffset: Schema.Number;
};
}>;
};
readonly ResizedContainer: {
containerWidth: Schema.Number;
containerHeight: Schema.Number;
leadingOffsetPx: Schema.optional<Schema.Number>;
};
readonly MeasuredRows: {
measurements: Schema.$Array<Schema.Struct<{
readonly key: Schema.String;
readonly height: Schema.Number;
readonly layoutVersion: Schema.Number;
}>>;
};
readonly CompletedApplyScroll: {
version: Schema.Number;
outcome: import("@wsagency/wseffect-foldkit/schema").TaggedUnion<{
readonly Applied: {
scrollTop: Schema.Number;
scrollHeight: Schema.Number;
containerHeight: Schema.Number;
anchor: import("@wsagency/wseffect-foldkit/schema").TaggedUnion<{
readonly None: {};
readonly Row: {
key: Schema.String;
index: Schema.Number;
viewportOffset: Schema.Number;
};
}>;
};
readonly Skipped: {};
}>;
};
}>;
};
readonly FocusTargetCompleted: {
rowId: Schema.String;
columnId: Schema.String;
scrollTop: Schema.Number;
scrollHeight: Schema.Number;
containerHeight: Schema.Number;
anchor: Schema.Union<readonly [Schema.Struct<{
readonly _tag: Schema.Literal<"None">;
}>, Schema.Struct<{
readonly _tag: Schema.Literal<"Row">;
readonly key: Schema.String;
readonly index: Schema.Number;
readonly viewportOffset: Schema.Number;
}>]>;
};
}>;
export type Message = typeof Message.Type;
export declare const OutMessage: import("@wsagency/wseffect-foldkit/message").MessageUnion<{
readonly SelectionChanged: {
ids: Schema.$Array<Schema.String>;
};
readonly FocusCell: {
rowId: Schema.String;
columnId: Schema.String;
};
}>;
export type OutMessage = typeof OutMessage.Type;
export declare function init<Row>(config: Config<Row>): Model;
export declare function update<Row>(model: Model, config: Config<Row>, message: Message): Update.ReturnWithOutMessage<Model, Message, OutMessage>;
export declare function view<Row>(model: Model, config: Config<Row>, h: HtmlBuilder<Message>): Html;
Dialog
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
import * as Update from '@wsagency/wseffect-foldkit/update';
import type { Model as DialogModel, Message as DialogMessage, OutMessage as DialogOutMessage } from '@wsagency/wseffect-foldkit-ui/dialog';
export { Model, Message, OutMessage, init, update, open, close, titleId, descriptionId } from '@wsagency/wseffect-foldkit-ui/dialog';
declare const sizes: readonly ['1', '2', '3', '4'];
export declare const fold: <ParentModel, ParentMessage, ParentOutMessage, Input = never>(config: Omit<Update.ChildFoldWithDerivedParentOutMessage<ParentModel, ParentMessage, DialogModel, Input, DialogMessage, DialogOutMessage, ParentOutMessage>, 'update'>) => Update.FoldWithOutMessage<ParentModel, ParentMessage, {
readonly _tag: "CompletedCloseDialog";
} | {
readonly _tag: "CompletedReleaseDialogResources";
} | {
readonly _tag: "FailedAcquireResources";
} | {
readonly _tag: "FailedShowDialog";
} | {
readonly _tag: "GotAnimationMessage";
readonly message: {
readonly _tag: "CompletedWaitForPaint";
readonly generation: number;
} | {
readonly _tag: "EndedAnimation";
readonly generation: number;
} | {
readonly _tag: "Hid";
} | {
readonly _tag: "Showed";
};
} | {
readonly _tag: "RequestedClose";
} | {
readonly _tag: "RequestedOpen";
} | {
readonly _tag: "SucceededAcquireResources";
} | {
readonly _tag: "SucceededShowDialog";
} | {
readonly _tag: "Unmounted";
}, ParentOutMessage, never>;
export type EmbedConfig<Message> = Readonly<{
slotId: string;
model: DialogModel;
toParentMessage: (message: DialogMessage) => Message;
title: string;
description?: string;
size?: (typeof sizes)[number];
content: (h: HtmlBuilder<Message>) => ReadonlyArray<Html | string>;
}>;
export declare const embed: <Message>(h: HtmlBuilder<Message>, config: EmbedConfig<Message>) => Html;
DropdownMenu
import * as Update from '@wsagency/wseffect-foldkit/update';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
import * as UiMenu from '@wsagency/wseffect-foldkit-ui/menu';
import type { ViewInputs as MenuViewInputs } from '@wsagency/wseffect-foldkit-ui/menu';
import type { Settings as ThemeSettings } from './theme.js';
type ViewInputs<Item extends string> = MenuViewInputs<Item> & Readonly<{
/** Explicitly override the shared portal-root Theme for a nested menu; omit to inherit the root Theme. */
themeSettings?: Partial<ThemeSettings>;
}>;
export type EmbedConfig<Item extends string, ParentMessage> = Readonly<{
slotId: string;
model: UiMenu.Model;
toParentMessage: (message: UiMenu.Message) => ParentMessage;
viewInputs: ViewInputs<Item>;
}>;
export type Bundle<Item extends string> = Readonly<{
Model: typeof UiMenu.Model;
Message: typeof UiMenu.Message;
OutMessage: typeof UiMenu.OutMessage;
init: typeof UiMenu.init;
update: UiMenu.Bundle<Item>['update'];
view: UiMenu.Bundle<Item>['view'];
fold: <ParentModel, ParentMessage, ParentOutMessage>(config: Omit<Update.ChildFoldWithDerivedParentOutMessage<ParentModel, ParentMessage, UiMenu.Model, UiMenu.Message, UiMenu.Message, UiMenu.OutMessage<Item>, ParentOutMessage>, 'update'>) => Update.FoldWithOutMessage<ParentModel, ParentMessage, UiMenu.Message, ParentOutMessage>;
embed: <ParentMessage>(h: HtmlBuilder<ParentMessage>, config: EmbedConfig<Item, ParentMessage>) => Html;
}>;
export declare const create: <Item extends string>() => Bundle<Item>;
export {};
Em
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly truncate: Schema.optional<Schema.Boolean>;
readonly wrap: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
export type ViewProps = typeof Props.Type;
export declare const view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Flex
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly p: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly px: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly py: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pl: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly as: Schema.optional<Schema.Literals<readonly ["div", "span"]>>;
readonly direction: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly align: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly justify: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly wrap: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly gap: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly gapX: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly gapY: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
export type ViewProps = typeof Props.Type;
export declare const view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Grid
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly p: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly px: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly py: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pl: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly as: Schema.optional<Schema.Literals<readonly ["div", "span"]>>;
readonly columns: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly rows: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly flow: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly align: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly justify: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly alignContent: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly justifyItems: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly gap: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly gapX: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly gapY: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
export type ViewProps = typeof Props.Type;
export declare const view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Heading
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
import type { ViewProps } from './heading.props.js';
export { Props } from './heading.props.js';
export type { ViewProps } from './heading.props.js';
export declare const view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
HoverCard
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
import * as Update from '@wsagency/wseffect-foldkit/update';
import * as UiHoverIntent from '@wsagency/wseffect-foldkit-ui/hoverIntent';
import type { AnchorConfig } from '@wsagency/wseffect-foldkit-ui/anchor';
export { Model, Message, OutMessage, update, close } from '@wsagency/wseffect-foldkit-ui/hoverIntent';
export declare const init: (config?: Parameters<typeof UiHoverIntent.init>[0]) => UiHoverIntent.Model;
export type ViewInputs<Message> = Readonly<{
id: string;
anchor?: AnchorConfig;
triggerHref?: string;
trigger: ReadonlyArray<Html | string>;
content: ReadonlyArray<Html | string>;
}>;
export type EmbedConfig<Message> = Readonly<{
slotId: string;
id: string;
model: UiHoverIntent.Model;
toParentMessage: (message: UiHoverIntent.Message) => Message;
viewInputs: ViewInputs<Message>;
}>;
export declare const fold: <ParentModel, ParentMessage, ParentOutMessage>(config: Omit<Update.ChildFoldWithDerivedParentOutMessage<ParentModel, ParentMessage, UiHoverIntent.Model, UiHoverIntent.Message, UiHoverIntent.Message, UiHoverIntent.OutMessage, ParentOutMessage>, 'update'>) => Update.FoldWithOutMessage<ParentModel, ParentMessage, UiHoverIntent.Message, ParentOutMessage>;
export declare const embed: <ParentMessage>(h: HtmlBuilder<ParentMessage>, config: EmbedConfig<ParentMessage>) => Html;
IconButton
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["classic", "solid", "soft", "surface", "outline", "ghost-offset", "ghost"]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly radius: Schema.optional<Schema.Literals<readonly ["none", "small", "medium", "large", "full"]>>;
readonly highContrast: Schema.optional<Schema.Boolean>;
readonly disabled: Schema.optional<Schema.Boolean>;
readonly loading: Schema.optional<Schema.Boolean>;
readonly type: Schema.optional<Schema.Literals<readonly ["button", "submit", "reset"]>>;
readonly 'aria-label': Schema.optional<Schema.String>;
}>;
export type ViewProps<Message> = typeof Props.Type & Readonly<{
onClick?: Message;
}>;
export declare const view: <Message>(props: ViewProps<Message>, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Inset
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly side: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly clip: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly p: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly px: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly py: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pl: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
export type ViewProps = typeof Props.Type;
export declare const view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Kbd
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["classic", "soft"]>>;
}>;
export type ViewProps = typeof Props.Type;
export declare const view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Link
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly href: Schema.optional<Schema.String>;
readonly target: Schema.optional<Schema.String>;
readonly rel: Schema.optional<Schema.String>;
readonly download: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Boolean]>>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly weight: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly trim: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly truncate: Schema.optional<Schema.Boolean>;
readonly wrap: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly underline: Schema.optional<Schema.Literals<readonly ["auto", "always", "hover", "none"]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly highContrast: Schema.optional<Schema.Boolean>;
}>;
export type ViewProps = typeof Props.Type;
export declare const view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Popover
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
import * as Update from '@wsagency/wseffect-foldkit/update';
import * as UiPopover from '@wsagency/wseffect-foldkit-ui/popover';
import type { AnchorConfig } from '@wsagency/wseffect-foldkit-ui/anchor';
export { Model, Message, OutMessage, init, update, open, close, buttonId, arrowId } from '@wsagency/wseffect-foldkit-ui/popover';
export type ViewInputs<Message> = Readonly<{
anchor?: AnchorConfig;
trigger: ReadonlyArray<Html | string>;
content: ReadonlyArray<Html | string>;
ariaLabel?: string;
ariaLabelledBy?: string;
isDisabled?: boolean;
focusSelector?: string;
arrowPadding?: number;
}>;
export type EmbedConfig<Message> = Readonly<{
slotId: string;
model: UiPopover.Model;
toParentMessage: (message: UiPopover.Message) => Message;
viewInputs: ViewInputs<Message>;
}>;
export declare const fold: <ParentModel, ParentMessage, ParentOutMessage>(config: Omit<Update.ChildFoldWithDerivedParentOutMessage<ParentModel, ParentMessage, UiPopover.Model, UiPopover.Message, UiPopover.Message, UiPopover.OutMessage, ParentOutMessage>, 'update'>) => Update.FoldWithOutMessage<ParentModel, ParentMessage, UiPopover.Message, ParentOutMessage>;
export declare const embed: <ParentMessage>(h: HtmlBuilder<ParentMessage>, config: EmbedConfig<ParentMessage>) => Html;
Progress
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly id: Schema.optional<Schema.String>;
readonly ariaLabel: Schema.optional<Schema.String>;
readonly ariaLabelledBy: Schema.optional<Schema.String>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["classic", "surface", "soft"]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly highContrast: Schema.optional<Schema.Boolean>;
readonly radius: Schema.optional<Schema.Literals<readonly ["none", "small", "medium", "large", "full"]>>;
readonly value: Schema.optional<Schema.NullOr<Schema.Number>>;
readonly min: Schema.optional<Schema.Number>;
readonly max: Schema.optional<Schema.Number>;
readonly valueText: Schema.optional<Schema.String>;
readonly getValueLabel: Schema.optional<Schema.Unknown>;
readonly duration: Schema.optional<Schema.String>;
}>;
export type ViewProps = typeof Props.Type & Readonly<{
getValueLabel?: (value: number, max: number) => string;
}>;
export declare const view: <Message>(props: ViewProps, _children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Quote
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly truncate: Schema.optional<Schema.Boolean>;
readonly wrap: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
export type ViewProps = typeof Props.Type;
export declare const view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Radio
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly id: Schema.String;
readonly value: Schema.String;
readonly name: Schema.optional<Schema.String>;
readonly checked: Schema.optional<Schema.Boolean>;
readonly disabled: Schema.optional<Schema.Boolean>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["classic", "surface", "soft"]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly highContrast: Schema.optional<Schema.Boolean>;
readonly onValueChange: Schema.optional<Schema.declare<(value: string) => unknown, (value: string) => unknown>>;
}>;
export type Props = typeof Props.Type;
export declare const view: <Message>(props: Props & {
onValueChange?: (value: string) => Message;
}, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
RadioCards
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
import * as RadioGroup from './radio-group.js';
export declare const Props: Schema.Struct<{
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["surface", "classic"]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly highContrast: Schema.optional<Schema.Boolean>;
readonly columns: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly gap: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
export type Props = typeof Props.Type;
export type Model = RadioGroup.Model;
export type Message = RadioGroup.Message;
export type OutMessage<Value extends string> = RadioGroup.OutMessage<Value>;
export type ViewInputs<Value extends string> = Omit<RadioGroup.ViewInputs<Value>, 'props'> & Readonly<{
props?: Props;
}>;
export type Bundle<Value extends string> = Omit<RadioGroup.Bundle<Value>, 'view'> & Readonly<{
view(model: Model, inputs: ViewInputs<Value>, h: HtmlBuilder<Message>): Html;
}>;
export declare const create: <Value extends string>() => Bundle<Value>;
RadioGroup
import { Schema } from 'effect';
import { type Html, type HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
import * as Update from '@wsagency/wseffect-foldkit/update';
import * as RadioGroupUi from '@wsagency/wseffect-foldkit-ui/radioGroup';
import type { ViewInputs as UiInputs } from '@wsagency/wseffect-foldkit-ui/radioGroup';
export declare const Props: Schema.Struct<{
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["classic", "surface", "soft"]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly highContrast: Schema.optional<Schema.Boolean>;
}>;
export type Props = typeof Props.Type;
export type Model = RadioGroupUi.Model;
export type Message = RadioGroupUi.Message;
export type OutMessage<Value extends string> = RadioGroupUi.OutMessage<Value>;
export type Option<Value extends string> = Readonly<{
value: Value;
label?: Html;
isDisabled?: boolean;
}>;
export type ViewInputs<Value extends string> = Omit<UiInputs<Value>, 'toView' | 'options' | 'isOptionDisabled'> & Readonly<{
options: ReadonlyArray<Option<Value>>;
optionToLabel?: (value: Value) => Html;
props?: Props & {
rootClass?: string;
rootStyle?: Readonly<Record<string, string>>;
rootRadius?: string;
rootAccentColor?: string;
segmented?: boolean;
cards?: boolean;
itemClass?: string;
itemInnerClass?: string;
};
}>;
export type EmbedConfig<Value extends string, ParentMessage> = Readonly<{
slotId: string;
model: Model;
toParentMessage(message: Message): ParentMessage;
viewInputs: ViewInputs<Value>;
}>;
export type Bundle<Value extends string> = Readonly<{
Model: typeof RadioGroupUi.Model;
Message: typeof RadioGroupUi.Message;
OutMessage: typeof RadioGroupUi.OutMessage;
init: typeof RadioGroupUi.init;
update: (model: Model, message: Message) => Update.ReturnWithOutMessage<Model, Message, OutMessage<Value>>;
view(model: Model, inputs: ViewInputs<Value>, h: HtmlBuilder<Message>): Html;
fold<ParentModel, ParentMessage, ParentOutMessage>(config: Omit<Update.ChildFoldWithDerivedParentOutMessage<ParentModel, ParentMessage, Model, Message, Message, OutMessage<Value>, ParentOutMessage>, 'update'>): Update.FoldWithOutMessage<ParentModel, ParentMessage, Message, ParentOutMessage>;
embed<ParentMessage>(h: HtmlBuilder<ParentMessage>, config: EmbedConfig<Value, ParentMessage>): Html;
}>;
export declare const create: <Value extends string>() => Bundle<Value>;
ScrollArea
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly radius: Schema.optional<Schema.Literals<readonly ["none", "small", "medium", "large", "full"]>>;
readonly scrollbars: Schema.optional<Schema.Literals<readonly ["vertical", "horizontal", "both"]>>;
}>;
export type ViewProps = typeof Props.Type;
export declare const view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Section
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly display: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
export type ViewProps = typeof Props.Type;
export declare const view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
SegmentedControl
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
import * as RadioGroup from './radio-group.js';
export declare const Props: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["classic", "surface"]>>;
readonly disabled: Schema.optional<Schema.Boolean>;
readonly radius: Schema.optional<Schema.Literals<readonly ["none", "small", "medium", "large", "full"]>>;
}>;
export type Props = typeof Props.Type;
export type Model = RadioGroup.Model;
export declare const Message: import("@wsagency/wseffect-foldkit/message").MessageUnion<{
readonly SelectedOption: {
index: Schema.Number;
value: Schema.String;
};
readonly FocusedOption: {
index: Schema.Number;
};
readonly CompletedFocusOption: {};
}>;
export type Message = typeof Message.Type;
export type OutMessage<Value extends string> = RadioGroup.OutMessage<Value>;
export declare const FocusOption: import("@wsagency/wseffect-foldkit/command").CommandDefinitionWithArgs<"FocusOption", {
id: Schema.String;
index: Schema.Number;
}, import("effect/Effect").Effect<{
readonly _tag: "CompletedFocusOption";
}, never, never>>;
export type ViewInputs<Value extends string> = Omit<RadioGroup.ViewInputs<Value>, 'props'> & Readonly<{
props?: Props;
}>;
export type Bundle<Value extends string> = Omit<RadioGroup.Bundle<Value>, 'view'> & Readonly<{
view(model: Model, inputs: ViewInputs<Value>, h: HtmlBuilder<Message>): Html;
}>;
export declare const create: <Value extends string>() => Bundle<Value>;
Select
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
import * as Update from '@wsagency/wseffect-foldkit/update';
import * as Listbox from '@wsagency/wseffect-foldkit-ui/listbox';
import type { Config as PrimitiveConfig, SelectItem, SelectGroup, SelectSeparator } from '@wsagency/wseffect-foldkit-ui/listboxSelect';
import * as SelectPrimitive from '@wsagency/wseffect-foldkit-ui/listboxSelect';
export declare const Props: Schema.Struct<{
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["classic", "surface", "soft", "ghost-offset", "ghost"]>>;
readonly contentVariant: Schema.optional<Schema.Literals<readonly ["solid", "soft"]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly radius: Schema.optional<Schema.Literals<readonly ["none", "small", "medium", "large", "full"]>>;
readonly highContrast: Schema.optional<Schema.Boolean>;
readonly placeholder: Schema.optional<Schema.String>;
}>;
export type Props = typeof Props.Type;
export type Item<Value extends string> = SelectItem<Value>;
export type Group<Value extends string> = SelectGroup<Value>;
export type Separator = SelectSeparator;
export type Config<Value extends string> = PrimitiveConfig<Value> & Readonly<{
props?: Props;
}>;
export type Model = SelectPrimitive.SelectModel;
export declare const Model: Schema.Struct<{
readonly id: import("effect/Schema").String;
readonly isOpen: import("effect/Schema").Boolean;
readonly isAnimated: import("effect/Schema").Boolean;
readonly isModal: import("effect/Schema").Boolean;
readonly orientation: import("effect/Schema").Literals<readonly ["Vertical", "Horizontal"]>;
readonly animation: import("effect/Schema").Struct<{
readonly id: import("effect/Schema").String;
readonly isShowing: import("effect/Schema").Boolean;
readonly transitionState: import("effect/Schema").Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
readonly transitionGeneration: import("effect/Schema").Number;
}>;
readonly maybeActiveItemIndex: import("effect/Schema").Option<import("effect/Schema").Number>;
readonly activationTrigger: import("effect/Schema").Literals<readonly ["Pointer", "Keyboard"]>;
readonly searchQuery: import("effect/Schema").String;
readonly searchVersion: import("effect/Schema").Number;
readonly maybeLastPointerPosition: import("effect/Schema").Option<import("effect/Schema").Struct<{
readonly screenX: import("effect/Schema").Number;
readonly screenY: import("effect/Schema").Number;
}>>;
readonly maybeLastButtonPointerType: import("effect/Schema").Option<import("effect/Schema").String>;
readonly anchorMode: import("effect/Schema").withDecodingDefaultKey<import("effect/Schema").Literals<readonly ["Trigger", "SelectedOrActiveItem"]>, never>;
}>;
export type Message = SelectPrimitive.SelectMessage;
export declare const Message: import("@wsagency/wseffect-foldkit/message").MessageUnion<{
readonly Opened: {
maybeActiveItemIndex: import("effect/Schema").Option<import("effect/Schema").Number>;
};
readonly Closed: {};
readonly BlurredItems: {};
readonly ActivatedItem: {
index: import("effect/Schema").Number;
activationTrigger: import("effect/Schema").Literals<readonly ["Pointer", "Keyboard"]>;
};
readonly DeactivatedItem: {};
readonly SelectedItem: {
item: import("effect/Schema").String;
};
readonly MovedPointerOverItem: {
index: import("effect/Schema").Number;
screenX: import("effect/Schema").Number;
screenY: import("effect/Schema").Number;
};
readonly RequestedItemClick: {
index: import("effect/Schema").Number;
};
readonly Searched: {
key: import("effect/Schema").String;
maybeTargetIndex: import("effect/Schema").Option<import("effect/Schema").Number>;
};
readonly CompletedDelayClearSearch: {
version: import("effect/Schema").Number;
};
readonly CompletedLockScroll: {};
readonly CompletedUnlockScroll: {};
readonly CompletedInertOthers: {};
readonly CompletedRestoreInert: {};
readonly CompletedFocusButton: {};
readonly CompletedFocusItems: {};
readonly CompletedScrollIntoView: {};
readonly CompletedClickItem: {};
readonly IgnoredMouseClick: {};
readonly SuppressedSpaceScroll: {};
readonly SuppressedItemCommit: {};
readonly CompletedAnchorListbox: {};
readonly CompletedPortalListboxBackdrop: {};
readonly GotAnimationMessage: {
message: import("@wsagency/wseffect-foldkit/message").MessageUnion<{
readonly Showed: {};
readonly Hid: {};
readonly CompletedWaitForPaint: {
generation: import("effect/Schema").Number;
};
readonly EndedAnimation: {
generation: import("effect/Schema").Number;
};
}>;
};
readonly PressedPointerOnButton: {
pointerType: import("effect/Schema").String;
button: import("effect/Schema").Number;
};
}>;
export type OutMessage<Value extends string> = Listbox.OutMessage<Value>;
export type Bundle<Value extends string> = Readonly<{
Model: typeof Model;
Message: typeof Message;
OutMessage: typeof Listbox.OutMessage;
init(config: Config<Value>): Model;
update(model: Model, message: Message): Update.ReturnWithOutMessage<Model, Message, OutMessage<Value>>;
view(model: Model, config: Config<Value>, h: HtmlBuilder<Message>): Html;
fold<ParentModel, ParentMessage, ParentOutMessage>(config: Omit<Update.ChildFoldWithDerivedParentOutMessage<ParentModel, ParentMessage, Model, Message, Message, OutMessage<Value>, ParentOutMessage>, 'update'>): Update.FoldWithOutMessage<ParentModel, ParentMessage, Message, ParentOutMessage>;
embed<ParentMessage>(h: HtmlBuilder<ParentMessage>, config: Readonly<{
slotId: string;
model: Model;
toParentMessage(message: Message): ParentMessage;
viewInputs: Config<Value>;
}>): Html;
}>;
export declare const create: <Value extends string>() => Bundle<Value>;
Separator
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly orientation: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly decorative: Schema.optional<Schema.Boolean>;
}>;
export type ViewProps = typeof Props.Type;
export declare const view: <Message>(props: ViewProps, _children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Skeleton
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly loading: Schema.optional<Schema.Boolean>;
readonly width: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly minWidth: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly maxWidth: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly height: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly minHeight: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly maxHeight: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
export type ViewProps = typeof Props.Type;
export declare const view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Slider
import { type Html, type HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
import * as Update from '@wsagency/wseffect-foldkit/update';
import * as SliderUi from '@wsagency/wseffect-foldkit-ui/slider';
import type { ViewInputs as UiInputs } from '@wsagency/wseffect-foldkit-ui/slider';
export declare const Props: import("effect/Schema").Struct<{
readonly size: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly string[]> | import("effect/Schema").String, import("effect/Schema").Struct<{
[k: string]: import("effect/Schema").optional<import("effect/Schema").Literals<readonly string[]> | import("effect/Schema").String>;
}>]>>;
readonly variant: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["classic", "surface", "soft"]>>;
readonly color: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly highContrast: import("effect/Schema").optional<import("effect/Schema").Boolean>;
readonly radius: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["none", "small", "medium", "large", "full"]>>;
}>;
export type Props = typeof Props.Type;
export { Range } from './slider/range.js';
export type { RangeModel, RangeMessage, RangeOutMessage, RangeConfig, RangeFoldInput, RangeEmbedConfig } from './slider/range.js';
export type Model = SliderUi.Model;
export declare const Model: import("effect/Schema").Struct<{
readonly id: import("effect/Schema").String;
readonly min: import("effect/Schema").Number;
readonly max: import("effect/Schema").Number;
readonly step: import("effect/Schema").Number;
readonly dragState: import("@wsagency/wseffect-foldkit/schema").TaggedUnion<{
readonly Idle: {};
readonly Dragging: {
originValue: import("effect/Schema").Number;
};
}>;
}>;
export type Message = SliderUi.Message;
export declare const Message: import("@wsagency/wseffect-foldkit/message").MessageUnion<{
readonly PressedThumb: {
originValue: import("effect/Schema").Number;
};
readonly PressedPointer: {
value: import("effect/Schema").Number;
originValue: import("effect/Schema").Number;
};
readonly MovedDragPointer: {
value: import("effect/Schema").Number;
};
readonly ReleasedDragPointer: {};
readonly CancelledDrag: {};
readonly PressedKeyboardNavigation: {
direction: import("effect/Schema").Literals<readonly ["StepDecrement", "StepIncrement", "PageDecrement", "PageIncrement", "Min", "Max"]>;
value: import("effect/Schema").Number;
};
}>;
export type OutMessage = SliderUi.OutMessage;
export declare const OutMessage: import("@wsagency/wseffect-foldkit/message").MessageUnion<{
readonly ChangedValue: {
value: import("effect/Schema").Number;
};
}>;
export type InitConfig = SliderUi.InitConfig;
export declare const init: (config: SliderUi.InitConfig) => SliderUi.Model;
export declare const update: (model: SliderUi.Model, message: SliderUi.Message) => Readonly<{
model: {
readonly id: string;
readonly min: number;
readonly max: number;
readonly step: number;
readonly dragState: {
readonly _tag: "Idle";
} | {
readonly _tag: "Dragging";
readonly originValue: number;
};
};
commands?: Update.Commands<{
readonly _tag: "CancelledDrag";
} | {
readonly _tag: "MovedDragPointer";
readonly value: number;
} | {
readonly _tag: "PressedKeyboardNavigation";
readonly direction: "Max" | "Min" | "PageDecrement" | "PageIncrement" | "StepDecrement" | "StepIncrement";
readonly value: number;
} | {
readonly _tag: "PressedPointer";
readonly value: number;
readonly originValue: number;
} | {
readonly _tag: "PressedThumb";
readonly originValue: number;
} | {
readonly _tag: "ReleasedDragPointer";
}, never>;
outMessage?: {
readonly _tag: "ChangedValue";
readonly value: number;
};
}>;
export type ViewInputs = Omit<UiInputs, 'toView'> & Readonly<{
props?: Props;
}>;
export type EmbedConfig<ParentMessage> = Readonly<{
slotId: string;
model: Model;
toParentMessage(message: Message): ParentMessage;
viewInputs: ViewInputs;
}>;
export declare const view: import("@wsagency/wseffect-foldkit/submodel").View<{
readonly id: string;
readonly min: number;
readonly max: number;
readonly step: number;
readonly dragState: {
readonly _tag: "Dragging";
readonly originValue: number;
} | {
readonly _tag: "Idle";
};
}, {
readonly _tag: "CancelledDrag";
} | {
readonly _tag: "MovedDragPointer";
readonly value: number;
} | {
readonly _tag: "PressedKeyboardNavigation";
readonly direction: "Max" | "Min" | "PageDecrement" | "PageIncrement" | "StepDecrement" | "StepIncrement";
readonly value: number;
} | {
readonly _tag: "PressedPointer";
readonly value: number;
readonly originValue: number;
} | {
readonly _tag: "PressedThumb";
readonly originValue: number;
} | {
readonly _tag: "ReleasedDragPointer";
}, ViewInputs>;
export declare const fold: <ParentModel, ParentMessage, ParentOutMessage>(config: Omit<Update.ChildFoldWithDerivedParentOutMessage<ParentModel, ParentMessage, Model, Message, Message, OutMessage, ParentOutMessage>, 'update'>) => Update.FoldWithOutMessage<ParentModel, ParentMessage, Message, ParentOutMessage>;
export declare const embed: <ParentMessage>(h: HtmlBuilder<ParentMessage>, config: EmbedConfig<ParentMessage>) => Html;
Spinner
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly loading: Schema.optional<Schema.Boolean>;
}>;
export type ViewProps = typeof Props.Type;
export declare const view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Strong
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly truncate: Schema.optional<Schema.Boolean>;
readonly wrap: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
export type ViewProps = typeof Props.Type;
export declare const view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Switch
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly id: Schema.String;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["classic", "surface", "soft"]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly radius: Schema.optional<Schema.Literals<readonly ["none", "small", "medium", "large", "full"]>>;
readonly highContrast: Schema.optional<Schema.Boolean>;
readonly checked: Schema.optional<Schema.Boolean>;
readonly defaultChecked: Schema.optional<Schema.Boolean>;
readonly disabled: Schema.optional<Schema.Boolean>;
readonly readOnly: Schema.optional<Schema.Boolean>;
readonly name: Schema.optional<Schema.String>;
readonly value: Schema.optional<Schema.String>;
readonly ariaLabel: Schema.optional<Schema.String>;
readonly onCheckedChange: Schema.optional<Schema.declare<(checked: boolean) => unknown, (checked: boolean) => unknown>>;
}>;
export type Props = typeof Props.Type;
export declare const view: <Message>(props: Props & {
onCheckedChange?: (checked: boolean) => Message;
}, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Table
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
declare const rootProps: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["surface", "ghost"]>>;
readonly layout: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
declare const alignProps: Schema.Struct<{
readonly align: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
declare const cellProps: Schema.Struct<{
readonly p: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly px: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly py: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pl: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly justify: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly width: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly minWidth: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly maxWidth: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
declare const emptyProps: Schema.Struct<{}>;
export declare const Root: {
Props: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["surface", "ghost"]>>;
readonly layout: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
view: <M>(props: typeof rootProps.Type, children: ReadonlyArray<Html | string>, h: HtmlBuilder<M>) => Html;
};
export declare const Header: {
Props: Schema.Struct<{}>;
view: <M>(_props: typeof emptyProps.Type, children: ReadonlyArray<Html | string>, h: HtmlBuilder<M>) => Html;
};
export declare const Body: {
Props: Schema.Struct<{}>;
view: <M>(_props: typeof emptyProps.Type, children: ReadonlyArray<Html | string>, h: HtmlBuilder<M>) => Html;
};
export declare const Row: {
Props: Schema.Struct<{
readonly align: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
view: <M>(props: typeof alignProps.Type, children: ReadonlyArray<Html | string>, h: HtmlBuilder<M>) => Html;
};
export declare const Cell: {
Props: Schema.Struct<{
readonly p: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly px: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly py: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pl: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly justify: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly width: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly minWidth: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly maxWidth: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
view: <M>(props: typeof cellProps.Type, children: ReadonlyArray<Html | string>, h: HtmlBuilder<M>) => Html;
};
export declare const ColumnHeaderCell: {
Props: Schema.Struct<{
readonly p: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly px: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly py: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pl: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly justify: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly width: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly minWidth: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly maxWidth: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
view: <M>(props: typeof cellProps.Type, children: ReadonlyArray<Html | string>, h: HtmlBuilder<M>) => Html;
};
export declare const RowHeaderCell: {
Props: Schema.Struct<{
readonly p: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly px: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly py: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly pl: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly justify: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly width: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly minWidth: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly maxWidth: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
}>;
view: <M>(props: typeof cellProps.Type, children: ReadonlyArray<Html | string>, h: HtmlBuilder<M>) => Html;
};
export {};
TabNav
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly items: Schema.$Array<Schema.Struct<{
readonly value: Schema.String;
readonly href: Schema.String;
readonly label: Schema.String;
}>>;
readonly currentValue: Schema.String;
readonly ariaLabel: Schema.String;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly wrap: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly justify: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly highContrast: Schema.optional<Schema.Boolean>;
}>;
export type Props = typeof Props.Type;
export declare const view: <Message>(props: Props, _children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Tabs
import { type Html, type HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
import * as Update from '@wsagency/wseffect-foldkit/update';
import * as UiTabs from '@wsagency/wseffect-foldkit-ui/tabs';
import type { ViewInputs as TabsViewInputs } from '@wsagency/wseffect-foldkit-ui/tabs';
export type ThemedViewInputs<Value extends string> = Omit<TabsViewInputs<Value>, 'toView'> & Readonly<{
tabToLabel: (value: Value) => Html;
tabToPanel: (value: Value) => ReadonlyArray<Html | string>;
}>;
export type EmbedConfig<Value extends string, ParentMessage> = Readonly<{
slotId: string;
model: UiTabs.Model;
toParentMessage: (message: UiTabs.Message) => ParentMessage;
viewInputs: ThemedViewInputs<Value>;
}>;
export type Bundle<Value extends string> = Readonly<{
Model: typeof UiTabs.Model;
Message: typeof UiTabs.Message;
OutMessage: typeof UiTabs.OutMessage;
init: typeof UiTabs.init;
update: UiTabs.Bundle<Value>['update'];
view: (model: UiTabs.Model, inputs: ThemedViewInputs<Value>, h: HtmlBuilder<UiTabs.Message>) => Html;
fold: <ParentModel, ParentMessage, ParentOutMessage>(config: Omit<Update.ChildFoldWithDerivedParentOutMessage<ParentModel, ParentMessage, UiTabs.Model, UiTabs.Message, UiTabs.Message, UiTabs.OutMessage<Value>, ParentOutMessage>, 'update'>) => Update.FoldWithOutMessage<ParentModel, ParentMessage, UiTabs.Message, ParentOutMessage>;
embed: <ParentMessage>(h: HtmlBuilder<ParentMessage>, config: EmbedConfig<Value, ParentMessage>) => Html;
}>;
export declare const create: <Value extends string>() => Bundle<Value>;
Text
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly m: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mx: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly my: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mt: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mr: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly mb: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly ml: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly as: Schema.optional<Schema.Literals<readonly ["span", "div", "label", "p"]>>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly weight: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly align: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
}>;
export type ViewProps = typeof Props.Type;
export declare const view: <Message>(props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
TextArea
import { Schema } from 'effect';
import type { Html, HtmlBuilder, TextareaAttribute } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly id: Schema.String;
readonly label: Schema.optional<Schema.String>;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["classic", "surface", "soft"]>>;
readonly resize: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly radius: Schema.optional<Schema.Literals<readonly ["none", "small", "medium", "large", "full"]>>;
readonly value: Schema.optional<Schema.String>;
readonly defaultValue: Schema.optional<Schema.String>;
readonly disabled: Schema.optional<Schema.Boolean>;
readonly readOnly: Schema.optional<Schema.Boolean>;
readonly invalid: Schema.optional<Schema.Boolean>;
readonly autofocus: Schema.optional<Schema.Boolean>;
readonly name: Schema.optional<Schema.String>;
readonly required: Schema.optional<Schema.Boolean>;
readonly rows: Schema.optional<Schema.Number>;
readonly placeholder: Schema.optional<Schema.String>;
}>;
export type Props = typeof Props.Type;
export type ViewProps<Message> = Props & Readonly<{
onInput?: (value: string) => Message;
/** Additional native textarea attributes and event handlers. The typed list supports Foldkit's full textarea attribute set and is forwarded directly to the `<textarea>`. */
textareaAttributes?: ReadonlyArray<TextareaAttribute<Message>>;
}>;
export declare const view: <Message>(props: ViewProps<Message>, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
TextField
import { Schema } from 'effect';
import type { Attribute, Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{
readonly id: Schema.String;
readonly label: Schema.String;
readonly size: Schema.optional<Schema.Union<readonly [Schema.Literals<readonly string[]> | Schema.String, Schema.Struct<{
[k: string]: Schema.optional<Schema.Literals<readonly string[]> | Schema.String>;
}>]>>;
readonly variant: Schema.optional<Schema.Literals<readonly ["classic", "surface", "soft"]>>;
readonly radius: Schema.optional<Schema.Literals<readonly ["none", "small", "medium", "large", "full"]>>;
readonly value: Schema.optional<Schema.String>;
readonly placeholder: Schema.optional<Schema.String>;
readonly type: Schema.optional<Schema.String>;
readonly disabled: Schema.optional<Schema.Boolean>;
readonly readOnly: Schema.optional<Schema.Boolean>;
readonly invalid: Schema.optional<Schema.Boolean>;
readonly color: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
}>;
export type ViewProps<Message> = typeof Props.Type & Readonly<{
onInput?: (value: string) => Message;
inputAttributes?: ReadonlyArray<Attribute<Message>>;
}>;
export declare const view: <Message>(props: ViewProps<Message>, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
Theme
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export { defaults } from './themeAttributes.js';
export declare const Settings: Schema.Struct<{
readonly accentColor: Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>;
readonly grayColor: Schema.Literals<readonly ["auto", "gray", "mauve", "slate", "sage", "olive", "sand"]>;
readonly radius: Schema.Literals<readonly ["none", "small", "medium", "large", "full"]>;
readonly scaling: Schema.Literals<readonly ["90%", "95%", "100%", "105%", "110%"]>;
readonly appearance: Schema.Literals<readonly ["inherit", "light", "dark"]>;
readonly panelBackground: Schema.Literals<readonly ["solid", "translucent"]>;
readonly hasBackground: Schema.Boolean;
}>;
export type Settings = typeof Settings.Type;
export type ViewProps = Readonly<{
settings: Partial<Settings>;
isRoot: boolean;
id?: string;
}>;
export declare const view: <Message>({ settings, isRoot, id }: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
ThemePanel
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
import * as Theme from './theme.js';
export type ThemeSettings = typeof Theme.Settings.Type;
export declare const Props: Schema.Struct<{
readonly isOpen: Schema.Boolean;
readonly settings: Schema.Struct<{
readonly accentColor: Schema.optional<Schema.Literals<readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom"]>>;
readonly grayColor: Schema.optional<Schema.Literals<readonly ["auto", "gray", "mauve", "slate", "sage", "olive", "sand"]>>;
readonly radius: Schema.optional<Schema.Literals<readonly ["none", "small", "medium", "large", "full"]>>;
readonly scaling: Schema.optional<Schema.Literals<readonly ["90%", "95%", "100%", "105%", "110%"]>>;
readonly appearance: Schema.optional<Schema.Literals<readonly ["inherit", "light", "dark"]>>;
readonly panelBackground: Schema.optional<Schema.Literals<readonly ["solid", "translucent"]>>;
readonly hasBackground: Schema.optional<Schema.Boolean>;
}>;
}>;
export type Message = {
_tag: 'SettingsChanged';
settings: Partial<ThemeSettings>;
};
export type ViewProps = typeof Props.Type & Readonly<{
toSettingsChanged(settings: Partial<ThemeSettings>): Message;
}>;
export declare const view: <M>(props: ViewProps, _children: ReadonlyArray<Html | string>, h: HtmlBuilder<M | Message>) => Html;
Tooltip
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
import * as Update from '@wsagency/wseffect-foldkit/update';
import * as UiTooltip from '@wsagency/wseffect-foldkit-ui/tooltip';
import type { AnchorConfig } from '@wsagency/wseffect-foldkit-ui/anchor';
import * as TooltipGroup from '@wsagency/wseffect-foldkit-ui/tooltip/group';
export { Model, Message, OutMessage, update, triggerId } from '@wsagency/wseffect-foldkit-ui/tooltip';
export declare const init: (config: UiTooltip.InitConfig) => UiTooltip.Model;
export type ViewInputs<Message> = Readonly<{
trigger: ReadonlyArray<Html | string>;
content: ReadonlyArray<Html | string>;
anchor?: AnchorConfig;
isDisabled?: boolean;
ariaLabel?: string;
ariaLabelledBy?: string;
}>;
export type EmbedConfig<Message> = Readonly<{
slotId: string;
model: UiTooltip.Model;
toParentMessage: (message: UiTooltip.Message) => Message;
viewInputs: ViewInputs<Message>;
}>;
export declare const reflectShowDelay: (model: UiTooltip.Model, group: TooltipGroup.Model) => UiTooltip.Model;
export declare const fold: <ParentModel, ParentMessage, ParentOutMessage>(config: Omit<Update.ChildFoldWithDerivedParentOutMessage<ParentModel, ParentMessage, UiTooltip.Model, UiTooltip.Message, UiTooltip.Message, UiTooltip.OutMessage, ParentOutMessage>, 'update'> & Readonly<{
readGroup?: (parentModel: ParentModel) => TooltipGroup.Model;
}>) => Update.FoldWithOutMessage<ParentModel, ParentMessage, UiTooltip.Message, ParentOutMessage>;
export declare const embed: <ParentMessage>(h: HtmlBuilder<ParentMessage>, config: EmbedConfig<ParentMessage>) => Html;
VisuallyHidden
import { Schema } from 'effect';
import type { Html, HtmlBuilder } from '@wsagency/wseffect-foldkit/html';
export declare const Props: Schema.Struct<{}>;
export type ViewProps = typeof Props.Type;
export declare const view: <Message>(_props: ViewProps, children: ReadonlyArray<Html | string>, h: HtmlBuilder<Message>) => Html;
AccessibleIcon.Props
Props exported by @wsagency/wseffect-themes · AccessibleIcon.Props · source| Name | Type | Required | Choices | Description |
|---|
label | string | Yes | — | — |
|---|
AspectRatio.Props
Props exported by @wsagency/wseffect-themes · AspectRatio.Props · source| Name | Type | Required | Choices | Description |
|---|
ratio | number | No | — | — |
|---|
Avatar.Props
Props exported by @wsagency/wseffect-themes · Avatar.Props · source| Name | Type | Required | Choices | Description |
|---|
src | string | No | — | — |
|---|
alt | string | No | — | — |
|---|
fallback | unknown | Yes | — | — |
|---|
size | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | Responsive<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"> | No | — | — |
|---|
variant | "solid" | "soft" | No | "solid", "soft" | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
highContrast | boolean | No | — | — |
|---|
radius | "none" | "small" | "medium" | "large" | "full" | No | "none", "small", "medium", "large", "full" | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
Badge.Props
Props exported by @wsagency/wseffect-themes · Badge.Props · source| Name | Type | Required | Choices | Description |
|---|
role | string | No | — | — |
|---|
size | "1" | "2" | "3" | Responsive<"1" | "2" | "3"> | No | — | — |
|---|
variant | "solid" | "soft" | "surface" | "outline" | No | "solid", "soft", "surface", "outline" | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
highContrast | boolean | No | — | — |
|---|
radius | "none" | "small" | "medium" | "large" | "full" | No | "none", "small", "medium", "large", "full" | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
Blockquote.Props
Props exported by @wsagency/wseffect-themes · Blockquote.Props · source| Name | Type | Required | Choices | Description |
|---|
size | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | Responsive<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"> | No | — | — |
|---|
weight | "light" | "regular" | "medium" | "bold" | Responsive<"light" | "regular" | "medium" | "bold"> | No | — | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
highContrast | boolean | No | — | — |
|---|
truncate | boolean | No | — | — |
|---|
wrap | "wrap" | "nowrap" | "pretty" | "balance" | Responsive<"wrap" | "nowrap" | "pretty" | "balance"> | No | — | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
Box.Props
Props exported by @wsagency/wseffect-themes · Box.Props · source| Name | Type | Required | Choices | Description |
|---|
as | "div" | "span" | No | "div", "span" | — |
|---|
display | "none" | "inline" | "inline-block" | "block" | "contents" | "flex" | "inline-flex" | "grid" | "inline-grid" | Responsive<"none" | "inline" | "inline-block" | "block" | "contents" | "flex" | "inline-flex" | "grid" | "inline-grid"> | No | — | — |
|---|
position | "static" | "relative" | "absolute" | "fixed" | "sticky" | Responsive<"static" | "relative" | "absolute" | "fixed" | "sticky"> | No | — | — |
|---|
overflow | "visible" | "hidden" | "clip" | "scroll" | "auto" | Responsive<"visible" | "hidden" | "clip" | "scroll" | "auto"> | No | — | — |
|---|
width | string | Responsive<string> | No | — | — |
|---|
minWidth | string | Responsive<string> | No | — | — |
|---|
maxWidth | string | Responsive<string> | No | — | — |
|---|
height | string | Responsive<string> | No | — | — |
|---|
minHeight | string | Responsive<string> | No | — | — |
|---|
maxHeight | string | Responsive<string> | No | — | — |
|---|
p | string | Responsive<string> | No | — | — |
|---|
px | string | Responsive<string> | No | — | — |
|---|
py | string | Responsive<string> | No | — | — |
|---|
pt | string | Responsive<string> | No | — | — |
|---|
pr | string | Responsive<string> | No | — | — |
|---|
pb | string | Responsive<string> | No | — | — |
|---|
pl | string | Responsive<string> | No | — | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
Button.Props
Props exported by @wsagency/wseffect-themes · Button.Props · source| Name | Type | Required | Choices | Description |
|---|
size | "1" | "2" | "3" | "4" | Responsive<"1" | "2" | "3" | "4"> | No | — | — |
|---|
variant | "classic" | "solid" | "soft" | "surface" | "outline" | "ghost-offset" | "ghost" | No | "classic", "solid", "soft", "surface", "outline", "ghost-offset", "ghost" | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
radius | "none" | "small" | "medium" | "large" | "full" | No | "none", "small", "medium", "large", "full" | — |
|---|
highContrast | boolean | No | — | — |
|---|
disabled | boolean | No | — | — |
|---|
loading | boolean | No | — | — |
|---|
type | "button" | "submit" | "reset" | No | "button", "submit", "reset" | — |
|---|
Callout.Icon.Props
Props exported by @wsagency/wseffect-themes · Callout.Icon.Props · source| Name | Type | Required | Choices | Description |
|---|
Callout.Root.Props
Props exported by @wsagency/wseffect-themes · Callout.Root.Props · source| Name | Type | Required | Choices | Description |
|---|
size | "1" | "2" | "3" | Responsive<"1" | "2" | "3"> | No | — | — |
|---|
variant | "soft" | "surface" | "outline" | No | "soft", "surface", "outline" | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
highContrast | boolean | No | — | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
Callout.Text.Props
Props exported by @wsagency/wseffect-themes · Callout.Text.Props · source| Name | Type | Required | Choices | Description |
|---|
size | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | Responsive<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"> | No | — | — |
|---|
weight | "light" | "regular" | "medium" | "bold" | Responsive<"light" | "regular" | "medium" | "bold"> | No | — | — |
|---|
align | "left" | "center" | "right" | Responsive<"left" | "center" | "right"> | No | — | — |
|---|
trim | "normal" | "start" | "end" | "both" | Responsive<"normal" | "start" | "end" | "both"> | No | — | — |
|---|
wrap | "wrap" | "nowrap" | "pretty" | "balance" | Responsive<"wrap" | "nowrap" | "pretty" | "balance"> | No | — | — |
|---|
truncate | boolean | No | — | — |
|---|
highContrast | boolean | No | — | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
Card.Props
Props exported by @wsagency/wseffect-themes · Card.Props · source| Name | Type | Required | Choices | Description |
|---|
as | "div" | "span" | No | "div", "span" | — |
|---|
size | "1" | "2" | "3" | "4" | "5" | Responsive<"1" | "2" | "3" | "4" | "5"> | No | — | — |
|---|
variant | "surface" | "classic" | "ghost" | No | "surface", "classic", "ghost" | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
Checkbox.Props
Props exported by @wsagency/wseffect-themes · Checkbox.Props · source| Name | Type | Required | Choices | Description |
|---|
id | string | Yes | — | — |
|---|
size | "1" | "2" | "3" | Responsive<"1" | "2" | "3"> | No | — | — |
|---|
variant | "classic" | "surface" | "soft" | No | "classic", "surface", "soft" | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
radius | "none" | "small" | "medium" | "large" | "full" | No | "none", "small", "medium", "large", "full" | — |
|---|
highContrast | boolean | No | — | — |
|---|
checked | boolean | No | — | — |
|---|
defaultChecked | boolean | No | — | — |
|---|
indeterminate | boolean | No | — | — |
|---|
disabled | boolean | No | — | — |
|---|
readOnly | boolean | No | — | — |
|---|
name | string | No | — | — |
|---|
value | string | No | — | — |
|---|
ariaLabel | string | No | — | — |
|---|
onCheckedChange | Unsupported<Declaration> | Yes | — | — |
|---|
CheckboxCards.Props
Props exported by @wsagency/wseffect-themes · CheckboxCards.Props · source| Name | Type | Required | Choices | Description |
|---|
id | string | Yes | — | — |
|---|
label | string | No | — | — |
|---|
ariaLabel | string | No | — | — |
|---|
size | "1" | "2" | "3" | Responsive<"1" | "2" | "3"> | No | — | — |
|---|
variant | "surface" | "classic" | No | "surface", "classic" | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
highContrast | boolean | No | — | — |
|---|
columns | string | Responsive<string> | No | — | — |
|---|
gap | string | Responsive<string> | No | — | — |
|---|
isDisabled | boolean | No | — | — |
|---|
CheckboxGroup.Props
Props exported by @wsagency/wseffect-themes · CheckboxGroup.Props · source| Name | Type | Required | Choices | Description |
|---|
id | string | Yes | — | — |
|---|
size | "1" | "2" | "3" | Responsive<"1" | "2" | "3"> | No | — | — |
|---|
variant | "classic" | "surface" | "soft" | No | "classic", "surface", "soft" | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
highContrast | boolean | No | — | — |
|---|
isDisabled | boolean | No | — | — |
|---|
ariaLabel | string | No | — | — |
|---|
Code.Props
Props exported by @wsagency/wseffect-themes · Code.Props · source| Name | Type | Required | Choices | Description |
|---|
size | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | Responsive<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"> | No | — | — |
|---|
variant | "solid" | "soft" | "outline" | "ghost" | No | "solid", "soft", "outline", "ghost" | — |
|---|
weight | "light" | "regular" | "medium" | "bold" | Responsive<"light" | "regular" | "medium" | "bold"> | No | — | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
highContrast | boolean | No | — | — |
|---|
truncate | boolean | No | — | — |
|---|
wrap | "wrap" | "nowrap" | "pretty" | "balance" | Responsive<"wrap" | "nowrap" | "pretty" | "balance"> | No | — | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
Container.Props
Props exported by @wsagency/wseffect-themes · Container.Props · source| Name | Type | Required | Choices | Description |
|---|
size | "1" | "2" | "3" | "4" | Responsive<"1" | "2" | "3" | "4"> | No | — | — |
|---|
display | "none" | "initial" | Responsive<"none" | "initial"> | No | — | — |
|---|
align | "left" | "center" | "right" | Responsive<"left" | "center" | "right"> | No | — | — |
|---|
position | "static" | "relative" | "absolute" | "fixed" | "sticky" | Responsive<"static" | "relative" | "absolute" | "fixed" | "sticky"> | No | — | — |
|---|
inset | string | Responsive<string> | No | — | — |
|---|
top | string | Responsive<string> | No | — | — |
|---|
right | string | Responsive<string> | No | — | — |
|---|
bottom | string | Responsive<string> | No | — | — |
|---|
left | string | Responsive<string> | No | — | — |
|---|
overflow | "visible" | "hidden" | "clip" | "scroll" | "auto" | Responsive<"visible" | "hidden" | "clip" | "scroll" | "auto"> | No | — | — |
|---|
overflowX | "visible" | "hidden" | "clip" | "scroll" | "auto" | Responsive<"visible" | "hidden" | "clip" | "scroll" | "auto"> | No | — | — |
|---|
overflowY | "visible" | "hidden" | "clip" | "scroll" | "auto" | Responsive<"visible" | "hidden" | "clip" | "scroll" | "auto"> | No | — | — |
|---|
width | string | Responsive<string> | No | — | — |
|---|
minWidth | string | Responsive<string> | No | — | — |
|---|
maxWidth | string | Responsive<string> | No | — | — |
|---|
height | string | Responsive<string> | No | — | — |
|---|
minHeight | string | Responsive<string> | No | — | — |
|---|
maxHeight | string | Responsive<string> | No | — | — |
|---|
flexBasis | string | Responsive<string> | No | — | — |
|---|
flexShrink | string | Responsive<string> | No | — | — |
|---|
flexGrow | string | Responsive<string> | No | — | — |
|---|
gridArea | string | Responsive<string> | No | — | — |
|---|
gridColumn | string | Responsive<string> | No | — | — |
|---|
gridColumnStart | string | Responsive<string> | No | — | — |
|---|
gridColumnEnd | string | Responsive<string> | No | — | — |
|---|
gridRow | string | Responsive<string> | No | — | — |
|---|
gridRowStart | string | Responsive<string> | No | — | — |
|---|
gridRowEnd | string | Responsive<string> | No | — | — |
|---|
alignSelf | "start" | "center" | "end" | "baseline" | "stretch" | Responsive<"start" | "center" | "end" | "baseline" | "stretch"> | No | — | — |
|---|
justifySelf | "start" | "center" | "end" | "baseline" | "stretch" | Responsive<"start" | "center" | "end" | "baseline" | "stretch"> | No | — | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
ContextMenu.Props
Props exported by @wsagency/wseffect-themes · ContextMenu.Props · source| Name | Type | Required | Choices | Description |
|---|
variant | "solid" | "soft" | No | "solid", "soft" | — |
|---|
size | "1" | "2" | Responsive<"1" | "2"> | No | — | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
highContrast | boolean | No | — | — |
|---|
DataList.Item.Props
Props exported by @wsagency/wseffect-themes · DataList.Item.Props · source| Name | Type | Required | Choices | Description |
|---|
align | "start" | "center" | "end" | "baseline" | "stretch" | Responsive<"start" | "center" | "end" | "baseline" | "stretch"> | No | — | — |
|---|
DataList.Label.Props
Props exported by @wsagency/wseffect-themes · DataList.Label.Props · source| Name | Type | Required | Choices | Description |
|---|
width | string | Responsive<string> | No | — | — |
|---|
minWidth | string | Responsive<string> | No | — | — |
|---|
maxWidth | string | Responsive<string> | No | — | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
highContrast | boolean | No | — | — |
|---|
DataList.Root.Props
Props exported by @wsagency/wseffect-themes · DataList.Root.Props · source| Name | Type | Required | Choices | Description |
|---|
orientation | "horizontal" | "vertical" | Responsive<"horizontal" | "vertical"> | No | — | — |
|---|
size | "1" | "2" | "3" | Responsive<"1" | "2" | "3"> | No | — | — |
|---|
trim | "normal" | "start" | "end" | "both" | Responsive<"normal" | "start" | "end" | "both"> | No | — | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
DataList.Value.Props
Props exported by @wsagency/wseffect-themes · DataList.Value.Props · source| Name | Type | Required | Choices | Description |
|---|
Em.Props
Props exported by @wsagency/wseffect-themes · Em.Props · source| Name | Type | Required | Choices | Description |
|---|
truncate | boolean | No | — | — |
|---|
wrap | "wrap" | "nowrap" | "pretty" | "balance" | Responsive<"wrap" | "nowrap" | "pretty" | "balance"> | No | — | — |
|---|
Flex.Props
Props exported by @wsagency/wseffect-themes · Flex.Props · source| Name | Type | Required | Choices | Description |
|---|
as | "div" | "span" | No | "div", "span" | — |
|---|
direction | "row" | "column" | "row-reverse" | "column-reverse" | Responsive<"row" | "column" | "row-reverse" | "column-reverse"> | No | — | — |
|---|
align | "start" | "center" | "end" | "baseline" | "stretch" | Responsive<"start" | "center" | "end" | "baseline" | "stretch"> | No | — | — |
|---|
justify | "start" | "center" | "end" | "between" | Responsive<"start" | "center" | "end" | "between"> | No | — | — |
|---|
wrap | "nowrap" | "wrap" | "wrap-reverse" | Responsive<"nowrap" | "wrap" | "wrap-reverse"> | No | — | — |
|---|
gap | string | Responsive<string> | No | — | — |
|---|
gapX | string | Responsive<string> | No | — | — |
|---|
gapY | string | Responsive<string> | No | — | — |
|---|
p | string | Responsive<string> | No | — | — |
|---|
px | string | Responsive<string> | No | — | — |
|---|
py | string | Responsive<string> | No | — | — |
|---|
pt | string | Responsive<string> | No | — | — |
|---|
pr | string | Responsive<string> | No | — | — |
|---|
pb | string | Responsive<string> | No | — | — |
|---|
pl | string | Responsive<string> | No | — | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
Grid.Props
Props exported by @wsagency/wseffect-themes · Grid.Props · source| Name | Type | Required | Choices | Description |
|---|
as | "div" | "span" | No | "div", "span" | — |
|---|
columns | string | Responsive<string> | No | — | — |
|---|
rows | string | Responsive<string> | No | — | — |
|---|
flow | "row" | "column" | "dense" | "row-dense" | "column-dense" | Responsive<"row" | "column" | "dense" | "row-dense" | "column-dense"> | No | — | — |
|---|
align | "start" | "center" | "end" | "baseline" | "stretch" | Responsive<"start" | "center" | "end" | "baseline" | "stretch"> | No | — | — |
|---|
justify | "start" | "center" | "end" | "between" | Responsive<"start" | "center" | "end" | "between"> | No | — | — |
|---|
alignContent | "start" | "center" | "end" | "baseline" | "between" | "around" | "evenly" | "stretch" | Responsive<"start" | "center" | "end" | "baseline" | "between" | "around" | "evenly" | "stretch"> | No | — | — |
|---|
justifyItems | "start" | "center" | "end" | "baseline" | "stretch" | Responsive<"start" | "center" | "end" | "baseline" | "stretch"> | No | — | — |
|---|
gap | string | Responsive<string> | No | — | — |
|---|
gapX | string | Responsive<string> | No | — | — |
|---|
gapY | string | Responsive<string> | No | — | — |
|---|
p | string | Responsive<string> | No | — | — |
|---|
px | string | Responsive<string> | No | — | — |
|---|
py | string | Responsive<string> | No | — | — |
|---|
pt | string | Responsive<string> | No | — | — |
|---|
pr | string | Responsive<string> | No | — | — |
|---|
pb | string | Responsive<string> | No | — | — |
|---|
pl | string | Responsive<string> | No | — | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
Heading.Props
Props exported by @wsagency/wseffect-themes · Heading.Props · source| Name | Type | Required | Choices | Description |
|---|
as | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | No | "h1", "h2", "h3", "h4", "h5", "h6" | — |
|---|
size | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | Responsive<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"> | No | — | — |
|---|
weight | "light" | "regular" | "medium" | "bold" | Responsive<"light" | "regular" | "medium" | "bold"> | No | — | — |
|---|
align | "left" | "center" | "right" | Responsive<"left" | "center" | "right"> | No | — | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
IconButton.Props
Props exported by @wsagency/wseffect-themes · IconButton.Props · source| Name | Type | Required | Choices | Description |
|---|
size | "1" | "2" | "3" | "4" | Responsive<"1" | "2" | "3" | "4"> | No | — | — |
|---|
variant | "classic" | "solid" | "soft" | "surface" | "outline" | "ghost-offset" | "ghost" | No | "classic", "solid", "soft", "surface", "outline", "ghost-offset", "ghost" | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
radius | "none" | "small" | "medium" | "large" | "full" | No | "none", "small", "medium", "large", "full" | — |
|---|
highContrast | boolean | No | — | — |
|---|
disabled | boolean | No | — | — |
|---|
loading | boolean | No | — | — |
|---|
type | "button" | "submit" | "reset" | No | "button", "submit", "reset" | — |
|---|
aria-label | string | No | — | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
Inset.Props
Props exported by @wsagency/wseffect-themes · Inset.Props · source| Name | Type | Required | Choices | Description |
|---|
side | "all" | "x" | "y" | "top" | "bottom" | "left" | "right" | Responsive<"all" | "x" | "y" | "top" | "bottom" | "left" | "right"> | No | — | — |
|---|
clip | "border-box" | "padding-box" | Responsive<"border-box" | "padding-box"> | No | — | — |
|---|
p | "current" | "0" | Responsive<"current" | "0"> | No | — | — |
|---|
px | "current" | "0" | Responsive<"current" | "0"> | No | — | — |
|---|
py | "current" | "0" | Responsive<"current" | "0"> | No | — | — |
|---|
pt | "current" | "0" | Responsive<"current" | "0"> | No | — | — |
|---|
pr | "current" | "0" | Responsive<"current" | "0"> | No | — | — |
|---|
pb | "current" | "0" | Responsive<"current" | "0"> | No | — | — |
|---|
pl | "current" | "0" | Responsive<"current" | "0"> | No | — | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
Kbd.Props
Props exported by @wsagency/wseffect-themes · Kbd.Props · source| Name | Type | Required | Choices | Description |
|---|
size | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | Responsive<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"> | No | — | — |
|---|
variant | "classic" | "soft" | No | "classic", "soft" | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
Link.Props
Props exported by @wsagency/wseffect-themes · Link.Props · source| Name | Type | Required | Choices | Description |
|---|
href | string | No | — | — |
|---|
target | string | No | — | — |
|---|
rel | string | No | — | — |
|---|
download | string | boolean | No | — | — |
|---|
size | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | Responsive<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"> | No | — | — |
|---|
weight | "light" | "regular" | "medium" | "bold" | Responsive<"light" | "regular" | "medium" | "bold"> | No | — | — |
|---|
trim | "normal" | "start" | "end" | "both" | Responsive<"normal" | "start" | "end" | "both"> | No | — | — |
|---|
truncate | boolean | No | — | — |
|---|
wrap | "wrap" | "nowrap" | "pretty" | "balance" | Responsive<"wrap" | "nowrap" | "pretty" | "balance"> | No | — | — |
|---|
underline | "auto" | "always" | "hover" | "none" | No | "auto", "always", "hover", "none" | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
highContrast | boolean | No | — | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
Progress.Props
Props exported by @wsagency/wseffect-themes · Progress.Props · source| Name | Type | Required | Choices | Description |
|---|
id | string | No | — | — |
|---|
ariaLabel | string | No | — | — |
|---|
ariaLabelledBy | string | No | — | — |
|---|
size | "1" | "2" | "3" | Responsive<"1" | "2" | "3"> | No | — | — |
|---|
variant | "classic" | "surface" | "soft" | No | "classic", "surface", "soft" | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
highContrast | boolean | No | — | — |
|---|
radius | "none" | "small" | "medium" | "large" | "full" | No | "none", "small", "medium", "large", "full" | — |
|---|
value | number | null | No | — | — |
|---|
min | number | No | — | — |
|---|
max | number | No | — | — |
|---|
valueText | string | No | — | — |
|---|
getValueLabel | unknown | No | — | — |
|---|
duration | string | No | — | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
Quote.Props
Props exported by @wsagency/wseffect-themes · Quote.Props · source| Name | Type | Required | Choices | Description |
|---|
truncate | boolean | No | — | — |
|---|
wrap | "wrap" | "nowrap" | "pretty" | "balance" | Responsive<"wrap" | "nowrap" | "pretty" | "balance"> | No | — | — |
|---|
Radio.Props
Props exported by @wsagency/wseffect-themes · Radio.Props · source| Name | Type | Required | Choices | Description |
|---|
id | string | Yes | — | — |
|---|
value | string | Yes | — | — |
|---|
name | string | No | — | — |
|---|
checked | boolean | No | — | — |
|---|
disabled | boolean | No | — | — |
|---|
size | "1" | "2" | "3" | Responsive<"1" | "2" | "3"> | No | — | — |
|---|
variant | "classic" | "surface" | "soft" | No | "classic", "surface", "soft" | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
highContrast | boolean | No | — | — |
|---|
onValueChange | Unsupported<Declaration> | No | — | — |
|---|
RadioCards.Props
Props exported by @wsagency/wseffect-themes · RadioCards.Props · source| Name | Type | Required | Choices | Description |
|---|
size | "1" | "2" | "3" | Responsive<"1" | "2" | "3"> | No | — | — |
|---|
variant | "surface" | "classic" | No | "surface", "classic" | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
highContrast | boolean | No | — | — |
|---|
columns | string | Responsive<string> | No | — | — |
|---|
gap | string | Responsive<string> | No | — | — |
|---|
RadioGroup.Props
Props exported by @wsagency/wseffect-themes · RadioGroup.Props · source| Name | Type | Required | Choices | Description |
|---|
size | "1" | "2" | "3" | Responsive<"1" | "2" | "3"> | No | — | — |
|---|
variant | "classic" | "surface" | "soft" | No | "classic", "surface", "soft" | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
highContrast | boolean | No | — | — |
|---|
ScrollArea.Props
Props exported by @wsagency/wseffect-themes · ScrollArea.Props · source| Name | Type | Required | Choices | Description |
|---|
size | "1" | "2" | "3" | Responsive<"1" | "2" | "3"> | No | — | — |
|---|
radius | "none" | "small" | "medium" | "large" | "full" | No | "none", "small", "medium", "large", "full" | — |
|---|
scrollbars | "vertical" | "horizontal" | "both" | No | "vertical", "horizontal", "both" | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
Section.Props
Props exported by @wsagency/wseffect-themes · Section.Props · source| Name | Type | Required | Choices | Description |
|---|
size | "1" | "2" | "3" | "4" | Responsive<"1" | "2" | "3" | "4"> | No | — | — |
|---|
display | "none" | "initial" | Responsive<"none" | "initial"> | No | — | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
SegmentedControl.Props
Props exported by @wsagency/wseffect-themes · SegmentedControl.Props · source| Name | Type | Required | Choices | Description |
|---|
size | "1" | "2" | "3" | Responsive<"1" | "2" | "3"> | No | — | — |
|---|
variant | "classic" | "surface" | No | "classic", "surface" | — |
|---|
disabled | boolean | No | — | — |
|---|
radius | "none" | "small" | "medium" | "large" | "full" | No | "none", "small", "medium", "large", "full" | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
Select.Props
Props exported by @wsagency/wseffect-themes · Select.Props · source| Name | Type | Required | Choices | Description |
|---|
size | "1" | "2" | "3" | Responsive<"1" | "2" | "3"> | No | — | — |
|---|
variant | "classic" | "surface" | "soft" | "ghost-offset" | "ghost" | No | "classic", "surface", "soft", "ghost-offset", "ghost" | — |
|---|
contentVariant | "solid" | "soft" | No | "solid", "soft" | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
radius | "none" | "small" | "medium" | "large" | "full" | No | "none", "small", "medium", "large", "full" | — |
|---|
highContrast | boolean | No | — | — |
|---|
placeholder | string | No | — | — |
|---|
Separator.Props
Props exported by @wsagency/wseffect-themes · Separator.Props · source| Name | Type | Required | Choices | Description |
|---|
orientation | "horizontal" | "vertical" | Responsive<"horizontal" | "vertical"> | No | — | — |
|---|
size | "1" | "2" | "3" | "4" | Responsive<"1" | "2" | "3" | "4"> | No | — | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
decorative | boolean | No | — | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
Skeleton.Props
Props exported by @wsagency/wseffect-themes · Skeleton.Props · source| Name | Type | Required | Choices | Description |
|---|
loading | boolean | No | — | — |
|---|
width | string | Responsive<string> | No | — | — |
|---|
minWidth | string | Responsive<string> | No | — | — |
|---|
maxWidth | string | Responsive<string> | No | — | — |
|---|
height | string | Responsive<string> | No | — | — |
|---|
minHeight | string | Responsive<string> | No | — | — |
|---|
maxHeight | string | Responsive<string> | No | — | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
Slider.Props
Props exported by @wsagency/wseffect-themes · Slider.Props · source| Name | Type | Required | Choices | Description |
|---|
size | "1" | "2" | "3" | Responsive<"1" | "2" | "3"> | No | — | — |
|---|
variant | "classic" | "surface" | "soft" | No | "classic", "surface", "soft" | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
highContrast | boolean | No | — | — |
|---|
radius | "none" | "small" | "medium" | "large" | "full" | No | "none", "small", "medium", "large", "full" | — |
|---|
Spinner.Props
Props exported by @wsagency/wseffect-themes · Spinner.Props · source| Name | Type | Required | Choices | Description |
|---|
size | "1" | "2" | "3" | Responsive<"1" | "2" | "3"> | No | — | — |
|---|
loading | boolean | No | — | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
Strong.Props
Props exported by @wsagency/wseffect-themes · Strong.Props · source| Name | Type | Required | Choices | Description |
|---|
truncate | boolean | No | — | — |
|---|
wrap | "wrap" | "nowrap" | "pretty" | "balance" | Responsive<"wrap" | "nowrap" | "pretty" | "balance"> | No | — | — |
|---|
Switch.Props
Props exported by @wsagency/wseffect-themes · Switch.Props · source| Name | Type | Required | Choices | Description |
|---|
id | string | Yes | — | — |
|---|
size | "1" | "2" | "3" | Responsive<"1" | "2" | "3"> | No | — | — |
|---|
variant | "classic" | "surface" | "soft" | No | "classic", "surface", "soft" | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
radius | "none" | "small" | "medium" | "large" | "full" | No | "none", "small", "medium", "large", "full" | — |
|---|
highContrast | boolean | No | — | — |
|---|
checked | boolean | No | — | — |
|---|
defaultChecked | boolean | No | — | — |
|---|
disabled | boolean | No | — | — |
|---|
readOnly | boolean | No | — | — |
|---|
name | string | No | — | — |
|---|
value | string | No | — | — |
|---|
ariaLabel | string | No | — | — |
|---|
onCheckedChange | Unsupported<Declaration> | No | — | — |
|---|
Table.Body.Props
Props exported by @wsagency/wseffect-themes · Table.Body.Props · source| Name | Type | Required | Choices | Description |
|---|
Table.Cell.Props
Props exported by @wsagency/wseffect-themes · Table.Cell.Props · source| Name | Type | Required | Choices | Description |
|---|
justify | "start" | "center" | "end" | Responsive<"start" | "center" | "end"> | No | — | — |
|---|
width | string | Responsive<string> | No | — | — |
|---|
minWidth | string | Responsive<string> | No | — | — |
|---|
maxWidth | string | Responsive<string> | No | — | — |
|---|
p | string | Responsive<string> | No | — | — |
|---|
px | string | Responsive<string> | No | — | — |
|---|
py | string | Responsive<string> | No | — | — |
|---|
pt | string | Responsive<string> | No | — | — |
|---|
pr | string | Responsive<string> | No | — | — |
|---|
pb | string | Responsive<string> | No | — | — |
|---|
pl | string | Responsive<string> | No | — | — |
|---|
Table.ColumnHeaderCell.Props
Props exported by @wsagency/wseffect-themes · Table.ColumnHeaderCell.Props · source| Name | Type | Required | Choices | Description |
|---|
justify | "start" | "center" | "end" | Responsive<"start" | "center" | "end"> | No | — | — |
|---|
width | string | Responsive<string> | No | — | — |
|---|
minWidth | string | Responsive<string> | No | — | — |
|---|
maxWidth | string | Responsive<string> | No | — | — |
|---|
p | string | Responsive<string> | No | — | — |
|---|
px | string | Responsive<string> | No | — | — |
|---|
py | string | Responsive<string> | No | — | — |
|---|
pt | string | Responsive<string> | No | — | — |
|---|
pr | string | Responsive<string> | No | — | — |
|---|
pb | string | Responsive<string> | No | — | — |
|---|
pl | string | Responsive<string> | No | — | — |
|---|
Table.Header.Props
Props exported by @wsagency/wseffect-themes · Table.Header.Props · source| Name | Type | Required | Choices | Description |
|---|
Table.Root.Props
Props exported by @wsagency/wseffect-themes · Table.Root.Props · source| Name | Type | Required | Choices | Description |
|---|
size | "1" | "2" | "3" | Responsive<"1" | "2" | "3"> | No | — | — |
|---|
variant | "surface" | "ghost" | No | "surface", "ghost" | — |
|---|
layout | "auto" | "fixed" | Responsive<"auto" | "fixed"> | No | — | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
Table.Row.Props
Props exported by @wsagency/wseffect-themes · Table.Row.Props · source| Name | Type | Required | Choices | Description |
|---|
align | "start" | "center" | "end" | "baseline" | Responsive<"start" | "center" | "end" | "baseline"> | No | — | — |
|---|
Table.RowHeaderCell.Props
Props exported by @wsagency/wseffect-themes · Table.RowHeaderCell.Props · source| Name | Type | Required | Choices | Description |
|---|
justify | "start" | "center" | "end" | Responsive<"start" | "center" | "end"> | No | — | — |
|---|
width | string | Responsive<string> | No | — | — |
|---|
minWidth | string | Responsive<string> | No | — | — |
|---|
maxWidth | string | Responsive<string> | No | — | — |
|---|
p | string | Responsive<string> | No | — | — |
|---|
px | string | Responsive<string> | No | — | — |
|---|
py | string | Responsive<string> | No | — | — |
|---|
pt | string | Responsive<string> | No | — | — |
|---|
pr | string | Responsive<string> | No | — | — |
|---|
pb | string | Responsive<string> | No | — | — |
|---|
pl | string | Responsive<string> | No | — | — |
|---|
TabNav.Props
Props exported by @wsagency/wseffect-themes · TabNav.Props · source| Name | Type | Required | Choices | Description |
|---|
items | Array<{ value: string; href: string; label: string }> | Yes | — | — |
|---|
currentValue | string | Yes | — | — |
|---|
ariaLabel | string | Yes | — | — |
|---|
size | "1" | "2" | Responsive<"1" | "2"> | No | — | — |
|---|
wrap | "nowrap" | "wrap" | "wrap-reverse" | Responsive<"nowrap" | "wrap" | "wrap-reverse"> | No | — | — |
|---|
justify | "start" | "center" | "end" | Responsive<"start" | "center" | "end"> | No | — | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
highContrast | boolean | No | — | — |
|---|
Text.Props
Props exported by @wsagency/wseffect-themes · Text.Props · source| Name | Type | Required | Choices | Description |
|---|
as | "span" | "div" | "label" | "p" | No | "span", "div", "label", "p" | — |
|---|
size | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | Responsive<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"> | No | — | — |
|---|
weight | "light" | "regular" | "medium" | "bold" | Responsive<"light" | "regular" | "medium" | "bold"> | No | — | — |
|---|
align | "left" | "center" | "right" | Responsive<"left" | "center" | "right"> | No | — | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
m | string | Responsive<string> | No | — | — |
|---|
mx | string | Responsive<string> | No | — | — |
|---|
my | string | Responsive<string> | No | — | — |
|---|
mt | string | Responsive<string> | No | — | — |
|---|
mr | string | Responsive<string> | No | — | — |
|---|
mb | string | Responsive<string> | No | — | — |
|---|
ml | string | Responsive<string> | No | — | — |
|---|
TextArea.Props
Props exported by @wsagency/wseffect-themes · TextArea.Props · source| Name | Type | Required | Choices | Description |
|---|
id | string | Yes | — | — |
|---|
label | string | No | — | — |
|---|
size | "1" | "2" | "3" | Responsive<"1" | "2" | "3"> | No | — | — |
|---|
variant | "classic" | "surface" | "soft" | No | "classic", "surface", "soft" | — |
|---|
resize | "none" | "vertical" | "horizontal" | "both" | Responsive<"none" | "vertical" | "horizontal" | "both"> | No | — | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
radius | "none" | "small" | "medium" | "large" | "full" | No | "none", "small", "medium", "large", "full" | — |
|---|
value | string | No | — | — |
|---|
defaultValue | string | No | — | — |
|---|
disabled | boolean | No | — | — |
|---|
readOnly | boolean | No | — | — |
|---|
invalid | boolean | No | — | — |
|---|
autofocus | boolean | No | — | — |
|---|
name | string | No | — | — |
|---|
required | boolean | No | — | — |
|---|
rows | number | No | — | — |
|---|
placeholder | string | No | — | — |
|---|
TextField.Props
Props exported by @wsagency/wseffect-themes · TextField.Props · source| Name | Type | Required | Choices | Description |
|---|
id | string | Yes | — | — |
|---|
label | string | Yes | — | — |
|---|
size | "1" | "2" | "3" | Responsive<"1" | "2" | "3"> | No | — | — |
|---|
variant | "classic" | "surface" | "soft" | No | "classic", "surface", "soft" | — |
|---|
radius | "none" | "small" | "medium" | "large" | "full" | No | "none", "small", "medium", "large", "full" | — |
|---|
value | string | No | — | — |
|---|
placeholder | string | No | — | — |
|---|
type | string | No | — | — |
|---|
disabled | boolean | No | — | — |
|---|
readOnly | boolean | No | — | — |
|---|
invalid | boolean | No | — | — |
|---|
color | "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom" | No | "gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky", "custom" | — |
|---|
ThemePanel.Props
Props exported by @wsagency/wseffect-themes · ThemePanel.Props · source| Name | Type | Required | Choices | Description |
|---|
isOpen | boolean | Yes | — | — |
|---|
settings | { accentColor?: "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" | "custom"; grayColor?: "auto" | "gray" | "mauve" | "slate" | "sage" | "olive" | "sand"; radius?: "none" | "small" | "medium" | "large" | "full"; scaling?: "90%" | "95%" | "100%" | "105%" | "110%"; appearance?: "inherit" | "light" | "dark"; panelBackground?: "solid" | "translucent"; hasBackground?: boolean } | Yes | — | — |
|---|
VisuallyHidden.Props
Props exported by @wsagency/wseffect-themes · VisuallyHidden.Props · source| Name | Type | Required | Choices | Description |
|---|