@papack/csr 0.0.3 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,174 +1,896 @@
1
- //#region core/destroy.d.ts
2
- declare function destroy(root: Element): Promise<void>;
3
- //#endregion
4
1
  //#region core/signal.d.ts
5
2
  type UUID = string;
6
- type ReadFn<T> = ((cb?: (value: unknown) => Promise<void>) => Promise<T>) & {
3
+ type ReadFn<T> = ((cb?: (value: T) => void) => T) & {
7
4
  type: "signal";
8
5
  };
9
- declare function signal<T>(value: T): readonly [ReadFn<T>, (cb: (prev: T) => Promise<T> | T) => Promise<void>];
6
+ declare function signal<T>(initialValue: T): readonly [ReadFn<T>, (fn: (prev: T) => T | Promise<T>) => Promise<void>];
10
7
  interface ConnectorInterface {
11
- update: (uuid: UUID, value: unknown) => void;
12
- addTopic: (uuid: UUID) => void;
13
- removeTopic: (uuid: UUID) => void;
14
- registerClbk: (uuid: UUID, cb: (value: unknown) => void) => void;
15
- removeClbk: (uuid: UUID, cb: (value: unknown) => void) => void;
16
- getUuidByClbk: (cb: (value: unknown) => void) => UUID;
8
+ addTopic(uuid: UUID): void;
9
+ removeTopic(uuid: UUID): void;
10
+ registerClbk<T>(uuid: UUID, cb: (value: T) => void): void;
11
+ removeClbk<T>(uuid: UUID, cb: (value: T) => void): void;
12
+ update<T>(uuid: UUID, value: T): void;
13
+ getUuidByClbk<T>(cb: (value: T) => void): UUID;
17
14
  }
18
15
  declare class Connector implements ConnectorInterface {
19
- private topic;
20
- private clbkMapping;
16
+ private topics;
17
+ private callbackMap;
21
18
  addTopic(uuid: UUID): void;
22
19
  removeTopic(uuid: UUID): void;
23
- registerClbk<T>(uuid: string, cb: (value: T) => void): void;
20
+ registerClbk<T>(uuid: UUID, cb: (value: T) => void): void;
24
21
  removeClbk<T>(uuid: UUID, cb: (value: T) => void): void;
25
22
  update<T>(uuid: UUID, value: T): void;
26
- getUuidByClbk(fn: (value: unknown) => void): string;
23
+ getUuidByClbk<T>(cb: (value: T) => void): UUID;
27
24
  }
28
25
  declare const connector: Connector;
29
26
  //#endregion
30
27
  //#region core/effect.d.ts
31
- declare function effect<T>(readFn: ReadFn<T>, fn: (value: T) => Promise<unknown> | unknown): Promise<void>;
28
+ declare function effect<T>(readFn: ReadFn<T>, fn: (value: T) => void | Promise<void>): void;
29
+ //#endregion
30
+ //#region core/for.d.ts
31
+ type Uuid = string;
32
+ interface Keyed {
33
+ uuid: Uuid;
34
+ }
35
+ interface ForProps<T extends Keyed> {
36
+ each: ReadFn<T[]>;
37
+ }
38
+ declare function For<T extends Keyed>(p: ForProps<T>, [child]: any): null;
32
39
  //#endregion
33
40
  //#region core/fragment.d.ts
34
41
  declare function fragment(p: null, ...childs: any): any;
35
42
  //#endregion
43
+ //#region core/jsx.d.ts
44
+ type JsxNode = VElement | VText | VSignal;
45
+ declare global {
46
+ namespace JSX {
47
+ type Element = any;
48
+ interface IntrinsicElements {
49
+ [key: string]: any;
50
+ }
51
+ }
52
+ }
53
+ interface VElement {
54
+ kind: "element";
55
+ tag: string | ComponentFn;
56
+ props: Record<string, any>;
57
+ children: JsxNode[];
58
+ }
59
+ interface VText {
60
+ kind: "text";
61
+ value: string;
62
+ }
63
+ interface VSignal {
64
+ kind: "signal";
65
+ read: ReadFn<any>;
66
+ }
67
+ interface PropsInterface {
68
+ ctx?: any;
69
+ }
70
+ type ComponentFn = (props: PropsInterface, children: JsxNode[]) => JsxNode | null;
71
+ declare function jsx(tag: string | ComponentFn, props: any, ...rawChildren: any[]): VElement;
72
+ //#endregion
73
+ //#region core/lifecycle.d.ts
74
+ type MountCallback = (el: Element) => void | Promise<void>;
75
+ type UnmountCallback = () => void | Promise<void>;
76
+ declare function hasActiveMountSession(): boolean;
77
+ declare function beginMountSession(): void;
78
+ declare function endMountSession(root: Element): void;
79
+ declare function mount(cb: MountCallback): void;
80
+ declare function unmount(cb: UnmountCallback): void;
81
+ declare function runUnmountsForElement(el: Element): void;
82
+ //#endregion
36
83
  //#region core/render.d.ts
37
84
  interface RenderCtx {
38
85
  parent: Node & ParentNode;
86
+ self?: Node;
39
87
  [k: string]: any;
40
88
  }
41
89
  interface RenderResult {
42
90
  el: Node;
43
91
  }
44
- declare function render(node: JsxChild | Promise<JsxChild> | null | Promise<null>, ctx: RenderCtx): Promise<RenderResult>;
92
+ declare function render(node: JsxNode | null, ctx: RenderCtx): RenderResult;
45
93
  //#endregion
46
- //#region core/jsx.d.ts
47
- type EventHandler<E extends Event = Event> = (event: E) => void;
48
- interface DOMEvents {
49
- onClick?: EventHandler<MouseEvent>;
50
- onDblClick?: EventHandler<MouseEvent>;
51
- onMouseDown?: EventHandler<MouseEvent>;
52
- onMouseUp?: EventHandler<MouseEvent>;
53
- onMouseMove?: EventHandler<MouseEvent>;
54
- onMouseEnter?: EventHandler<MouseEvent>;
55
- onMouseLeave?: EventHandler<MouseEvent>;
56
- onKeyDown?: EventHandler<KeyboardEvent>;
57
- onKeyUp?: EventHandler<KeyboardEvent>;
58
- onInput?: EventHandler<InputEvent>;
59
- onChange?: EventHandler<Event>;
60
- onFocus?: EventHandler<FocusEvent>;
61
- onBlur?: EventHandler<FocusEvent>;
62
- }
63
- interface StyleProps {
64
- [key: string]: string | number | ReadFn<string | number>;
94
+ //#region core/show.d.ts
95
+ interface ShowPropsInterface {
96
+ when: ReadFn<boolean>;
65
97
  }
66
- type MaybeSignal<T> = T | ReadFn<T>;
67
- interface HTMLAttributes extends DOMEvents {
68
- id?: string;
69
- class?: string;
70
- className?: string;
71
- title?: string;
72
- style?: StyleProps;
73
- value?: MaybeSignal<string | number>;
74
- checked?: MaybeSignal<boolean>;
75
- disabled?: MaybeSignal<boolean>;
76
- children?: any;
98
+ declare function Show(p: ShowPropsInterface, children: any): null;
99
+ //#endregion
100
+ //#region helper/repeat.d.ts
101
+ type MaybeSignal$1<T> = T | ReadFn<T>;
102
+ interface RepeatPropsInterface {
103
+ n: MaybeSignal$1<number>;
77
104
  }
78
- interface SVGAttributes extends DOMEvents {
79
- id?: string;
80
- class?: string;
81
- style?: StyleProps;
82
- viewBox?: MaybeSignal<string>;
83
- fill?: MaybeSignal<string>;
84
- stroke?: MaybeSignal<string>;
85
- strokeWidth?: MaybeSignal<number>;
86
- d?: MaybeSignal<string>;
87
- cx?: MaybeSignal<string | number>;
88
- cy?: MaybeSignal<string | number>;
89
- r?: MaybeSignal<string | number>;
90
- x?: MaybeSignal<string | number>;
91
- y?: MaybeSignal<string | number>;
92
- width?: MaybeSignal<string | number>;
93
- height?: MaybeSignal<string | number>;
94
- children?: any;
105
+ declare function Repeat(p: RepeatPropsInterface, children: any[]): any;
106
+ //#endregion
107
+ //#region style/breakpoint.d.ts
108
+ declare const breakpoint: {
109
+ mobile: number;
110
+ tablet: number;
111
+ laptop: number;
112
+ desktop: number;
113
+ large: number;
114
+ };
115
+ //#endregion
116
+ //#region hooks/use-breakpoint.d.ts
117
+ type BreakpointName = keyof typeof breakpoint;
118
+ declare function useBreakpoint(): ReadFn<BreakpointName>;
119
+ //#endregion
120
+ //#region hooks/use-custom-event.d.ts
121
+ type Handler<T> = (data: T) => void;
122
+ /**
123
+ * Creates a custom browser event emitter.
124
+ * If a handler is provided, it is automatically
125
+ * cleaned up on component unmount.
126
+ */
127
+ declare function useCustomEvent<T = any>(topic: string, handler?: Handler<T>): (data: T) => void;
128
+ //#endregion
129
+ //#region hooks/use-locale.d.ts
130
+ interface LocaleController {
131
+ locale: ReadFn<string>;
132
+ setLocale: (next: string) => void;
95
133
  }
134
+ declare function useLocale(): LocaleController;
135
+ //#endregion
136
+ //#region dist/index.d.mts
137
+ type ReadFn$1<T$1> = ((cb?: (value: T$1) => void) => T$1) & {
138
+ type: "signal";
139
+ };
140
+ //#endregion
141
+ //#region core/jsx.d.ts
142
+ type JsxNode$1 = VElement$1 | VText$1 | VSignal$1;
96
143
  declare global {
97
144
  namespace JSX {
98
- type Element = JsxNode | Promise<JsxNode> | null | Promise<null>;
99
- interface ElementType {
100
- (props: any, ...children: any[]): any;
101
- }
145
+ type Element = any;
102
146
  interface IntrinsicElements {
103
- div: HTMLAttributes;
104
- li: HTMLAttributes;
105
- ul: HTMLAttributes;
106
- h1: HTMLAttributes;
107
- h2: HTMLAttributes;
108
- h3: HTMLAttributes;
109
- h4: HTMLAttributes;
110
- h5: HTMLAttributes;
111
- h6: HTMLAttributes;
112
- span: HTMLAttributes;
113
- p: HTMLAttributes;
114
- button: HTMLAttributes;
115
- input: HTMLAttributes & {
116
- type?: string;
117
- placeholder?: string;
118
- };
119
- textarea: HTMLAttributes;
120
- form: HTMLAttributes;
121
- label: HTMLAttributes;
122
- svg: SVGAttributes;
123
- path: SVGAttributes;
124
- circle: SVGAttributes;
125
- rect: SVGAttributes;
126
- g: SVGAttributes;
127
- line: SVGAttributes;
128
- polyline: SVGAttributes;
129
- polygon: SVGAttributes;
130
- text: SVGAttributes;
131
- tspan: SVGAttributes;
147
+ [key: string]: any;
132
148
  }
133
149
  }
134
150
  }
135
- type JsxChild = JsxNode | JsxText | JsxSignal;
136
- interface JsxText {
151
+ interface VElement$1 {
152
+ kind: "element";
153
+ tag: string | ComponentFn$1;
154
+ props: Record<string, any>;
155
+ children: JsxNode$1[];
156
+ }
157
+ interface VText$1 {
137
158
  kind: "text";
138
159
  value: string;
139
160
  }
140
- interface JsxSignal {
161
+ interface VSignal$1 {
141
162
  kind: "signal";
142
- value: any;
163
+ read: ReadFn$1<any>;
143
164
  }
144
- interface JsxNode {
145
- kind: "host" | "component" | "signal";
146
- tag: string | ComponentFn;
147
- props: any;
148
- children: JsxChild[];
165
+ interface PropsInterface$1 {
166
+ ctx?: any;
149
167
  }
150
- interface PropsInterface {
151
- ctx?: RenderCtx;
168
+ type ComponentFn$1 = (props: PropsInterface$1, children: JsxNode$1[]) => JsxNode$1 | null;
169
+ //#endregion
170
+ //#region hooks/use-router.d.ts
171
+ type Route = string;
172
+ declare function useRouter(): {
173
+ route: ReadFn$1<string>;
174
+ navigate: (to: Route) => void;
175
+ };
176
+ //#endregion
177
+ //#region core/dom.d.ts
178
+ type CSSValue = string | number;
179
+ type MaybeSignal<T> = T | ReadFn<T>;
180
+ interface DOMEvents {
181
+ onClick?: (e: MouseEvent) => void;
182
+ onDblClick?: (e: MouseEvent) => void;
183
+ onMouseDown?: (e: MouseEvent) => void;
184
+ onMouseUp?: (e: MouseEvent) => void;
185
+ onMouseMove?: (e: MouseEvent) => void;
186
+ onMouseEnter?: (e: MouseEvent) => void;
187
+ onMouseLeave?: (e: MouseEvent) => void;
188
+ onMouseOver?: (e: MouseEvent) => void;
189
+ onMouseOut?: (e: MouseEvent) => void;
190
+ onPointerDown?: (e: PointerEvent) => void;
191
+ onPointerUp?: (e: PointerEvent) => void;
192
+ onPointerMove?: (e: PointerEvent) => void;
193
+ onPointerEnter?: (e: PointerEvent) => void;
194
+ onPointerLeave?: (e: PointerEvent) => void;
195
+ onPointerOver?: (e: PointerEvent) => void;
196
+ onPointerOut?: (e: PointerEvent) => void;
197
+ onKeyDown?: (e: KeyboardEvent) => void;
198
+ onKeyUp?: (e: KeyboardEvent) => void;
199
+ onFocus?: (e: FocusEvent) => void;
200
+ onBlur?: (e: FocusEvent) => void;
201
+ onInput?: (e: InputEvent) => void;
202
+ onChange?: (e: Event) => void;
203
+ onSubmit?: (e: SubmitEvent) => void;
204
+ onDragStart?: (e: DragEvent) => void;
205
+ onDragEnd?: (e: DragEvent) => void;
206
+ onDragOver?: (e: DragEvent) => void;
207
+ onDrop?: (e: DragEvent) => void;
208
+ }
209
+ interface DOMAttrs {
210
+ id?: string;
211
+ class?: string;
212
+ className?: string;
213
+ title?: string;
214
+ role?: string;
215
+ tabIndex?: number;
216
+ [key: string]: any;
152
217
  }
153
- type ComponentFn = (props: PropsInterface, children: JsxChild[]) => JsxNode | null;
154
- declare function jsx(tag: string | ComponentFn, props: any, ...rawChildren: any[]): JsxNode;
155
218
  //#endregion
156
- //#region core/mount.d.ts
157
- type MountCallback = (el: Element) => void | Promise<void>;
158
- type UnmountCallback = () => void | Promise<void>;
159
- declare function beginComponentMountSession(): void;
160
- declare function endComponentMountSession(el: Element): void;
161
- declare function mount(cb: MountCallback): void;
162
- declare function registerUnmount(cb: UnmountCallback): void;
163
- declare function runUnmountsForElement(el: Element): Promise<void>;
219
+ //#region layout/box.d.ts
220
+ interface BoxProps extends DOMEvents, DOMAttrs {
221
+ /**
222
+ * Child nodes rendered inside the box
223
+ */
224
+ children?: any;
225
+ /** Margin (all sides) */
226
+ m?: MaybeSignal<CSSValue>;
227
+ /** Margin-bottom */
228
+ mb?: MaybeSignal<CSSValue>;
229
+ /** Margin-left */
230
+ ml?: MaybeSignal<CSSValue>;
231
+ /** Margin-right */
232
+ mr?: MaybeSignal<CSSValue>;
233
+ /** Margin-top */
234
+ mt?: MaybeSignal<CSSValue>;
235
+ /** Margin horizontal (left + right) */
236
+ mx?: MaybeSignal<CSSValue>;
237
+ /** Margin vertical (top + bottom) */
238
+ my?: MaybeSignal<CSSValue>;
239
+ /** Padding (all sides) */
240
+ p?: MaybeSignal<CSSValue>;
241
+ /** Padding-bottom */
242
+ pb?: MaybeSignal<CSSValue>;
243
+ /** Padding-left */
244
+ pl?: MaybeSignal<CSSValue>;
245
+ /** Padding-right */
246
+ pr?: MaybeSignal<CSSValue>;
247
+ /** Padding-top */
248
+ pt?: MaybeSignal<CSSValue>;
249
+ /** Padding horizontal (left + right) */
250
+ px?: MaybeSignal<CSSValue>;
251
+ /** Padding vertical (top + bottom) */
252
+ py?: MaybeSignal<CSSValue>;
253
+ /** Border (all sides) */
254
+ b?: MaybeSignal<CSSValue>;
255
+ /** Border-top */
256
+ bt?: MaybeSignal<CSSValue>;
257
+ /** Border-right */
258
+ br?: MaybeSignal<CSSValue>;
259
+ /** Border-bottom */
260
+ bb?: MaybeSignal<CSSValue>;
261
+ /** Border-left */
262
+ bl?: MaybeSignal<CSSValue>;
263
+ /** Border horizontal (left + right) */
264
+ bx?: MaybeSignal<CSSValue>;
265
+ /** Border vertical (top + bottom) */
266
+ by?: MaybeSignal<CSSValue>;
267
+ /** Border radius (all corners) */
268
+ r?: MaybeSignal<CSSValue>;
269
+ /** Border-top radius */
270
+ rt?: MaybeSignal<CSSValue>;
271
+ /** Border-right radius */
272
+ rr?: MaybeSignal<CSSValue>;
273
+ /** Border-bottom radius */
274
+ rb?: MaybeSignal<CSSValue>;
275
+ /** Border-left radius */
276
+ rl?: MaybeSignal<CSSValue>;
277
+ /** Border-top-right radius */
278
+ rtr?: MaybeSignal<CSSValue>;
279
+ /** Border-top-left radius */
280
+ rtl?: MaybeSignal<CSSValue>;
281
+ /** Border-bottom-right radius */
282
+ rbr?: MaybeSignal<CSSValue>;
283
+ /** Border-bottom-left radius */
284
+ rbl?: MaybeSignal<CSSValue>;
285
+ /** Size shortcut (width + height) */
286
+ s?: MaybeSignal<CSSValue>;
287
+ /** Height */
288
+ h?: MaybeSignal<CSSValue>;
289
+ /** Width */
290
+ w?: MaybeSignal<CSSValue>;
291
+ /** Max height */
292
+ maxH?: MaybeSignal<CSSValue>;
293
+ /** Max width */
294
+ maxW?: MaybeSignal<CSSValue>;
295
+ /** Min height */
296
+ minH?: MaybeSignal<CSSValue>;
297
+ /** Min width */
298
+ minW?: MaybeSignal<CSSValue>;
299
+ /** Opacity (0–1) */
300
+ o?: MaybeSignal<CSSValue>;
301
+ /** Box shadow */
302
+ sh?: MaybeSignal<CSSValue>;
303
+ /** Background */
304
+ bg?: MaybeSignal<CSSValue>;
305
+ /**
306
+ * Additional inline styles (merged last)
307
+ * Values support signals
308
+ */
309
+ style?: Record<string, MaybeSignal<CSSValue> | undefined>;
310
+ }
311
+ declare function Box(p: BoxProps, children: any[]): any;
164
312
  //#endregion
165
- //#region core/show.d.ts
166
- interface ShowPropsInterface {
167
- when: ReadFn<boolean>;
313
+ //#region layout/absolute.d.ts
314
+ /**
315
+ * Absolute positioned component
316
+ * Positions element absolutely within the nearest positioned ancestor
317
+ */
318
+ interface AbsolutePropertiesInterface extends BoxProps {
319
+ /**
320
+ * Distance from top edge of containing block
321
+ * (e.g. "10px", "1rem", "5%")
322
+ */
323
+ top?: string;
324
+ /**
325
+ * Distance from right edge of containing block
326
+ * (e.g. "10px", "1rem", "5%")
327
+ */
328
+ right?: string;
329
+ /**
330
+ * Distance from bottom edge of containing block
331
+ * (e.g. "10px", "1rem", "5%")
332
+ */
333
+ bottom?: string;
334
+ /**
335
+ * Distance from left edge of containing block
336
+ * (e.g. "10px", "1rem", "5%")
337
+ */
338
+ left?: string;
168
339
  }
169
- declare function Show(p: ShowPropsInterface, children: any): Promise<null>;
340
+ declare function Absolute(p: AbsolutePropertiesInterface, children: any[]): any;
170
341
  //#endregion
171
- //#region core/unmount.d.ts
172
- declare function unmount(cb: UnmountCallback): void;
342
+ //#region layout/flex-item.d.ts
343
+ /**
344
+ * Flex item component
345
+ * Controls individual item behavior in flex containers
346
+ */
347
+ interface FlexItemPropertiesInterface extends BoxProps {
348
+ /**
349
+ * Flex shorthand (grow, shrink, basis)
350
+ * e.g. "1", "none", "0 1 auto"
351
+ */
352
+ flx?: string;
353
+ /**
354
+ * Align-self (cross-axis alignment)
355
+ */
356
+ as?: "auto" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch";
357
+ /**
358
+ * Flex grow factor
359
+ */
360
+ flxGrow?: string;
361
+ /**
362
+ * Flex shrink factor
363
+ */
364
+ flxShrink?: string;
365
+ /**
366
+ * Flex basis
367
+ */
368
+ flxBasis?: string;
369
+ }
370
+ declare function FlexItem(p: FlexItemPropertiesInterface, children: any[]): any;
371
+ //#endregion
372
+ //#region layout/flex.d.ts
373
+ /**
374
+ * Flex container component
375
+ * Core flexbox layout primitive
376
+ */
377
+ interface FlexPropertiesInterface extends FlexItemPropertiesInterface {
378
+ /**
379
+ * Justify-content (main axis alignment)
380
+ */
381
+ jc?: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly";
382
+ /**
383
+ * Align-items (cross axis alignment)
384
+ */
385
+ ai?: "stretch" | "flex-start" | "flex-end" | "center" | "baseline";
386
+ /**
387
+ * Align-content (multi-line alignment)
388
+ */
389
+ ac?: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "stretch";
390
+ /**
391
+ * Gap between items
392
+ */
393
+ g?: string;
394
+ /**
395
+ * Flex direction
396
+ */
397
+ flxDirection?: "row" | "row-reverse" | "column" | "column-reverse";
398
+ /**
399
+ * Flex wrap
400
+ */
401
+ flxWrap?: "nowrap" | "wrap" | "wrap-reverse";
402
+ /**
403
+ * Flex-flow shorthand
404
+ */
405
+ flxFlow?: `${"row" | "row-reverse" | "column" | "column-reverse"} ${"nowrap" | "wrap" | "wrap-reverse"}`;
406
+ }
407
+ declare function Flex(p: FlexPropertiesInterface, children: any[]): any;
408
+ //#endregion
409
+ //#region layout/center.d.ts
410
+ /**
411
+ * Center component
412
+ * Centers children horizontally and vertically using flexbox
413
+ */
414
+ interface CenterPropertiesInterface extends FlexPropertiesInterface {}
415
+ declare function Center(p: CenterPropertiesInterface, children: any[]): any;
416
+ //#endregion
417
+ //#region layout/fixed.d.ts
418
+ /**
419
+ * Fixed positioned component
420
+ * Positions element relative to the viewport
421
+ */
422
+ interface FixedPropertiesInterface extends BoxProps {
423
+ /** Top offset (e.g. "10px") */
424
+ top?: string;
425
+ /** Right offset */
426
+ right?: string;
427
+ /** Bottom offset */
428
+ bottom?: string;
429
+ /** Left offset */
430
+ left?: string;
431
+ /** Stacking order (z-index) */
432
+ zIndex?: string;
433
+ }
434
+ declare function Fixed(p: FixedPropertiesInterface, children: any[]): any;
435
+ //#endregion
436
+ //#region layout/grid-item.d.ts
437
+ /**
438
+ * Grid item component
439
+ * Controls individual item placement inside CSS Grid containers
440
+ */
441
+ interface GridItemPropertiesInterface extends BoxProps {
442
+ /**
443
+ * Grid area name or shorthand
444
+ * (e.g. "header", "1 / 1 / 3 / 2")
445
+ */
446
+ grdArea?: string;
447
+ /**
448
+ * Grid column placement
449
+ * (e.g. "1 / span 2", "sidebar")
450
+ */
451
+ grdColumn?: string;
452
+ /**
453
+ * Grid row placement
454
+ * (e.g. "1 / span 3", "content")
455
+ */
456
+ grdRow?: string;
457
+ }
458
+ declare function GridItem(p: GridItemPropertiesInterface, children: any[]): any;
459
+ //#endregion
460
+ //#region layout/grid.d.ts
461
+ /**
462
+ * Grid container component
463
+ * Core CSS Grid layout primitive
464
+ */
465
+ interface GridPropertiesInterface extends GridItemPropertiesInterface {
466
+ /** Gap between grid items */
467
+ g?: string;
468
+ /** Align-items (block axis) */
469
+ ai?: "stretch" | "start" | "end" | "center" | "baseline";
470
+ /** Justify-items (inline axis) */
471
+ ji?: "stretch" | "start" | "end" | "center" | "baseline";
472
+ /** Align-self (container as grid item) */
473
+ as?: "auto" | "normal" | "stretch" | "center" | "start" | "end" | "self-start" | "self-end" | "flex-start" | "flex-end" | "left" | "right";
474
+ grdTemplateColumns?: string;
475
+ grdTemplateRows?: string;
476
+ grdTemplateAreas?: string;
477
+ grdTemplate?: string;
478
+ grdAutoColumns?: string;
479
+ grdAutoRows?: string;
480
+ grdAutoFlow?: "row" | "column" | "row dense" | "column dense";
481
+ grd?: string;
482
+ grdRowStart?: string;
483
+ grdColumnStart?: string;
484
+ grdRowEnd?: string;
485
+ grdColumnEnd?: string;
486
+ grdRow?: string;
487
+ grdColumn?: string;
488
+ grdRowGap?: string;
489
+ grdColumnGap?: string;
490
+ }
491
+ declare function Grid(p: GridPropertiesInterface, children: any[]): any;
492
+ //#endregion
493
+ //#region layout/relative.d.ts
494
+ /**
495
+ * Relative positioned component
496
+ * Establishes a positioning context for absolute children
497
+ */
498
+ interface RelativePropertiesInterface extends BoxProps {
499
+ /**
500
+ * Stacking order (z-index)
501
+ * (e.g. "1", "auto", "var(--z-index-modal)")
502
+ */
503
+ zIndex?: string;
504
+ }
505
+ declare function Relative(p: RelativePropertiesInterface, children: any[]): any;
506
+ //#endregion
507
+ //#region layout/scroll.d.ts
508
+ /**
509
+ * Scroll component
510
+ * Creates a scrollable container filling its parent
511
+ */
512
+ interface ScrollPropertiesInterface extends BoxProps {}
513
+ declare function Scroll(p: ScrollPropertiesInterface, children: any[]): any;
514
+ //#endregion
515
+ //#region layout/stack.d.ts
516
+ /**
517
+ * Stack component
518
+ * Vertical layout primitive (flex-direction: column by default)
519
+ */
520
+ interface StackPropertiesInterface extends FlexPropertiesInterface {}
521
+ declare function Stack(p: StackPropertiesInterface, children: any[]): any;
522
+ //#endregion
523
+ //#region layout/sticky.d.ts
524
+ /**
525
+ * Sticky positioned component
526
+ * Sticks to a position within its scroll container
527
+ */
528
+ interface StickyPropertiesInterface extends BoxProps {
529
+ /** Top offset (e.g. "10px") */
530
+ top?: string;
531
+ /** Right offset */
532
+ right?: string;
533
+ /** Bottom offset */
534
+ bottom?: string;
535
+ /** Left offset */
536
+ left?: string;
537
+ /** Stacking order (z-index) */
538
+ zIndex?: string;
539
+ }
540
+ declare function Sticky(p: StickyPropertiesInterface, children: any[]): any;
541
+ //#endregion
542
+ //#region layout/text.d.ts
543
+ /**
544
+ * Text component
545
+ * Typographic primitive for rendering text elements
546
+ */
547
+ interface TextPropertiesInterface extends DOMAttrs, DOMEvents {
548
+ /** Text content */
549
+ children?: any;
550
+ /**
551
+ * HTML tag to render
552
+ * @default "p"
553
+ */
554
+ tag?: "span" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
555
+ /** Text alignment */
556
+ a?: "left" | "right" | "center" | "justify";
557
+ /** Font family */
558
+ ff?: string;
559
+ /** Font weight */
560
+ fw?: number;
561
+ /** Font size */
562
+ fs?: string;
563
+ /** Line height */
564
+ lh?: string;
565
+ /** Letter spacing */
566
+ ls?: string;
567
+ /** Font style */
568
+ s?: "normal" | "italic";
569
+ /** Text color */
570
+ c?: string;
571
+ m?: string;
572
+ mb?: string;
573
+ ml?: string;
574
+ mr?: string;
575
+ mt?: string;
576
+ mx?: string;
577
+ my?: string;
578
+ p?: string;
579
+ pb?: string;
580
+ pl?: string;
581
+ pr?: string;
582
+ pt?: string;
583
+ px?: string;
584
+ py?: string;
585
+ /** Background */
586
+ bg?: string;
587
+ }
588
+ declare function Text(p: TextPropertiesInterface, children: any[]): VElement$1;
589
+ //#endregion
590
+ //#region style/color.d.ts
591
+ declare const color: {
592
+ brand: string;
593
+ onBrand: string;
594
+ gray0: string;
595
+ gray100: string;
596
+ gray200: string;
597
+ gray300: string;
598
+ gray400: string;
599
+ gray500: string;
600
+ gray600: string;
601
+ gray700: string;
602
+ gray800: string;
603
+ gray900: string;
604
+ red0: string;
605
+ red100: string;
606
+ red200: string;
607
+ red300: string;
608
+ red400: string;
609
+ red500: string;
610
+ red600: string;
611
+ red700: string;
612
+ red800: string;
613
+ red900: string;
614
+ pink0: string;
615
+ pink100: string;
616
+ pink200: string;
617
+ pink300: string;
618
+ pink400: string;
619
+ pink500: string;
620
+ pink600: string;
621
+ pink700: string;
622
+ pink800: string;
623
+ pink900: string;
624
+ grape0: string;
625
+ grape100: string;
626
+ grape200: string;
627
+ grape300: string;
628
+ grape400: string;
629
+ grape500: string;
630
+ grape600: string;
631
+ grape700: string;
632
+ grape800: string;
633
+ grape900: string;
634
+ violet0: string;
635
+ violet100: string;
636
+ violet200: string;
637
+ violet300: string;
638
+ violet400: string;
639
+ violet500: string;
640
+ violet600: string;
641
+ violet700: string;
642
+ violet800: string;
643
+ violet900: string;
644
+ indigo0: string;
645
+ indigo100: string;
646
+ indigo200: string;
647
+ indigo300: string;
648
+ indigo400: string;
649
+ indigo500: string;
650
+ indigo600: string;
651
+ indigo700: string;
652
+ indigo800: string;
653
+ indigo900: string;
654
+ blue0: string;
655
+ blue100: string;
656
+ blue200: string;
657
+ blue300: string;
658
+ blue400: string;
659
+ blue500: string;
660
+ blue600: string;
661
+ blue700: string;
662
+ blue800: string;
663
+ blue900: string;
664
+ cyan0: string;
665
+ cyan100: string;
666
+ cyan200: string;
667
+ cyan300: string;
668
+ cyan400: string;
669
+ cyan500: string;
670
+ cyan600: string;
671
+ cyan700: string;
672
+ cyan800: string;
673
+ cyan900: string;
674
+ teal0: string;
675
+ teal100: string;
676
+ teal200: string;
677
+ teal300: string;
678
+ teal400: string;
679
+ teal500: string;
680
+ teal600: string;
681
+ teal700: string;
682
+ teal800: string;
683
+ teal900: string;
684
+ green0: string;
685
+ green100: string;
686
+ green200: string;
687
+ green300: string;
688
+ green400: string;
689
+ green500: string;
690
+ green600: string;
691
+ green700: string;
692
+ green800: string;
693
+ green900: string;
694
+ lime0: string;
695
+ lime100: string;
696
+ lime200: string;
697
+ lime300: string;
698
+ lime400: string;
699
+ lime500: string;
700
+ lime600: string;
701
+ lime700: string;
702
+ lime800: string;
703
+ lime900: string;
704
+ yellow0: string;
705
+ yellow100: string;
706
+ yellow200: string;
707
+ yellow300: string;
708
+ yellow400: string;
709
+ yellow500: string;
710
+ yellow600: string;
711
+ yellow700: string;
712
+ yellow800: string;
713
+ yellow900: string;
714
+ orange0: string;
715
+ orange100: string;
716
+ orange200: string;
717
+ orange300: string;
718
+ orange400: string;
719
+ orange500: string;
720
+ orange600: string;
721
+ orange700: string;
722
+ orange800: string;
723
+ orange900: string;
724
+ };
725
+ //#endregion
726
+ //#region style/font.d.ts
727
+ declare const font: {
728
+ family: {
729
+ sans: string;
730
+ serif: string;
731
+ mono: string;
732
+ };
733
+ size: {
734
+ xs: string;
735
+ sm: string;
736
+ md: string;
737
+ lg: string;
738
+ xl: string;
739
+ "2xl": string;
740
+ "3xl": string;
741
+ "4xl": string;
742
+ "5xl": string;
743
+ "6xl": string;
744
+ "7xl": string;
745
+ "8xl": string;
746
+ "9xl": string;
747
+ };
748
+ weight: {
749
+ thin: number;
750
+ extralight: number;
751
+ light: number;
752
+ normal: number;
753
+ medium: number;
754
+ semibold: number;
755
+ bold: number;
756
+ extrabold: number;
757
+ black: number;
758
+ };
759
+ style: {
760
+ normal: string;
761
+ italic: string;
762
+ };
763
+ lineHeight: {
764
+ xs: string;
765
+ sm: string;
766
+ md: string;
767
+ lg: string;
768
+ xl: string;
769
+ "2xl": string;
770
+ "3xl": string;
771
+ "4xl": string;
772
+ "5xl": string;
773
+ "6xl": string;
774
+ "7xl": string;
775
+ "8xl": string;
776
+ "9xl": string;
777
+ };
778
+ letterSpacing: {
779
+ xs: string;
780
+ sm: string;
781
+ md: string;
782
+ lg: string;
783
+ xl: string;
784
+ "2xl": string;
785
+ "3xl": string;
786
+ "4xl": string;
787
+ "5xl": string;
788
+ "6xl": string;
789
+ "7xl": string;
790
+ "8xl": string;
791
+ "9xl": string;
792
+ };
793
+ };
794
+ //#endregion
795
+ //#region style/radius.d.ts
796
+ declare const radius: {
797
+ sm: string;
798
+ md: string;
799
+ lg: string;
800
+ xl: string;
801
+ "2xl": string;
802
+ "3xl": string;
803
+ full: string;
804
+ };
805
+ //#endregion
806
+ //#region style/shadow.d.ts
807
+ declare const shadow: {
808
+ sm: string;
809
+ md: string;
810
+ lg: string;
811
+ xl: string;
812
+ "2xl": string;
813
+ inner: string;
814
+ };
815
+ //#endregion
816
+ //#region style/size.d.ts
817
+ declare const size: {
818
+ xs: string;
819
+ sm: string;
820
+ md: string;
821
+ lg: string;
822
+ xl: string;
823
+ "2xl": string;
824
+ "3xl": string;
825
+ "4xl": string;
826
+ "5xl": string;
827
+ "6xl": string;
828
+ "7xl": string;
829
+ "8xl": string;
830
+ "9xl": string;
831
+ "1/12": string;
832
+ "2/12": string;
833
+ "3/12": string;
834
+ "4/12": string;
835
+ "5/12": string;
836
+ "6/12": string;
837
+ "7/12": string;
838
+ "8/12": string;
839
+ "9/12": string;
840
+ "10/12": string;
841
+ "11/12": string;
842
+ "1/5": string;
843
+ "2/5": string;
844
+ "3/5": string;
845
+ "4/5": string;
846
+ "1/4": string;
847
+ "3/4": string;
848
+ "1/3": string;
849
+ "2/3": string;
850
+ "1/2": string;
851
+ full: string;
852
+ };
853
+ //#endregion
854
+ //#region style/space.d.ts
855
+ declare const space: {
856
+ xs: string;
857
+ sm: string;
858
+ md: string;
859
+ lg: string;
860
+ xl: string;
861
+ xxl: string;
862
+ "3xl": string;
863
+ "4xl": string;
864
+ "5xl": string;
865
+ "6xl": string;
866
+ "7xl": string;
867
+ "8xl": string;
868
+ };
869
+ //#endregion
870
+ //#region style/style.d.ts
871
+ declare const style: {
872
+ normal: string;
873
+ italic: string;
874
+ };
875
+ //#endregion
876
+ //#region style/weight.d.ts
877
+ declare const weight: {
878
+ thin: number;
879
+ extralight: number;
880
+ light: number;
881
+ normal: number;
882
+ medium: number;
883
+ semibold: number;
884
+ bold: number;
885
+ extrabold: number;
886
+ black: number;
887
+ };
888
+ //#endregion
889
+ //#region style/z-index.d.ts
890
+ declare const zIndex: {
891
+ base: string;
892
+ background: string;
893
+ menu: string;
894
+ };
173
895
  //#endregion
174
- export { ComponentFn, ConnectorInterface, JsxChild, JsxNode, JsxSignal, JsxText, MountCallback, PropsInterface, ReadFn, RenderCtx, RenderResult, Show, type UnmountCallback, beginComponentMountSession, connector, destroy, effect, endComponentMountSession, fragment, jsx, mount, registerUnmount, render, runUnmountsForElement, signal, unmount };
896
+ export { Absolute, AbsolutePropertiesInterface, Box, BoxProps, BreakpointName, Center, CenterPropertiesInterface, ComponentFn, ConnectorInterface, Fixed, FixedPropertiesInterface, Flex, FlexItem, FlexItemPropertiesInterface, FlexPropertiesInterface, For, Grid, GridItem, GridItemPropertiesInterface, GridPropertiesInterface, JsxNode, LocaleController, MountCallback, PropsInterface, ReadFn, Relative, RelativePropertiesInterface, RenderCtx, RenderResult, Repeat, Scroll, ScrollPropertiesInterface, Show, Stack, StackPropertiesInterface, Sticky, StickyPropertiesInterface, Text, TextPropertiesInterface, UnmountCallback, VElement, VSignal, VText, beginMountSession, breakpoint, color, connector, effect, endMountSession, font, fragment, hasActiveMountSession, jsx, mount, radius, render, runUnmountsForElement, shadow, signal, size, space, style, unmount, useBreakpoint, useCustomEvent, useLocale, useRouter, weight, zIndex };