@portel/photon-core 1.5.0 → 2.1.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/auto-ui.js +1 -1
- package/dist/auto-ui.js.map +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.d.ts.map +1 -1
- package/dist/base.js +2 -2
- package/dist/base.js.map +1 -1
- package/dist/cli-ui-renderer.js +1 -1
- package/dist/cli-ui-renderer.js.map +1 -1
- package/dist/design-system/index.d.ts +21 -0
- package/dist/design-system/index.d.ts.map +1 -0
- package/dist/design-system/index.js +27 -0
- package/dist/design-system/index.js.map +1 -0
- package/dist/design-system/tokens.d.ts +149 -0
- package/dist/design-system/tokens.d.ts.map +1 -0
- package/dist/design-system/tokens.js +413 -0
- package/dist/design-system/tokens.js.map +1 -0
- package/dist/design-system/transaction-ui.d.ts +70 -0
- package/dist/design-system/transaction-ui.d.ts.map +1 -0
- package/dist/design-system/transaction-ui.js +982 -0
- package/dist/design-system/transaction-ui.js.map +1 -0
- package/dist/generator.d.ts +56 -6
- package/dist/generator.d.ts.map +1 -1
- package/dist/generator.js.map +1 -1
- package/dist/index.d.ts +6 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +46 -56
- package/dist/index.js.map +1 -1
- package/dist/io.d.ts +103 -2
- package/dist/io.d.ts.map +1 -1
- package/dist/io.js +37 -1
- package/dist/io.js.map +1 -1
- package/dist/rendering/components.d.ts +29 -0
- package/dist/rendering/components.d.ts.map +1 -0
- package/dist/rendering/components.js +773 -0
- package/dist/rendering/components.js.map +1 -0
- package/dist/rendering/field-analyzer.d.ts +48 -0
- package/dist/rendering/field-analyzer.d.ts.map +1 -0
- package/dist/rendering/field-analyzer.js +270 -0
- package/dist/rendering/field-analyzer.js.map +1 -0
- package/dist/rendering/field-renderers.d.ts +64 -0
- package/dist/rendering/field-renderers.d.ts.map +1 -0
- package/dist/rendering/field-renderers.js +317 -0
- package/dist/rendering/field-renderers.js.map +1 -0
- package/dist/rendering/index.d.ts +28 -0
- package/dist/rendering/index.d.ts.map +1 -0
- package/dist/rendering/index.js +60 -0
- package/dist/rendering/index.js.map +1 -0
- package/dist/rendering/layout-selector.d.ts +48 -0
- package/dist/rendering/layout-selector.d.ts.map +1 -0
- package/dist/rendering/layout-selector.js +347 -0
- package/dist/rendering/layout-selector.js.map +1 -0
- package/dist/rendering/template-engine.d.ts +41 -0
- package/dist/rendering/template-engine.d.ts.map +1 -0
- package/dist/rendering/template-engine.js +236 -0
- package/dist/rendering/template-engine.js.map +1 -0
- package/dist/schema-extractor.d.ts +30 -0
- package/dist/schema-extractor.d.ts.map +1 -1
- package/dist/schema-extractor.js +205 -12
- package/dist/schema-extractor.js.map +1 -1
- package/dist/stateful.js +1 -1
- package/dist/stateful.js.map +1 -1
- package/dist/types.d.ts +9 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/ucp/ap2/handlers.d.ts +242 -0
- package/dist/ucp/ap2/handlers.d.ts.map +1 -0
- package/dist/ucp/ap2/handlers.js +482 -0
- package/dist/ucp/ap2/handlers.js.map +1 -0
- package/dist/ucp/ap2/mandates.d.ts +95 -0
- package/dist/ucp/ap2/mandates.d.ts.map +1 -0
- package/dist/ucp/ap2/mandates.js +234 -0
- package/dist/ucp/ap2/mandates.js.map +1 -0
- package/dist/ucp/ap2/types.d.ts +305 -0
- package/dist/ucp/ap2/types.d.ts.map +1 -0
- package/dist/ucp/ap2/types.js +8 -0
- package/dist/ucp/ap2/types.js.map +1 -0
- package/dist/ucp/capabilities/checkout.d.ts +118 -0
- package/dist/ucp/capabilities/checkout.d.ts.map +1 -0
- package/dist/ucp/capabilities/checkout.js +344 -0
- package/dist/ucp/capabilities/checkout.js.map +1 -0
- package/dist/ucp/capabilities/identity.d.ts +130 -0
- package/dist/ucp/capabilities/identity.d.ts.map +1 -0
- package/dist/ucp/capabilities/identity.js +290 -0
- package/dist/ucp/capabilities/identity.js.map +1 -0
- package/dist/ucp/capabilities/order.d.ts +142 -0
- package/dist/ucp/capabilities/order.d.ts.map +1 -0
- package/dist/ucp/capabilities/order.js +383 -0
- package/dist/ucp/capabilities/order.js.map +1 -0
- package/dist/ucp/index.d.ts +18 -0
- package/dist/ucp/index.d.ts.map +1 -0
- package/dist/ucp/index.js +19 -0
- package/dist/ucp/index.js.map +1 -0
- package/dist/ucp/manifest.d.ts +62 -0
- package/dist/ucp/manifest.d.ts.map +1 -0
- package/dist/ucp/manifest.js +180 -0
- package/dist/ucp/manifest.js.map +1 -0
- package/dist/ucp/types.d.ts +327 -0
- package/dist/ucp/types.d.ts.map +1 -0
- package/dist/ucp/types.js +8 -0
- package/dist/ucp/types.js.map +1 -0
- package/package.json +3 -4
- package/src/auto-ui.ts +1 -1
- package/src/base.ts +2 -2
- package/src/cli-ui-renderer.ts +1 -1
- package/src/design-system/index.ts +30 -0
- package/src/design-system/tokens.ts +451 -0
- package/src/design-system/transaction-ui.ts +1038 -0
- package/src/generator.ts +58 -2
- package/src/index.ts +135 -124
- package/src/io.ts +108 -3
- package/src/rendering/components.ts +785 -0
- package/src/rendering/field-analyzer.ts +299 -0
- package/src/rendering/field-renderers.ts +356 -0
- package/src/rendering/index.ts +63 -0
- package/src/rendering/layout-selector.ts +390 -0
- package/src/rendering/template-engine.ts +254 -0
- package/src/schema-extractor.ts +225 -12
- package/src/stateful.ts +1 -1
- package/src/types.ts +10 -1
- package/src/ucp/ap2/handlers.ts +779 -0
- package/src/ucp/ap2/mandates.ts +354 -0
- package/src/ucp/ap2/types.ts +441 -0
- package/src/ucp/capabilities/checkout.ts +497 -0
- package/src/ucp/capabilities/identity.ts +425 -0
- package/src/ucp/capabilities/order.ts +549 -0
- package/src/ucp/index.ts +27 -0
- package/src/ucp/manifest.ts +257 -0
- package/src/ucp/types.ts +454 -0
- package/dist/cli-formatter.d.ts +0 -92
- package/dist/cli-formatter.d.ts.map +0 -1
- package/dist/cli-formatter.js +0 -486
- package/dist/cli-formatter.js.map +0 -1
- package/dist/context.d.ts +0 -6
- package/dist/context.d.ts.map +0 -1
- package/dist/context.js +0 -3
- package/dist/context.js.map +0 -1
- package/dist/elicit.d.ts +0 -93
- package/dist/elicit.d.ts.map +0 -1
- package/dist/elicit.js +0 -373
- package/dist/elicit.js.map +0 -1
- package/dist/mcp-client.d.ts +0 -218
- package/dist/mcp-client.d.ts.map +0 -1
- package/dist/mcp-client.js +0 -424
- package/dist/mcp-client.js.map +0 -1
- package/dist/mcp-sdk-transport.d.ts +0 -88
- package/dist/mcp-sdk-transport.d.ts.map +0 -1
- package/dist/mcp-sdk-transport.js +0 -360
- package/dist/mcp-sdk-transport.js.map +0 -1
- package/dist/photon-config.d.ts +0 -86
- package/dist/photon-config.d.ts.map +0 -1
- package/dist/photon-config.js +0 -156
- package/dist/photon-config.js.map +0 -1
- package/dist/progress.d.ts +0 -93
- package/dist/progress.d.ts.map +0 -1
- package/dist/progress.js +0 -195
- package/dist/progress.js.map +0 -1
- package/src/cli-formatter.ts +0 -579
- package/src/context.ts +0 -7
- package/src/elicit.ts +0 -438
- package/src/mcp-client.ts +0 -561
- package/src/mcp-sdk-transport.ts +0 -449
- package/src/photon-config.ts +0 -201
- package/src/progress.ts +0 -224
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Photon Design System - Design Tokens
|
|
3
|
+
*
|
|
4
|
+
* Based on:
|
|
5
|
+
* - Material Design 3 token structure (https://m3.material.io/foundations/design-tokens)
|
|
6
|
+
* - Apple HIG 8pt grid system (https://developer.apple.com/design/human-interface-guidelines/layout)
|
|
7
|
+
*
|
|
8
|
+
* This is the foundation for all Photon UI - both BEAM interface and auto-generated UIs.
|
|
9
|
+
*/
|
|
10
|
+
// =============================================================================
|
|
11
|
+
// SPACING - 8pt Grid System (Apple HIG)
|
|
12
|
+
// =============================================================================
|
|
13
|
+
export const spacing = {
|
|
14
|
+
// Base unit: 4px (for fine adjustments)
|
|
15
|
+
'0': '0',
|
|
16
|
+
'1': '4px', // xs - minimal spacing
|
|
17
|
+
'2': '8px', // sm - tight spacing
|
|
18
|
+
'3': '12px', // md - default spacing
|
|
19
|
+
'4': '16px', // lg - comfortable spacing
|
|
20
|
+
'5': '20px', // xl - generous spacing
|
|
21
|
+
'6': '24px', // 2xl - section spacing
|
|
22
|
+
'8': '32px', // 3xl - large section spacing
|
|
23
|
+
'10': '40px', // 4xl - hero spacing
|
|
24
|
+
'12': '48px', // 5xl - page spacing
|
|
25
|
+
};
|
|
26
|
+
// Semantic spacing aliases
|
|
27
|
+
export const spacingAliases = {
|
|
28
|
+
none: spacing['0'],
|
|
29
|
+
tight: spacing['1'],
|
|
30
|
+
compact: spacing['2'],
|
|
31
|
+
default: spacing['3'],
|
|
32
|
+
comfortable: spacing['4'],
|
|
33
|
+
spacious: spacing['6'],
|
|
34
|
+
section: spacing['8'],
|
|
35
|
+
};
|
|
36
|
+
// =============================================================================
|
|
37
|
+
// TYPOGRAPHY - Material Design 3 Type Scale
|
|
38
|
+
// =============================================================================
|
|
39
|
+
export const fontFamily = {
|
|
40
|
+
sans: '-apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif',
|
|
41
|
+
mono: '"SF Mono", "Fira Code", "Fira Mono", Menlo, Monaco, Consolas, monospace',
|
|
42
|
+
};
|
|
43
|
+
export const fontSize = {
|
|
44
|
+
// Display - for hero/large numbers
|
|
45
|
+
'display-lg': '57px',
|
|
46
|
+
'display-md': '45px',
|
|
47
|
+
'display-sm': '36px',
|
|
48
|
+
// Headline - for section headers
|
|
49
|
+
'headline-lg': '32px',
|
|
50
|
+
'headline-md': '28px',
|
|
51
|
+
'headline-sm': '24px',
|
|
52
|
+
// Title - for card titles, list item titles
|
|
53
|
+
'title-lg': '22px',
|
|
54
|
+
'title-md': '16px',
|
|
55
|
+
'title-sm': '14px',
|
|
56
|
+
// Body - for content
|
|
57
|
+
'body-lg': '16px',
|
|
58
|
+
'body-md': '14px',
|
|
59
|
+
'body-sm': '12px',
|
|
60
|
+
// Label - for UI labels, buttons, badges
|
|
61
|
+
'label-lg': '14px',
|
|
62
|
+
'label-md': '12px',
|
|
63
|
+
'label-sm': '11px',
|
|
64
|
+
};
|
|
65
|
+
export const lineHeight = {
|
|
66
|
+
'display-lg': '64px',
|
|
67
|
+
'display-md': '52px',
|
|
68
|
+
'display-sm': '44px',
|
|
69
|
+
'headline-lg': '40px',
|
|
70
|
+
'headline-md': '36px',
|
|
71
|
+
'headline-sm': '32px',
|
|
72
|
+
'title-lg': '28px',
|
|
73
|
+
'title-md': '24px',
|
|
74
|
+
'title-sm': '20px',
|
|
75
|
+
'body-lg': '24px',
|
|
76
|
+
'body-md': '20px',
|
|
77
|
+
'body-sm': '16px',
|
|
78
|
+
'label-lg': '20px',
|
|
79
|
+
'label-md': '16px',
|
|
80
|
+
'label-sm': '16px',
|
|
81
|
+
};
|
|
82
|
+
export const fontWeight = {
|
|
83
|
+
regular: '400',
|
|
84
|
+
medium: '500',
|
|
85
|
+
semibold: '600',
|
|
86
|
+
bold: '700',
|
|
87
|
+
};
|
|
88
|
+
// =============================================================================
|
|
89
|
+
// COLORS - Semantic Color System
|
|
90
|
+
// =============================================================================
|
|
91
|
+
// Reference colors (raw values)
|
|
92
|
+
const colorPalette = {
|
|
93
|
+
// Neutrals (dark theme optimized)
|
|
94
|
+
neutral: {
|
|
95
|
+
0: '#000000',
|
|
96
|
+
5: '#0d0d0d',
|
|
97
|
+
10: '#1a1a1a',
|
|
98
|
+
15: '#262626',
|
|
99
|
+
20: '#333333',
|
|
100
|
+
30: '#4d4d4d',
|
|
101
|
+
40: '#666666',
|
|
102
|
+
50: '#808080',
|
|
103
|
+
60: '#999999',
|
|
104
|
+
70: '#b3b3b3',
|
|
105
|
+
80: '#cccccc',
|
|
106
|
+
90: '#e6e6e6',
|
|
107
|
+
95: '#f2f2f2',
|
|
108
|
+
100: '#ffffff',
|
|
109
|
+
},
|
|
110
|
+
// Primary (blue - trust, action)
|
|
111
|
+
primary: {
|
|
112
|
+
10: '#001d36',
|
|
113
|
+
20: '#003258',
|
|
114
|
+
30: '#00497d',
|
|
115
|
+
40: '#0061a4',
|
|
116
|
+
50: '#2c7bc9',
|
|
117
|
+
60: '#5094e0',
|
|
118
|
+
70: '#79aef0',
|
|
119
|
+
80: '#a4c9ff',
|
|
120
|
+
90: '#d1e4ff',
|
|
121
|
+
95: '#e9f1ff',
|
|
122
|
+
},
|
|
123
|
+
// Success (green)
|
|
124
|
+
success: {
|
|
125
|
+
10: '#002106',
|
|
126
|
+
20: '#003910',
|
|
127
|
+
30: '#00531a',
|
|
128
|
+
40: '#006e25',
|
|
129
|
+
50: '#008a30',
|
|
130
|
+
60: '#1fa940',
|
|
131
|
+
70: '#4cc760',
|
|
132
|
+
80: '#73e380',
|
|
133
|
+
90: '#98ffa0',
|
|
134
|
+
95: '#c8ffc8',
|
|
135
|
+
},
|
|
136
|
+
// Warning (amber)
|
|
137
|
+
warning: {
|
|
138
|
+
10: '#261900',
|
|
139
|
+
20: '#402d00',
|
|
140
|
+
30: '#5c4300',
|
|
141
|
+
40: '#7a5900',
|
|
142
|
+
50: '#996f00',
|
|
143
|
+
60: '#b88600',
|
|
144
|
+
70: '#d89e00',
|
|
145
|
+
80: '#f9b800',
|
|
146
|
+
90: '#ffdf9e',
|
|
147
|
+
95: '#fff0d6',
|
|
148
|
+
},
|
|
149
|
+
// Error (red)
|
|
150
|
+
error: {
|
|
151
|
+
10: '#410002',
|
|
152
|
+
20: '#690005',
|
|
153
|
+
30: '#93000a',
|
|
154
|
+
40: '#ba1a1a',
|
|
155
|
+
50: '#de3730',
|
|
156
|
+
60: '#ff5449',
|
|
157
|
+
70: '#ff897d',
|
|
158
|
+
80: '#ffb4ab',
|
|
159
|
+
90: '#ffdad6',
|
|
160
|
+
95: '#ffedea',
|
|
161
|
+
},
|
|
162
|
+
};
|
|
163
|
+
// System colors (semantic tokens - what components use)
|
|
164
|
+
export const colors = {
|
|
165
|
+
// Surfaces
|
|
166
|
+
surface: colorPalette.neutral[5],
|
|
167
|
+
surfaceContainer: colorPalette.neutral[10],
|
|
168
|
+
surfaceContainerHigh: colorPalette.neutral[15],
|
|
169
|
+
surfaceContainerHighest: colorPalette.neutral[20],
|
|
170
|
+
surfaceBright: colorPalette.neutral[95],
|
|
171
|
+
// Text on surfaces
|
|
172
|
+
onSurface: colorPalette.neutral[90],
|
|
173
|
+
onSurfaceVariant: colorPalette.neutral[70],
|
|
174
|
+
onSurfaceMuted: colorPalette.neutral[50],
|
|
175
|
+
// Primary
|
|
176
|
+
primary: colorPalette.primary[70],
|
|
177
|
+
primaryContainer: colorPalette.primary[30],
|
|
178
|
+
onPrimary: colorPalette.primary[10],
|
|
179
|
+
onPrimaryContainer: colorPalette.primary[90],
|
|
180
|
+
// Success
|
|
181
|
+
success: colorPalette.success[70],
|
|
182
|
+
successContainer: colorPalette.success[20],
|
|
183
|
+
onSuccess: colorPalette.success[10],
|
|
184
|
+
onSuccessContainer: colorPalette.success[90],
|
|
185
|
+
// Warning
|
|
186
|
+
warning: colorPalette.warning[70],
|
|
187
|
+
warningContainer: colorPalette.warning[20],
|
|
188
|
+
onWarning: colorPalette.warning[10],
|
|
189
|
+
onWarningContainer: colorPalette.warning[90],
|
|
190
|
+
// Error
|
|
191
|
+
error: colorPalette.error[70],
|
|
192
|
+
errorContainer: colorPalette.error[20],
|
|
193
|
+
onError: colorPalette.error[10],
|
|
194
|
+
onErrorContainer: colorPalette.error[90],
|
|
195
|
+
// Outline
|
|
196
|
+
outline: colorPalette.neutral[30],
|
|
197
|
+
outlineVariant: colorPalette.neutral[20],
|
|
198
|
+
// Scrim (overlay)
|
|
199
|
+
scrim: 'rgba(0, 0, 0, 0.5)',
|
|
200
|
+
};
|
|
201
|
+
// =============================================================================
|
|
202
|
+
// ELEVATION - Material Design 3 Shadows
|
|
203
|
+
// =============================================================================
|
|
204
|
+
export const elevation = {
|
|
205
|
+
'0': 'none',
|
|
206
|
+
'1': '0px 1px 2px 0px rgba(0, 0, 0, 0.30), 0px 1px 3px 1px rgba(0, 0, 0, 0.15)',
|
|
207
|
+
'2': '0px 1px 2px 0px rgba(0, 0, 0, 0.30), 0px 2px 6px 2px rgba(0, 0, 0, 0.15)',
|
|
208
|
+
'3': '0px 1px 3px 0px rgba(0, 0, 0, 0.30), 0px 4px 8px 3px rgba(0, 0, 0, 0.15)',
|
|
209
|
+
'4': '0px 2px 3px 0px rgba(0, 0, 0, 0.30), 0px 6px 10px 4px rgba(0, 0, 0, 0.15)',
|
|
210
|
+
'5': '0px 4px 4px 0px rgba(0, 0, 0, 0.30), 0px 8px 12px 6px rgba(0, 0, 0, 0.15)',
|
|
211
|
+
};
|
|
212
|
+
// =============================================================================
|
|
213
|
+
// BORDER RADIUS - Apple HIG inspired
|
|
214
|
+
// =============================================================================
|
|
215
|
+
export const radius = {
|
|
216
|
+
none: '0',
|
|
217
|
+
sm: '6px', // Small elements (chips, badges)
|
|
218
|
+
md: '10px', // Cards, inputs (iOS default)
|
|
219
|
+
lg: '14px', // Large cards
|
|
220
|
+
xl: '20px', // Modal, sheet
|
|
221
|
+
full: '9999px', // Pills, circles
|
|
222
|
+
};
|
|
223
|
+
// =============================================================================
|
|
224
|
+
// MOTION - Transitions
|
|
225
|
+
// =============================================================================
|
|
226
|
+
export const duration = {
|
|
227
|
+
instant: '0ms',
|
|
228
|
+
fast: '100ms',
|
|
229
|
+
normal: '200ms',
|
|
230
|
+
slow: '300ms',
|
|
231
|
+
slower: '500ms',
|
|
232
|
+
};
|
|
233
|
+
export const easing = {
|
|
234
|
+
standard: 'cubic-bezier(0.2, 0, 0, 1)',
|
|
235
|
+
standardDecelerate: 'cubic-bezier(0, 0, 0, 1)',
|
|
236
|
+
standardAccelerate: 'cubic-bezier(0.3, 0, 1, 1)',
|
|
237
|
+
emphasized: 'cubic-bezier(0.2, 0, 0, 1)',
|
|
238
|
+
emphasizedDecelerate: 'cubic-bezier(0.05, 0.7, 0.1, 1)',
|
|
239
|
+
emphasizedAccelerate: 'cubic-bezier(0.3, 0, 0.8, 0.15)',
|
|
240
|
+
};
|
|
241
|
+
// =============================================================================
|
|
242
|
+
// INTERACTION - Touch targets (Apple HIG: 44pt minimum)
|
|
243
|
+
// =============================================================================
|
|
244
|
+
export const touchTarget = {
|
|
245
|
+
min: '44px',
|
|
246
|
+
comfortable: '48px',
|
|
247
|
+
spacious: '56px',
|
|
248
|
+
};
|
|
249
|
+
// =============================================================================
|
|
250
|
+
// Z-INDEX - Layering system
|
|
251
|
+
// =============================================================================
|
|
252
|
+
export const zIndex = {
|
|
253
|
+
base: '0',
|
|
254
|
+
dropdown: '100',
|
|
255
|
+
sticky: '200',
|
|
256
|
+
modal: '300',
|
|
257
|
+
popover: '400',
|
|
258
|
+
toast: '500',
|
|
259
|
+
};
|
|
260
|
+
// =============================================================================
|
|
261
|
+
// CSS CUSTOM PROPERTIES GENERATOR
|
|
262
|
+
// =============================================================================
|
|
263
|
+
export function generateTokensCSS() {
|
|
264
|
+
return `
|
|
265
|
+
/* ==========================================================================
|
|
266
|
+
Photon Design System - Design Tokens
|
|
267
|
+
Based on Material Design 3 + Apple HIG
|
|
268
|
+
========================================================================== */
|
|
269
|
+
|
|
270
|
+
:root {
|
|
271
|
+
/* Spacing (8pt grid) */
|
|
272
|
+
--space-0: ${spacing['0']};
|
|
273
|
+
--space-1: ${spacing['1']};
|
|
274
|
+
--space-2: ${spacing['2']};
|
|
275
|
+
--space-3: ${spacing['3']};
|
|
276
|
+
--space-4: ${spacing['4']};
|
|
277
|
+
--space-5: ${spacing['5']};
|
|
278
|
+
--space-6: ${spacing['6']};
|
|
279
|
+
--space-8: ${spacing['8']};
|
|
280
|
+
--space-10: ${spacing['10']};
|
|
281
|
+
--space-12: ${spacing['12']};
|
|
282
|
+
|
|
283
|
+
/* Typography - Font Family */
|
|
284
|
+
--font-sans: ${fontFamily.sans};
|
|
285
|
+
--font-mono: ${fontFamily.mono};
|
|
286
|
+
|
|
287
|
+
/* Typography - Font Size */
|
|
288
|
+
--text-display-lg: ${fontSize['display-lg']};
|
|
289
|
+
--text-display-md: ${fontSize['display-md']};
|
|
290
|
+
--text-display-sm: ${fontSize['display-sm']};
|
|
291
|
+
--text-headline-lg: ${fontSize['headline-lg']};
|
|
292
|
+
--text-headline-md: ${fontSize['headline-md']};
|
|
293
|
+
--text-headline-sm: ${fontSize['headline-sm']};
|
|
294
|
+
--text-title-lg: ${fontSize['title-lg']};
|
|
295
|
+
--text-title-md: ${fontSize['title-md']};
|
|
296
|
+
--text-title-sm: ${fontSize['title-sm']};
|
|
297
|
+
--text-body-lg: ${fontSize['body-lg']};
|
|
298
|
+
--text-body-md: ${fontSize['body-md']};
|
|
299
|
+
--text-body-sm: ${fontSize['body-sm']};
|
|
300
|
+
--text-label-lg: ${fontSize['label-lg']};
|
|
301
|
+
--text-label-md: ${fontSize['label-md']};
|
|
302
|
+
--text-label-sm: ${fontSize['label-sm']};
|
|
303
|
+
|
|
304
|
+
/* Typography - Line Height */
|
|
305
|
+
--leading-display-lg: ${lineHeight['display-lg']};
|
|
306
|
+
--leading-display-md: ${lineHeight['display-md']};
|
|
307
|
+
--leading-display-sm: ${lineHeight['display-sm']};
|
|
308
|
+
--leading-headline-lg: ${lineHeight['headline-lg']};
|
|
309
|
+
--leading-headline-md: ${lineHeight['headline-md']};
|
|
310
|
+
--leading-headline-sm: ${lineHeight['headline-sm']};
|
|
311
|
+
--leading-title-lg: ${lineHeight['title-lg']};
|
|
312
|
+
--leading-title-md: ${lineHeight['title-md']};
|
|
313
|
+
--leading-title-sm: ${lineHeight['title-sm']};
|
|
314
|
+
--leading-body-lg: ${lineHeight['body-lg']};
|
|
315
|
+
--leading-body-md: ${lineHeight['body-md']};
|
|
316
|
+
--leading-body-sm: ${lineHeight['body-sm']};
|
|
317
|
+
--leading-label-lg: ${lineHeight['label-lg']};
|
|
318
|
+
--leading-label-md: ${lineHeight['label-md']};
|
|
319
|
+
--leading-label-sm: ${lineHeight['label-sm']};
|
|
320
|
+
|
|
321
|
+
/* Typography - Font Weight */
|
|
322
|
+
--weight-regular: ${fontWeight.regular};
|
|
323
|
+
--weight-medium: ${fontWeight.medium};
|
|
324
|
+
--weight-semibold: ${fontWeight.semibold};
|
|
325
|
+
--weight-bold: ${fontWeight.bold};
|
|
326
|
+
|
|
327
|
+
/* Colors - Surfaces */
|
|
328
|
+
--color-surface: ${colors.surface};
|
|
329
|
+
--color-surface-container: ${colors.surfaceContainer};
|
|
330
|
+
--color-surface-container-high: ${colors.surfaceContainerHigh};
|
|
331
|
+
--color-surface-container-highest: ${colors.surfaceContainerHighest};
|
|
332
|
+
--color-surface-bright: ${colors.surfaceBright};
|
|
333
|
+
|
|
334
|
+
/* Colors - Text */
|
|
335
|
+
--color-on-surface: ${colors.onSurface};
|
|
336
|
+
--color-on-surface-variant: ${colors.onSurfaceVariant};
|
|
337
|
+
--color-on-surface-muted: ${colors.onSurfaceMuted};
|
|
338
|
+
|
|
339
|
+
/* Colors - Primary */
|
|
340
|
+
--color-primary: ${colors.primary};
|
|
341
|
+
--color-primary-container: ${colors.primaryContainer};
|
|
342
|
+
--color-on-primary: ${colors.onPrimary};
|
|
343
|
+
--color-on-primary-container: ${colors.onPrimaryContainer};
|
|
344
|
+
|
|
345
|
+
/* Colors - Success */
|
|
346
|
+
--color-success: ${colors.success};
|
|
347
|
+
--color-success-container: ${colors.successContainer};
|
|
348
|
+
--color-on-success: ${colors.onSuccess};
|
|
349
|
+
--color-on-success-container: ${colors.onSuccessContainer};
|
|
350
|
+
|
|
351
|
+
/* Colors - Warning */
|
|
352
|
+
--color-warning: ${colors.warning};
|
|
353
|
+
--color-warning-container: ${colors.warningContainer};
|
|
354
|
+
--color-on-warning: ${colors.onWarning};
|
|
355
|
+
--color-on-warning-container: ${colors.onWarningContainer};
|
|
356
|
+
|
|
357
|
+
/* Colors - Error */
|
|
358
|
+
--color-error: ${colors.error};
|
|
359
|
+
--color-error-container: ${colors.errorContainer};
|
|
360
|
+
--color-on-error: ${colors.onError};
|
|
361
|
+
--color-on-error-container: ${colors.onErrorContainer};
|
|
362
|
+
|
|
363
|
+
/* Colors - Outline */
|
|
364
|
+
--color-outline: ${colors.outline};
|
|
365
|
+
--color-outline-variant: ${colors.outlineVariant};
|
|
366
|
+
|
|
367
|
+
/* Colors - Scrim */
|
|
368
|
+
--color-scrim: ${colors.scrim};
|
|
369
|
+
|
|
370
|
+
/* Elevation */
|
|
371
|
+
--elevation-0: ${elevation['0']};
|
|
372
|
+
--elevation-1: ${elevation['1']};
|
|
373
|
+
--elevation-2: ${elevation['2']};
|
|
374
|
+
--elevation-3: ${elevation['3']};
|
|
375
|
+
--elevation-4: ${elevation['4']};
|
|
376
|
+
--elevation-5: ${elevation['5']};
|
|
377
|
+
|
|
378
|
+
/* Border Radius */
|
|
379
|
+
--radius-none: ${radius.none};
|
|
380
|
+
--radius-sm: ${radius.sm};
|
|
381
|
+
--radius-md: ${radius.md};
|
|
382
|
+
--radius-lg: ${radius.lg};
|
|
383
|
+
--radius-xl: ${radius.xl};
|
|
384
|
+
--radius-full: ${radius.full};
|
|
385
|
+
|
|
386
|
+
/* Motion */
|
|
387
|
+
--duration-instant: ${duration.instant};
|
|
388
|
+
--duration-fast: ${duration.fast};
|
|
389
|
+
--duration-normal: ${duration.normal};
|
|
390
|
+
--duration-slow: ${duration.slow};
|
|
391
|
+
--duration-slower: ${duration.slower};
|
|
392
|
+
|
|
393
|
+
--ease-standard: ${easing.standard};
|
|
394
|
+
--ease-decelerate: ${easing.standardDecelerate};
|
|
395
|
+
--ease-accelerate: ${easing.standardAccelerate};
|
|
396
|
+
--ease-emphasized: ${easing.emphasized};
|
|
397
|
+
|
|
398
|
+
/* Touch Targets */
|
|
399
|
+
--touch-min: ${touchTarget.min};
|
|
400
|
+
--touch-comfortable: ${touchTarget.comfortable};
|
|
401
|
+
--touch-spacious: ${touchTarget.spacious};
|
|
402
|
+
|
|
403
|
+
/* Z-Index */
|
|
404
|
+
--z-base: ${zIndex.base};
|
|
405
|
+
--z-dropdown: ${zIndex.dropdown};
|
|
406
|
+
--z-sticky: ${zIndex.sticky};
|
|
407
|
+
--z-modal: ${zIndex.modal};
|
|
408
|
+
--z-popover: ${zIndex.popover};
|
|
409
|
+
--z-toast: ${zIndex.toast};
|
|
410
|
+
}
|
|
411
|
+
`;
|
|
412
|
+
}
|
|
413
|
+
//# sourceMappingURL=tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../src/design-system/tokens.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,gFAAgF;AAChF,wCAAwC;AACxC,gFAAgF;AAEhF,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,wCAAwC;IACxC,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,KAAK,EAAK,uBAAuB;IACtC,GAAG,EAAE,KAAK,EAAK,qBAAqB;IACpC,GAAG,EAAE,MAAM,EAAI,uBAAuB;IACtC,GAAG,EAAE,MAAM,EAAI,2BAA2B;IAC1C,GAAG,EAAE,MAAM,EAAI,wBAAwB;IACvC,GAAG,EAAE,MAAM,EAAI,wBAAwB;IACvC,GAAG,EAAE,MAAM,EAAI,8BAA8B;IAC7C,IAAI,EAAE,MAAM,EAAG,qBAAqB;IACpC,IAAI,EAAE,MAAM,EAAG,qBAAqB;CAC5B,CAAC;AAEX,2BAA2B;AAC3B,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC;CACb,CAAC;AAEX,gFAAgF;AAChF,4CAA4C;AAC5C,gF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Q;gBACjB,MAAM,CAAC,MAAM;eACd,MAAM,CAAC,KAAK;iBACV,MAAM,CAAC,OAAO;eAChB,MAAM,CAAC,KAAK;;CAE1B,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Photon Transaction UI System
|
|
3
|
+
*
|
|
4
|
+
* A focused UI system for completing decisions in AI+Human workflows.
|
|
5
|
+
* Not a general UI framework - purpose-built for the 4 transaction states:
|
|
6
|
+
*
|
|
7
|
+
* 1. SELECT - Pick from options (AI narrowed down, human selects visually)
|
|
8
|
+
* 2. CONFIRM - Review before action (summary of what will happen)
|
|
9
|
+
* 3. INPUT - Fill required details (smart form with validation)
|
|
10
|
+
* 4. RESULT - Show outcome (success/error status + receipt)
|
|
11
|
+
*/
|
|
12
|
+
export type TransactionState = 'select' | 'confirm' | 'input' | 'result';
|
|
13
|
+
export interface SelectionItem {
|
|
14
|
+
id: string;
|
|
15
|
+
title: string;
|
|
16
|
+
subtitle?: string;
|
|
17
|
+
image?: string;
|
|
18
|
+
icon?: string;
|
|
19
|
+
badge?: string;
|
|
20
|
+
detail?: string;
|
|
21
|
+
metadata?: Record<string, any>;
|
|
22
|
+
}
|
|
23
|
+
export interface ConfirmationData {
|
|
24
|
+
title: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
items: Array<{
|
|
27
|
+
label: string;
|
|
28
|
+
value: string;
|
|
29
|
+
}>;
|
|
30
|
+
warning?: string;
|
|
31
|
+
actions: {
|
|
32
|
+
confirm: string;
|
|
33
|
+
cancel?: string;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export interface InputField {
|
|
37
|
+
name: string;
|
|
38
|
+
label: string;
|
|
39
|
+
type: 'text' | 'number' | 'email' | 'password' | 'date' | 'select' | 'textarea';
|
|
40
|
+
placeholder?: string;
|
|
41
|
+
hint?: string;
|
|
42
|
+
required?: boolean;
|
|
43
|
+
options?: Array<{
|
|
44
|
+
label: string;
|
|
45
|
+
value: string;
|
|
46
|
+
}>;
|
|
47
|
+
validation?: {
|
|
48
|
+
pattern?: string;
|
|
49
|
+
min?: number;
|
|
50
|
+
max?: number;
|
|
51
|
+
minLength?: number;
|
|
52
|
+
maxLength?: number;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export interface ResultData {
|
|
56
|
+
status: 'success' | 'error' | 'pending';
|
|
57
|
+
title: string;
|
|
58
|
+
message?: string;
|
|
59
|
+
details?: Array<{
|
|
60
|
+
label: string;
|
|
61
|
+
value: string;
|
|
62
|
+
}>;
|
|
63
|
+
actions?: Array<{
|
|
64
|
+
label: string;
|
|
65
|
+
action: string;
|
|
66
|
+
}>;
|
|
67
|
+
}
|
|
68
|
+
export declare function generateTransactionCSS(): string;
|
|
69
|
+
export declare function generateTransactionJS(): string;
|
|
70
|
+
//# sourceMappingURL=transaction-ui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction-ui.d.ts","sourceRoot":"","sources":["../../src/design-system/transaction-ui.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAMH,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEzE,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,KAAK,CAAC;QAAE,KAAK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