@exmg/exm-collapsed 1.2.7 → 1.2.9
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/.rollup.cache/root/repo/packages/exm-collapsed/dist/exm-collapsed-base.d.ts +1 -1
- package/.rollup.cache/root/repo/packages/exm-collapsed/dist/exm-collapsed.stories.d.ts +19 -0
- package/.rollup.cache/root/repo/packages/exm-collapsed/dist/exm-collapsed.stories.js +64 -0
- package/dist/exm-collapsed-base.d.ts +1 -1
- package/dist/exm-collapsed-base.js +1 -1
- package/dist/exm-collapsed.js +1 -1
- package/dist/exm-collapsed.stories.d.ts +19 -0
- package/dist/node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js +31 -0
- package/package.json +2 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
import { ExmCollapsed } from './exm-collapsed.js';
|
|
3
|
+
import { LitElement } from 'lit';
|
|
4
|
+
import './exm-collapsed.js';
|
|
5
|
+
import '@material/web/icon/icon.js';
|
|
6
|
+
export declare class CollapsedDemo extends LitElement {
|
|
7
|
+
static styles: import("lit").CSSResult[];
|
|
8
|
+
opened: boolean;
|
|
9
|
+
constructor();
|
|
10
|
+
render(): import("lit").TemplateResult<1>;
|
|
11
|
+
}
|
|
12
|
+
declare const meta: {
|
|
13
|
+
title: string;
|
|
14
|
+
tags: string[];
|
|
15
|
+
render: () => import("lit").TemplateResult<1>;
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<ExmCollapsed>;
|
|
19
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { faker } from '@faker-js/faker';
|
|
3
|
+
import { css, html, LitElement } from 'lit';
|
|
4
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
5
|
+
import './exm-collapsed.js';
|
|
6
|
+
import '@material/web/icon/icon.js';
|
|
7
|
+
const lorem = faker.lorem.lines(6);
|
|
8
|
+
let CollapsedDemo = class CollapsedDemo extends LitElement {
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
this.opened = false;
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return html `
|
|
15
|
+
<div
|
|
16
|
+
role="button"
|
|
17
|
+
tabindex="0"
|
|
18
|
+
class="button"
|
|
19
|
+
aria-expanded=${this.opened}
|
|
20
|
+
@click=${() => (this.opened = !this.opened)}
|
|
21
|
+
aria-controls="collapsed"
|
|
22
|
+
>
|
|
23
|
+
See more
|
|
24
|
+
<md-icon class="icon">expand_more</md-icon>
|
|
25
|
+
</div>
|
|
26
|
+
<exm-collapsed id="collapsed" ?opened=${this.opened}>
|
|
27
|
+
<p>${lorem}</p>
|
|
28
|
+
</exm-collapsed>
|
|
29
|
+
`;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
CollapsedDemo.styles = [
|
|
33
|
+
css `
|
|
34
|
+
.button {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
color: var(--md-sys-color-on-surface);
|
|
38
|
+
font-size: 1rem;
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
justify-content: space-between;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.button[aria-expanded='true'] .icon {
|
|
44
|
+
-ms-transform: rotate(180deg);
|
|
45
|
+
transform: rotate(180deg);
|
|
46
|
+
transition: transform 150ms ease;
|
|
47
|
+
}
|
|
48
|
+
`,
|
|
49
|
+
];
|
|
50
|
+
__decorate([
|
|
51
|
+
property({ type: Boolean })
|
|
52
|
+
], CollapsedDemo.prototype, "opened", void 0);
|
|
53
|
+
CollapsedDemo = __decorate([
|
|
54
|
+
customElement('demo-collapsed')
|
|
55
|
+
], CollapsedDemo);
|
|
56
|
+
export { CollapsedDemo };
|
|
57
|
+
const meta = {
|
|
58
|
+
title: 'Packages/Collapsed',
|
|
59
|
+
tags: ['autodocs'],
|
|
60
|
+
render: () => html `<demo-collapsed></demo-collapsed>`,
|
|
61
|
+
};
|
|
62
|
+
export default meta;
|
|
63
|
+
export const Default = {};
|
|
64
|
+
//# sourceMappingURL=exm-collapsed.stories.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { html } from 'lit';
|
|
3
3
|
import { property, state } from 'lit/decorators.js';
|
|
4
4
|
import { observer, ExmgElement } from '@exmg/lit-base/index.js';
|
package/dist/exm-collapsed.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
1
|
+
import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { customElement } from 'lit/decorators.js';
|
|
3
3
|
import { ExmCollapsedBase } from './exm-collapsed-base.js';
|
|
4
4
|
import { style } from './styles/exm-collapsed-styles-css.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
import { ExmCollapsed } from './exm-collapsed.js';
|
|
3
|
+
import { LitElement } from 'lit';
|
|
4
|
+
import './exm-collapsed.js';
|
|
5
|
+
import '@material/web/icon/icon.js';
|
|
6
|
+
export declare class CollapsedDemo extends LitElement {
|
|
7
|
+
static styles: import("lit").CSSResult[];
|
|
8
|
+
opened: boolean;
|
|
9
|
+
constructor();
|
|
10
|
+
render(): import("lit").TemplateResult<1>;
|
|
11
|
+
}
|
|
12
|
+
declare const meta: {
|
|
13
|
+
title: string;
|
|
14
|
+
tags: string[];
|
|
15
|
+
render: () => import("lit").TemplateResult<1>;
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<ExmCollapsed>;
|
|
19
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
function __decorate(decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
26
|
+
var e = new Error(message);
|
|
27
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export { __decorate };
|
|
31
|
+
//# sourceMappingURL=tslib.es6.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exmg/exm-collapsed",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "c27c4ffabda0c6a509df58537017af65719d1e57"
|
|
39
39
|
}
|