@cognitap/radiant 0.0.66 → 0.0.67

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 (40) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/library/AppShell.d.ts +71 -0
  3. package/dist/library/AppShell.d.ts.map +1 -0
  4. package/dist/library/AppShell.js +189 -0
  5. package/dist/library/AppShell.js.map +1 -0
  6. package/dist/library/cn.d.ts.map +1 -1
  7. package/dist/library/cn.js +10 -0
  8. package/dist/library/cn.js.map +1 -1
  9. package/dist/library/index.d.ts +2 -0
  10. package/dist/library/index.d.ts.map +1 -1
  11. package/dist/library/index.js +1 -0
  12. package/dist/library/index.js.map +1 -1
  13. package/dist/library/motion/host.d.ts +2 -1
  14. package/dist/library/motion/host.d.ts.map +1 -1
  15. package/dist/library/motion/host.js.map +1 -1
  16. package/dist/library/motion/layoutHost.d.ts +5 -0
  17. package/dist/library/motion/layoutHost.d.ts.map +1 -0
  18. package/dist/library/motion/layoutHost.js +24 -0
  19. package/dist/library/motion/layoutHost.js.map +1 -0
  20. package/dist/library/motion/press.d.ts.map +1 -1
  21. package/dist/library/motion/press.js +6 -5
  22. package/dist/library/motion/press.js.map +1 -1
  23. package/dist/library/motion/react.d.ts.map +1 -1
  24. package/dist/library/motion/react.js +3 -1
  25. package/dist/library/motion/react.js.map +1 -1
  26. package/dist/library/styles.css +1 -1
  27. package/dist/library/themes/components.d.ts +22 -0
  28. package/dist/library/themes/components.d.ts.map +1 -1
  29. package/dist/library/themes/components.js +22 -0
  30. package/dist/library/themes/components.js.map +1 -1
  31. package/docs/architecture.md +9 -6
  32. package/package.json +1 -1
  33. package/src/AppShell.tsx +517 -0
  34. package/src/cn.ts +10 -0
  35. package/src/index.ts +26 -0
  36. package/src/motion/host.ts +2 -1
  37. package/src/motion/layoutHost.ts +25 -0
  38. package/src/motion/press.ts +6 -5
  39. package/src/motion/react.ts +3 -1
  40. package/src/themes/components.ts +22 -0
@@ -14,6 +14,7 @@ import { bindDisclosureMotion, bindDialogMotion } from './transitions.js'
14
14
  import { bindPressMotion } from './press.js'
15
15
  import { bindPopupMotion } from './popup.js'
16
16
  import { bindIndicatorMotion } from './indicator.js'
17
+ import { bindLayoutMotion } from './layoutHost.js'
17
18
  import { bindDrawerMotion } from './drawer.js'
18
19
  import { MotionProfileContext } from './context.js'
19
20
  import { resolveMotion, type MotionInteraction } from './config.js'
@@ -140,7 +141,8 @@ const hostRuntime = {
140
141
  disclosure: bindDisclosureMotion,
141
142
  dialog: bindDialogMotion,
142
143
  popup: bindPopupMotion,
143
- indicator: bindIndicatorMotion
144
+ indicator: bindIndicatorMotion,
145
+ layout: bindLayoutMotion
144
146
  }
145
147
  /** Opt into native Radiant spring interactions without adding a DOM wrapper. */
146
148
  export function MotionProvider({ children }: { children?: ReactNode }) {
@@ -73,6 +73,28 @@ export const componentRegistry = {
73
73
  color: 'css',
74
74
  shadow: 'css'
75
75
  },
76
+ appShell: {
77
+ background: 'css',
78
+ color: 'css',
79
+ headerBackground: 'css',
80
+ headerColor: 'css',
81
+ headerPadding: 'css',
82
+ headerMinHeight: 'css',
83
+ headerBorderColor: 'css',
84
+ headerBorderWidth: 'css',
85
+ mainPadding: 'css'
86
+ },
87
+ sidebar: {
88
+ width: 'css',
89
+ collapsedWidth: 'css',
90
+ background: 'css',
91
+ color: 'css',
92
+ padding: 'css',
93
+ gap: 'css',
94
+ borderColor: 'css',
95
+ borderWidth: 'css',
96
+ labelSize: 'css'
97
+ },
76
98
  resizable: {
77
99
  handleSize: 'css',
78
100
  handleColor: 'css',