@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
@@ -0,0 +1,25 @@
1
+ import { ReactNode } from 'react';
2
+ export interface OaLabelProps {
3
+ /** Label content */
4
+ children: ReactNode;
5
+ /** Size variant */
6
+ size?: 'xs' | 'sm' | 'md';
7
+ /** Color variant */
8
+ variant?: 'default' | 'primary' | 'secondary' | 'muted';
9
+ /** Transform to uppercase */
10
+ uppercase?: boolean;
11
+ /** Additional className */
12
+ className?: string;
13
+ /** HTML element to render */
14
+ as?: 'span' | 'label' | 'div' | 'p';
15
+ }
16
+ /**
17
+ * OaLabel - Standardized label component
18
+ *
19
+ * Replaces the common pattern: `text-[11px] uppercase tracking-wider text-realm-text-tertiary`
20
+ *
21
+ * @example
22
+ * <OaLabel>Amount</OaLabel>
23
+ * <OaLabel size="xs" variant="muted">Hint text</OaLabel>
24
+ */
25
+ export declare function OaLabel({ children, size, variant, uppercase, className, as: Component, }: OaLabelProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,35 @@
1
+ import { ReactNode } from 'react';
2
+ export type OaLineTableVariant = 'dark' | 'light';
3
+ export interface OaLineTableItem {
4
+ number?: ReactNode;
5
+ title: ReactNode;
6
+ description: ReactNode;
7
+ }
8
+ interface OaLineTableBaseProps {
9
+ variant?: OaLineTableVariant;
10
+ className?: string;
11
+ }
12
+ export interface OaLineTableGridProps extends OaLineTableBaseProps {
13
+ layout?: 'grid';
14
+ items: readonly OaLineTableItem[];
15
+ columns?: 1 | 2;
16
+ animated?: boolean;
17
+ }
18
+ export interface OaLineTableContractProps extends OaLineTableBaseProps {
19
+ layout: 'contract';
20
+ id?: string;
21
+ title?: ReactNode;
22
+ meta?: ReactNode;
23
+ signature: ReactNode;
24
+ headerAction?: ReactNode;
25
+ description: ReactNode;
26
+ children?: ReactNode;
27
+ footer?: ReactNode;
28
+ }
29
+ export type OaLineTableProps = OaLineTableGridProps | OaLineTableContractProps;
30
+ /**
31
+ * Canonical Realm bordered line table. Grid mode renders numbered capability
32
+ * summaries; contract mode renders API declarations and their documentation.
33
+ */
34
+ export declare function OaLineTable(props: OaLineTableProps): import("react/jsx-runtime").JSX.Element;
35
+ export {};
@@ -0,0 +1,38 @@
1
+ export interface OaMarqueeItem {
2
+ /** Primary text (larger) */
3
+ name: string;
4
+ /** Secondary label (smaller, uppercase) */
5
+ label?: string;
6
+ }
7
+ export interface OaMarqueeProps {
8
+ /** Items to display in the marquee */
9
+ items: OaMarqueeItem[];
10
+ /** Speed in seconds for one complete cycle */
11
+ speed?: number;
12
+ /** Direction of scroll */
13
+ direction?: 'left' | 'right';
14
+ /** Light or dark variant */
15
+ variant?: 'light' | 'dark';
16
+ /** Show fade edges */
17
+ showFade?: boolean;
18
+ /** Custom className */
19
+ className?: string;
20
+ }
21
+ /**
22
+ * OaMarquee - Infinite scroll ticker
23
+ *
24
+ * Auto-scrolling horizontal marquee for tech stacks, partners, etc.
25
+ * Includes edge fade effect and configurable speed/direction.
26
+ *
27
+ * @example
28
+ * ```tsx
29
+ * <OaMarquee
30
+ * items={[
31
+ * { name: 'CUDA', label: 'GPU Compute' },
32
+ * { name: 'Dilithium-3', label: 'NIST FIPS 204' },
33
+ * ]}
34
+ * speed={30}
35
+ * />
36
+ * ```
37
+ */
38
+ export declare function OaMarquee({ items, speed, direction, variant, showFade, className, }: OaMarqueeProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,29 @@
1
+ export interface OaNumberDisplayProps {
2
+ /** Number value */
3
+ value: number;
4
+ /** Decimal places (auto if not specified) */
5
+ decimals?: number | 'auto';
6
+ /** Size variant */
7
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
8
+ /** Text color variant */
9
+ variant?: 'primary' | 'secondary' | 'tertiary' | 'muted';
10
+ /** Locale for number formatting */
11
+ locale?: string;
12
+ /** Show + sign for positive */
13
+ show_sign?: boolean;
14
+ /** Prefix (e.g. "$", "€") */
15
+ prefix?: string;
16
+ /** Suffix (e.g. "%", "x") */
17
+ suffix?: string;
18
+ /** Additional className */
19
+ className?: string;
20
+ }
21
+ /**
22
+ * OaNumberDisplay - Formatted number with tabular-nums
23
+ *
24
+ * @example
25
+ * <OaNumberDisplay value={1234.5678} />
26
+ * <OaNumberDisplay value={0.00015} decimals={8} />
27
+ * <OaNumberDisplay value={5.5} suffix="%" />
28
+ */
29
+ export declare function OaNumberDisplay({ value, decimals, size, variant, locale, show_sign, prefix, suffix, className, }: OaNumberDisplayProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,31 @@
1
+ export interface OaPriceDisplayProps {
2
+ /** Price value */
3
+ value: number;
4
+ /** Currency symbol (prefix) */
5
+ currency?: string;
6
+ /** Token symbol (suffix) */
7
+ token?: string;
8
+ /** Decimal places (auto if not specified) */
9
+ decimals?: number | 'auto';
10
+ /** Color based on positive/negative or explicit */
11
+ color?: 'auto' | 'buy' | 'sell' | 'neutral' | 'inherit';
12
+ /** Size variant */
13
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
14
+ /** Reference value for color comparison (defaults to 0) */
15
+ reference_value?: number;
16
+ /** Show + sign for positive */
17
+ show_sign?: boolean;
18
+ /** Locale for number formatting */
19
+ locale?: string;
20
+ /** Additional className */
21
+ className?: string;
22
+ }
23
+ /**
24
+ * OaPriceDisplay - Formatted price/number display with optional color
25
+ *
26
+ * @example
27
+ * <OaPriceDisplay value={84123.45} currency="$" />
28
+ * <OaPriceDisplay value={0.00015} token="BTC" decimals={8} />
29
+ * <OaPriceDisplay value={-2.5} color="auto" show_sign />
30
+ */
31
+ export declare function OaPriceDisplay({ value, currency, token, decimals, color, size, reference_value, show_sign, locale, className, }: OaPriceDisplayProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,23 @@
1
+ export interface OaSideIndicatorProps {
2
+ /** Side: buy/sell or long/short */
3
+ side: 'buy' | 'sell' | 'long' | 'short';
4
+ /** Display variant */
5
+ variant?: 'text' | 'badge' | 'dot';
6
+ /** Size */
7
+ size?: 'xs' | 'sm' | 'md';
8
+ /** Show text label */
9
+ show_label?: boolean;
10
+ /** Custom label (overrides default) */
11
+ label?: string;
12
+ /** Additional className */
13
+ className?: string;
14
+ }
15
+ /**
16
+ * OaSideIndicator - Buy/Sell or Long/Short indicator
17
+ *
18
+ * @example
19
+ * <OaSideIndicator side="buy" />
20
+ * <OaSideIndicator side="long" variant="badge" />
21
+ * <OaSideIndicator side="sell" variant="dot" />
22
+ */
23
+ export declare function OaSideIndicator({ side, variant, size, show_label, label, className, }: OaSideIndicatorProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,31 @@
1
+ import { ReactNode } from 'react';
2
+ export interface OaSideLineProps {
3
+ /** Title text */
4
+ title: string;
5
+ /** Description text */
6
+ description: string;
7
+ /** Optional icon element */
8
+ icon?: ReactNode;
9
+ /** Light or dark background variant */
10
+ variant?: 'light' | 'dark';
11
+ /** Animation delay for stagger effects */
12
+ delay?: number;
13
+ /** Custom className */
14
+ className?: string;
15
+ }
16
+ /**
17
+ * OaSideLine - Side-bordered feature card
18
+ *
19
+ * Minimal text card with left border accent and hover effect.
20
+ * Used for feature lists, specs, and key points.
21
+ *
22
+ * @example
23
+ * ```tsx
24
+ * <OaSideLine
25
+ * title="Post-Quantum"
26
+ * description="Dilithium-3 signatures. NIST Level 3."
27
+ * icon={<Shield className="w-5 h-5" />}
28
+ * />
29
+ * ```
30
+ */
31
+ export declare function OaSideLine({ title, description, icon, variant, delay, className, }: OaSideLineProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,20 @@
1
+ export interface OaStatCardProps {
2
+ /** Stat value (large text) */
3
+ value: string;
4
+ /** Stat label (small text) */
5
+ label: string;
6
+ /** Optional sublabel */
7
+ sublabel?: string;
8
+ /** Variant for light/dark backgrounds */
9
+ variant?: 'dark' | 'light';
10
+ /** Animation delay (for stagger effect) */
11
+ delay?: number;
12
+ /** Custom className */
13
+ className?: string;
14
+ }
15
+ /**
16
+ * OaStatCard - Display key metrics
17
+ *
18
+ * For stats like "56K TPS", "25ms FINALITY", etc.
19
+ */
20
+ export declare function OaStatCard({ value, label, sublabel, variant, delay, className, }: OaStatCardProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ export type OaTokenSymbol = 'RLM' | 'USDC' | 'USDT' | 'XAUT' | 'BTC' | 'ETH' | 'SOL' | 'XRP' | 'DOGE';
2
+ export interface OaTokenIconProps {
3
+ /** Token symbol */
4
+ symbol: OaTokenSymbol | string;
5
+ /** Icon size */
6
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
7
+ /** Additional className */
8
+ className?: string;
9
+ }
10
+ /**
11
+ * OaTokenIcon - Cryptocurrency token icon
12
+ *
13
+ * Displays standardized token icons for supported cryptocurrencies.
14
+ */
15
+ export declare function OaTokenIcon({ symbol, size, className, }: OaTokenIconProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,22 @@
1
+ export type OaCalloutType = 'info' | 'warning' | 'error' | 'success' | 'tip' | 'note';
2
+ export interface OaCalloutProps {
3
+ /** Type of callout - affects color and icon */
4
+ type?: OaCalloutType;
5
+ /** Optional title */
6
+ title?: string;
7
+ /** Content */
8
+ children: React.ReactNode;
9
+ /** Additional className */
10
+ className?: string;
11
+ }
12
+ /**
13
+ * OaCallout - Clean info/note boxes for documentation
14
+ *
15
+ * Minimal design: left border accent with hover effect.
16
+ *
17
+ * @example
18
+ * <OaCallout type="warning" title="Important">
19
+ * This action cannot be undone.
20
+ * </OaCallout>
21
+ */
22
+ export declare function OaCallout({ type, title, children, className, }: OaCalloutProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export { OaSpinner, OaLoadingDots, OaSkeleton, OaLoadingOverlay } from './loading';
2
+ export type { OaSpinnerProps, OaLoadingDotsProps, OaSkeletonProps, OaLoadingOverlayProps } from './loading';
3
+ export { OaModal } from './modal';
4
+ export type { OaModalProps } from './modal';
5
+ export { OaCallout } from './callout';
6
+ export type { OaCalloutProps, OaCalloutType } from './callout';
@@ -0,0 +1,46 @@
1
+ export interface OaSpinnerProps {
2
+ /** Spinner size */
3
+ size?: 'xs' | 'sm' | 'md' | 'lg';
4
+ /** Color variant */
5
+ color?: 'default' | 'primary' | 'buy' | 'sell' | 'muted';
6
+ /** Custom className */
7
+ className?: string;
8
+ }
9
+ /**
10
+ * OaSpinner - Spinning loader with trading color variants
11
+ */
12
+ export declare function OaSpinner({ size, color, className }: OaSpinnerProps): import("react/jsx-runtime").JSX.Element;
13
+ export interface OaLoadingDotsProps {
14
+ /** Custom className */
15
+ className?: string;
16
+ }
17
+ /**
18
+ * OaLoadingDots - Animated loading dots
19
+ */
20
+ export declare function OaLoadingDots({ className }: OaLoadingDotsProps): import("react/jsx-runtime").JSX.Element;
21
+ export interface OaSkeletonProps {
22
+ /** Width */
23
+ width?: string | number;
24
+ /** Height */
25
+ height?: string | number;
26
+ /** Rounded */
27
+ rounded?: 'sm' | 'md' | 'lg' | 'full';
28
+ /** Custom className */
29
+ className?: string;
30
+ }
31
+ /**
32
+ * OaSkeleton - Skeleton loading placeholder
33
+ */
34
+ export declare function OaSkeleton({ width, height, rounded, className }: OaSkeletonProps): import("react/jsx-runtime").JSX.Element;
35
+ export interface OaLoadingOverlayProps {
36
+ /** Loading state */
37
+ loading: boolean;
38
+ /** Children */
39
+ children: React.ReactNode;
40
+ /** Custom className */
41
+ className?: string;
42
+ }
43
+ /**
44
+ * OaLoadingOverlay - Full-screen or container loading overlay
45
+ */
46
+ export declare function OaLoadingOverlay({ loading, children, className }: OaLoadingOverlayProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,29 @@
1
+ import { ReactNode } from 'react';
2
+ export interface OaModalProps {
3
+ /** Modal is open */
4
+ is_open: boolean;
5
+ /** Close callback */
6
+ on_close: () => void;
7
+ /** Modal title */
8
+ title?: string;
9
+ /** Modal content */
10
+ children: ReactNode;
11
+ /** Modal size */
12
+ size?: 'sm' | 'md' | 'lg' | 'xl';
13
+ /** Show close button */
14
+ show_close?: boolean;
15
+ /** Close on backdrop click */
16
+ close_on_backdrop?: boolean;
17
+ /** Close on escape key */
18
+ close_on_escape?: boolean;
19
+ /** Additional className for modal content */
20
+ className?: string;
21
+ /** Footer content */
22
+ footer?: ReactNode;
23
+ }
24
+ /**
25
+ * OaModal - Modal dialog component
26
+ *
27
+ * Accessible modal with backdrop, keyboard support, and focus trapping.
28
+ */
29
+ export declare function OaModal({ is_open, on_close, title, children, size, show_close, close_on_backdrop, close_on_escape, className, footer, }: OaModalProps): import('react').ReactPortal | null;
@@ -0,0 +1,54 @@
1
+ import { ReactNode } from 'react';
2
+ export type OaButtonVariant = 'primary' | 'secondary' | 'ghost' | 'buy' | 'sell' | 'outline';
3
+ export type OaButtonSize = 'sm' | 'md' | 'lg';
4
+ export interface OaButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
5
+ /** Button variant */
6
+ variant?: OaButtonVariant;
7
+ /** Button size */
8
+ size?: OaButtonSize;
9
+ /** Full width */
10
+ full_width?: boolean;
11
+ /** Loading state */
12
+ loading?: boolean;
13
+ /** Left icon */
14
+ left_icon?: ReactNode;
15
+ /** Right icon */
16
+ right_icon?: ReactNode;
17
+ }
18
+ /**
19
+ * OaButton - Realm Button Component
20
+ *
21
+ * For links, use OaButtonLink instead.
22
+ *
23
+ * @example
24
+ * <OaButton variant="primary">Click me</OaButton>
25
+ * <OaButton variant="outline" size="lg">Secondary</OaButton>
26
+ */
27
+ export declare const OaButton: import('react').ForwardRefExoticComponent<OaButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
28
+ export interface OaButtonLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
29
+ /** Button variant */
30
+ variant?: OaButtonVariant;
31
+ /** Button size */
32
+ size?: OaButtonSize;
33
+ /** Full width */
34
+ full_width?: boolean;
35
+ /** Left icon */
36
+ left_icon?: ReactNode;
37
+ /** Right icon */
38
+ right_icon?: ReactNode;
39
+ }
40
+ /**
41
+ * OaButtonLink - Realm Button styled as a link
42
+ *
43
+ * Use when you need an anchor tag with button styling.
44
+ * For Next.js Link, wrap it or use className directly.
45
+ *
46
+ * @example
47
+ * <OaButtonLink href="/path" variant="primary">Go</OaButtonLink>
48
+ */
49
+ export declare const OaButtonLink: import('react').ForwardRefExoticComponent<OaButtonLinkProps & import('react').RefAttributes<HTMLAnchorElement>>;
50
+ export declare const oa_button_styles: {
51
+ base: string;
52
+ variant: Record<OaButtonVariant, string>;
53
+ size: Record<OaButtonSize, string>;
54
+ };
@@ -0,0 +1,8 @@
1
+ export { OaButton, OaButtonLink, oa_button_styles } from './button';
2
+ export type { OaButtonProps, OaButtonLinkProps, OaButtonVariant, OaButtonSize } from './button';
3
+ export { OaInput } from './input';
4
+ export type { OaInputProps } from './input';
5
+ export { OaNumberInput } from './number_input';
6
+ export type { OaNumberInputProps } from './number_input';
7
+ export { OaSelect } from './select';
8
+ export type { OaSelectProps, OaSelectOption } from './select';
@@ -0,0 +1,18 @@
1
+ export interface OaInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
2
+ /** Label text */
3
+ label?: string;
4
+ /** Error message */
5
+ error?: string;
6
+ /** Helper text */
7
+ helper?: string;
8
+ /** Left addon (icon or text) */
9
+ left_addon?: React.ReactNode;
10
+ /** Right addon (icon or text) */
11
+ right_addon?: React.ReactNode;
12
+ /** Full width */
13
+ full_width?: boolean;
14
+ }
15
+ /**
16
+ * OaInput - Realm Input Component
17
+ */
18
+ export declare const OaInput: import('react').ForwardRefExoticComponent<OaInputProps & import('react').RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,41 @@
1
+ export interface OaNumberInputProps {
2
+ /** Current value */
3
+ value: string;
4
+ /** Change handler - receives string value */
5
+ onChange: (value: string) => void;
6
+ /** Placeholder text */
7
+ placeholder?: string;
8
+ /** Minimum value */
9
+ min?: number;
10
+ /** Maximum value */
11
+ max?: number;
12
+ /** Step for increment/decrement buttons */
13
+ step?: number;
14
+ /** Number of decimal places */
15
+ decimals?: number;
16
+ /** Prefix (e.g. "$") */
17
+ prefix?: string;
18
+ /** Suffix (e.g. "USDC") */
19
+ suffix?: string;
20
+ /** Label text */
21
+ label?: string;
22
+ /** Error message */
23
+ error?: string;
24
+ /** Show increment/decrement buttons */
25
+ show_buttons?: boolean;
26
+ /** Disabled state */
27
+ disabled?: boolean;
28
+ /** Size variant */
29
+ size?: 'sm' | 'md' | 'lg';
30
+ /** Full width */
31
+ full_width?: boolean;
32
+ /** Custom className */
33
+ className?: string;
34
+ }
35
+ /**
36
+ * OaNumberInput - Number input with increment/decrement buttons
37
+ *
38
+ * Handles decimal input, min/max validation, and optional +/- buttons.
39
+ * Value is always stored/returned as a string for precision.
40
+ */
41
+ export declare const OaNumberInput: import('react').ForwardRefExoticComponent<OaNumberInputProps & import('react').RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,43 @@
1
+ export interface OaSelectOption {
2
+ value: string;
3
+ label: string;
4
+ /** Optional description shown below label */
5
+ description?: string;
6
+ /** Disabled state */
7
+ disabled?: boolean;
8
+ /** Optional icon/element */
9
+ icon?: React.ReactNode;
10
+ }
11
+ export interface OaSelectProps {
12
+ /** Options list */
13
+ options: OaSelectOption[];
14
+ /** Selected value */
15
+ value: string | null;
16
+ /** Change handler */
17
+ onChange: (value: string | null) => void;
18
+ /** Placeholder when nothing selected */
19
+ placeholder?: string;
20
+ /** Label text */
21
+ label?: string;
22
+ /** Error message */
23
+ error?: string;
24
+ /** Helper text */
25
+ helper?: string;
26
+ /** Enable search/filter */
27
+ searchable?: boolean;
28
+ /** Search placeholder */
29
+ search_placeholder?: string;
30
+ /** Disabled state */
31
+ disabled?: boolean;
32
+ /** Full width */
33
+ full_width?: boolean;
34
+ /** Additional class for trigger button */
35
+ className?: string;
36
+ /** Compact mode (smaller padding) */
37
+ compact?: boolean;
38
+ }
39
+ /**
40
+ * OaSelect - Realm Custom Select/Dropdown Component
41
+ * Replaces native <select> with a styled, portal-based dropdown
42
+ */
43
+ export declare function OaSelect({ options, value, onChange, placeholder, label, error, helper, searchable, search_placeholder, disabled, full_width, className, compact, }: OaSelectProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ export { OaScrambleText } from './scramble_text';
2
+ export type { OaScrambleIcon, OaScrambleTextHandle, OaScrambleTextProps } from './scramble_text';
3
+ export { OaScrambleLink } from './scramble_link';
4
+ export type { OaScrambleLinkProps } from './scramble_link';
5
+ export { OaScrambleButton } from './scramble_button';
6
+ export type { OaScrambleButtonProps } from './scramble_button';
7
+ export { use_oa_scramble_control } from './scramble_control';
@@ -0,0 +1,9 @@
1
+ import { ButtonHTMLAttributes } from 'react';
2
+ import { OaScrambleIcon } from './scramble_text';
3
+ export interface OaScrambleButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
4
+ children: string;
5
+ icon?: OaScrambleIcon | null;
6
+ icon_class_name?: string;
7
+ uppercase?: boolean;
8
+ }
9
+ export declare const OaScrambleButton: import('react').ForwardRefExoticComponent<OaScrambleButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,12 @@
1
+ import { OaScrambleTextHandle } from './scramble_text';
2
+ export declare function use_oa_scramble_control(): {
3
+ cycle: number;
4
+ text_ref: import('react').RefObject<OaScrambleTextHandle | null>;
5
+ mouseEnter(): void;
6
+ mouseLeave(): void;
7
+ focus(): void;
8
+ blur(): void;
9
+ pointerDown(): void;
10
+ click(): void;
11
+ keyDown(key: string): void;
12
+ };
@@ -0,0 +1,10 @@
1
+ import { AnchorHTMLAttributes, ElementType } from 'react';
2
+ import { OaScrambleIcon } from './scramble_text';
3
+ export interface OaScrambleLinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'children'> {
4
+ children: string;
5
+ as?: ElementType;
6
+ icon?: OaScrambleIcon | null;
7
+ icon_class_name?: string;
8
+ uppercase?: boolean;
9
+ }
10
+ export declare function OaScrambleLink({ children, as, icon, icon_class_name, uppercase, onMouseEnter, onMouseLeave, onFocus, onBlur, onPointerDown, onClick, onKeyDown, ...props }: OaScrambleLinkProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ export type OaScrambleIcon = 'arrow' | 'external';
2
+ export interface OaScrambleTextHandle {
3
+ finish: () => void;
4
+ }
5
+ export interface OaScrambleTextProps {
6
+ children: string;
7
+ trigger: number;
8
+ uppercase?: boolean;
9
+ external?: boolean;
10
+ icon?: OaScrambleIcon | null;
11
+ icon_class_name?: string;
12
+ }
13
+ export declare const OaScrambleText: import('react').ForwardRefExoticComponent<OaScrambleTextProps & import('react').RefAttributes<OaScrambleTextHandle>>;
@@ -0,0 +1,8 @@
1
+ export * from './nav';
2
+ export * from './layout';
3
+ export * from './display';
4
+ export * from './form';
5
+ export * from './feedback';
6
+ export * from './transition';
7
+ export * from './fx';
8
+ export * from './chart';
@@ -0,0 +1,17 @@
1
+ import { ReactNode } from 'react';
2
+ export interface OaContainerProps {
3
+ /** Container content */
4
+ children: ReactNode;
5
+ /** Container size */
6
+ size?: 'default' | 'wide' | 'full';
7
+ /** Additional className */
8
+ className?: string;
9
+ /** As element type */
10
+ as?: 'div' | 'section' | 'main' | 'article';
11
+ }
12
+ /**
13
+ * OaContainer - Responsive content container
14
+ *
15
+ * Equivalent to `rw-container-wide` in landing.
16
+ */
17
+ export declare function OaContainer({ children, size, className, as: Component, }: OaContainerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ export { OaWidget } from './widget';
2
+ export type { OaWidgetProps } from './widget';
3
+ export { OaTabs } from './tabs';
4
+ export type { OaTabsProps, OaTab } from './tabs';
5
+ export { OaContainer } from './container';
6
+ export type { OaContainerProps } from './container';
7
+ export { OaTable } from './table';
8
+ export type { OaTableProps, OaTableColumn } from './table';