@rdna/radiants 0.1.0 → 0.1.2

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 (54) hide show
  1. package/components/core/Accordion/Accordion.dna.json +16 -0
  2. package/components/core/Accordion/Accordion.schema.json +48 -0
  3. package/components/core/Alert/Alert.dna.json +56 -0
  4. package/components/core/Alert/Alert.schema.json +66 -0
  5. package/components/core/Badge/Badge.dna.json +48 -0
  6. package/components/core/Badge/Badge.schema.json +49 -0
  7. package/components/core/Breadcrumbs/Breadcrumbs.dna.json +29 -0
  8. package/components/core/Breadcrumbs/Breadcrumbs.schema.json +39 -0
  9. package/components/core/Button/Button.dna.json +58 -0
  10. package/components/core/Button/Button.schema.json +84 -0
  11. package/components/core/Card/Card.dna.json +21 -0
  12. package/components/core/Card/Card.schema.json +23 -0
  13. package/components/core/Checkbox/Checkbox.dna.json +38 -0
  14. package/components/core/Checkbox/Checkbox.schema.json +55 -0
  15. package/components/core/ContextMenu/ContextMenu.dna.json +25 -0
  16. package/components/core/ContextMenu/ContextMenu.schema.json +30 -0
  17. package/components/core/CountdownTimer/CountdownTimer.dna.json +79 -0
  18. package/components/core/CountdownTimer/CountdownTimer.schema.json +71 -0
  19. package/components/core/Dialog/Dialog.dna.json +28 -0
  20. package/components/core/Dialog/Dialog.schema.json +40 -0
  21. package/components/core/Divider/Divider.dna.json +16 -0
  22. package/components/core/Divider/Divider.schema.json +41 -0
  23. package/components/core/DropdownMenu/DropdownMenu.dna.json +28 -0
  24. package/components/core/DropdownMenu/DropdownMenu.schema.json +55 -0
  25. package/components/core/HelpPanel/HelpPanel.dna.json +24 -0
  26. package/components/core/HelpPanel/HelpPanel.schema.json +47 -0
  27. package/components/core/Input/Input.dna.json +33 -0
  28. package/components/core/Input/Input.schema.json +33 -0
  29. package/components/core/MockStatesPopover/MockStatesPopover.dna.json +33 -0
  30. package/components/core/MockStatesPopover/MockStatesPopover.schema.json +80 -0
  31. package/components/core/Popover/Popover.dna.json +10 -0
  32. package/components/core/Popover/Popover.schema.json +46 -0
  33. package/components/core/Progress/Progress.dna.json +29 -0
  34. package/components/core/Progress/Progress.schema.json +57 -0
  35. package/components/core/Select/Select.dna.json +42 -0
  36. package/components/core/Select/Select.schema.json +66 -0
  37. package/components/core/Sheet/Sheet.dna.json +28 -0
  38. package/components/core/Sheet/Sheet.schema.json +53 -0
  39. package/components/core/Slider/Slider.dna.json +49 -0
  40. package/components/core/Slider/Slider.schema.json +70 -0
  41. package/components/core/Switch/Switch.dna.json +47 -0
  42. package/components/core/Switch/Switch.schema.json +64 -0
  43. package/components/core/Tabs/Tabs.dna.json +39 -0
  44. package/components/core/Tabs/Tabs.schema.json +62 -0
  45. package/components/core/Toast/Toast.dna.json +31 -0
  46. package/components/core/Toast/Toast.schema.json +57 -0
  47. package/components/core/Tooltip/Tooltip.dna.json +46 -0
  48. package/components/core/Tooltip/Tooltip.schema.json +58 -0
  49. package/components/core/Web3ActionBar/Web3ActionBar.dna.json +23 -0
  50. package/components/core/Web3ActionBar/Web3ActionBar.schema.json +50 -0
  51. package/dist/schemas/index.d.mts +6446 -0
  52. package/dist/schemas/index.mjs +2386 -0
  53. package/dist/schemas/index.mjs.map +1 -0
  54. package/package.json +11 -2
