@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.
- package/CHANGELOG.md +5 -0
- package/dist/library/AppShell.d.ts +71 -0
- package/dist/library/AppShell.d.ts.map +1 -0
- package/dist/library/AppShell.js +189 -0
- package/dist/library/AppShell.js.map +1 -0
- package/dist/library/cn.d.ts.map +1 -1
- package/dist/library/cn.js +10 -0
- package/dist/library/cn.js.map +1 -1
- package/dist/library/index.d.ts +2 -0
- package/dist/library/index.d.ts.map +1 -1
- package/dist/library/index.js +1 -0
- package/dist/library/index.js.map +1 -1
- package/dist/library/motion/host.d.ts +2 -1
- package/dist/library/motion/host.d.ts.map +1 -1
- package/dist/library/motion/host.js.map +1 -1
- package/dist/library/motion/layoutHost.d.ts +5 -0
- package/dist/library/motion/layoutHost.d.ts.map +1 -0
- package/dist/library/motion/layoutHost.js +24 -0
- package/dist/library/motion/layoutHost.js.map +1 -0
- package/dist/library/motion/press.d.ts.map +1 -1
- package/dist/library/motion/press.js +6 -5
- package/dist/library/motion/press.js.map +1 -1
- package/dist/library/motion/react.d.ts.map +1 -1
- package/dist/library/motion/react.js +3 -1
- package/dist/library/motion/react.js.map +1 -1
- package/dist/library/styles.css +1 -1
- package/dist/library/themes/components.d.ts +22 -0
- package/dist/library/themes/components.d.ts.map +1 -1
- package/dist/library/themes/components.js +22 -0
- package/dist/library/themes/components.js.map +1 -1
- package/docs/architecture.md +9 -6
- package/package.json +1 -1
- package/src/AppShell.tsx +517 -0
- package/src/cn.ts +10 -0
- package/src/index.ts +26 -0
- package/src/motion/host.ts +2 -1
- package/src/motion/layoutHost.ts +25 -0
- package/src/motion/press.ts +6 -5
- package/src/motion/react.ts +3 -1
- package/src/themes/components.ts +22 -0
package/src/motion/react.ts
CHANGED
|
@@ -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 }) {
|
package/src/themes/components.ts
CHANGED
|
@@ -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',
|