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