@realminc/ui 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/LICENSE +99 -0
  2. package/README.md +254 -0
  3. package/dist/components/chart/chart.d.ts +2 -0
  4. package/dist/components/chart/chart_pane.d.ts +7 -0
  5. package/dist/components/chart/index.d.ts +5 -0
  6. package/dist/components/chart/indicators.d.ts +7 -0
  7. package/dist/components/chart/types.d.ts +110 -0
  8. package/dist/components/display/benchmark_table.d.ts +26 -0
  9. package/dist/components/display/code_block.d.ts +33 -0
  10. package/dist/components/display/feature_card.d.ts +22 -0
  11. package/dist/components/display/hero.d.ts +28 -0
  12. package/dist/components/display/image_card.d.ts +33 -0
  13. package/dist/components/display/index.d.ts +28 -0
  14. package/dist/components/display/label.d.ts +25 -0
  15. package/dist/components/display/line_table.d.ts +35 -0
  16. package/dist/components/display/marquee.d.ts +38 -0
  17. package/dist/components/display/number_display.d.ts +29 -0
  18. package/dist/components/display/price_display.d.ts +31 -0
  19. package/dist/components/display/side_indicator.d.ts +23 -0
  20. package/dist/components/display/side_line.d.ts +31 -0
  21. package/dist/components/display/stat_card.d.ts +20 -0
  22. package/dist/components/display/token_icon.d.ts +15 -0
  23. package/dist/components/feedback/callout.d.ts +22 -0
  24. package/dist/components/feedback/index.d.ts +6 -0
  25. package/dist/components/feedback/loading.d.ts +46 -0
  26. package/dist/components/feedback/modal.d.ts +29 -0
  27. package/dist/components/form/button.d.ts +54 -0
  28. package/dist/components/form/index.d.ts +8 -0
  29. package/dist/components/form/input.d.ts +18 -0
  30. package/dist/components/form/number_input.d.ts +41 -0
  31. package/dist/components/form/select.d.ts +43 -0
  32. package/dist/components/fx/index.d.ts +7 -0
  33. package/dist/components/fx/scramble_button.d.ts +9 -0
  34. package/dist/components/fx/scramble_control.d.ts +12 -0
  35. package/dist/components/fx/scramble_link.d.ts +10 -0
  36. package/dist/components/fx/scramble_text.d.ts +13 -0
  37. package/dist/components/index.d.ts +8 -0
  38. package/dist/components/layout/container.d.ts +17 -0
  39. package/dist/components/layout/index.d.ts +8 -0
  40. package/dist/components/layout/table.d.ts +73 -0
  41. package/dist/components/layout/tabs.d.ts +37 -0
  42. package/dist/components/layout/widget.d.ts +26 -0
  43. package/dist/components/nav/footer.d.ts +32 -0
  44. package/dist/components/nav/index.d.ts +6 -0
  45. package/dist/components/nav/logo.d.ts +17 -0
  46. package/dist/components/nav/navbar.d.ts +47 -0
  47. package/dist/components/transition/index.d.ts +4 -0
  48. package/dist/components/transition/page_entrance.d.ts +39 -0
  49. package/dist/components/transition/page_transition.d.ts +62 -0
  50. package/dist/index.d.ts +3 -0
  51. package/dist/index.js +17138 -0
  52. package/dist/styles/fonts.css +104 -0
  53. package/dist/styles/tailwind.preset.d.ts +3 -0
  54. package/dist/styles/theme.d.ts +372 -0
  55. package/dist/tailwind.js +47 -0
  56. package/dist/theme.js +143 -0
  57. package/package.json +84 -0
  58. package/public/fonts/ibm-plex-sans/IBMPlexSans-Bold.ttf +0 -0
  59. package/public/fonts/ibm-plex-sans/IBMPlexSans-BoldItalic.ttf +0 -0
  60. package/public/fonts/ibm-plex-sans/IBMPlexSans-ExtraLight.ttf +0 -0
  61. package/public/fonts/ibm-plex-sans/IBMPlexSans-ExtraLightItalic.ttf +0 -0
  62. package/public/fonts/ibm-plex-sans/IBMPlexSans-Italic.ttf +0 -0
  63. package/public/fonts/ibm-plex-sans/IBMPlexSans-Light.ttf +0 -0
  64. package/public/fonts/ibm-plex-sans/IBMPlexSans-LightItalic.ttf +0 -0
  65. package/public/fonts/ibm-plex-sans/IBMPlexSans-Medium.ttf +0 -0
  66. package/public/fonts/ibm-plex-sans/IBMPlexSans-MediumItalic.ttf +0 -0
  67. package/public/fonts/ibm-plex-sans/IBMPlexSans-Regular.ttf +0 -0
  68. package/public/fonts/ibm-plex-sans/IBMPlexSans-SemiBold.ttf +0 -0
  69. package/public/fonts/ibm-plex-sans/IBMPlexSans-SemiBoldItalic.ttf +0 -0
  70. package/public/fonts/ibm-plex-sans/IBMPlexSans-Text.ttf +0 -0
  71. package/public/fonts/ibm-plex-sans/IBMPlexSans-TextItalic.ttf +0 -0
  72. package/public/fonts/ibm-plex-sans/IBMPlexSans-Thin.ttf +0 -0
  73. package/public/fonts/ibm-plex-sans/IBMPlexSans-ThinItalic.ttf +0 -0
  74. package/public/fonts/intel-one-mono/IntelOneMono-Bold.ttf +0 -0
  75. package/public/fonts/intel-one-mono/IntelOneMono-BoldItalic.ttf +0 -0
  76. package/public/fonts/intel-one-mono/IntelOneMono-Italic.ttf +0 -0
  77. package/public/fonts/intel-one-mono/IntelOneMono-Light.ttf +0 -0
  78. package/public/fonts/intel-one-mono/IntelOneMono-LightItalic.ttf +0 -0
  79. package/public/fonts/intel-one-mono/IntelOneMono-Medium.ttf +0 -0
  80. package/public/fonts/intel-one-mono/IntelOneMono-MediumItalic.ttf +0 -0
  81. package/public/fonts/intel-one-mono/IntelOneMono-Regular.ttf +0 -0
  82. package/public/fonts/switzer/SwitzerVariable-Italic.ttf +0 -0
  83. package/public/fonts/switzer/SwitzerVariable.ttf +0 -0
  84. package/public/logo/README.md +75 -0
  85. package/public/logo/apple-touch-icon.png +0 -0
  86. package/public/logo/favicon-192.png +0 -0
  87. package/public/logo/favicon-512.png +0 -0
  88. package/public/logo/favicon.ico +0 -0
  89. package/public/logo/favicon.svg +4 -0
  90. package/public/logo/oa-wordmark-dark.svg +6 -0
  91. package/public/logo/oa-wordmark-light.svg +6 -0
  92. package/public/logo/realm-app-dark.svg +4 -0
  93. package/public/logo/realm-app-light.svg +4 -0
  94. package/public/logo/realm-integrated-wordmark-dark.svg +4 -0
  95. package/public/logo/realm-integrated-wordmark-light.svg +4 -0
  96. package/public/logo/realm-logo-dark.svg +6 -0
  97. package/public/logo/realm-logo-light.svg +6 -0
  98. package/public/logo/realm-mark-dark.svg +3 -0
  99. package/public/logo/realm-mark-light.svg +3 -0
  100. package/public/logo/realm-r-mark.svg +6 -0
  101. package/public/logo/realm-token.svg +4 -0
  102. package/public/logo/realm-wordmark-dark.svg +6 -0
  103. package/public/logo/realm-wordmark-light.svg +6 -0
