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