@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.
Files changed (103) hide show
  1. package/README.md +37 -0
  2. package/dist/components/alert/alert.d.ts +59 -0
  3. package/dist/components/alert/alert.d.ts.map +1 -0
  4. package/dist/components/avatar/avatar.d.ts +44 -0
  5. package/dist/components/avatar/avatar.d.ts.map +1 -0
  6. package/dist/components/avatar/get-initials.d.ts +18 -0
  7. package/dist/components/avatar/get-initials.d.ts.map +1 -0
  8. package/dist/components/badge/badge.d.ts +33 -0
  9. package/dist/components/badge/badge.d.ts.map +1 -0
  10. package/dist/components/banner/banner.d.ts +55 -0
  11. package/dist/components/banner/banner.d.ts.map +1 -0
  12. package/dist/components/blockquote/blockquote.d.ts +37 -0
  13. package/dist/components/blockquote/blockquote.d.ts.map +1 -0
  14. package/dist/components/box/box.d.ts +43 -0
  15. package/dist/components/box/box.d.ts.map +1 -0
  16. package/dist/components/button/button.d.ts +94 -0
  17. package/dist/components/button/button.d.ts.map +1 -0
  18. package/dist/components/card/card.d.ts +42 -0
  19. package/dist/components/card/card.d.ts.map +1 -0
  20. package/dist/components/checkbox/checkbox.d.ts +42 -0
  21. package/dist/components/checkbox/checkbox.d.ts.map +1 -0
  22. package/dist/components/container/container.d.ts +31 -0
  23. package/dist/components/container/container.d.ts.map +1 -0
  24. package/dist/components/details/details.d.ts +35 -0
  25. package/dist/components/details/details.d.ts.map +1 -0
  26. package/dist/components/divider/divider.d.ts +29 -0
  27. package/dist/components/divider/divider.d.ts.map +1 -0
  28. package/dist/components/expander/expander.d.ts +35 -0
  29. package/dist/components/expander/expander.d.ts.map +1 -0
  30. package/dist/components/fieldset/fieldset.d.ts +36 -0
  31. package/dist/components/fieldset/fieldset.d.ts.map +1 -0
  32. package/dist/components/figure/figure.d.ts +32 -0
  33. package/dist/components/figure/figure.d.ts.map +1 -0
  34. package/dist/components/grid/grid.d.ts +80 -0
  35. package/dist/components/grid/grid.d.ts.map +1 -0
  36. package/dist/components/heading/heading.d.ts +35 -0
  37. package/dist/components/heading/heading.d.ts.map +1 -0
  38. package/dist/components/icon/icon.d.ts +42 -0
  39. package/dist/components/icon/icon.d.ts.map +1 -0
  40. package/dist/components/icon/icons.generated.d.ts +7 -0
  41. package/dist/components/icon/icons.generated.d.ts.map +1 -0
  42. package/dist/components/image/image.d.ts +82 -0
  43. package/dist/components/image/image.d.ts.map +1 -0
  44. package/dist/components/inline/inline.d.ts +39 -0
  45. package/dist/components/inline/inline.d.ts.map +1 -0
  46. package/dist/components/input/input.d.ts +53 -0
  47. package/dist/components/input/input.d.ts.map +1 -0
  48. package/dist/components/link/link.d.ts +74 -0
  49. package/dist/components/link/link.d.ts.map +1 -0
  50. package/dist/components/logo/logo.d.ts +34 -0
  51. package/dist/components/logo/logo.d.ts.map +1 -0
  52. package/dist/components/menu/menu.d.ts +64 -0
  53. package/dist/components/menu/menu.d.ts.map +1 -0
  54. package/dist/components/nav/nav.d.ts +60 -0
  55. package/dist/components/nav/nav.d.ts.map +1 -0
  56. package/dist/components/page/page.d.ts +47 -0
  57. package/dist/components/page/page.d.ts.map +1 -0
  58. package/dist/components/panel/panel.d.ts +31 -0
  59. package/dist/components/panel/panel.d.ts.map +1 -0
  60. package/dist/components/pattern/pattern.d.ts +34 -0
  61. package/dist/components/pattern/pattern.d.ts.map +1 -0
  62. package/dist/components/poster/poster.d.ts +69 -0
  63. package/dist/components/poster/poster.d.ts.map +1 -0
  64. package/dist/components/prose/prose.d.ts +35 -0
  65. package/dist/components/prose/prose.d.ts.map +1 -0
  66. package/dist/components/radios/radios.d.ts +58 -0
  67. package/dist/components/radios/radios.d.ts.map +1 -0
  68. package/dist/components/range/range.d.ts +55 -0
  69. package/dist/components/range/range.d.ts.map +1 -0
  70. package/dist/components/root/root.d.ts +45 -0
  71. package/dist/components/root/root.d.ts.map +1 -0
  72. package/dist/components/sidebar/sidebar.d.ts +56 -0
  73. package/dist/components/sidebar/sidebar.d.ts.map +1 -0
  74. package/dist/components/spinner/spinner.d.ts +31 -0
  75. package/dist/components/spinner/spinner.d.ts.map +1 -0
  76. package/dist/components/stack/stack.d.ts +36 -0
  77. package/dist/components/stack/stack.d.ts.map +1 -0
  78. package/dist/components/surface/surface.d.ts +31 -0
  79. package/dist/components/surface/surface.d.ts.map +1 -0
  80. package/dist/components/switch/switch.d.ts +38 -0
  81. package/dist/components/switch/switch.d.ts.map +1 -0
  82. package/dist/components/text/text.d.ts +43 -0
  83. package/dist/components/text/text.d.ts.map +1 -0
  84. package/dist/components/textarea/textarea.d.ts +53 -0
  85. package/dist/components/textarea/textarea.d.ts.map +1 -0
  86. package/dist/core.css +1 -0
  87. package/dist/helpers/node.d.ts +22 -0
  88. package/dist/helpers/node.d.ts.map +1 -0
  89. package/dist/helpers/string.d.ts +12 -0
  90. package/dist/helpers/string.d.ts.map +1 -0
  91. package/dist/index.cjs +2 -0
  92. package/dist/index.cjs.map +1 -0
  93. package/dist/index.d.ts +52 -0
  94. package/dist/index.d.ts.map +1 -0
  95. package/dist/index.js +33977 -0
  96. package/dist/index.js.map +1 -0
  97. package/dist/spec.d.ts +178 -0
  98. package/dist/spec.d.ts.map +1 -0
  99. package/dist/test/spec.d.ts +14 -0
  100. package/dist/test/spec.d.ts.map +1 -0
  101. package/dist/types.d.ts +6 -0
  102. package/dist/types.d.ts.map +1 -0
  103. package/package.json +50 -0
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # @monospaced/set-core
2
+
3
+ SSR-first component library for Set. Native HTML output via custom elements, with a co-located CSS contract.
4
+
5
+ ## Current scope
6
+
7
+ - TypeScript-first SSR renderers that emit native HTML
8
+ - Co-located CSS contract via `styles.css` (tokens + root + component styles)
9
+ - Storybook stories for component development
10
+ - Vitest + Testing Library coverage
11
+ - Token CSS auto-import via `@monospaced/set-system`
12
+ - Browser baseline wired via `@monospaced/set-config/browserslist`
13
+
14
+ ## Public API
15
+
16
+ - JS/TS: `@monospaced/set-core`
17
+ - CSS: `@monospaced/set-core/styles.css`
18
+
19
+ ## Font loading
20
+
21
+ Load fonts before core styles:
22
+
23
+ ```css
24
+ @import "@monospaced/set-assets/fonts.css";
25
+ @import "@monospaced/set-core/styles.css";
26
+ ```
27
+
28
+ ## Scripts
29
+
30
+ - `pnpm run build`
31
+ - `pnpm run build:types`
32
+ - `pnpm run lint`
33
+ - `pnpm run test`
34
+ - `pnpm run test:watch`
35
+ - `pnpm run typecheck`
36
+
37
+ Storybook runtime lives in `apps/storybook` (run via root scripts: `pnpm run storybook`, `pnpm run storybook:build`).
@@ -0,0 +1,59 @@
1
+ import { type SetNode } from "../../helpers/node";
2
+ import type { SetComponentSpec } from "../../spec";
3
+ import type { SetInlineSize, SetStatusTone } from "../../types";
4
+ export declare const SET_ALERT_TAG_NAME = "set-alert";
5
+ export declare const SET_ALERT_EVENT_BEFORE_DISMISS = "set-alert-before-dismiss";
6
+ export declare const SET_ALERT_EVENT_DISMISS = "set-alert-dismiss";
7
+ export type SetAlertSize = "sm" | "md";
8
+ export interface SetAlertProps {
9
+ /** Whether the runtime custom element should inject a dismiss control. @default false */
10
+ dismissible?: boolean;
11
+ /** Accessible label for the runtime dismiss control. Ignored when not dismissible. @default "Dismiss alert" */
12
+ dismissibleLabel?: string;
13
+ /** DOM id. */
14
+ id?: string;
15
+ /** Inline-size behavior. @default "full" */
16
+ inlineSize?: SetInlineSize;
17
+ /** Alert body text (escaped before render). */
18
+ message: string;
19
+ /** Size variant. @default "md" */
20
+ size?: SetAlertSize;
21
+ /** Semantic message intent. */
22
+ tone?: SetStatusTone;
23
+ /** Optional short heading/title text (escaped before render). */
24
+ title?: string;
25
+ }
26
+ /**
27
+ * Builds the IR tree for the Set alert component.
28
+ *
29
+ * @param props - Alert component props.
30
+ * @returns IR node for a `set-alert` host.
31
+ */
32
+ export declare function buildSetAlert({ dismissible, dismissibleLabel, id, inlineSize, message, size, tone, title, }: SetAlertProps): SetNode;
33
+ /**
34
+ * SSR renderer for the Set alert component.
35
+ *
36
+ * Emits meaningful light-DOM HTML inside a `set-alert` host. When
37
+ * `dismissible` is true, runtime hydration may add a dismiss button and remove
38
+ * the host element when that control is activated, subject to the cancelable
39
+ * before-dismiss event.
40
+ *
41
+ * @param props - Alert component props.
42
+ * @returns HTML string for a `set-alert` host.
43
+ */
44
+ export declare function renderSetAlert(props: SetAlertProps): string;
45
+ /**
46
+ * Defines the `set-alert` custom element runtime.
47
+ *
48
+ * Safe to call multiple times. Existing SSR-rendered `set-alert` hosts will
49
+ * upgrade in place and, when dismissible, receive an interactive dismiss
50
+ * control in light DOM.
51
+ *
52
+ * Class declaration is nested so importing this module in environments
53
+ * without an `HTMLElement` global (Node-based tooling like the adapter
54
+ * codegen) doesn't throw at load time.
55
+ */
56
+ export declare function defineSetAlert(): void;
57
+ /** Declarative alert contract mirror for tooling, docs, and adapters. */
58
+ export declare const SET_ALERT_SPEC: SetComponentSpec;
59
+ //# sourceMappingURL=alert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/alert.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,aAAa,EAAE,MAAM,aAAa,CAAC;AAIhE,eAAO,MAAM,kBAAkB,cAAc,CAAC;AAC9C,eAAO,MAAM,8BAA8B,6BAA6B,CAAC;AACzE,eAAO,MAAM,uBAAuB,sBAAsB,CAAC;AAI3D,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,CAAC;AAEvC,MAAM,WAAW,aAAa;IAC5B,yFAAyF;IACzF,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,+GAA+G;IAC/G,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,4CAA4C;IAC5C,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,+CAA+C;IAC/C,OAAO,EAAE,MAAM,CAAC;IAChB,kCAAkC;IAClC,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,+BAA+B;IAC/B,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,iEAAiE;IACjE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAqCD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAC5B,WAAW,EACX,gBAA0C,EAC1C,EAAE,EACF,UAAmB,EACnB,OAAO,EACP,IAAW,EACX,IAAI,EACJ,KAAK,GACN,EAAE,aAAa,GAAG,OAAO,CAyDzB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,CAE3D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAuDrC;AAED,yEAAyE;AACzE,eAAO,MAAM,cAAc,EAAE,gBAsJ5B,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { type SetNode } from "../../helpers/node";
2
+ import type { SetComponentSpec } from "../../spec";
3
+ export type SetAvatarColor = "neutral" | "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09";
4
+ export type SetAvatarEntity = "bot" | "organization" | "person" | "team";
5
+ export type SetAvatarSize = "xs" | "sm" | "md" | "lg" | "xl";
6
+ export interface SetAvatarProps {
7
+ /** Optional explicit accessible label. Used before `name` fallback text. */
8
+ alt?: string;
9
+ /** Emits `aria-hidden="true"` on the wrapper when true. @default false */
10
+ ariaHidden?: boolean;
11
+ /** Icon fallback identity when `src`, `initials`, and `name` are absent.
12
+ * @default "person" */
13
+ entity?: SetAvatarEntity;
14
+ /** Avatar background color token. If omitted and `name` exists, color is hash-derived (01..09). */
15
+ color?: SetAvatarColor;
16
+ /** DOM id. */
17
+ id?: string;
18
+ /** Explicit initials override. Trimmed and whitespace-collapsed; alphabetic only, 1-3 characters. */
19
+ initials?: string;
20
+ /** Full name used for accessible-label fallback and initials derivation. */
21
+ name?: string;
22
+ /** Avatar size. @default "md" */
23
+ size?: SetAvatarSize;
24
+ /** Image source URL. Empty/whitespace is treated as missing. */
25
+ src?: string;
26
+ }
27
+ /**
28
+ * Builds the IR tree for the Set avatar component.
29
+ *
30
+ * @param props - Avatar component props.
31
+ * @returns IR node for an avatar wrapper with image/initials/icon content.
32
+ */
33
+ export declare function buildSetAvatar({ alt, ariaHidden, color, entity, id, initials, name, size, src, }: SetAvatarProps): SetNode;
34
+ /**
35
+ * SSR renderer for the Set avatar component.
36
+ *
37
+ * @param props - Avatar component props.
38
+ * @returns HTML string for an avatar wrapper with image/initials/icon content.
39
+ */
40
+ export declare function renderSetAvatar(props: SetAvatarProps): string;
41
+ /** Declarative avatar contract mirror for tooling, docs, and adapters. */
42
+ export declare const SET_AVATAR_SPEC: SetComponentSpec;
43
+ export { getSetInitials } from "./get-initials";
44
+ //# sourceMappingURL=avatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAKpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAInD,MAAM,MAAM,cAAc,GACtB,SAAS,GACT,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;AACT,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,cAAc,GAAG,QAAQ,GAAG,MAAM,CAAC;AACzE,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAqB7D,MAAM,WAAW,cAAc;IAC7B,4EAA4E;IAC5E,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,0EAA0E;IAC1E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;2BACuB;IACvB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,mGAAmG;IACnG,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,qGAAqG;IACrG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4EAA4E;IAC5E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,gEAAgE;IAChE,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAiED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,UAAU,EACV,KAAK,EACL,MAAiB,EACjB,EAAE,EACF,QAAQ,EACR,IAAI,EACJ,IAAW,EACX,GAAG,GACJ,EAAE,cAAc,GAAG,OAAO,CAoE1B;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,CAE7D;AAED,0EAA0E;AAC1E,eAAO,MAAM,eAAe,EAAE,gBA2G7B,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Derives avatar initials from a full name.
3
+ *
4
+ * Rules:
5
+ * - Empty/whitespace-only input returns `undefined`
6
+ * - Leading non-Latin first token returns `undefined`
7
+ * - First initial is always uppercased
8
+ * - Single-word names return exactly one initial
9
+ * - Two/three-word names return initials from each word
10
+ * - Four+ words return first + last initials
11
+ * - Lowercase surname particles (for example `da`, `de`, `van`) override
12
+ * multi-word fallback and produce first initial + particle initial
13
+ * - Hyphenation in first token yields one first initial only
14
+ * - In two-word names, a second-token two-part hyphen surname contributes a
15
+ * third initial (for example `Ocasio-Cortez` -> `OC`)
16
+ */
17
+ export declare function getSetInitials(name: string | undefined): string | undefined;
18
+ //# sourceMappingURL=get-initials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-initials.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/get-initials.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CA6D3E"}
@@ -0,0 +1,33 @@
1
+ import { type SetNode } from "../../helpers/node";
2
+ import type { SetComponentSpec } from "../../spec";
3
+ import type { SetStatusTone } from "../../types";
4
+ export type SetBadgeSize = "sm" | "md";
5
+ export interface SetBadgeProps {
6
+ /** Positions the badge as a floating overlay. */
7
+ floating?: boolean;
8
+ /** DOM id. */
9
+ id?: string;
10
+ /** Badge text content. Escaped as plain text. */
11
+ label: string;
12
+ /** Badge size. @default "md" */
13
+ size?: SetBadgeSize;
14
+ /** Semantic tone variant. */
15
+ tone?: SetStatusTone;
16
+ }
17
+ /**
18
+ * Builds the IR tree for the Set badge component.
19
+ *
20
+ * @param props - Badge component props.
21
+ * @returns IR node for a badge element.
22
+ */
23
+ export declare function buildSetBadge({ floating, id, label, size, tone, }: SetBadgeProps): SetNode;
24
+ /**
25
+ * SSR renderer for the Set badge component.
26
+ *
27
+ * @param props - Badge component props.
28
+ * @returns HTML string for a badge element.
29
+ */
30
+ export declare function renderSetBadge(props: SetBadgeProps): string;
31
+ /** Declarative badge contract mirror for tooling, docs, and adapters. */
32
+ export declare const SET_BADGE_SPEC: SetComponentSpec;
33
+ //# sourceMappingURL=badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/badge/badge.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,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,CAAC;AAEvC,MAAM,WAAW,aAAa;IAC5B,iDAAiD;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,6BAA6B;IAC7B,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,EAAE,EACF,KAAK,EACL,IAAW,EACX,IAAI,GACL,EAAE,aAAa,GAAG,OAAO,CAezB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,CAE3D;AAED,yEAAyE;AACzE,eAAO,MAAM,cAAc,EAAE,gBA0D5B,CAAC"}
@@ -0,0 +1,55 @@
1
+ import { type SetNode } from "../../helpers/node";
2
+ import type { SetComponentSpec } from "../../spec";
3
+ import type { SetStatusTone } from "../../types";
4
+ export declare const SET_BANNER_TAG_NAME = "set-banner";
5
+ export declare const SET_BANNER_EVENT_BEFORE_DISMISS = "set-banner-before-dismiss";
6
+ export declare const SET_BANNER_EVENT_DISMISS = "set-banner-dismiss";
7
+ export interface SetBannerProps {
8
+ /** URL for an optional secondary link action rendered inline within the message.
9
+ * Must be provided together with `actionLabel`. */
10
+ actionHref?: string;
11
+ /** Text label for an optional secondary link action rendered inline within the message.
12
+ * Must be provided together with `actionHref`. */
13
+ actionLabel?: string;
14
+ /** Whether the runtime custom element should inject a dismiss control. @default true */
15
+ dismissible?: boolean;
16
+ /** Accessible label for the runtime dismiss control. Ignored when not dismissible.
17
+ * @default "Dismiss banner" */
18
+ dismissibleLabel?: string;
19
+ /** DOM id. */
20
+ id?: string;
21
+ /** Banner body text (escaped before render). */
22
+ message: string;
23
+ /** Semantic message intent. */
24
+ tone?: SetStatusTone;
25
+ }
26
+ /**
27
+ * Builds the IR tree for the Set banner component.
28
+ *
29
+ * @param props - Banner component props.
30
+ * @returns IR node for a `set-banner` host.
31
+ */
32
+ export declare function buildSetBanner({ actionHref, actionLabel, dismissible, dismissibleLabel, id, message, tone, }: SetBannerProps): SetNode;
33
+ /**
34
+ * SSR renderer for the Set banner component.
35
+ *
36
+ * Emits meaningful light-DOM HTML inside a `set-banner` host. When
37
+ * `dismissible` is true, runtime hydration may add a dismiss button and remove
38
+ * the host element when that control is activated, subject to the cancelable
39
+ * before-dismiss event.
40
+ *
41
+ * @param props - Banner component props.
42
+ * @returns HTML string for a `set-banner` host.
43
+ */
44
+ export declare function renderSetBanner(props: SetBannerProps): string;
45
+ /**
46
+ * Defines the `set-banner` custom element runtime.
47
+ *
48
+ * Safe to call multiple times. Existing SSR-rendered `set-banner` hosts will
49
+ * upgrade in place and, when dismissible, receive an interactive dismiss
50
+ * control in light DOM.
51
+ */
52
+ export declare function defineSetBanner(): void;
53
+ /** Declarative banner contract mirror for tooling, docs, and adapters. */
54
+ export declare const SET_BANNER_SPEC: SetComponentSpec;
55
+ //# sourceMappingURL=banner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../src/components/banner/banner.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;AAIjD,eAAO,MAAM,mBAAmB,eAAe,CAAC;AAChD,eAAO,MAAM,+BAA+B,8BAA8B,CAAC;AAC3E,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAI7D,MAAM,WAAW,cAAc;IAC7B;uDACmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;sDACkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wFAAwF;IACxF,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;mCAC+B;IAC/B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,gDAAgD;IAChD,OAAO,EAAE,MAAM,CAAC;IAChB,+BAA+B;IAC/B,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;AAmBD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAC7B,UAAU,EACV,WAAW,EACX,WAAkB,EAClB,gBAA0C,EAC1C,EAAE,EACF,OAAO,EACP,IAAI,GACL,EAAE,cAAc,GAAG,OAAO,CA6C1B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,CAE7D;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAuDtC;AAED,0EAA0E;AAC1E,eAAO,MAAM,eAAe,EAAE,gBA4F7B,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { type SetNode } from "../../helpers/node";
2
+ import type { SetComponentSpec } from "../../spec";
3
+ import type { SetAlign } from "../../types";
4
+ export type SetBlockquoteSize = "md" | "lg";
5
+ export interface SetBlockquoteProps {
6
+ /** Text alignment. @default "start" */
7
+ align?: SetAlign;
8
+ /** Trusted attribution HTML. */
9
+ attribution: string;
10
+ /** DOM id. */
11
+ id?: string;
12
+ /** Applies max measure constraints for long-form readability. @default true */
13
+ measured?: boolean;
14
+ /** Trusted quote HTML. */
15
+ quote: string;
16
+ /** Enables breakpoint-responsive type sizing. @default false */
17
+ responsive?: boolean;
18
+ /** Quote size. @default "md" */
19
+ size?: SetBlockquoteSize;
20
+ }
21
+ /**
22
+ * Builds the IR tree for the Set blockquote component.
23
+ *
24
+ * @param props - Blockquote component props.
25
+ * @returns IR node for a blockquote wrapper.
26
+ */
27
+ export declare function buildSetBlockquote({ align, attribution, id, measured, quote, responsive, size, }: SetBlockquoteProps): SetNode;
28
+ /**
29
+ * SSR renderer for the Set blockquote component.
30
+ *
31
+ * @param props - Blockquote component props.
32
+ * @returns HTML string for a blockquote wrapper.
33
+ */
34
+ export declare function renderSetBlockquote(props: SetBlockquoteProps): string;
35
+ /** Declarative blockquote contract mirror for tooling, docs, and adapters. */
36
+ export declare const SET_BLOCKQUOTE_SPEC: SetComponentSpec;
37
+ //# sourceMappingURL=blockquote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blockquote.d.ts","sourceRoot":"","sources":["../../../src/components/blockquote/blockquote.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,MAAM,iBAAiB,GAAG,IAAI,GAAG,IAAI,CAAC;AAE5C,MAAM,WAAW,kBAAkB;IACjC,uCAAuC;IACvC,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,gCAAgC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,gEAAgE;IAChE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gCAAgC;IAChC,IAAI,CAAC,EAAE,iBAAiB,CAAC;CAC1B;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,KAAe,EACf,WAAW,EACX,EAAE,EACF,QAAe,EACf,KAAK,EACL,UAAkB,EAClB,IAAW,GACZ,EAAE,kBAAkB,GAAG,OAAO,CA0C9B;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,kBAAkB,GAAG,MAAM,CAErE;AAED,8EAA8E;AAC9E,eAAO,MAAM,mBAAmB,EAAE,gBAsEjC,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { type SetNode } from "../../helpers/node";
2
+ import type { SetComponentSpec } from "../../spec";
3
+ import type { SetSurfaceVariant } from "../surface/surface";
4
+ export type SetBoxBackground = "default" | "panel" | "transparent";
5
+ export type SetBoxPadding = "none" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
6
+ export type SetBoxRadius = "sm" | "md";
7
+ export interface SetBoxProps {
8
+ /** Background treatment. @default "default" */
9
+ background?: SetBoxBackground;
10
+ /** Subtle border. @default false */
11
+ border?: boolean;
12
+ /** Trusted inner HTML. */
13
+ children?: string;
14
+ /** DOM id. */
15
+ id?: string;
16
+ /** Inner block-axis spacing scale. @default "md" */
17
+ paddingBlock?: SetBoxPadding;
18
+ /** Inner inline-axis spacing scale. @default "md" */
19
+ paddingInline?: SetBoxPadding;
20
+ /** Corner radius size. */
21
+ radius?: SetBoxRadius;
22
+ /** Responsive block-axis padding. @default false */
23
+ responsive?: boolean;
24
+ /** Surface context. */
25
+ surface?: SetSurfaceVariant;
26
+ }
27
+ /**
28
+ * Builds the IR tree for the Set box component.
29
+ *
30
+ * @param props - Box component props.
31
+ * @returns IR node for a box wrapper.
32
+ */
33
+ export declare function buildSetBox({ background, border, children, id, paddingBlock, paddingInline, radius, responsive, surface, }: SetBoxProps): SetNode;
34
+ /**
35
+ * SSR renderer for the Set box component.
36
+ *
37
+ * @param props - Box component props.
38
+ * @returns HTML string for a box wrapper.
39
+ */
40
+ export declare function renderSetBox(props: SetBoxProps): string;
41
+ /** Declarative box contract mirror for tooling, docs, and adapters. */
42
+ export declare const SET_BOX_SPEC: SetComponentSpec;
43
+ //# sourceMappingURL=box.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../../../src/components/box/box.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,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,OAAO,GAAG,aAAa,CAAC;AACnE,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,CAAC;AACV,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,CAAC;AAEvC,MAAM,WAAW,WAAW;IAC1B,+CAA+C;IAC/C,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,oCAAoC;IACpC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,oDAAoD;IACpD,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,qDAAqD;IACrD,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,0BAA0B;IAC1B,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,oDAAoD;IACpD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uBAAuB;IACvB,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,UAAsB,EACtB,MAAM,EACN,QAAQ,EACR,EAAE,EACF,YAAmB,EACnB,aAAoB,EACpB,MAAM,EACN,UAAU,EACV,OAAO,GACR,EAAE,WAAW,GAAG,OAAO,CAmBvB;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAEvD;AAED,uEAAuE;AACvE,eAAO,MAAM,YAAY,EAAE,gBAgH1B,CAAC"}
@@ -0,0 +1,94 @@
1
+ import { type SetNode } from "../../helpers/node";
2
+ import type { SetComponentSpec } from "../../spec";
3
+ import { type SetIconMirrorMode } from "../icon/icon";
4
+ export type SetButtonAppearance = "outline" | "solid" | "text";
5
+ export type SetButtonHasPopup = "menu";
6
+ export type SetButtonLabelVisibility = "visible" | "hidden" | "hiddenBelowTablet";
7
+ export type SetButtonPlacement = "start" | "end";
8
+ export type SetButtonSize = "sm" | "md" | "lg";
9
+ export type SetButtonTone = "default" | "neutral";
10
+ export type SetButtonType = "button" | "submit";
11
+ export interface SetButtonProps {
12
+ /**
13
+ * Structural style.
14
+ * @default "outline"
15
+ */
16
+ appearance?: SetButtonAppearance;
17
+ /**
18
+ * Controlled element id for disclosure-style button interactions.
19
+ * Ignored when `disclosure` is false or omitted.
20
+ */
21
+ controls?: string;
22
+ /**
23
+ * Disables interaction.
24
+ * @default false
25
+ */
26
+ disabled?: boolean;
27
+ /**
28
+ * Emits `aria-expanded="false"` for disclosure-style button interactions.
29
+ * SSR renderers are expected to update the attribute at runtime if state changes.
30
+ * @default false
31
+ */
32
+ disclosure?: boolean;
33
+ /** Optional form owner ID. */
34
+ form?: string;
35
+ /**
36
+ * Popup type for button interactions.
37
+ */
38
+ haspopup?: SetButtonHasPopup;
39
+ /** DOM id. */
40
+ id?: string;
41
+ /** Optional icon name (TDesign naming semantics). */
42
+ icon?: string;
43
+ /** Optional icon mirroring mode. Ignored when `icon` is omitted. */
44
+ iconMirrored?: SetIconMirrorMode;
45
+ /**
46
+ * Icon placement when icon is present.
47
+ * @default "start"
48
+ */
49
+ iconPlacement?: SetButtonPlacement;
50
+ /** Accessible name text rendered as content (escaped before render). */
51
+ label: string;
52
+ /**
53
+ * Controls whether the visible label is shown alongside the icon.
54
+ * Non-visible values require `icon`.
55
+ * @default "visible"
56
+ */
57
+ labelVisibility?: SetButtonLabelVisibility;
58
+ /** Optional submitted field name. */
59
+ name?: string;
60
+ /**
61
+ * Size variant.
62
+ * @default "md"
63
+ */
64
+ size?: SetButtonSize;
65
+ /**
66
+ * Semantic color intent.
67
+ * @default "default"
68
+ */
69
+ tone?: SetButtonTone;
70
+ /**
71
+ * Native button type.
72
+ * @default "button"
73
+ */
74
+ type?: SetButtonType;
75
+ /** Optional submitted field value. */
76
+ value?: string;
77
+ }
78
+ /**
79
+ * Builds the `SetNode` IR for the Set button component.
80
+ *
81
+ * This is the shape consumed by framework adapters. The SSR renderer
82
+ * `renderSetButton` is implemented as `serialize(buildSetButton(props))`.
83
+ */
84
+ export declare function buildSetButton(props: SetButtonProps): SetNode;
85
+ /**
86
+ * SSR renderer for the Set button component.
87
+ *
88
+ * @param props - Button component props.
89
+ * @returns HTML string for a `<button>` element.
90
+ */
91
+ export declare function renderSetButton(props: SetButtonProps): string;
92
+ /** Declarative button contract mirror for tooling, docs, and adapters. */
93
+ export declare const SET_BUTTON_SPEC: SetComponentSpec;
94
+ //# sourceMappingURL=button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAiB,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAErE,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAC/D,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC;AACvC,MAAM,MAAM,wBAAwB,GAChC,SAAS,GACT,QAAQ,GACR,mBAAmB,CAAC;AACxB,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,KAAK,CAAC;AACjD,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC/C,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAClD,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEhD,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8BAA8B;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,qDAAqD;IACrD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC;;;OAGG;IACH,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,wEAAwE;IACxE,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,eAAe,CAAC,EAAE,wBAAwB,CAAC;IAC3C,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB;;;OAGG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB;;;OAGG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAmF7D;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,CAE7D;AAED,0EAA0E;AAC1E,eAAO,MAAM,eAAe,EAAE,gBAyL7B,CAAC"}
@@ -0,0 +1,42 @@
1
+ import { type SetNode } from "../../helpers/node";
2
+ import type { SetComponentSpec } from "../../spec";
3
+ import type { SetHeadingLevel } from "../../types";
4
+ import type { SetSurfaceVariant } from "../surface/surface";
5
+ export interface SetCardProps {
6
+ /** Description HTML content. Caller sanitizes untrusted content. */
7
+ description: string;
8
+ /** Optional heading level for the title. Omit to render a `div.title`. */
9
+ headingLevel?: SetHeadingLevel;
10
+ /** Optional link destination for the title. Adds a trailing arrow icon when `note` is also provided. */
11
+ href?: string;
12
+ /** DOM id. */
13
+ id?: string;
14
+ /** Optional note HTML content. Caller sanitizes untrusted content. */
15
+ note?: string;
16
+ /** Surface context. Emits `data-set-surface` when provided. */
17
+ surface?: SetSurfaceVariant;
18
+ /** Card title text content (escaped before render). */
19
+ title: string;
20
+ }
21
+ /**
22
+ * Builds the IR tree for the Set card component.
23
+ *
24
+ * @param props - Card component props.
25
+ * @returns IR node for a card wrapper.
26
+ */
27
+ export declare function buildSetCard({ description, headingLevel, href, id, note, surface, title, }: SetCardProps): SetNode;
28
+ /**
29
+ * SSR renderer for the Set card component.
30
+ *
31
+ * Emits a `div.card` root with decorative dots, a title, supporting description,
32
+ * and optional note. When `href` is provided, the title becomes a link; when
33
+ * both `href` and `note` are provided, the note includes a trailing decorative
34
+ * arrow icon.
35
+ *
36
+ * @param props - Card component props.
37
+ * @returns HTML string for a card wrapper.
38
+ */
39
+ export declare function renderSetCard(props: SetCardProps): string;
40
+ /** Declarative card contract mirror for tooling, docs, and adapters. */
41
+ export declare const SET_CARD_SPEC: SetComponentSpec;
42
+ //# sourceMappingURL=card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/card/card.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,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,MAAM,WAAW,YAAY;IAC3B,oEAAoE;IACpE,WAAW,EAAE,MAAM,CAAC;IACpB,0EAA0E;IAC1E,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,wGAAwG;IACxG,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,sEAAsE;IACtE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,EAC3B,WAAW,EACX,YAAY,EACZ,IAAI,EACJ,EAAE,EACF,IAAI,EACJ,OAAO,EACP,KAAK,GACN,EAAE,YAAY,GAAG,OAAO,CAwExB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAEzD;AAED,wEAAwE;AACxE,eAAO,MAAM,aAAa,EAAE,gBAoE3B,CAAC"}
@@ -0,0 +1,42 @@
1
+ import { type SetNode } from "../../helpers/node";
2
+ import type { SetComponentSpec } from "../../spec";
3
+ import type { SetControlSize } from "../../types";
4
+ export interface SetCheckboxProps {
5
+ /** Checked state. @default false */
6
+ checked?: boolean;
7
+ /** Helper text rendered after the label. Requires `id`. */
8
+ description?: string;
9
+ /** Disabled state. @default false */
10
+ disabled?: boolean;
11
+ /** DOM id applied to the underlying input. Required when `description` is provided. */
12
+ id?: string;
13
+ /** Invalid state. Ignored when `disabled`. @default false */
14
+ invalid?: boolean;
15
+ /** Label text content (escaped before render). */
16
+ label: string;
17
+ /** Form field name. */
18
+ name?: string;
19
+ /** Required state. @default false */
20
+ required?: boolean;
21
+ /** Size variant. @default "md" */
22
+ size?: SetControlSize;
23
+ /** Submitted field value. */
24
+ value?: string;
25
+ }
26
+ /**
27
+ * Builds the IR tree for the Set checkbox component.
28
+ *
29
+ * @param props - Checkbox component props.
30
+ * @returns IR node for a checkbox field wrapper.
31
+ */
32
+ export declare function buildSetCheckbox({ checked, description, disabled, id, invalid, label, name, required, size, value, }: SetCheckboxProps): SetNode;
33
+ /**
34
+ * SSR renderer for the Set checkbox component.
35
+ *
36
+ * @param props - Checkbox component props.
37
+ * @returns HTML string for a checkbox field wrapper.
38
+ */
39
+ export declare function renderSetCheckbox(props: SetCheckboxProps): string;
40
+ /** Declarative checkbox contract mirror for tooling, docs, and adapters. */
41
+ export declare const SET_CHECKBOX_SPEC: SetComponentSpec;
42
+ //# sourceMappingURL=checkbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/checkbox.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,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,WAAW,gBAAgB;IAC/B,oCAAoC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uFAAuF;IACvF,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6DAA6D;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,uBAAuB;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kCAAkC;IAClC,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,WAAW,EACX,QAAQ,EACR,EAAE,EACF,OAAO,EACP,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,IAAW,EACX,KAAK,GACN,EAAE,gBAAgB,GAAG,OAAO,CA+D5B;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG,MAAM,CAEjE;AAED,4EAA4E;AAC5E,eAAO,MAAM,iBAAiB,EAAE,gBAiI/B,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { type SetNode } from "../../helpers/node";
2
+ import type { SetComponentSpec } from "../../spec";
3
+ export type SetContainerGutter = "default" | "narrow" | "none";
4
+ export type SetContainerMaxInlineSize = "default" | "wide" | "none";
5
+ export interface SetContainerProps {
6
+ /** Trusted inner HTML. */
7
+ children?: string;
8
+ /** Inline gutter behavior. @default "default" */
9
+ gutter?: SetContainerGutter;
10
+ /** DOM id. */
11
+ id?: string;
12
+ /** Max-inline-size behavior. Effect is only visible on wider viewports. @default "default" */
13
+ maxInlineSize?: SetContainerMaxInlineSize;
14
+ }
15
+ /**
16
+ * Builds the IR tree for the Set container component.
17
+ *
18
+ * @param props - Container component props.
19
+ * @returns IR node for a container wrapper.
20
+ */
21
+ export declare function buildSetContainer({ children, gutter, id, maxInlineSize, }: SetContainerProps): SetNode;
22
+ /**
23
+ * SSR renderer for the Set container component.
24
+ *
25
+ * @param props - Container component props.
26
+ * @returns HTML string for a container wrapper.
27
+ */
28
+ export declare function renderSetContainer(props: SetContainerProps): string;
29
+ /** Declarative container contract mirror for tooling, docs, and adapters. */
30
+ export declare const SET_CONTAINER_SPEC: SetComponentSpec;
31
+ //# sourceMappingURL=container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../src/components/container/container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAEpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AAC/D,MAAM,MAAM,yBAAyB,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpE,MAAM,WAAW,iBAAiB;IAChC,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,8FAA8F;IAC9F,aAAa,CAAC,EAAE,yBAAyB,CAAC;CAC3C;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,MAAkB,EAClB,EAAE,EACF,aAAyB,GAC1B,EAAE,iBAAiB,GAAG,OAAO,CAc7B;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,CAEnE;AAED,6EAA6E;AAC7E,eAAO,MAAM,kBAAkB,EAAE,gBAyDhC,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { type SetNode } from "../../helpers/node";
2
+ import type { SetComponentSpec } from "../../spec";
3
+ import type { SetInlineSize } from "../../types";
4
+ export interface SetDetailsProps {
5
+ /** Content markup inside the details panel. Caller sanitizes untrusted content. */
6
+ children?: string;
7
+ /** DOM id. */
8
+ id?: string;
9
+ /** Inline-size behavior. @default "full" */
10
+ inlineSize?: SetInlineSize;
11
+ /** Whether the details is initially open. @default false */
12
+ open?: boolean;
13
+ /** Summary text content. Escaped before render. */
14
+ summary: string;
15
+ }
16
+ /**
17
+ * Builds the IR tree for the Set details component.
18
+ *
19
+ * @param props - Details component props.
20
+ * @returns IR node for a details element.
21
+ */
22
+ export declare function buildSetDetails({ children, id, open, summary, inlineSize, }: SetDetailsProps): SetNode;
23
+ /**
24
+ * SSR renderer for the Set details component.
25
+ *
26
+ * Emits native `<details>`/`<summary>` markup with trusted HTML content in a
27
+ * `.content` wrapper, and a decorative chevron icon marker in the summary.
28
+ *
29
+ * @param props - Details component props.
30
+ * @returns HTML string for a details element.
31
+ */
32
+ export declare function renderSetDetails(props: SetDetailsProps): string;
33
+ /** Declarative details contract mirror for tooling, docs, and adapters. */
34
+ export declare const SET_DETAILS_SPEC: SetComponentSpec;
35
+ //# sourceMappingURL=details.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"details.d.ts","sourceRoot":"","sources":["../../../src/components/details/details.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;AAGjD,MAAM,WAAW,eAAe;IAC9B,mFAAmF;IACnF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,4CAA4C;IAC5C,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,4DAA4D;IAC5D,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,mDAAmD;IACnD,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,EAAE,EACF,IAAI,EACJ,OAAO,EACP,UAAmB,GACpB,EAAE,eAAe,GAAG,OAAO,CA8C3B;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,CAE/D;AAED,2EAA2E;AAC3E,eAAO,MAAM,gBAAgB,EAAE,gBA2D9B,CAAC"}