@molecule/app-ide-react 1.20.2 → 1.20.3
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/dist/components/ChatPanel.d.ts.map +1 -1
- package/dist/components/ChatPanel.js +118 -118
- package/dist/components/ChatPanel.js.map +1 -1
- package/dist/components/WorkCard.d.ts +14 -0
- package/dist/components/WorkCard.d.ts.map +1 -0
- package/dist/components/WorkCard.js +23 -0
- package/dist/components/WorkCard.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { JSX, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The one card, pinned above the composer, that holds everything about the work
|
|
4
|
+
* in flight: the plan, background tasks, tests and uncommitted files. Each is a
|
|
5
|
+
* {@link DockStrip} section; this only draws the frame around them and hides the
|
|
6
|
+
* first section's divider.
|
|
7
|
+
* @param props - Component props.
|
|
8
|
+
* @param props.children - The sections (strips) to stack.
|
|
9
|
+
* @returns The framed card.
|
|
10
|
+
*/
|
|
11
|
+
export declare function WorkCard({ children }: {
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}): JSX.Element;
|
|
14
|
+
//# sourceMappingURL=WorkCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkCard.d.ts","sourceRoot":"","sources":["../../src/components/WorkCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAI3C;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,GAAG,CAAC,OAAO,CAmB3E"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useThemeMode } from '@molecule/app-react';
|
|
3
|
+
/**
|
|
4
|
+
* The one card, pinned above the composer, that holds everything about the work
|
|
5
|
+
* in flight: the plan, background tasks, tests and uncommitted files. Each is a
|
|
6
|
+
* {@link DockStrip} section; this only draws the frame around them and hides the
|
|
7
|
+
* first section's divider.
|
|
8
|
+
* @param props - Component props.
|
|
9
|
+
* @param props.children - The sections (strips) to stack.
|
|
10
|
+
* @returns The framed card.
|
|
11
|
+
*/
|
|
12
|
+
export function WorkCard({ children }) {
|
|
13
|
+
const isLight = useThemeMode() === 'light';
|
|
14
|
+
return (_jsx("div", { "data-mol-id": "work-card", style: {
|
|
15
|
+
margin: '0 12px 8px',
|
|
16
|
+
flexShrink: 0,
|
|
17
|
+
borderRadius: 8,
|
|
18
|
+
border: `1px solid ${isLight ? '#d0d7de' : '#3d444d'}`,
|
|
19
|
+
background: isLight ? '#f6f8fa' : 'rgba(255,255,255,0.04)',
|
|
20
|
+
overflow: 'hidden',
|
|
21
|
+
}, children: _jsx("div", { style: { marginTop: -1 }, children: children }) }));
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=WorkCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkCard.js","sourceRoot":"","sources":["../../src/components/WorkCard.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAElD;;;;;;;;GAQG;AACH,MAAM,UAAU,QAAQ,CAAC,EAAE,QAAQ,EAA2B;IAC5D,MAAM,OAAO,GAAG,YAAY,EAAE,KAAK,OAAO,CAAA;IAC1C,OAAO,CACL,6BACc,WAAW,EACvB,KAAK,EAAE;YACL,MAAM,EAAE,YAAY;YACpB,UAAU,EAAE,CAAC;YACb,YAAY,EAAE,CAAC;YACf,MAAM,EAAE,aAAa,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,EAAE;YACtD,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,wBAAwB;YAC1D,QAAQ,EAAE,QAAQ;SACnB,YAID,cAAK,KAAK,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,YAAG,QAAQ,GAAO,GAC3C,CACP,CAAA;AACH,CAAC"}
|