package/LICENSE ADDED
@@ -0,0 +1,99 @@
1
+ Business Source License 1.1
2
+
3
+ License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved.
4
+ "Business Source License" is a trademark of MariaDB Corporation Ab.
5
+
6
+ -----------------------------------------------------------------------------
7
+
8
+ Parameters
9
+
10
+ Licensor: Lukasz Biernat (trading as Realm)
11
+
12
+ Licensed Work: Realm UI (the shared React component library and all
13
+ accompanying source code, documentation, and files in
14
+ this repository).
15
+ The Licensed Work is (c) 2025-2026 Lukasz Biernat.
16
+
17
+ Additional Use Grant: You may make production use of the Licensed Work,
18
+ provided that such use does not include offering the
19
+ Licensed Work (or a modified version of it) to third
20
+ parties, on a hosted, embedded, or otherwise packaged
21
+ basis, in order to provide a commercial machine-learning,
22
+ GPU-compute, or inference product or service that
23
+ competes with any product or service offered by Realm.
24
+
25
+ Change Date: 2030-07-09
26
+
27
+ Change License: Apache License, Version 2.0
28
+
29
+ For information about alternative licensing arrangements for the Licensed
30
+ Work, please contact realminc.depravity737@passinbox.com.
31
+
32
+ -----------------------------------------------------------------------------
33
+
34
+ Terms
35
+
36
+ The Licensor hereby grants you the right to copy, modify, create derivative
37
+ works, redistribute, and make non-production use of the Licensed Work. The
38
+ Licensor may make an Additional Use Grant, above, permitting limited
39
+ production use.
40
+
41
+ Effective on the Change Date, or the fourth anniversary of the first publicly
42
+ available distribution of a specific version of the Licensed Work under this
43
+ License, whichever comes first, the Licensor hereby grants you rights under
44
+ the terms of the Change License, and the rights granted in the paragraph
45
+ above terminate.
46
+
47
+ If your use of the Licensed Work does not comply with the requirements
48
+ currently in effect as described in this License, you must purchase a
49
+ commercial license from the Licensor, its affiliated entities, or authorized
50
+ resellers, or you must refrain from using the Licensed Work.
51
+
52
+ All copies of the original and modified Licensed Work, and derivative works
53
+ of the Licensed Work, are subject to this License. This License applies
54
+ separately for each version of the Licensed Work and the Change Date may vary
55
+ for each version of the Licensed Work released by Licensor.
56
+
57
+ You must conspicuously display this License on each original or modified copy
58
+ of the Licensed Work. If you receive the Licensed Work in original or
59
+ modified form from a third party, the terms and conditions set forth in this
60
+ License apply to your use of that work.
61
+
62
+ Any use of the Licensed Work in violation of this License will automatically
63
+ terminate your rights under this License for the current and all other
64
+ versions of the Licensed Work.
65
+
66
+ This License does not grant you any right in any trademark or logo of
67
+ Licensor or its affiliates (provided that you may use a trademark or logo of
68
+ Licensor as expressly required by this License).
69
+
70
+ TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
71
+ AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
72
+ EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
73
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
74
+ TITLE.
75
+
76
+ MariaDB hereby grants you permission to use this License's text to license
77
+ your works, and to refer to it using the trademark "Business Source License",
78
+ as long as you comply with the Covenants of Licensor below.
79
+
80
+ Covenants of Licensor
81
+
82
+ In consideration of the right to use this License's text and the "Business
83
+ Source License" name and trademark, Licensor covenants to MariaDB, and to all
84
+ other recipients of the licensed work to be provided by Licensor:
85
+
86
+ 1. To specify as the Change License the GPL Version 2.0 or any later version,
87
+ or a license that is compatible with GPL Version 2.0 or a later version,
88
+ where "compatible" means that software provided under the Change License can
89
+ be included in a program with software provided under GPL Version 2.0 or a
90
+ later version. Licensor may specify additional Change Licenses without
91
+ limitation.
92
+
93
+ 2. To either: (a) specify an additional grant of rights to use that does not
94
+ impose any additional restriction on the right granted in this License, as
95
+ the Additional Use Grant; or (b) insert the text "None".
96
+
97
+ 3. To specify a Change Date.
98
+
99
+ 4. Not to modify this License in any other way.
package/README.md ADDED
@@ -0,0 +1,254 @@
1
+ # @realminc/ui
2
+
3
+ > **Realm Design System** - Shared UI components, styles, and assets for all Realm applications.
4
+ > Based on IBM Design Language typography system.
5
+
6
+ ## Quick Start
7
+
8
+ ```bash
9
+ # Install the public package
10
+ bun add @realminc/ui
11
+
12
+ # Or link locally during development
13
+ bun link ../ui
14
+ ```
15
+
16
+ ## Typography System
17
+
18
+ ### IBM Design Language
19
+
20
+ All Realm applications use [IBM Design Language](https://www.ibm.com/design/language/typography) typography:
21
+
22
+ | Font | Usage |
23
+ |------|-------|
24
+ | **IBM Plex Sans** | UI text, headings, labels, buttons |
25
+ | **Intel One Mono** | Code blocks, terminal widgets, API examples |
26
+
27
+ ### Type Scale
28
+
29
+ Based on [Carbon Design System](https://carbondesignsystem.com/guidelines/typography/type-scale):
30
+
31
+ | Style | Size | Weight | Usage |
32
+ |-------|------|--------|-------|
33
+ | `display-02` | 54px | 300 | Hero headlines |
34
+ | `display-01` | 42px | 300 | Section headlines |
35
+ | `heading-07` | 54px | 300 | Page titles |
36
+ | `heading-05` | 32px | 400 | Section titles |
37
+ | `heading-04` | 28px | 500 | Card titles |
38
+ | `heading-03` | 20px | 500 | Widget headers |
39
+ | `heading-01` | 14px | 600 | Uppercase labels |
40
+ | `body-02` | 16px | 400 | Body text |
41
+ | `body-01` | 14px | 400 | Compact body |
42
+ | `widget-header` | 11px | 500 | Widget titles |
43
+ | `code-02` | 14px | 400 | Code snippets |
44
+
45
+ ### CSS Variables
46
+
47
+ ```css
48
+ :root {
49
+ --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
50
+ --font-mono: 'Intel One Mono', 'SF Mono', 'Fira Code', monospace;
51
+ }
52
+ ```
53
+
54
+ ## Usage
55
+
56
+ ### Components
57
+
58
+ ```tsx
59
+ import { OaNavbar, OaFooter, OaLogo, OaButton, OaCodeBlock } from '@realminc/ui';
60
+
61
+ function App() {
62
+ return (
63
+ <>
64
+ <OaNavbar
65
+ links={[
66
+ { label: 'Trade', href: '/trade' },
67
+ { label: 'Portfolio', href: '/portfolio' },
68
+ ]}
69
+ variant="dark"
70
+ />
71
+
72
+ <main>
73
+ <OaCodeBlock
74
+ code="const realm = new RealmClient();"
75
+ language="typescript"
76
+ terminal
77
+ />
78
+
79
+ <OaButton variant="primary">Connect Wallet</OaButton>
80
+ </main>
81
+
82
+ <OaFooter variant="dark" />
83
+ </>
84
+ );
85
+ }
86
+ ```
87
+
88
+ ### Tailwind Preset
89
+
90
+ Use our shared Tailwind configuration:
91
+
92
+ ```js
93
+ // tailwind.config.js
94
+ import realmPreset from '@realminc/ui/tailwind';
95
+
96
+ export default {
97
+ presets: [realmPreset],
98
+ content: [
99
+ './src/**/*.{js,ts,jsx,tsx}',
100
+ './node_modules/@realminc/ui/dist/**/*.js',
101
+ ],
102
+ };
103
+ ```
104
+
105
+ ### Theme Colors
106
+
107
+ Access theme colors directly:
108
+
109
+ ```tsx
110
+ import { colors, fonts, fontSize } from '@realminc/ui';
111
+
112
+ // colors.realm.bg.base → '#0a0a0a'
113
+ // colors.realm.buy → '#22c55e'
114
+ // fonts.sans → ['IBM Plex Sans', ...]
115
+ // fontSize['heading-05'] → ['2rem', { lineHeight: '1.25', ... }]
116
+ ```
117
+
118
+ ## Components
119
+
120
+ ### Navigation
121
+ - `OaLogo` - Realm logo (diamond + text variants)
122
+ - `OaNavbar` - Shared navigation bar
123
+ - `OaFooter` - Shared footer
124
+
125
+ ### Display
126
+ - `OaCodeBlock` - Terminal-style code blocks
127
+ - `OaStatCard` - Metric display cards
128
+ - `OaFeatureCard` - Feature showcase cards
129
+ - `OaTokenIcon` - Token icons (RLM, USDC, BTC, ETH)
130
+
131
+ ### Layout
132
+ - `OaWidget` - Panel container with header
133
+ - `OaTabs` - Tabbed content switcher
134
+ - `OaContainer` - Responsive width container
135
+ - `OaModal` - Accessible modal dialog
136
+
137
+ ### Forms
138
+ - `OaButton` - Primary, secondary, buy/sell variants
139
+ - `OaInput` - Text input with label/error states
140
+
141
+ ### Feedback
142
+ - `OaLoading.Spinner` - Loading spinner
143
+ - `OaLoading.Dots` - Animated dots
144
+ - `OaLoading.Skeleton` - Content placeholder
145
+ - `OaLoading.Overlay` - Full overlay loader
146
+
147
+ ## Assets
148
+
149
+ ### Fonts
150
+
151
+ Fonts are located in `public/fonts/`:
152
+
153
+ ```
154
+ public/fonts/
155
+ ├── ibm-plex-sans/
156
+ │ ├── IBMPlexSans-Light.ttf
157
+ │ ├── IBMPlexSans-Regular.ttf
158
+ │ ├── IBMPlexSans-Medium.ttf
159
+ │ ├── IBMPlexSans-SemiBold.ttf
160
+ │ └── IBMPlexSans-Bold.ttf
161
+ ├── intel-one-mono/
162
+ │ ├── IntelOneMono-Regular.ttf
163
+ │ ├── IntelOneMono-Medium.ttf
164
+ │ └── IntelOneMono-Bold.ttf
165
+ └── switzer/
166
+ ├── SwitzerVariable.ttf
167
+ └── SwitzerVariable-Italic.ttf
168
+ ```
169
+
170
+ ### Images
171
+
172
+ ```
173
+ public/logo/
174
+ ├── realm-r-mark.svg
175
+ ├── realm-mark-dark.svg
176
+ ├── realm-mark-light.svg
177
+ ├── realm-integrated-wordmark-dark.svg
178
+ ├── realm-integrated-wordmark-light.svg
179
+ └── realm-token.svg
180
+ ```
181
+
182
+ ### Syncing Assets
183
+
184
+ Copy public assets to your app:
185
+
186
+ ```bash
187
+ # Sync fonts
188
+ cp -r node_modules/@realminc/ui/public/fonts public/
189
+
190
+ # Sync images
191
+ cp -r node_modules/@realminc/ui/public/logo public/
192
+ ```
193
+
194
+ ## Development
195
+
196
+ Bun 1.4.2 is the package manager for the private source repository.
197
+
198
+ ```bash
199
+ # Install dependencies
200
+ bun ci
201
+
202
+ # Build library
203
+ bun run build
204
+
205
+ # Watch mode
206
+ bun run dev
207
+
208
+ # Type check
209
+ bun run typecheck
210
+ ```
211
+
212
+ ## Naming Convention
213
+
214
+ All components use `OaPascalCase` prefix:
215
+
216
+ ```tsx
217
+ // ✓ Good
218
+ OaNavbar, OaButton, OaCodeBlock, OaWidget
219
+
220
+ // ✗ Bad
221
+ Navbar, Button, CodeBlock, Widget
222
+ ```
223
+
224
+ ## Project Structure
225
+
226
+ ```
227
+ ui/
228
+ ├── src/
229
+ │ ├── components/
230
+ │ │ ├── navigation/ # OaNavbar, OaFooter, OaLogo
231
+ │ │ ├── display/ # OaCodeBlock, OaStatCard, OaTokenIcon
232
+ │ │ ├── layout/ # OaWidget, OaTabs, OaContainer, OaModal
233
+ │ │ ├── forms/ # OaButton, OaInput
234
+ │ │ └── feedback/ # OaLoading (Spinner, Dots, Skeleton, Overlay)
235
+ │ ├── styles/
236
+ │ │ ├── theme.ts # Colors, fonts, fontSize definitions
237
+ │ │ ├── fonts.css # @font-face declarations
238
+ │ │ └── tailwind.preset.ts
239
+ │ └── index.ts
240
+ ├── public/
241
+ │ ├── images/ # Logos, icons, tokens
242
+ │ └── fonts/ # IBM Plex Sans, Intel One Mono
243
+ └── dist/ # Built output
244
+ ```
245
+
246
+ ## Used By
247
+
248
+ - **exchange** - Trading UI (dark theme)
249
+ - **landing** - Marketing site (light theme)
250
+ - **dev** - Developer documentation (dark theme)
251
+
252
+ ## License
253
+
254
+ Business Source License 1.1 © Realm. See [LICENSE](LICENSE) for the UI-specific terms and change date.
@@ -0,0 +1,2 @@
1
+ import { OaChartProps } from './types';
2
+ export declare function OaChart({ data, type, theme, custom_theme, show_volume, indicators, show_time_scale, show_price_scale, auto_fit, crosshairMode, price_formatter, on_candle_click, on_crosshair_move, loading, className, }: OaChartProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { OaChartPaneProps, OaIndicatorData, OaMacdData } from './types';
2
+ export declare function OaRsiPane({ data, height, theme, colors, }: Omit<OaChartPaneProps, 'type'> & {
3
+ data: OaIndicatorData[];
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ export declare function OaMacdPane({ data, height, theme, colors, }: Omit<OaChartPaneProps, 'type'> & {
6
+ data: OaMacdData[];
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export { OaChart } from './chart';
2
+ export { OaRsiPane, OaMacdPane } from './chart_pane';
3
+ export type { OaCandle, OaLineData, OaHistogramData, OaChartType, OaTimeframe, OaChartTheme, OaIndicatorType, OaIndicatorConfig, OaIndicatorData, OaBollingerData, OaMacdData, OaChartProps, OaChartPaneProps, } from './types';
4
+ export { OA_CHART_THEME_DARK, OA_CHART_THEME_LIGHT, } from './types';
5
+ export { calculate_sma, calculate_ema, calculate_bollinger_bands, calculate_vwap, calculate_rsi, calculate_macd, } from './indicators';
@@ -0,0 +1,7 @@
1
+ import { OaCandle, OaIndicatorData, OaBollingerData, OaMacdData } from './types';
2
+ export declare function calculate_sma(candles: OaCandle[], period: number): OaIndicatorData[];
3
+ export declare function calculate_ema(candles: OaCandle[], period: number): OaIndicatorData[];
4
+ export declare function calculate_bollinger_bands(candles: OaCandle[], period?: number, std_dev?: number): OaBollingerData[];
5
+ export declare function calculate_vwap(candles: OaCandle[]): OaIndicatorData[];
6
+ export declare function calculate_rsi(candles: OaCandle[], period?: number): OaIndicatorData[];
7
+ export declare function calculate_macd(candles: OaCandle[], fast_period?: number, slow_period?: number, signal_period?: number): OaMacdData[];
@@ -0,0 +1,110 @@
1
+ import { UTCTimestamp } from 'lightweight-charts';
2
+ export interface OaCandle {
3
+ time: UTCTimestamp;
4
+ open: number;
5
+ high: number;
6
+ low: number;
7
+ close: number;
8
+ volume?: number;
9
+ }
10
+ export interface OaLineData {
11
+ time: UTCTimestamp;
12
+ value: number;
13
+ }
14
+ export interface OaHistogramData {
15
+ time: UTCTimestamp;
16
+ value: number;
17
+ color?: string;
18
+ }
19
+ export type OaChartType = 'candlestick' | 'line' | 'area';
20
+ export type OaTimeframe = '1m' | '5m' | '15m' | '1h' | '4h' | '1d' | '1w';
21
+ export interface OaChartTheme {
22
+ background: string;
23
+ text: string;
24
+ textSecondary: string;
25
+ grid: string;
26
+ border: string;
27
+ crosshair: string;
28
+ upColor: string;
29
+ downColor: string;
30
+ }
31
+ export declare const OA_CHART_THEME_DARK: OaChartTheme;
32
+ export declare const OA_CHART_THEME_LIGHT: OaChartTheme;
33
+ export type OaIndicatorType = 'sma' | 'ema' | 'bollinger' | 'vwap' | 'rsi' | 'macd' | 'volume';
34
+ export interface OaIndicatorConfig {
35
+ id: string;
36
+ type: OaIndicatorType;
37
+ enabled: boolean;
38
+ color: string;
39
+ params: Record<string, number>;
40
+ }
41
+ export interface OaIndicatorData {
42
+ time: UTCTimestamp;
43
+ value: number;
44
+ }
45
+ export interface OaBollingerData {
46
+ time: UTCTimestamp;
47
+ upper: number;
48
+ middle: number;
49
+ lower: number;
50
+ }
51
+ export interface OaMacdData {
52
+ time: UTCTimestamp;
53
+ macd: number;
54
+ signal: number;
55
+ histogram: number;
56
+ }
57
+ export interface OaChartProps {
58
+ /** Candle data for the chart */
59
+ data: OaCandle[];
60
+ /** Chart type */
61
+ type?: OaChartType;
62
+ /** Theme (dark/light) */
63
+ theme?: 'dark' | 'light';
64
+ /** Custom theme colors */
65
+ custom_theme?: Partial<OaChartTheme>;
66
+ /** Show volume bars */
67
+ show_volume?: boolean;
68
+ /** Indicators to display */
69
+ indicators?: OaIndicatorConfig[];
70
+ /** Show time scale */
71
+ show_time_scale?: boolean;
72
+ /** Show price scale */
73
+ show_price_scale?: boolean;
74
+ /** Fit content on load */
75
+ auto_fit?: boolean;
76
+ /** Crosshair mode */
77
+ crosshairMode?: 'normal' | 'magnet';
78
+ /** Price formatter */
79
+ price_formatter?: (price: number) => string;
80
+ /** On candle click */
81
+ on_candle_click?: (candle: OaCandle) => void;
82
+ /** On crosshair move */
83
+ on_crosshair_move?: (data: {
84
+ time: UTCTimestamp | null;
85
+ price: number | null;
86
+ }) => void;
87
+ /** Loading state */
88
+ loading?: boolean;
89
+ /** Custom class name */
90
+ className?: string;
91
+ }
92
+ export interface OaChartPaneProps {
93
+ /** RSI or MACD data */
94
+ data: OaIndicatorData[] | OaMacdData[];
95
+ /** Pane type */
96
+ type: 'rsi' | 'macd';
97
+ /** Height in pixels */
98
+ height?: number;
99
+ /** Theme */
100
+ theme?: 'dark' | 'light';
101
+ /** Colors */
102
+ colors?: {
103
+ line?: string;
104
+ signal?: string;
105
+ histogram?: {
106
+ positive: string;
107
+ negative: string;
108
+ };
109
+ };
110
+ }
@@ -0,0 +1,26 @@
1
+ export interface OaBenchmarkColumn {
2
+ key: string;
3
+ label: string;
4
+ align?: 'left' | 'right' | 'center';
5
+ highlight?: boolean;
6
+ }
7
+ export interface OaBenchmarkRow {
8
+ [key: string]: string | number | undefined;
9
+ }
10
+ export interface OaBenchmarkComparison {
11
+ label: string;
12
+ value: string;
13
+ delta?: string;
14
+ positive?: boolean;
15
+ }
16
+ export interface OaBenchmarkTableProps {
17
+ title?: string;
18
+ subtitle?: string;
19
+ columns: OaBenchmarkColumn[];
20
+ rows: OaBenchmarkRow[];
21
+ comparisons?: OaBenchmarkComparison[];
22
+ highlight_best?: string;
23
+ variant?: 'dark' | 'light';
24
+ className?: string;
25
+ }
26
+ export declare function OaBenchmarkTable({ title, subtitle, columns, rows, comparisons, highlight_best, variant, className, }: OaBenchmarkTableProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,33 @@
1
+ export type OaCodeBlockVariant = 'dark' | 'light' | 'dev-dark' | 'dev-light';
2
+ export interface OaCodeTab {
3
+ id: string;
4
+ label: string;
5
+ code: string;
6
+ language: string;
7
+ filename?: string;
8
+ download_filename?: string;
9
+ }
10
+ export interface OaCodeBlockProps {
11
+ code?: string;
12
+ language?: string;
13
+ filename?: string;
14
+ /** Optional language/file tabs rendered inside the terminal title bar. */
15
+ tabs?: readonly OaCodeTab[];
16
+ default_tab?: string;
17
+ /** Controlled tab id. Pair with on_tab_change to synchronize external state. */
18
+ active_tab?: string;
19
+ on_tab_change?: (tab_id: string) => void;
20
+ variant?: OaCodeBlockVariant;
21
+ show_line_numbers?: boolean;
22
+ show_copy?: boolean;
23
+ /** Terminal chrome: download code as a file (left side, next to copy). */
24
+ show_download?: boolean;
25
+ /** Suggested download filename (optional; else derived from title + language). */
26
+ download_filename?: string;
27
+ terminal?: boolean;
28
+ wrap?: boolean;
29
+ /** Grow to fill a flex/grid parent; code area scrolls when shorter than sibling columns */
30
+ fill_height?: boolean;
31
+ className?: string;
32
+ }
33
+ export declare function OaCodeBlock({ code, language, filename, tabs, default_tab, active_tab: controlled_tab, on_tab_change, variant, show_line_numbers, show_copy, show_download, download_filename, terminal, wrap, fill_height, className, }: OaCodeBlockProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,22 @@
1
+ export interface OaFeatureCardProps {
2
+ /** Feature title */
3
+ title: string;
4
+ /** Feature description */
5
+ description: string;
6
+ /** Optional badge text */
7
+ badge?: string;
8
+ /** Icon or visual element */
9
+ icon?: React.ReactNode;
10
+ /** Variant */
11
+ variant?: 'dark' | 'light';
12
+ /** Animation delay */
13
+ delay?: number;
14
+ /** Custom className */
15
+ className?: string;
16
+ }
17
+ /**
18
+ * OaFeatureCard - Feature showcase card
19
+ *
20
+ * For technology/feature showcases on landing pages.
21
+ */
22
+ export declare function OaFeatureCard({ title, description, badge, icon, variant, delay, className, }: OaFeatureCardProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,28 @@
1
+ export interface OaHeroImage {
2
+ src: string;
3
+ position?: string;
4
+ alt?: string;
5
+ }
6
+ export type OaHeroPreset = 'hero' | 'product' | 'docs';
7
+ export type OaHeroMode = 'static' | 'carousel' | 'video';
8
+ export type OaHeroAlign = 'left' | 'center' | 'right';
9
+ export type OaHeroOverlay = 'none';
10
+ export interface OaHeroProps {
11
+ preset?: OaHeroPreset;
12
+ mode?: OaHeroMode;
13
+ images?: OaHeroImage[];
14
+ video_src?: string;
15
+ align?: OaHeroAlign;
16
+ interval?: number;
17
+ show_arrows?: boolean;
18
+ film_grain?: boolean;
19
+ /**
20
+ * @deprecated OaHero never alters image luminance. This property remains only
21
+ * for source compatibility with existing consumers and has no visual effect.
22
+ */
23
+ overlay?: OaHeroOverlay;
24
+ className?: string;
25
+ /** Hero copy must use fully opaque color tokens; alpha text is unsupported. */
26
+ children: React.ReactNode;
27
+ }
28
+ export declare function OaHero({ preset, mode, images, video_src, align, interval, show_arrows, film_grain, className, children, }: OaHeroProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,33 @@
1
+ export interface OaImageCardProps {
2
+ /** Image source URL */
3
+ src: string;
4
+ /** Image alt text */
5
+ alt: string;
6
+ /** Label text (small uppercase) */
7
+ label?: string;
8
+ /** Description text */
9
+ description?: string;
10
+ /** Aspect ratio (default 4/3) */
11
+ aspect_ratio?: '4/3' | '16/9' | '3/2' | '1/1' | 'auto';
12
+ /** Animation delay for stagger effects */
13
+ delay?: number;
14
+ /** Custom className for the container */
15
+ className?: string;
16
+ }
17
+ /**
18
+ * OaImageCard - Image card with caption
19
+ *
20
+ * Rounded image container with ungraded artwork and fully opaque caption text.
21
+ * Includes a subtle hover scale effect for engagement.
22
+ *
23
+ * @example
24
+ * ```tsx
25
+ * <OaImageCard
26
+ * src="/images/lab.jpg"
27
+ * alt="Research laboratory"
28
+ * label="Cryptographic Accelerator"
29
+ * description="GPU-accelerated batch verification..."
30
+ * />
31
+ * ```
32
+ */
33
+ export declare function OaImageCard({ src, alt, label, description, aspect_ratio, delay, className, }: OaImageCardProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,28 @@
1
+ export { OaCodeBlock } from './code_block';
2
+ export type { OaCodeBlockProps, OaCodeBlockVariant, OaCodeTab } from './code_block';
3
+ export { OaStatCard } from './stat_card';
4
+ export type { OaStatCardProps } from './stat_card';
5
+ export { OaFeatureCard } from './feature_card';
6
+ export type { OaFeatureCardProps } from './feature_card';
7
+ export { OaTokenIcon } from './token_icon';
8
+ export type { OaTokenIconProps, OaTokenSymbol } from './token_icon';
9
+ export { OaSideLine } from './side_line';
10
+ export type { OaSideLineProps } from './side_line';
11
+ export { OaImageCard } from './image_card';
12
+ export type { OaImageCardProps } from './image_card';
13
+ export { OaMarquee } from './marquee';
14
+ export type { OaMarqueeProps, OaMarqueeItem } from './marquee';
15
+ export { OaLabel } from './label';
16
+ export type { OaLabelProps } from './label';
17
+ export { OaSideIndicator } from './side_indicator';
18
+ export type { OaSideIndicatorProps } from './side_indicator';
19
+ export { OaPriceDisplay } from './price_display';
20
+ export type { OaPriceDisplayProps } from './price_display';
21
+ export { OaNumberDisplay } from './number_display';
22
+ export type { OaNumberDisplayProps } from './number_display';
23
+ export { OaBenchmarkTable } from './benchmark_table';
24
+ export type { OaBenchmarkTableProps, OaBenchmarkColumn, OaBenchmarkRow, OaBenchmarkComparison } from './benchmark_table';
25
+ export { OaLineTable } from './line_table';
26
+ export type { OaLineTableContractProps, OaLineTableGridProps, OaLineTableItem, OaLineTableProps, OaLineTableVariant, } from './line_table';
27
+ export { OaHero } from './hero';
28
+ export type { OaHeroProps, OaHeroImage, OaHeroPreset, OaHeroMode, OaHeroAlign, OaHeroOverlay } from './hero';