@styleon/foundation 0.0.0-next.0 → 0.0.0-next.2
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/button/button.component.d.ts +9 -2
- package/dist/button/button.component.js +31 -23
- package/dist/button/button.scss.js +2 -2
- package/dist/common/context/tab-context.d.ts +7 -0
- package/dist/common/context/tab-context.js +5 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +12 -4
- package/dist/node_modules/@lit/context/lib/context-request-event.js +13 -0
- package/dist/node_modules/@lit/context/lib/controllers/context-consumer.js +29 -0
- package/dist/node_modules/@lit/context/lib/controllers/context-provider.js +37 -0
- package/dist/node_modules/@lit/context/lib/create-context.js +11 -0
- package/dist/node_modules/@lit/context/lib/decorators/consume.js +22 -0
- package/dist/node_modules/@lit/context/lib/decorators/provide.js +46 -0
- package/dist/node_modules/@lit/context/lib/value-notifier.js +36 -0
- package/dist/node_modules/@lit/reactive-element/decorators/base.js +9 -0
- package/dist/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js +19 -0
- package/dist/node_modules/@lit/reactive-element/decorators/state.js +12 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js +29 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +80 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/Subject.js +109 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +96 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +104 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js +6 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +15 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +6 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js +9 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +13 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +9 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +9 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +6 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +6 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +6 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +5 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +11 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +9 -0
- package/dist/node_modules/tslib/tslib.es6.js +54 -0
- package/dist/src/common/scale.enum.js +4 -0
- package/dist/tab/tab.component.d.ts +16 -0
- package/dist/tab/tab.component.js +65 -0
- package/dist/tab-panel/tab-panel.component.d.ts +16 -0
- package/dist/tab-panel/tab-panel.component.js +70 -0
- package/dist/tabs/tabs.component.d.ts +18 -0
- package/dist/tabs/tabs.component.js +65 -0
- package/dist/tabs/tabs.service.d.ts +14 -0
- package/dist/tabs/tabs.service.js +16 -0
- package/package.json +12 -7
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
-
|
|
2
|
+
import { Scale } from '../../common/scale.enum';
|
|
3
|
+
export declare class StyleonButton extends LitElement {
|
|
3
4
|
static styles: import('lit').CSSResult;
|
|
4
|
-
variant: 'primary' | 'secondary';
|
|
5
|
+
variant: 'primary' | 'secondary' | 'tertiary';
|
|
6
|
+
/**
|
|
7
|
+
* @type {Scale.MINI | Scale.NORMAL}
|
|
8
|
+
*/
|
|
9
|
+
scale: Scale;
|
|
10
|
+
link: boolean;
|
|
11
|
+
href: string;
|
|
5
12
|
render(): TemplateResult;
|
|
6
13
|
}
|
|
@@ -1,32 +1,40 @@
|
|
|
1
1
|
import "../node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
-
import { html as
|
|
3
|
-
import { LitElement as
|
|
4
|
-
import
|
|
5
|
-
import { customElement as
|
|
6
|
-
import { property as
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
import { html as f } from "../node_modules/lit-html/lit-html.js";
|
|
3
|
+
import { LitElement as u } from "../node_modules/lit-element/lit-element.js";
|
|
4
|
+
import y from "./button.scss.js";
|
|
5
|
+
import { customElement as c } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
6
|
+
import { property as p } from "../node_modules/@lit/reactive-element/decorators/property.js";
|
|
7
|
+
import { Scale as m } from "../src/common/scale.enum.js";
|
|
8
|
+
import { unsafeCSS as h, css as v } from "../node_modules/@lit/reactive-element/css-tag.js";
|
|
9
|
+
var S = Object.defineProperty, b = Object.getOwnPropertyDescriptor, e = (a, o, l, s) => {
|
|
10
|
+
for (var t = s > 1 ? void 0 : s ? b(o, l) : o, n = a.length - 1, i; n >= 0; n--)
|
|
11
|
+
(i = a[n]) && (t = (s ? i(o, l, t) : i(t)) || t);
|
|
12
|
+
return s && t && S(o, l, t), t;
|
|
12
13
|
};
|
|
13
|
-
let
|
|
14
|
+
let r = class extends u {
|
|
14
15
|
constructor() {
|
|
15
|
-
super(...arguments), this.variant = "primary";
|
|
16
|
+
super(...arguments), this.variant = "primary", this.scale = m.NORMAL, this.link = !1, this.href = "";
|
|
16
17
|
}
|
|
17
18
|
render() {
|
|
18
|
-
return
|
|
19
|
-
<slot></slot>
|
|
20
|
-
</button>`;
|
|
19
|
+
return this.link ? f`<a href=${this.href}><slot></slot></a>` : f`<button><slot></slot></button>`;
|
|
21
20
|
}
|
|
22
21
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
],
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
],
|
|
22
|
+
r.styles = v`${h(y)}`;
|
|
23
|
+
e([
|
|
24
|
+
p({ type: String, reflect: !0, attribute: "variant" })
|
|
25
|
+
], r.prototype, "variant", 2);
|
|
26
|
+
e([
|
|
27
|
+
p({ type: m })
|
|
28
|
+
], r.prototype, "scale", 2);
|
|
29
|
+
e([
|
|
30
|
+
p({ type: Boolean, reflect: !0 })
|
|
31
|
+
], r.prototype, "link", 2);
|
|
32
|
+
e([
|
|
33
|
+
p({ type: String, reflect: !0 })
|
|
34
|
+
], r.prototype, "href", 2);
|
|
35
|
+
r = e([
|
|
36
|
+
c("styleon-button")
|
|
37
|
+
], r);
|
|
30
38
|
export {
|
|
31
|
-
|
|
39
|
+
r as StyleonButton
|
|
32
40
|
};
|