Skip to content

Commit

Permalink
chore: cleanup playground
Browse files Browse the repository at this point in the history
  • Loading branch information
danielleroux committed Aug 13, 2024
1 parent 34ddfd0 commit 98fe47f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 98 deletions.
37 changes: 6 additions & 31 deletions packages/core/component-doc.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,15 +209,9 @@
}
],
"encapsulation": "shadow",
"dependents": [
"ix-playground-internal"
],
"dependents": [],
"dependencies": [],
"dependencyGraph": {
"ix-playground-internal": [
"ix-application"
]
},
"dependencyGraph": {},
"props": [
{
"name": "appSwitchConfig",
Expand Down Expand Up @@ -403,8 +397,7 @@
"encapsulation": "shadow",
"dependents": [
"ix-basic-navigation",
"ix-map-navigation",
"ix-playground-internal"
"ix-map-navigation"
],
"dependencies": [
"ix-menu-expand-icon",
Expand All @@ -431,9 +424,6 @@
],
"ix-map-navigation": [
"ix-application-header"
],
"ix-playground-internal": [
"ix-application-header"
]
},
"props": [
Expand Down Expand Up @@ -1238,7 +1228,6 @@
"ix-empty-state",
"ix-menu-about-news",
"ix-modal-example",
"ix-playground-internal",
"ix-split-button",
"ix-time-picker",
"ix-upload"
Expand Down Expand Up @@ -1274,9 +1263,6 @@
"ix-modal-example": [
"ix-button"
],
"ix-playground-internal": [
"ix-button"
],
"ix-split-button": [
"ix-button"
],
Expand Down Expand Up @@ -9136,9 +9122,7 @@
"docs": "",
"docsTags": [],
"encapsulation": "shadow",
"dependents": [
"ix-playground-internal"
],
"dependents": [],
"dependencies": [
"ix-menu-expand-icon",
"ix-icon-button",
Expand All @@ -9162,9 +9146,6 @@
],
"ix-tooltip": [
"ix-typography"
],
"ix-playground-internal": [
"ix-menu"
]
},
"props": [
Expand Down Expand Up @@ -11112,15 +11093,9 @@
"docs": "",
"docsTags": [],
"encapsulation": "shadow",
"dependents": [
"ix-playground-internal"
],
"dependents": [],
"dependencies": [],
"dependencyGraph": {
"ix-playground-internal": [
"ix-modal"
]
},
"dependencyGraph": {},
"props": [
{
"name": "animation",
Expand Down
68 changes: 1 addition & 67 deletions packages/core/src/components/playground/playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

import { Component, h, Host } from '@stencil/core';
import { showModal } from './../utils/modal';

/** @internal */
@Component({
Expand All @@ -19,72 +18,7 @@ import { showModal } from './../utils/modal';
scoped: true,
})
export class PlaygroundInternal {
componentDidLoad() {
setTimeout(() => {
const div = document.createElement('ix-modal');
div.innerHTML = `
<ix-modal-header>Create new Event</ix-modal-header>
<ix-modal-content>
<label>Event name</label>
<input
style="height: 120vh"
type="text"
/>
</ix-modal-content>
<ix-modal-footer>
<ix-button>Save</ix-button>
<ix-button>Cancel</ix-button>
</ix-modal-footer>
`;
showModal({
content: div,
size: 'full-screen',
});
}, 100);
}

render() {
return (
<Host>
<ix-application>
<ix-application-header></ix-application-header>
<ix-menu></ix-menu>
<div
style={{
display: 'block',
position: 'relative',
height: '100%',
}}
>
<ix-button
onClick={() => {
const div = document.createElement('ix-modal');
div.innerHTML = `
<ix-modal-header>Create new Event</ix-modal-header>
<ix-modal-content>
<label>Event name</label>
<input
style="height: 120vh"
type="text"
/>
</ix-modal-content>
<ix-modal-footer>
<ix-button>Save</ix-button>
<ix-button>Cancel</ix-button>
</ix-modal-footer>
`;
showModal({
content: div,
size: 'full-screen',
});
}}
>
Test
</ix-button>
</div>
<ix-button slot="bottom">Footer</ix-button>
</ix-application>
</Host>
);
return <Host></Host>;
}
}

0 comments on commit 98fe47f

Please sign in to comment.