@monospaced/set-core 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -0
- package/dist/components/alert/alert.d.ts +59 -0
- package/dist/components/alert/alert.d.ts.map +1 -0
- package/dist/components/avatar/avatar.d.ts +44 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/get-initials.d.ts +18 -0
- package/dist/components/avatar/get-initials.d.ts.map +1 -0
- package/dist/components/badge/badge.d.ts +33 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/banner/banner.d.ts +55 -0
- package/dist/components/banner/banner.d.ts.map +1 -0
- package/dist/components/blockquote/blockquote.d.ts +37 -0
- package/dist/components/blockquote/blockquote.d.ts.map +1 -0
- package/dist/components/box/box.d.ts +43 -0
- package/dist/components/box/box.d.ts.map +1 -0
- package/dist/components/button/button.d.ts +94 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/card/card.d.ts +42 -0
- package/dist/components/card/card.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts +42 -0
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/container/container.d.ts +31 -0
- package/dist/components/container/container.d.ts.map +1 -0
- package/dist/components/details/details.d.ts +35 -0
- package/dist/components/details/details.d.ts.map +1 -0
- package/dist/components/divider/divider.d.ts +29 -0
- package/dist/components/divider/divider.d.ts.map +1 -0
- package/dist/components/expander/expander.d.ts +35 -0
- package/dist/components/expander/expander.d.ts.map +1 -0
- package/dist/components/fieldset/fieldset.d.ts +36 -0
- package/dist/components/fieldset/fieldset.d.ts.map +1 -0
- package/dist/components/figure/figure.d.ts +32 -0
- package/dist/components/figure/figure.d.ts.map +1 -0
- package/dist/components/grid/grid.d.ts +80 -0
- package/dist/components/grid/grid.d.ts.map +1 -0
- package/dist/components/heading/heading.d.ts +35 -0
- package/dist/components/heading/heading.d.ts.map +1 -0
- package/dist/components/icon/icon.d.ts +42 -0
- package/dist/components/icon/icon.d.ts.map +1 -0
- package/dist/components/icon/icons.generated.d.ts +7 -0
- package/dist/components/icon/icons.generated.d.ts.map +1 -0
- package/dist/components/image/image.d.ts +82 -0
- package/dist/components/image/image.d.ts.map +1 -0
- package/dist/components/inline/inline.d.ts +39 -0
- package/dist/components/inline/inline.d.ts.map +1 -0
- package/dist/components/input/input.d.ts +53 -0
- package/dist/components/input/input.d.ts.map +1 -0
- package/dist/components/link/link.d.ts +74 -0
- package/dist/components/link/link.d.ts.map +1 -0
- package/dist/components/logo/logo.d.ts +34 -0
- package/dist/components/logo/logo.d.ts.map +1 -0
- package/dist/components/menu/menu.d.ts +64 -0
- package/dist/components/menu/menu.d.ts.map +1 -0
- package/dist/components/nav/nav.d.ts +60 -0
- package/dist/components/nav/nav.d.ts.map +1 -0
- package/dist/components/page/page.d.ts +47 -0
- package/dist/components/page/page.d.ts.map +1 -0
- package/dist/components/panel/panel.d.ts +31 -0
- package/dist/components/panel/panel.d.ts.map +1 -0
- package/dist/components/pattern/pattern.d.ts +34 -0
- package/dist/components/pattern/pattern.d.ts.map +1 -0
- package/dist/components/poster/poster.d.ts +69 -0
- package/dist/components/poster/poster.d.ts.map +1 -0
- package/dist/components/prose/prose.d.ts +35 -0
- package/dist/components/prose/prose.d.ts.map +1 -0
- package/dist/components/radios/radios.d.ts +58 -0
- package/dist/components/radios/radios.d.ts.map +1 -0
- package/dist/components/range/range.d.ts +55 -0
- package/dist/components/range/range.d.ts.map +1 -0
- package/dist/components/root/root.d.ts +45 -0
- package/dist/components/root/root.d.ts.map +1 -0
- package/dist/components/sidebar/sidebar.d.ts +56 -0
- package/dist/components/sidebar/sidebar.d.ts.map +1 -0
- package/dist/components/spinner/spinner.d.ts +31 -0
- package/dist/components/spinner/spinner.d.ts.map +1 -0
- package/dist/components/stack/stack.d.ts +36 -0
- package/dist/components/stack/stack.d.ts.map +1 -0
- package/dist/components/surface/surface.d.ts +31 -0
- package/dist/components/surface/surface.d.ts.map +1 -0
- package/dist/components/switch/switch.d.ts +38 -0
- package/dist/components/switch/switch.d.ts.map +1 -0
- package/dist/components/text/text.d.ts +43 -0
- package/dist/components/text/text.d.ts.map +1 -0
- package/dist/components/textarea/textarea.d.ts +53 -0
- package/dist/components/textarea/textarea.d.ts.map +1 -0
- package/dist/core.css +1 -0
- package/dist/helpers/node.d.ts +22 -0
- package/dist/helpers/node.d.ts.map +1 -0
- package/dist/helpers/string.d.ts +12 -0
- package/dist/helpers/string.d.ts.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +33977 -0
- package/dist/index.js.map +1 -0
- package/dist/spec.d.ts +178 -0
- package/dist/spec.d.ts.map +1 -0
- package/dist/test/spec.d.ts +14 -0
- package/dist/test/spec.d.ts.map +1 -0
- package/dist/types.d.ts +6 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +50 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type SetNode } from "../../helpers/node";
|
|
2
|
+
import type { SetComponentSpec } from "../../spec";
|
|
3
|
+
export type SetDividerOrientation = "horizontal" | "vertical";
|
|
4
|
+
export type SetDividerTone = "default" | "subtle" | "brand";
|
|
5
|
+
export interface SetDividerProps {
|
|
6
|
+
/** DOM id. */
|
|
7
|
+
id?: string;
|
|
8
|
+
/** Divider orientation. @default "horizontal" */
|
|
9
|
+
orientation?: SetDividerOrientation;
|
|
10
|
+
/** Tone variant. @default "default" */
|
|
11
|
+
tone?: SetDividerTone;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Builds the IR tree for the Set divider component.
|
|
15
|
+
*
|
|
16
|
+
* @param props - Divider component props.
|
|
17
|
+
* @returns IR node for a separator element.
|
|
18
|
+
*/
|
|
19
|
+
export declare function buildSetDivider({ id, orientation, tone, }?: SetDividerProps): SetNode;
|
|
20
|
+
/**
|
|
21
|
+
* SSR renderer for the Set divider component.
|
|
22
|
+
*
|
|
23
|
+
* @param props - Divider component props.
|
|
24
|
+
* @returns HTML string for a separator element.
|
|
25
|
+
*/
|
|
26
|
+
export declare function renderSetDivider(props?: SetDividerProps): string;
|
|
27
|
+
/** Declarative divider contract mirror for tooling, docs, and adapters. */
|
|
28
|
+
export declare const SET_DIVIDER_SPEC: SetComponentSpec;
|
|
29
|
+
//# sourceMappingURL=divider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divider.d.ts","sourceRoot":"","sources":["../../../src/components/divider/divider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAEpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG,UAAU,CAAC;AAC9D,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE5D,MAAM,WAAW,eAAe;IAC9B,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iDAAiD;IACjD,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,uCAAuC;IACvC,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAC9B,EAAE,EACF,WAA0B,EAC1B,IAAgB,GACjB,GAAE,eAAoB,GAAG,OAAO,CAehC;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,GAAE,eAAoB,GAAG,MAAM,CAEpE;AAED,2EAA2E;AAC3E,eAAO,MAAM,gBAAgB,EAAE,gBA6D9B,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type SetNode } from "../../helpers/node";
|
|
2
|
+
import type { SetComponentSpec } from "../../spec";
|
|
3
|
+
export type SetExpanderSize = "sm" | "md" | "lg";
|
|
4
|
+
export interface SetExpanderProps {
|
|
5
|
+
/** Optional id of the controlled element (emitted as `aria-controls`). */
|
|
6
|
+
controlsId?: string;
|
|
7
|
+
/** Expanded state. @default false */
|
|
8
|
+
expanded?: boolean;
|
|
9
|
+
/** DOM id. */
|
|
10
|
+
id?: string;
|
|
11
|
+
/** Accessible label for the toggle control. @default "Menu" */
|
|
12
|
+
label?: string;
|
|
13
|
+
/** Size variant. @default "md" */
|
|
14
|
+
size?: SetExpanderSize;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Builds the IR tree for the Set expander control.
|
|
18
|
+
*
|
|
19
|
+
* @param props - Expander component props.
|
|
20
|
+
* @returns IR node for a toggle button.
|
|
21
|
+
*/
|
|
22
|
+
export declare function buildSetExpander({ controlsId, expanded, id, label, size, }?: SetExpanderProps): SetNode;
|
|
23
|
+
/**
|
|
24
|
+
* SSR renderer for the Set expander control.
|
|
25
|
+
*
|
|
26
|
+
* Emits a semantic `button` with accessible text and animated line glyph
|
|
27
|
+
* wrapper markup.
|
|
28
|
+
*
|
|
29
|
+
* @param props - Expander component props.
|
|
30
|
+
* @returns HTML string for a toggle button.
|
|
31
|
+
*/
|
|
32
|
+
export declare function renderSetExpander(props?: SetExpanderProps): string;
|
|
33
|
+
/** Declarative expander contract mirror for tooling, docs, and adapters. */
|
|
34
|
+
export declare const SET_EXPANDER_SPEC: SetComponentSpec;
|
|
35
|
+
//# sourceMappingURL=expander.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expander.d.ts","sourceRoot":"","sources":["../../../src/components/expander/expander.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAEpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEjD,MAAM,WAAW,gBAAgB;IAC/B,0EAA0E;IAC1E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,+DAA+D;IAC/D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB;AAID;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,UAAU,EACV,QAAQ,EACR,EAAE,EACF,KAA4B,EAC5B,IAAW,GACZ,GAAE,gBAAqB,GAAG,OAAO,CAqCjC;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,GAAE,gBAAqB,GAAG,MAAM,CAEtE;AAED,4EAA4E;AAC5E,eAAO,MAAM,iBAAiB,EAAE,gBAkE/B,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type SetNode } from "../../helpers/node";
|
|
2
|
+
import type { SetComponentSpec } from "../../spec";
|
|
3
|
+
import type { SetInlineSize } from "../../types";
|
|
4
|
+
export interface SetFieldsetProps {
|
|
5
|
+
/** Trusted inner HTML. */
|
|
6
|
+
children?: string;
|
|
7
|
+
/** Group description rendered below legend. */
|
|
8
|
+
description?: string;
|
|
9
|
+
/** Disabled state. @default false */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Fieldset id used for description id derivation. */
|
|
12
|
+
id: string;
|
|
13
|
+
/** Inline-size behavior. @default "full" */
|
|
14
|
+
inlineSize?: SetInlineSize;
|
|
15
|
+
/** Invalid state. Ignored when `disabled`. @default false */
|
|
16
|
+
invalid?: boolean;
|
|
17
|
+
/** Fieldset legend text (escaped before render). */
|
|
18
|
+
legend: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Builds the IR tree for the Set fieldset component.
|
|
22
|
+
*
|
|
23
|
+
* @param props - Fieldset component props.
|
|
24
|
+
* @returns IR node for a fieldset wrapper.
|
|
25
|
+
*/
|
|
26
|
+
export declare function buildSetFieldset({ children, description, disabled, id, invalid, legend, inlineSize, }: SetFieldsetProps): SetNode;
|
|
27
|
+
/**
|
|
28
|
+
* SSR renderer for the Set fieldset component.
|
|
29
|
+
*
|
|
30
|
+
* @param props - Fieldset component props.
|
|
31
|
+
* @returns HTML string for a fieldset wrapper.
|
|
32
|
+
*/
|
|
33
|
+
export declare function renderSetFieldset(props: SetFieldsetProps): string;
|
|
34
|
+
/** Declarative fieldset contract mirror for tooling, docs, and adapters. */
|
|
35
|
+
export declare const SET_FIELDSET_SPEC: SetComponentSpec;
|
|
36
|
+
//# sourceMappingURL=fieldset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldset.d.ts","sourceRoot":"","sources":["../../../src/components/fieldset/fieldset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAEpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,MAAM,WAAW,gBAAgB;IAC/B,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sDAAsD;IACtD,EAAE,EAAE,MAAM,CAAC;IACX,4CAA4C;IAC5C,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,6DAA6D;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,EAAE,EACF,OAAO,EACP,MAAM,EACN,UAAmB,GACpB,EAAE,gBAAgB,GAAG,OAAO,CA0D5B;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG,MAAM,CAEjE;AAED,4EAA4E;AAC5E,eAAO,MAAM,iBAAiB,EAAE,gBAyF/B,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type SetNode } from "../../helpers/node";
|
|
2
|
+
import type { SetComponentSpec } from "../../spec";
|
|
3
|
+
import type { SetAlign } from "../../types";
|
|
4
|
+
export interface SetFigureProps {
|
|
5
|
+
/** Alignment within available space. @default "start" */
|
|
6
|
+
align?: SetAlign;
|
|
7
|
+
/** Trusted caption HTML. */
|
|
8
|
+
caption: string;
|
|
9
|
+
/** Trusted media HTML (typically a `renderSetImage` result). */
|
|
10
|
+
children: string;
|
|
11
|
+
/** DOM id. */
|
|
12
|
+
id?: string;
|
|
13
|
+
/** Enables breakpoint-responsive type sizing for the caption. @default false */
|
|
14
|
+
responsive?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Builds the IR tree for the Set figure component.
|
|
18
|
+
*
|
|
19
|
+
* @param props - Figure component props.
|
|
20
|
+
* @returns IR node for a figure wrapper.
|
|
21
|
+
*/
|
|
22
|
+
export declare function buildSetFigure({ align, caption, children, id, responsive, }: SetFigureProps): SetNode;
|
|
23
|
+
/**
|
|
24
|
+
* SSR renderer for the Set figure component.
|
|
25
|
+
*
|
|
26
|
+
* @param props - Figure component props.
|
|
27
|
+
* @returns HTML string for a figure wrapper.
|
|
28
|
+
*/
|
|
29
|
+
export declare function renderSetFigure(props: SetFigureProps): string;
|
|
30
|
+
/** Declarative figure contract mirror for tooling, docs, and adapters. */
|
|
31
|
+
export declare const SET_FIGURE_SPEC: SetComponentSpec;
|
|
32
|
+
//# sourceMappingURL=figure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"figure.d.ts","sourceRoot":"","sources":["../../../src/components/figure/figure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAEpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C,MAAM,WAAW,cAAc;IAC7B,yDAAyD;IACzD,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,4BAA4B;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,gFAAgF;IAChF,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAC7B,KAAe,EACf,OAAO,EACP,QAAQ,EACR,EAAE,EACF,UAAkB,GACnB,EAAE,cAAc,GAAG,OAAO,CA4B1B;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,CAE7D;AAED,0EAA0E;AAC1E,eAAO,MAAM,eAAe,EAAE,gBA2D7B,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { type SetNode } from "../../helpers/node";
|
|
2
|
+
import type { SetComponentSpec } from "../../spec";
|
|
3
|
+
import type { SetAlign } from "../../types";
|
|
4
|
+
export type SetGridGap = "default" | "expanded" | "none";
|
|
5
|
+
export type SetGridTrack = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
6
|
+
export interface SetGridProps {
|
|
7
|
+
/** Trusted inner HTML (typically grid items). */
|
|
8
|
+
children?: string;
|
|
9
|
+
/** Gap behavior. @default "default" */
|
|
10
|
+
gap?: SetGridGap;
|
|
11
|
+
/** DOM id. */
|
|
12
|
+
id?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface SetGridItemProps {
|
|
15
|
+
/** Trusted inner HTML. */
|
|
16
|
+
children?: string;
|
|
17
|
+
/** Align-self. */
|
|
18
|
+
align?: SetAlign;
|
|
19
|
+
/** Column span at default container threshold. */
|
|
20
|
+
colSpan?: SetGridTrack;
|
|
21
|
+
/** Column span at narrow container threshold. */
|
|
22
|
+
colSpanNarrow?: SetGridTrack;
|
|
23
|
+
/** Column span at wide container threshold. Effect is only visible above the wide breakpoint. */
|
|
24
|
+
colSpanWide?: SetGridTrack;
|
|
25
|
+
/** Column start at default container threshold. */
|
|
26
|
+
colStart?: SetGridTrack;
|
|
27
|
+
/** Column start at narrow container threshold. */
|
|
28
|
+
colStartNarrow?: SetGridTrack;
|
|
29
|
+
/** Column start at wide container threshold. Effect is only visible above the wide breakpoint. */
|
|
30
|
+
colStartWide?: SetGridTrack;
|
|
31
|
+
/** DOM id. */
|
|
32
|
+
id?: string;
|
|
33
|
+
/** Justify-self. */
|
|
34
|
+
justify?: SetAlign;
|
|
35
|
+
/** Row span at default container threshold. */
|
|
36
|
+
rowSpan?: SetGridTrack;
|
|
37
|
+
/** Row span at narrow container threshold. */
|
|
38
|
+
rowSpanNarrow?: SetGridTrack;
|
|
39
|
+
/** Row span at wide container threshold. Effect is only visible above the wide breakpoint. */
|
|
40
|
+
rowSpanWide?: SetGridTrack;
|
|
41
|
+
/** Row start at default container threshold. */
|
|
42
|
+
rowStart?: SetGridTrack;
|
|
43
|
+
/** Row start at narrow container threshold. */
|
|
44
|
+
rowStartNarrow?: SetGridTrack;
|
|
45
|
+
/** Row start at wide container threshold. Effect is only visible above the wide breakpoint. */
|
|
46
|
+
rowStartWide?: SetGridTrack;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Builds the IR tree for the Set grid component.
|
|
50
|
+
*
|
|
51
|
+
* @param props - Grid component props.
|
|
52
|
+
* @returns IR node for a grid wrapper.
|
|
53
|
+
*/
|
|
54
|
+
export declare function buildSetGrid({ children, gap, id, }: SetGridProps): SetNode;
|
|
55
|
+
/**
|
|
56
|
+
* SSR renderer for the Set grid component.
|
|
57
|
+
*
|
|
58
|
+
* @param props - Grid component props.
|
|
59
|
+
* @returns HTML string for a grid wrapper.
|
|
60
|
+
*/
|
|
61
|
+
export declare function renderSetGrid(props: SetGridProps): string;
|
|
62
|
+
/**
|
|
63
|
+
* Builds the IR tree for the Set grid-item component.
|
|
64
|
+
*
|
|
65
|
+
* @param props - Grid-item component props.
|
|
66
|
+
* @returns IR node for a grid item.
|
|
67
|
+
*/
|
|
68
|
+
export declare function buildSetGridItem({ align, children, colSpan, colSpanNarrow, colSpanWide, colStart, colStartNarrow, colStartWide, id, justify, rowSpan, rowSpanNarrow, rowSpanWide, rowStart, rowStartNarrow, rowStartWide, }: SetGridItemProps): SetNode;
|
|
69
|
+
/**
|
|
70
|
+
* SSR renderer for the Set grid-item component.
|
|
71
|
+
*
|
|
72
|
+
* @param props - Grid-item component props.
|
|
73
|
+
* @returns HTML string for a grid item.
|
|
74
|
+
*/
|
|
75
|
+
export declare function renderSetGridItem(props: SetGridItemProps): string;
|
|
76
|
+
/** Declarative grid contract mirror for tooling, docs, and adapters. */
|
|
77
|
+
export declare const SET_GRID_SPEC: SetComponentSpec;
|
|
78
|
+
/** Declarative grid-item contract mirror for tooling, docs, and adapters. */
|
|
79
|
+
export declare const SET_GRID_ITEM_SPEC: SetComponentSpec;
|
|
80
|
+
//# sourceMappingURL=grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../src/components/grid/grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAEpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;AACzD,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG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,EAAE,YAAY,GAAG,OAAO,CAoBxB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAEzD;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,OAAO,EACP,aAAa,EACb,WAAW,EACX,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,EAAE,EACF,OAAO,EACP,OAAO,EACP,aAAa,EACb,WAAW,EACX,QAAQ,EACR,cAAc,EACd,YAAY,GACb,EAAE,gBAAgB,GAAG,OAAO,CA0B5B;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG,MAAM,CAEjE;AAED,wEAAwE;AACxE,eAAO,MAAM,aAAa,EAAE,gBAyC3B,CAAC;AASF,6EAA6E;AAC7E,eAAO,MAAM,kBAAkB,EAAE,gBA0KhC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type SetNode } from "../../helpers/node";
|
|
2
|
+
import type { SetComponentSpec } from "../../spec";
|
|
3
|
+
import type { SetAlign, SetHeadingLevel } from "../../types";
|
|
4
|
+
export type SetHeadingSize = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl";
|
|
5
|
+
export interface SetHeadingProps {
|
|
6
|
+
/** Text alignment. @default "start" */
|
|
7
|
+
align?: SetAlign;
|
|
8
|
+
/** DOM id. */
|
|
9
|
+
id?: string;
|
|
10
|
+
/** Semantic heading level; omit to render a `span`. */
|
|
11
|
+
level?: SetHeadingLevel;
|
|
12
|
+
/** Enables breakpoint-responsive heading scale. @default false */
|
|
13
|
+
responsive?: boolean;
|
|
14
|
+
/** Heading size. @default "md" */
|
|
15
|
+
size?: SetHeadingSize;
|
|
16
|
+
/** Heading text content (escaped before render). */
|
|
17
|
+
text: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Builds the IR tree for the Set heading component.
|
|
21
|
+
*
|
|
22
|
+
* @param props - Heading component props.
|
|
23
|
+
* @returns IR node for a heading element (`h1`..`h6`) or `span`.
|
|
24
|
+
*/
|
|
25
|
+
export declare function buildSetHeading({ align, id, level, responsive, size, text, }: SetHeadingProps): SetNode;
|
|
26
|
+
/**
|
|
27
|
+
* SSR renderer for the Set heading component.
|
|
28
|
+
*
|
|
29
|
+
* @param props - Heading component props.
|
|
30
|
+
* @returns HTML string for a heading element (`h1`..`h6`) or `span`.
|
|
31
|
+
*/
|
|
32
|
+
export declare function renderSetHeading(props: SetHeadingProps): string;
|
|
33
|
+
/** Declarative heading contract mirror for tooling, docs, and adapters. */
|
|
34
|
+
export declare const SET_HEADING_SPEC: SetComponentSpec;
|
|
35
|
+
//# sourceMappingURL=heading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../../src/components/heading/heading.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAEpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC7D,MAAM,MAAM,cAAc,GACtB,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;AAEV,MAAM,WAAW,eAAe;IAC9B,uCAAuC;IACvC,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uDAAuD;IACvD,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,kEAAkE;IAClE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kCAAkC;IAClC,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAe,EACf,EAAE,EACF,KAAK,EACL,UAAU,EACV,IAAW,EACX,IAAI,GACL,EAAE,eAAe,GAAG,OAAO,CAe3B;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,CAE/D;AAED,2EAA2E;AAC3E,eAAO,MAAM,gBAAgB,EAAE,gBAoF9B,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type SetNode } from "../../helpers/node";
|
|
2
|
+
import type { SetComponentSpec } from "../../spec";
|
|
3
|
+
export declare const SET_ICON_RECOMMENDED: readonly ["adjustment", "arrow-down", "arrow-left-right-1", "arrow-left", "arrow-right", "arrow-up-down-1", "arrow-up", "check-circle", "chevron-down", "chevron-right", "circle", "city-6", "close", "copy", "download", "enter", "error-circle", "error-triangle", "horizontal", "info-circle", "jump", "layers", "link", "member", "pantone", "rectangle", "refresh", "robot-1", "search", "setting-1", "swap", "user-1", "view-list"];
|
|
4
|
+
export type SetIconMirrorMode = "always" | "rtl";
|
|
5
|
+
export type SetIconSize = "2xs" | "xs" | "sm" | "md" | "lg" | "fill";
|
|
6
|
+
export interface SetIconProps {
|
|
7
|
+
/** Emits `aria-hidden="true"` when true. @default true */
|
|
8
|
+
ariaHidden?: boolean;
|
|
9
|
+
/** DOM id. Required when `ariaHidden` is false. */
|
|
10
|
+
id?: string;
|
|
11
|
+
/** SVG title text. Required when `ariaHidden` is false. */
|
|
12
|
+
title?: string;
|
|
13
|
+
/** TDesign icon name (kebab-case). See https://tdesign.tencent.com/icon */
|
|
14
|
+
name: string;
|
|
15
|
+
/** Horizontal mirroring behavior. Omit for no mirroring. */
|
|
16
|
+
mirrored?: SetIconMirrorMode;
|
|
17
|
+
/** Size variant. @default "md" */
|
|
18
|
+
size?: SetIconSize;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Builds the IR tree for the Set icon component.
|
|
22
|
+
*
|
|
23
|
+
* Emits inline `<svg>` markup for the TDesign icon set. Stroke, fill, and
|
|
24
|
+
* linecap are authored per-path in the TDesign source, so the SVG root does
|
|
25
|
+
* not set them.
|
|
26
|
+
*
|
|
27
|
+
* @param props - Icon component props.
|
|
28
|
+
* @returns IR node for the Set icon component.
|
|
29
|
+
*/
|
|
30
|
+
export declare function buildSetIcon({ ariaHidden, id, mirrored, name, size, title, }: SetIconProps): SetNode;
|
|
31
|
+
/**
|
|
32
|
+
* SSR renderer for the Set icon component.
|
|
33
|
+
*
|
|
34
|
+
* Emits inline `<svg>` markup for the TDesign icon set.
|
|
35
|
+
*
|
|
36
|
+
* @param props - Icon component props.
|
|
37
|
+
* @returns HTML string for the Set icon component.
|
|
38
|
+
*/
|
|
39
|
+
export declare function renderSetIcon(props: SetIconProps): string;
|
|
40
|
+
/** Declarative icon contract mirror for tooling, docs, and adapters. */
|
|
41
|
+
export declare const SET_ICON_SPEC: SetComponentSpec;
|
|
42
|
+
//# sourceMappingURL=icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/components/icon/icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAEpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAGnD,eAAO,MAAM,oBAAoB,2aAkCvB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,KAAK,CAAC;AACjD,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAErE,MAAM,WAAW,YAAY;IAC3B,0DAA0D;IAC1D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mDAAmD;IACnD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2EAA2E;IAC3E,IAAI,EAAE,MAAM,CAAC;IACb,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,kCAAkC;IAClC,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AAWD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,EAC3B,UAAiB,EACjB,EAAE,EACF,QAAQ,EACR,IAAI,EACJ,IAAW,EACX,KAAK,GACN,EAAE,YAAY,GAAG,OAAO,CAmDxB;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAEzD;AAED,wEAAwE;AACxE,eAAO,MAAM,aAAa,EAAE,gBAkH3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.generated.d.ts","sourceRoot":"","sources":["../../../src/components/icon/icons.generated.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;CAC9B;AAED,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,EAAE,CAiy0B3D,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { type SetNode } from "../../helpers/node";
|
|
2
|
+
import type { SetComponentSpec } from "../../spec";
|
|
3
|
+
export type SetImageAspectRatio = "1:1" | "4:5" | "3:2" | "16:9" | "21:9";
|
|
4
|
+
export type SetImageGravity = "N" | "NE" | "E" | "SE" | "S" | "SW" | "W" | "NW" | "C";
|
|
5
|
+
export type SetImageRadius = "xs" | "ratio";
|
|
6
|
+
export interface SetImageSource {
|
|
7
|
+
/**
|
|
8
|
+
* The intrinsic height of the source, in pixels.
|
|
9
|
+
*/
|
|
10
|
+
height?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Media condition that is evaluated for the source.
|
|
13
|
+
* Same format as the HTML `source[media]` attribute.
|
|
14
|
+
*/
|
|
15
|
+
media?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The HTML `sizes` attribute for the source.
|
|
18
|
+
*/
|
|
19
|
+
sizes?: string;
|
|
20
|
+
/**
|
|
21
|
+
* A comma-separated list of candidate image sources.
|
|
22
|
+
* Same format as the HTML `source[srcset]` attribute.
|
|
23
|
+
*/
|
|
24
|
+
srcSet: string;
|
|
25
|
+
/**
|
|
26
|
+
* MIME type for the `srcSet` resources.
|
|
27
|
+
*/
|
|
28
|
+
type?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The intrinsic width of the source, in pixels.
|
|
31
|
+
*/
|
|
32
|
+
width?: number;
|
|
33
|
+
}
|
|
34
|
+
export interface SetImageProps {
|
|
35
|
+
/** Alternative text. Empty string is valid and used by default. @default "" */
|
|
36
|
+
alt?: string;
|
|
37
|
+
/** Aspect ratio applied to the wrapper. Only used when `cover` is true; ignored when both `width` and `height` are set. */
|
|
38
|
+
aspectRatio?: SetImageAspectRatio;
|
|
39
|
+
/** Renders the image as a cropped fill (`object-fit: cover`). Switches `width`/`height` from intrinsic `<img>` dimensions to wrapper sizing. @default false */
|
|
40
|
+
cover?: boolean;
|
|
41
|
+
/** Enables default image shadow treatment. @default false */
|
|
42
|
+
shadow?: boolean;
|
|
43
|
+
/** Height in pixels. When `cover` is false, sets the intrinsic `<img>` height attribute. When `cover` is true, sizes the wrapper; if only one of `width`/`height` is set, the wrapper still follows `aspectRatio`, but setting both takes precedence over `aspectRatio`. */
|
|
44
|
+
height?: number;
|
|
45
|
+
/** DOM id. */
|
|
46
|
+
id?: string;
|
|
47
|
+
/** Emit `loading="lazy"` on the image. @default false */
|
|
48
|
+
lazy?: boolean;
|
|
49
|
+
/** Emit `fetchpriority="high"` and suppress `loading="lazy"`. @default false */
|
|
50
|
+
priority?: boolean;
|
|
51
|
+
/** Focal gravity for cover fit. @default "C" */
|
|
52
|
+
gravity?: SetImageGravity;
|
|
53
|
+
/** Radius strategy. `ratio` scales with the image's shortest side — requires `width`/`height` (or `cover` with `aspectRatio`) to determine it, otherwise falls back to `xs`. Omitted by default. */
|
|
54
|
+
radius?: SetImageRadius;
|
|
55
|
+
/** HTML `sizes` attribute. Ignored on `<img>` when `sources` are provided. */
|
|
56
|
+
sizes?: string;
|
|
57
|
+
/** Responsive source-set definitions for `<picture>`. */
|
|
58
|
+
sources?: SetImageSource[];
|
|
59
|
+
/** Candidate sources for the fallback `<img>` (HTML `img[srcset]` format). */
|
|
60
|
+
srcSet?: string;
|
|
61
|
+
/** Image source URL. */
|
|
62
|
+
src: string;
|
|
63
|
+
/** Width in pixels. When `cover` is false, sets the intrinsic `<img>` width attribute. When `cover` is true, sizes the wrapper; if only one of `width`/`height` is set, the wrapper still follows `aspectRatio`, but setting both takes precedence over `aspectRatio`. */
|
|
64
|
+
width?: number;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Builds the IR tree for the Set image component.
|
|
68
|
+
*
|
|
69
|
+
* @param props - Image component props.
|
|
70
|
+
* @returns IR node for image/picture markup.
|
|
71
|
+
*/
|
|
72
|
+
export declare function buildSetImage({ alt, aspectRatio, cover, gravity, height, id, lazy, priority, radius, shadow, sizes, sources, src, srcSet, width, }: SetImageProps): SetNode;
|
|
73
|
+
/**
|
|
74
|
+
* SSR renderer for the Set image component.
|
|
75
|
+
*
|
|
76
|
+
* @param props - Image component props.
|
|
77
|
+
* @returns HTML string for image/picture markup.
|
|
78
|
+
*/
|
|
79
|
+
export declare function renderSetImage(props: SetImageProps): string;
|
|
80
|
+
/** Declarative image contract mirror for tooling, docs, and adapters. */
|
|
81
|
+
export declare const SET_IMAGE_SPEC: SetComponentSpec;
|
|
82
|
+
//# sourceMappingURL=image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/components/image/image.ts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MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B,8EAA8E;IAC9E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wBAAwB;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,0QAA0Q;IAC1Q,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAC5B,GAAQ,EACR,WAAW,EACX,KAAK,EACL,OAAa,EACb,MAAM,EACN,EAAE,EACF,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,MAAM,EACN,KAAK,EACL,OAAO,EACP,GAAG,EACH,MAAM,EACN,KAAK,GACN,EAAE,aAAa,GAAG,OAAO,CA6FzB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,CAE3D;AAED,yEAAyE;AACzE,eAAO,MAAM,cAAc,EAAE,gBA0L5B,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type SetNode } from "../../helpers/node";
|
|
2
|
+
import type { SetComponentSpec } from "../../spec";
|
|
3
|
+
import type { SetAlign } from "../../types";
|
|
4
|
+
export type SetInlineAs = "div" | "ul";
|
|
5
|
+
export type SetInlineGap = "2xs" | "xs" | "sm" | "md" | "lg";
|
|
6
|
+
export type SetInlineJustify = "start" | "center" | "end" | "between";
|
|
7
|
+
export interface SetInlineProps {
|
|
8
|
+
/** Element tag. @default "div" */
|
|
9
|
+
as?: SetInlineAs;
|
|
10
|
+
/** Cross-axis alignment. @default "center" */
|
|
11
|
+
align?: SetAlign;
|
|
12
|
+
/** Trusted inner HTML. */
|
|
13
|
+
children?: string;
|
|
14
|
+
/** Spacing gap size. @default "md" */
|
|
15
|
+
gap?: SetInlineGap;
|
|
16
|
+
/** DOM id. */
|
|
17
|
+
id?: string;
|
|
18
|
+
/** Main-axis distribution. @default "start" */
|
|
19
|
+
justify?: SetInlineJustify;
|
|
20
|
+
/** Prevents wrapping of inline children. */
|
|
21
|
+
nowrap?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Builds the IR tree for the Set inline component.
|
|
25
|
+
*
|
|
26
|
+
* @param props - Inline component props.
|
|
27
|
+
* @returns IR node for an inline wrapper.
|
|
28
|
+
*/
|
|
29
|
+
export declare function buildSetInline({ align, as, children, gap, id, justify, nowrap, }: SetInlineProps): SetNode;
|
|
30
|
+
/**
|
|
31
|
+
* SSR renderer for the Set inline component.
|
|
32
|
+
*
|
|
33
|
+
* @param props - Inline component props.
|
|
34
|
+
* @returns HTML string for an inline wrapper.
|
|
35
|
+
*/
|
|
36
|
+
export declare function renderSetInline(props: SetInlineProps): string;
|
|
37
|
+
/** Declarative inline contract mirror for tooling, docs, and adapters. */
|
|
38
|
+
export declare const SET_INLINE_SPEC: SetComponentSpec;
|
|
39
|
+
//# sourceMappingURL=inline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline.d.ts","sourceRoot":"","sources":["../../../src/components/inline/inline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAEpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,IAAI,CAAC;AACvC,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC7D,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;AAEtE,MAAM,WAAW,cAAc;IAC7B,kCAAkC;IAClC,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,GAAG,CAAC,EAAE,YAAY,CAAC;IACnB,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,+CAA+C;IAC/C,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,4CAA4C;IAC5C,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAC7B,KAAgB,EAChB,EAAU,EACV,QAAQ,EACR,GAAU,EACV,EAAE,EACF,OAAiB,EACjB,MAAM,GACP,EAAE,cAAc,GAAG,OAAO,CAgB1B;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,CAE7D;AAED,0EAA0E;AAC1E,eAAO,MAAM,eAAe,EAAE,gBAoF7B,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type SetNode } from "../../helpers/node";
|
|
2
|
+
import type { SetComponentSpec } from "../../spec";
|
|
3
|
+
import type { SetControlSize, SetInlineSize } from "../../types";
|
|
4
|
+
export type SetInputType = "text" | "email" | "password" | "tel" | "url" | "numeric";
|
|
5
|
+
export interface SetInputProps {
|
|
6
|
+
/** Autocomplete hint; `false` emits `autocomplete="off"`. */
|
|
7
|
+
autocomplete?: string | false;
|
|
8
|
+
/** Helper text rendered after the input (reused as validation guidance when `invalid`). */
|
|
9
|
+
description?: string;
|
|
10
|
+
/** Disabled state. @default false */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Input id; used for `input[id]` and `label[for]`. */
|
|
13
|
+
id: string;
|
|
14
|
+
/** Invalid state. Ignored when `disabled` or `readOnly`. @default false */
|
|
15
|
+
invalid?: boolean;
|
|
16
|
+
/** Label text content (escaped before render). */
|
|
17
|
+
label: string;
|
|
18
|
+
/** Field name attribute. */
|
|
19
|
+
name?: string;
|
|
20
|
+
/** Pattern attribute. */
|
|
21
|
+
pattern?: string;
|
|
22
|
+
/** Read-only state. Ignored when `disabled`. @default false */
|
|
23
|
+
readOnly?: boolean;
|
|
24
|
+
/** Required state. @default false */
|
|
25
|
+
required?: boolean;
|
|
26
|
+
/** Size variant. @default "md" */
|
|
27
|
+
size?: SetControlSize;
|
|
28
|
+
/** Spellcheck behavior. Defaults to `false` for `type="numeric"` unless explicit. */
|
|
29
|
+
spellcheck?: boolean;
|
|
30
|
+
/** Input type; `numeric` maps to `type="text"` with `inputmode="numeric"`. @default "text" */
|
|
31
|
+
type?: SetInputType;
|
|
32
|
+
/** Current value. */
|
|
33
|
+
value?: string;
|
|
34
|
+
/** Inline-size behavior. @default "full" */
|
|
35
|
+
inlineSize?: SetInlineSize;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Builds the IR tree for the Set input component.
|
|
39
|
+
*
|
|
40
|
+
* @param props - Input component props.
|
|
41
|
+
* @returns IR node for a labeled input field wrapper.
|
|
42
|
+
*/
|
|
43
|
+
export declare function buildSetInput({ autocomplete, description, disabled, id, invalid, label, name, pattern, readOnly, required, size, spellcheck, type, value, inlineSize, }: SetInputProps): SetNode;
|
|
44
|
+
/**
|
|
45
|
+
* SSR renderer for the Set input component.
|
|
46
|
+
*
|
|
47
|
+
* @param props - Input component props.
|
|
48
|
+
* @returns HTML string for a labeled input field wrapper.
|
|
49
|
+
*/
|
|
50
|
+
export declare function renderSetInput(props: SetInputProps): string;
|
|
51
|
+
/** Declarative input contract mirror for tooling, docs, and adapters. */
|
|
52
|
+
export declare const SET_INPUT_SPEC: SetComponentSpec;
|
|
53
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/components/input/input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,oBAAoB,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UAAmB,GACpB,EAAE,aAAa,GAAG,OAAO,CA2FzB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,CAE3D;AAED,yEAAyE;AACzE,eAAO,MAAM,cAAc,EAAE,gBAoM5B,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { type SetNode } from "../../helpers/node";
|
|
2
|
+
import type { SetComponentSpec } from "../../spec";
|
|
3
|
+
export type SetLinkAppearance = "outline" | "solid" | "text";
|
|
4
|
+
export type SetLinkCurrent = "page";
|
|
5
|
+
export type SetLinkLabelVisibility = "visible" | "hidden" | "hiddenBelowTablet";
|
|
6
|
+
export type SetLinkPlacement = "start" | "end";
|
|
7
|
+
export type SetLinkSize = "sm" | "md" | "lg";
|
|
8
|
+
export type SetLinkTarget = "_blank" | "_parent" | "_self" | "_top";
|
|
9
|
+
export type SetLinkTone = "default" | "neutral";
|
|
10
|
+
export interface SetLinkProps {
|
|
11
|
+
/**
|
|
12
|
+
* Visual appearance. Defaults to the plain link style (`"text"`); set
|
|
13
|
+
* `"outline"` or `"solid"` for button-like treatments.
|
|
14
|
+
* @default "text"
|
|
15
|
+
*/
|
|
16
|
+
appearance?: SetLinkAppearance;
|
|
17
|
+
/** Emits `aria-current` with this value. */
|
|
18
|
+
current?: SetLinkCurrent;
|
|
19
|
+
/** Optional `download` attribute (`true` or suggested filename). */
|
|
20
|
+
download?: boolean | string;
|
|
21
|
+
/** Link destination. */
|
|
22
|
+
href: string;
|
|
23
|
+
/** DOM id. */
|
|
24
|
+
id?: string;
|
|
25
|
+
/** Optional icon markup rendered alongside the label. Caller sanitizes untrusted content. */
|
|
26
|
+
icon?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Icon placement when icon is present.
|
|
29
|
+
* @default "start"
|
|
30
|
+
*/
|
|
31
|
+
iconPlacement?: SetLinkPlacement;
|
|
32
|
+
/** Accessible label text rendered as content (escaped before render). */
|
|
33
|
+
label: string;
|
|
34
|
+
/**
|
|
35
|
+
* Controls whether the visible label is shown alongside the icon.
|
|
36
|
+
* Non-visible values require `icon`.
|
|
37
|
+
* @default "visible"
|
|
38
|
+
*/
|
|
39
|
+
labelVisibility?: SetLinkLabelVisibility;
|
|
40
|
+
/** Optional explicit `rel` value. Ignored when `download` is set. */
|
|
41
|
+
rel?: string;
|
|
42
|
+
/** Size variant. @default "md" */
|
|
43
|
+
size?: SetLinkSize;
|
|
44
|
+
/** Optional link target. Ignored when `download` is set. */
|
|
45
|
+
target?: SetLinkTarget;
|
|
46
|
+
/** Tone variant. @default "default" */
|
|
47
|
+
tone?: SetLinkTone;
|
|
48
|
+
/**
|
|
49
|
+
* Underline variant; emits `data-underline` only when true.
|
|
50
|
+
* Ignored when `appearance` is not `"text"`.
|
|
51
|
+
* @default false
|
|
52
|
+
*/
|
|
53
|
+
underline?: boolean;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Builds the IR tree for the Set link component.
|
|
57
|
+
*
|
|
58
|
+
* @param props - Link component props.
|
|
59
|
+
* @returns IR node for an `<a>` element.
|
|
60
|
+
* @remarks
|
|
61
|
+
* - `label` is escaped before render
|
|
62
|
+
* - `icon`, when provided, is rendered as trusted inline markup
|
|
63
|
+
*/
|
|
64
|
+
export declare function buildSetLink(props: SetLinkProps): SetNode;
|
|
65
|
+
/**
|
|
66
|
+
* SSR renderer for the Set link component.
|
|
67
|
+
*
|
|
68
|
+
* @param props - Link component props.
|
|
69
|
+
* @returns HTML string for an `<a>` element.
|
|
70
|
+
*/
|
|
71
|
+
export declare function renderSetLink(props: SetLinkProps): string;
|
|
72
|
+
/** Declarative link contract mirror for tooling, docs, and adapters. */
|
|
73
|
+
export declare const SET_LINK_SPEC: SetComponentSpec;
|
|
74
|
+
//# sourceMappingURL=link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../src/components/link/link.ts"],"names":[],"mappings":"AAAA,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