Skip to content

Commit d5a25c9

Browse files
committed
fixed new configuration
1 parent 8379d48 commit d5a25c9

File tree

5 files changed

+7
-21
lines changed

5 files changed

+7
-21
lines changed

packages/uui-dialog-layout/README.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,13 @@ npm i @umbraco-ui/uui-dialog-layout
1515
Import the registration of `<uui-dialog-layout>` via:
1616

1717
```javascript
18-
import '@umbraco-ui/uui-dialog-layout/lib';
18+
import '@umbraco-ui/uui-dialog-layout';
1919
```
2020

2121
When looking to leverage the `UUIDialogLayoutElement` base class as a type and/or for extension purposes, do so via:
2222

2323
```javascript
24-
import { UUIDialogLayoutElement } from '@umbraco-ui/uui-dialog-layout/lib';
25-
```
26-
27-
### CDN
28-
29-
The component is available via CDN. This means it can be added to your application without the need of any bundler configuration. Here is how to use it with jsDelivr.
30-
31-
```html
32-
<!-- Latest Version -->
33-
<script src="https://cdn.jsdelivr.net/npm/@umbraco-ui/uui-dialog-layout@latest/dist/uui-dialog-layout.min.js"></script>
34-
35-
<!-- Specific version -->
36-
<script src="https://cdn.jsdelivr.net/npm/@umbraco-ui/[email protected]/dist/uui-dialog-layout.min.js"></script>
24+
import { UUIDialogLayoutElement } from '@umbraco-ui/uui-dialog-layout';
3725
```
3826

3927
## Usage
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
import { UUIDialogLayoutElement } from './uui-dialog-layout.element';
2-
import { defineElement } from '@umbraco-ui/uui-base/lib/registration';
3-
4-
defineElement('uui-dialog-layout', UUIDialogLayoutElement);
5-
61
export * from './uui-dialog-layout.element';

packages/uui-dialog-layout/lib/uui-dialog-layout.element.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import { LitElement, html, css } from 'lit';
22
import { property, state } from 'lit/decorators.js';
3+
import { defineElement } from '@umbraco-ui/uui-base/lib/registration';
34

45
/**
56
* @element uui-dialog-layout
67
*/
8+
@defineElement('uui-dialog-layout')
79
export class UUIDialogLayoutElement extends LitElement {
810
static styles = [
911
css`

packages/uui-dialog-layout/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@
1919
"bugs": {
2020
"url": "https://github.com/umbraco/Umbraco.UI/issues"
2121
},
22-
"main": "./dist/uui-dialog-layout.min.js",
22+
"main": "./lib/index.js",
2323
"module": "./lib/index.js",
24+
"types": "./lib/index.d.ts",
25+
"type": "module",
2426
"customElements": "custom-elements.json",
2527
"files": [
2628
"lib/**/*.d.ts",

packages/uui-dialog-layout/rollup.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ import { UUIProdConfig } from '../rollup-package.config';
22

33
export default UUIProdConfig({
44
entryPoints: ['index'],
5-
bundle: 'index',
65
});

0 commit comments

Comments
 (0)