@@ -0,0 +1,31 @@
1
+ {
2
+ "component": "Toast",
3
+ "tokenBindings": {
4
+ "default": {
5
+ "background": "surface-primary",
6
+ "text": "content-primary",
7
+ "border": "edge-primary",
8
+ "shadow": "shadow-card"
9
+ },
10
+ "success": {
11
+ "background": "status-success",
12
+ "text": "content-primary",
13
+ "border": "status-success"
14
+ },
15
+ "warning": {
16
+ "background": "status-warning",
17
+ "text": "content-primary",
18
+ "border": "surface-tertiary"
19
+ },
20
+ "error": {
21
+ "background": "status-error",
22
+ "text": "content-primary",
23
+ "border": "status-error"
24
+ },
25
+ "info": {
26
+ "background": "status-info",
27
+ "text": "content-primary",
28
+ "border": "status-info"
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "Toast",
3
+ "description": "Toast notification system with provider pattern. Displays temporary feedback messages with variant-based styling.",
4
+ "props": {
5
+ "variant": {
6
+ "type": "enum",
7
+ "values": ["default", "success", "warning", "error", "info"],
8
+ "default": "default",
9
+ "description": "Visual variant controlling background and border colors"
10
+ },
11
+ "title": {
12
+ "type": "string",
13
+ "required": true,
14
+ "description": "Toast title text displayed in uppercase"
15
+ },
16
+ "description": {
17
+ "type": "string",
18
+ "description": "Optional description text below the title"
19
+ },
20
+ "duration": {
21
+ "type": "number",
22
+ "default": 5000,
23
+ "description": "Auto-dismiss duration in milliseconds. Set to 0 for persistent toasts"
24
+ },
25
+ "icon": {
26
+ "type": "ReactNode",
27
+ "description": "Custom icon element - overrides variant default"
28
+ }
29
+ },
30
+ "slots": {
31
+ "icon": {
32
+ "description": "Icon slot for custom icons per variant or toast"
33
+ },
34
+ "closeIcon": {
35
+ "description": "Custom close button icon"
36
+ }
37
+ },
38
+ "subcomponents": ["ToastProvider", "useToast"],
39
+ "examples": [
40
+ {
41
+ "name": "Basic toast via hook",
42
+ "code": "const { addToast } = useToast();\naddToast({ title: 'Saved!', description: 'Your changes have been saved.' });"
43
+ },
44
+ {
45
+ "name": "Success toast",
46
+ "code": "addToast({ title: 'Success', description: 'Operation completed.', variant: 'success' });"
47
+ },
48
+ {
49
+ "name": "Error toast",
50
+ "code": "addToast({ title: 'Error', description: 'Something went wrong.', variant: 'error' });"
51
+ },
52
+ {
53
+ "name": "Provider setup",
54
+ "code": "<ToastProvider defaultDuration={5000}>\n <App />\n</ToastProvider>"
55
+ }
56
+ ]
57
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "component": "Tooltip",
3
+ "description": "Token bindings for Tooltip component",
4
+ "tokenBindings": {
5
+ "base": {
6
+ "background": "surface-secondary",
7
+ "text": "content-inverted",
8
+ "font": "heading",
9
+ "borderRadius": "sm",
10
+ "paddingX": "spacing-sm",
11
+ "paddingY": "spacing-xs"
12
+ },
13
+ "arrow": {
14
+ "border": "surface-secondary"
15
+ }
16
+ },
17
+ "sizes": {
18
+ "sm": {
19
+ "fontSize": "xs"
20
+ },
21
+ "md": {
22
+ "fontSize": "xs"
23
+ },
24
+ "lg": {
25
+ "fontSize": "sm"
26
+ }
27
+ },
28
+ "positions": {
29
+ "top": {
30
+ "offset": "mb-2",
31
+ "arrowPosition": "top-full"
32
+ },
33
+ "bottom": {
34
+ "offset": "mt-2",
35
+ "arrowPosition": "bottom-full"
36
+ },
37
+ "left": {
38
+ "offset": "mr-2",
39
+ "arrowPosition": "left-full"
40
+ },
41
+ "right": {
42
+ "offset": "ml-2",
43
+ "arrowPosition": "right-full"
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "Tooltip",
3
+ "description": "Contextual hover/focus information overlay positioned relative to a trigger element. Supports multiple positions and delayed display.",
4
+ "props": {
5
+ "content": {
6
+ "type": "ReactNode",
7
+ "required": true,
8
+ "description": "Tooltip content to display"
9
+ },
10
+ "position": {
11
+ "type": "enum",
12
+ "values": ["top", "bottom", "left", "right"],
13
+ "default": "top",
14
+ "description": "Position relative to trigger element"
15
+ },
16
+ "delay": {
17
+ "type": "number",
18
+ "default": 0,
19
+ "description": "Delay before showing tooltip (ms). Set to 0 for instant display."
20
+ },
21
+ "size": {
22
+ "type": "enum",
23
+ "values": ["sm", "md", "lg"],
24
+ "default": "md",
25
+ "description": "Size preset controlling text size (sm=12px, md=12px, lg=14px)"
26
+ },
27
+ "className": {
28
+ "type": "string",
29
+ "description": "Additional CSS classes for the wrapper element"
30
+ }
31
+ },
32
+ "slots": {
33
+ "children": {
34
+ "description": "Trigger element that activates the tooltip on hover/focus"
35
+ },
36
+ "content": {
37
+ "description": "Tooltip content (passed via content prop)"
38
+ }
39
+ },
40
+ "examples": [
41
+ {
42
+ "name": "Basic tooltip",
43
+ "code": "<Tooltip content=\"Click to submit\"><Button>Submit</Button></Tooltip>"
44
+ },
45
+ {
46
+ "name": "Bottom position",
47
+ "code": "<Tooltip content=\"More options\" position=\"bottom\"><IconButton icon={<MenuIcon />} /></Tooltip>"
48
+ },
49
+ {
50
+ "name": "With delay",
51
+ "code": "<Tooltip content=\"Detailed info\" delay={500}><HelpIcon /></Tooltip>"
52
+ },
53
+ {
54
+ "name": "Large size",
55
+ "code": "<Tooltip content=\"Important action\" size=\"lg\"><Button>Action</Button></Tooltip>"
56
+ }
57
+ ]
58
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "component": "Web3ActionBar",
3
+ "description": "Token bindings for Web3ActionBar component",
4
+ "tokenBindings": {
5
+ "base": {
6
+ "background": "surface-primary",
7
+ "borderTop": "edge-primary",
8
+ "paddingX": "spacing-sm",
9
+ "paddingY": "spacing-sm",
10
+ "gap": "spacing-md"
11
+ }
12
+ },
13
+ "elements": {
14
+ "walletAddress": {
15
+ "text": "content-primary",
16
+ "font": "mono",
17
+ "fontSize": "xs"
18
+ },
19
+ "actionGroup": {
20
+ "gap": "spacing-sm"
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "Web3ActionBar",
3
+ "description": "Universal bottom bar for Web3 apps providing wallet connection and blockchain action buttons. Pairs with TabList for hybrid web2/web3 app navigation.",
4
+ "props": {
5
+ "isConnected": {
6
+ "type": "boolean",
7
+ "required": true,
8
+ "description": "Whether a wallet is currently connected"
9
+ },
10
+ "walletAddress": {
11
+ "type": "string",
12
+ "description": "Connected wallet address to display (truncated automatically)"
13
+ },
14
+ "onConnect": {
15
+ "type": "function",
16
+ "required": true,
17
+ "description": "Callback when connect button is clicked"
18
+ },
19
+ "onDisconnect": {
20
+ "type": "function",
21
+ "description": "Callback when disconnect button is clicked"
22
+ },
23
+ "className": {
24
+ "type": "string",
25
+ "description": "Additional CSS classes for the container"
26
+ }
27
+ },
28
+ "slots": {
29
+ "children": {
30
+ "description": "App-specific action buttons (My Vault, Place Offering, Stake, etc.) shown when connected"
31
+ },
32
+ "disconnectIcon": {
33
+ "description": "Icon component for the disconnect button"
34
+ }
35
+ },
36
+ "examples": [
37
+ {
38
+ "name": "Disconnected state",
39
+ "code": "<Web3ActionBar isConnected={false} onConnect={handleConnect} />"
40
+ },
41
+ {
42
+ "name": "Connected with actions",
43
+ "code": "<Web3ActionBar\n isConnected={true}\n walletAddress=\"0x1234...5678\"\n onConnect={handleConnect}\n onDisconnect={handleDisconnect}\n disconnectIcon={<CloseIcon />}\n>\n <Button variant=\"outline\">My Vault</Button>\n <Button>Place Offering</Button>\n</Web3ActionBar>"
44
+ },
45
+ {
46
+ "name": "Connected minimal",
47
+ "code": "<Web3ActionBar\n isConnected={true}\n walletAddress={walletAddress}\n onConnect={handleConnect}\n onDisconnect={handleDisconnect}\n disconnectIcon={<XIcon />}\n/>"
48
+ }
49
+ ]
50
+ }