@almadar/ui 5.147.0 → 5.149.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/{GameAudioProvider-CPGwD49P.d.cts → GameAudioProvider-B48iXwz3.d.ts} +2 -50
- package/dist/{GameAudioProvider-CPGwD49P.d.ts → GameAudioProvider-CQAdPreB.d.cts} +2 -50
- package/dist/avl/index.cjs +535 -15
- package/dist/avl/index.js +535 -15
- package/dist/{avl-schema-parser-DVmrgdwc.d.cts → avl-schema-parser-CVzkNzg7.d.cts} +18 -9
- package/dist/{avl-schema-parser-BRJ77Yze.d.ts → avl-schema-parser-Cx_4SVg9.d.ts} +18 -9
- package/dist/{cn-BAn68sNO.d.cts → cn-BnAJZcNb.d.cts} +2 -8
- package/dist/{cn-CWxxLkri.d.ts → cn-DJTUjk1M.d.ts} +2 -8
- package/dist/components/index.cjs +545 -18
- package/dist/components/index.d.cts +278 -98
- package/dist/components/index.d.ts +278 -98
- package/dist/components/index.js +541 -20
- package/dist/lib/drawable/three/index.cjs +56 -29
- package/dist/lib/drawable/three/index.d.cts +4 -3
- package/dist/lib/drawable/three/index.d.ts +4 -3
- package/dist/lib/drawable/three/index.js +56 -29
- package/dist/lib/index.d.cts +3 -2
- package/dist/lib/index.d.ts +3 -2
- package/dist/{paintDispatch-Cb_hQj4Y.d.ts → paintDispatch-BjZjUbcb.d.cts} +63 -69
- package/dist/{paintDispatch-Cb_hQj4Y.d.cts → paintDispatch-CxdLjHQq.d.ts} +63 -69
- package/dist/providers/index.cjs +535 -15
- package/dist/providers/index.d.cts +2 -1
- package/dist/providers/index.d.ts +2 -1
- package/dist/providers/index.js +535 -15
- package/dist/runtime/index.cjs +535 -15
- package/dist/runtime/index.js +535 -15
- package/dist/types-B3nHgnMG.d.cts +51 -0
- package/dist/types-B3nHgnMG.d.ts +51 -0
- package/package.json +4 -4
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { AssetUrl } from '@almadar/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Cross-cutting atom-level prop shapes shared across the design system.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Canonical semantic color palette. Values are the Tailwind / CSS-var token
|
|
9
|
+
* names that every component in the design system understands. Prefer this
|
|
10
|
+
* over a bare `string` for any `color` or `variant` prop.
|
|
11
|
+
*/
|
|
12
|
+
type ColorToken = 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'muted';
|
|
13
|
+
/**
|
|
14
|
+
* Concrete error-state shape read by display components (`error.message`,
|
|
15
|
+
* occasionally `error.stack`). Structurally assignable from the global `Error`,
|
|
16
|
+
* so existing call sites passing an `Error` keep working — this just gives the
|
|
17
|
+
* pattern extractor a readable field schema instead of the opaque `Error` global.
|
|
18
|
+
*/
|
|
19
|
+
type UiError = {
|
|
20
|
+
message: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
code?: string;
|
|
23
|
+
stack?: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* A labelled link/CTA used by marketing molecules (HeroSection, CTABanner,
|
|
27
|
+
* PricingCard) for their primary/secondary call-to-action props.
|
|
28
|
+
*/
|
|
29
|
+
type LinkAction = {
|
|
30
|
+
label: string;
|
|
31
|
+
href: string;
|
|
32
|
+
};
|
|
33
|
+
/** An image with its required alt text. */
|
|
34
|
+
type ImageSource = {
|
|
35
|
+
src: AssetUrl;
|
|
36
|
+
alt: string;
|
|
37
|
+
};
|
|
38
|
+
/** A 2D point in canvas/layout coordinates. */
|
|
39
|
+
type Point = {
|
|
40
|
+
x: number;
|
|
41
|
+
y: number;
|
|
42
|
+
};
|
|
43
|
+
/** A 2D rectangle in canvas coordinates (`w`/`h` = width/height). */
|
|
44
|
+
type Rect = {
|
|
45
|
+
x: number;
|
|
46
|
+
y: number;
|
|
47
|
+
w: number;
|
|
48
|
+
h: number;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export type { ColorToken as C, ImageSource as I, LinkAction as L, Point as P, Rect as R, UiError as U };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { AssetUrl } from '@almadar/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Cross-cutting atom-level prop shapes shared across the design system.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Canonical semantic color palette. Values are the Tailwind / CSS-var token
|
|
9
|
+
* names that every component in the design system understands. Prefer this
|
|
10
|
+
* over a bare `string` for any `color` or `variant` prop.
|
|
11
|
+
*/
|
|
12
|
+
type ColorToken = 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'muted';
|
|
13
|
+
/**
|
|
14
|
+
* Concrete error-state shape read by display components (`error.message`,
|
|
15
|
+
* occasionally `error.stack`). Structurally assignable from the global `Error`,
|
|
16
|
+
* so existing call sites passing an `Error` keep working — this just gives the
|
|
17
|
+
* pattern extractor a readable field schema instead of the opaque `Error` global.
|
|
18
|
+
*/
|
|
19
|
+
type UiError = {
|
|
20
|
+
message: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
code?: string;
|
|
23
|
+
stack?: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* A labelled link/CTA used by marketing molecules (HeroSection, CTABanner,
|
|
27
|
+
* PricingCard) for their primary/secondary call-to-action props.
|
|
28
|
+
*/
|
|
29
|
+
type LinkAction = {
|
|
30
|
+
label: string;
|
|
31
|
+
href: string;
|
|
32
|
+
};
|
|
33
|
+
/** An image with its required alt text. */
|
|
34
|
+
type ImageSource = {
|
|
35
|
+
src: AssetUrl;
|
|
36
|
+
alt: string;
|
|
37
|
+
};
|
|
38
|
+
/** A 2D point in canvas/layout coordinates. */
|
|
39
|
+
type Point = {
|
|
40
|
+
x: number;
|
|
41
|
+
y: number;
|
|
42
|
+
};
|
|
43
|
+
/** A 2D rectangle in canvas coordinates (`w`/`h` = width/height). */
|
|
44
|
+
type Rect = {
|
|
45
|
+
x: number;
|
|
46
|
+
y: number;
|
|
47
|
+
w: number;
|
|
48
|
+
h: number;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export type { ColorToken as C, ImageSource as I, LinkAction as L, Point as P, Rect as R, UiError as U };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almadar/ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.149.0",
|
|
4
4
|
"description": "React UI components, hooks, and providers for Almadar",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -118,11 +118,11 @@
|
|
|
118
118
|
"access": "public"
|
|
119
119
|
},
|
|
120
120
|
"dependencies": {
|
|
121
|
-
"@almadar/core": "^10.
|
|
122
|
-
"@almadar/evaluator": "^2.
|
|
121
|
+
"@almadar/core": "^10.59.0",
|
|
122
|
+
"@almadar/evaluator": "^2.41.0",
|
|
123
123
|
"@almadar/logger": "^1.11.0",
|
|
124
124
|
"@almadar/runtime": "^6.53.0",
|
|
125
|
-
"@almadar/std": "^16.
|
|
125
|
+
"@almadar/std": "^16.174.0",
|
|
126
126
|
"@almadar/syntax": "^1.15.0",
|
|
127
127
|
"@dnd-kit/core": "^6.3.1",
|
|
128
128
|
"@dnd-kit/sortable": "^10.0.0",
|