Skip to content

Commit 22899c1

Browse files
author
DevBot
committed
refactor(ui): consume element authoring interface
1 parent 8c80276 commit 22899c1

28 files changed

Lines changed: 57 additions & 55 deletions

packages/content/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default defineConfig({
6060
import { compileMdx } from '@openelement/content/mdx';
6161

6262
const mod = await compileMdx(source, {
63-
jsxImportSource: '@openelement/core',
63+
jsxImportSource: '@openelement/element',
6464
});
6565
```
6666

packages/element/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export type { IslandOptions } from './internal/protocol/island.ts';
8787
// ─── StyleSheet (re-export from core) ────────────────────
8888

8989
export { StyleSheet } from './internal/core/style-sheet.ts';
90+
export { createLogger } from './internal/core/logger.ts';
9091
export type { StyleSheetLike, StyleSheetRule } from './internal/protocol/style-sheet.ts';
9192

9293
// App-owned contracts use these types without reopening the retired protocol package.
@@ -101,3 +102,4 @@ export type {
101102
OpenElementRouteKind,
102103
OpenElementRouteNode,
103104
} from './internal/protocol/app-model.ts';
105+
export type { OpenElementPackageManifest } from './internal/protocol/manifest.ts';

packages/ui/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"imports": {},
3030
"compilerOptions": {
3131
"jsx": "react-jsx",
32-
"jsxImportSource": "@openelement/core"
32+
"jsxImportSource": "@openelement/element"
3333
},
3434
"publish": {
3535
"include": [

packages/ui/src/daisy-classes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* and SSR bundles do not depend on a file-system path next to import.meta.url.
66
*/
77

8-
import { StyleSheet, type StyleSheetLike } from '@openelement/core/style-sheet';
8+
import { StyleSheet, type StyleSheetLike } from '@openelement/element';
99

1010
const sheet: StyleSheetLike = new StyleSheet();
1111
sheet.replaceSync(`/**

packages/ui/src/manifest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* tools/generate-ui-manifest.ts and is run via `deno task generate:ui-manifest`.
66
*/
77

8-
import type { OpenElementPackageManifest } from '@openelement/protocol/manifest';
8+
import type { OpenElementPackageManifest } from '@openelement/element';
99
import manifestData from './generated-manifest.json' with { type: 'json' };
1010

1111
export const manifest: OpenElementPackageManifest = manifestData as OpenElementPackageManifest;

packages/ui/src/open-badge.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
/** @jsxImportSource @openelement/core */
1+
/** @jsxImportSource @openelement/element */
22
/**
33
* @openelement/ui - open-badge
44
*
55
* Compact status badge backed by Open Props semantic tokens.
66
*/
77

88
import { OpenElement } from '@openelement/element';
9-
import { StyleSheet, type StyleSheetLike } from '@openelement/core/style-sheet';
9+
import { StyleSheet, type StyleSheetLike } from '@openelement/element';
1010

1111
export const tagName = 'open-badge';
1212

packages/ui/src/open-brand-mark.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import { OpenElement } from '@openelement/element';
8-
import { StyleSheet, type StyleSheetLike } from '@openelement/core/style-sheet';
8+
import { StyleSheet, type StyleSheetLike } from '@openelement/element';
99

1010
export const tagName = 'open-brand-mark';
1111

packages/ui/src/open-button.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** @jsxImportSource @openelement/core */
1+
/** @jsxImportSource @openelement/element */
22
/**
33
* @openelement/ui - open-button
44
*
@@ -22,8 +22,8 @@
2222
*/
2323

2424
import { OpenElement } from '@openelement/element';
25-
import { StyleSheet, type StyleSheetLike } from '@openelement/core/style-sheet';
26-
import { escapeAttr } from '@openelement/core/static';
25+
import { StyleSheet, type StyleSheetLike } from '@openelement/element';
26+
import { escapeAttr } from '@openelement/element';
2727

2828
export const tagName = 'open-button';
2929

packages/ui/src/open-callout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** @jsxImportSource @openelement/core */
1+
/** @jsxImportSource @openelement/element */
22
/**
33
* @openelement/ui - OpenCallout Component
44
*
@@ -15,8 +15,8 @@
1515
*/
1616

1717
import { OpenElement } from '@openelement/element';
18-
import { StyleSheet, type StyleSheetLike } from '@openelement/core/style-sheet';
19-
import { escapeHtml } from '@openelement/core';
18+
import { StyleSheet, type StyleSheetLike } from '@openelement/element';
19+
import { escapeHtml } from '@openelement/element';
2020

2121
export const tagName = 'open-callout';
2222

packages/ui/src/open-card.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** @jsxImportSource @openelement/core */
1+
/** @jsxImportSource @openelement/element */
22
/**
33
* @openelement/ui - open-card
44
*
@@ -25,7 +25,7 @@
2525
*/
2626

2727
import { OpenElement } from '@openelement/element';
28-
import { StyleSheet, type StyleSheetLike } from '@openelement/core/style-sheet';
28+
import { StyleSheet, type StyleSheetLike } from '@openelement/element';
2929
export const tagName = 'open-card';
3030

3131
const sheet: StyleSheetLike = new StyleSheet();

0 commit comments

Comments
 (0)