@fluid-topics/ft-top-bar 0.3.12 → 0.3.13

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.
@@ -0,0 +1,8 @@
1
+ export declare const FtTopBarCssVariables: {
2
+ colorSurface: import("@fluid-topics/ft-wc-utils").FtCssVariable;
3
+ elevation02: import("@fluid-topics/ft-wc-utils").FtCssVariable;
4
+ titleFont: import("@fluid-topics/ft-wc-utils").FtCssVariable;
5
+ colorOnSurfaceHigh: import("@fluid-topics/ft-wc-utils").FtCssVariable;
6
+ };
7
+ export declare const styles: import("lit").CSSResult;
8
+ //# sourceMappingURL=ft-top-bar.css.d.ts.map
@@ -0,0 +1,62 @@
1
+ import { css } from "lit";
2
+ import { designSystemVariables, FtCssVariableFactory } from "@fluid-topics/ft-wc-utils";
3
+ export const FtTopBarCssVariables = {
4
+ colorSurface: FtCssVariableFactory.external(designSystemVariables.colorSurface, "Design system"),
5
+ elevation02: FtCssVariableFactory.external(designSystemVariables.elevation02, "Design system"),
6
+ titleFont: FtCssVariableFactory.external(designSystemVariables.titleFont, "Design system"),
7
+ colorOnSurfaceHigh: FtCssVariableFactory.external(designSystemVariables.colorOnSurfaceHigh, "Design system"),
8
+ };
9
+ // language=CSS
10
+ export const styles = css `
11
+ :host {
12
+ display: block;
13
+ position: absolute;
14
+ top: 0;
15
+ left: 0;
16
+ right: 0;
17
+ height: 48px;
18
+ z-index: 1;
19
+ }
20
+
21
+ #container {
22
+ background: ${FtTopBarCssVariables.colorSurface};
23
+ display: flex;
24
+ align-items: center;
25
+ box-shadow: ${FtTopBarCssVariables.elevation02};
26
+ padding: 0 16px;
27
+ height: 100%;
28
+ font-family: ${FtTopBarCssVariables.titleFont}, system-ui, sans-serif;
29
+ }
30
+
31
+ #left {
32
+ flex-grow: 1;
33
+ height: 100%;
34
+ display: flex;
35
+ align-items: center;
36
+ min-width: 0;
37
+ }
38
+
39
+ #right {
40
+ height: 100%;
41
+ display: flex;
42
+ align-items: center;
43
+ }
44
+
45
+ .title {
46
+ color: ${FtTopBarCssVariables.colorOnSurfaceHigh};
47
+ -webkit-font-smoothing: antialiased;
48
+ font-size: 0.875rem;
49
+ line-height: 2.25rem;
50
+ font-weight: 500;
51
+ letter-spacing: 0.0892857em;
52
+ text-transform: uppercase;
53
+ margin-right: 16px;
54
+ }
55
+
56
+ slot {
57
+ display: flex;
58
+ align-items: center;
59
+ min-width: 0;
60
+ }
61
+ `;
62
+ //# sourceMappingURL=ft-top-bar.css.js.map
@@ -1,14 +1,5 @@
1
1
  import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
2
- export interface FtTopBarProperties {
3
- title: string;
4
- heading: string;
5
- }
6
- export declare const FtTopBarCssVariables: {
7
- colorSurface: import("@fluid-topics/ft-wc-utils").FtCssVariable;
8
- elevation02: import("@fluid-topics/ft-wc-utils").FtCssVariable;
9
- titleFont: import("@fluid-topics/ft-wc-utils").FtCssVariable;
10
- colorOnSurfaceHigh: import("@fluid-topics/ft-wc-utils").FtCssVariable;
11
- };
2
+ import { FtTopBarProperties } from "./ft-top-bar.properties";
12
3
  export declare class FtTopBar extends FtLitElement implements FtTopBarProperties {
13
4
  static elementDefinitions: ElementDefinitionsMap;
14
5
  static styles: import("lit").CSSResult;
@@ -4,15 +4,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  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;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { css, html } from "lit";
7
+ import { html } from "lit";
8
8
  import { property } from "lit/decorators.js";
9
- import { designSystemVariables, FtCssVariableFactory, FtLitElement } from "@fluid-topics/ft-wc-utils";
10
- export const FtTopBarCssVariables = {
11
- colorSurface: FtCssVariableFactory.external(designSystemVariables.colorSurface, "Design system"),
12
- elevation02: FtCssVariableFactory.external(designSystemVariables.elevation02, "Design system"),
13
- titleFont: FtCssVariableFactory.external(designSystemVariables.titleFont, "Design system"),
14
- colorOnSurfaceHigh: FtCssVariableFactory.external(designSystemVariables.colorOnSurfaceHigh, "Design system"),
15
- };
9
+ import { FtLitElement } from "@fluid-topics/ft-wc-utils";
10
+ import { styles } from "./ft-top-bar.css";
16
11
  export class FtTopBar extends FtLitElement {
17
12
  constructor() {
18
13
  super(...arguments);
@@ -34,59 +29,7 @@ export class FtTopBar extends FtLitElement {
34
29
  }
35
30
  }
36
31
  FtTopBar.elementDefinitions = {};
37
- // language=CSS
38
- FtTopBar.styles = css `
39
- :host {
40
- display: block;
41
- position: absolute;
42
- top: 0;
43
- left: 0;
44
- right: 0;
45
- height: 48px;
46
- z-index: 1;
47
- }
48
-
49
- #container {
50
- background: ${FtTopBarCssVariables.colorSurface};
51
- display: flex;
52
- align-items: center;
53
- box-shadow: ${FtTopBarCssVariables.elevation02};
54
- padding: 0 16px;
55
- height: 100%;
56
- font-family: ${FtTopBarCssVariables.titleFont}, system-ui, sans-serif;
57
- }
58
-
59
- #left {
60
- flex-grow: 1;
61
- height: 100%;
62
- display: flex;
63
- align-items: center;
64
- min-width: 0;
65
- }
66
-
67
- #right {
68
- height: 100%;
69
- display: flex;
70
- align-items: center;
71
- }
72
-
73
- .title {
74
- color: ${FtTopBarCssVariables.colorOnSurfaceHigh};
75
- -webkit-font-smoothing: antialiased;
76
- font-size: 0.875rem;
77
- line-height: 2.25rem;
78
- font-weight: 500;
79
- letter-spacing: 0.0892857em;
80
- text-transform: uppercase;
81
- margin-right: 16px;
82
- }
83
-
84
- slot {
85
- display: flex;
86
- align-items: center;
87
- min-width: 0;
88
- }
89
- `;
32
+ FtTopBar.styles = styles;
90
33
  __decorate([
91
34
  property({ type: String })
92
35
  ], FtTopBar.prototype, "title", void 0);
@@ -1,4 +1,55 @@
1
- !function(t,e,i,s){var n=function(t,e,i,s){for(var n,l=arguments.length,o=l<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(n=t[a])&&(o=(l<3?n(o):l>3?n(e,i,o):n(e,i))||o);return l>3&&o&&Object.defineProperty(e,i,o),o};const l={colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),titleFont:e.FtCssVariableFactory.external(e.designSystemVariables.titleFont,"Design system"),colorOnSurfaceHigh:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceHigh,"Design system")};class o extends e.FtLitElement{constructor(){super(...arguments),this.title="",this.heading=""}render(){return i.html`
1
+ !function(t,e,i,s){const n={colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),titleFont:e.FtCssVariableFactory.external(e.designSystemVariables.titleFont,"Design system"),colorOnSurfaceHigh:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceHigh,"Design system")},l=i.css`
2
+ :host {
3
+ display: block;
4
+ position: absolute;
5
+ top: 0;
6
+ left: 0;
7
+ right: 0;
8
+ height: 48px;
9
+ z-index: 1;
10
+ }
11
+
12
+ #container {
13
+ background: ${n.colorSurface};
14
+ display: flex;
15
+ align-items: center;
16
+ box-shadow: ${n.elevation02};
17
+ padding: 0 16px;
18
+ height: 100%;
19
+ font-family: ${n.titleFont}, system-ui, sans-serif;
20
+ }
21
+
22
+ #left {
23
+ flex-grow: 1;
24
+ height: 100%;
25
+ display: flex;
26
+ align-items: center;
27
+ min-width: 0;
28
+ }
29
+
30
+ #right {
31
+ height: 100%;
32
+ display: flex;
33
+ align-items: center;
34
+ }
35
+
36
+ .title {
37
+ color: ${n.colorOnSurfaceHigh};
38
+ -webkit-font-smoothing: antialiased;
39
+ font-size: 0.875rem;
40
+ line-height: 2.25rem;
41
+ font-weight: 500;
42
+ letter-spacing: 0.0892857em;
43
+ text-transform: uppercase;
44
+ margin-right: 16px;
45
+ }
46
+
47
+ slot {
48
+ display: flex;
49
+ align-items: center;
50
+ min-width: 0;
51
+ }
52
+ `;var o=function(t,e,i,s){for(var n,l=arguments.length,o=l<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(n=t[a])&&(o=(l<3?n(o):l>3?n(e,i,o):n(e,i))||o);return l>3&&o&&Object.defineProperty(e,i,o),o};class a extends e.FtLitElement{constructor(){super(...arguments),this.title="",this.heading=""}render(){return i.html`
2
53
  <div id="container">
3
54
  <div id="left">
4
55
  <span class="title" ?hidden=${!this.title&&!this.heading}>${this.heading||this.title}</span>
@@ -8,55 +59,4 @@
8
59
  <slot name="rightSlot"></slot>
9
60
  </div>
10
61
  </div>
11
- `}}o.elementDefinitions={},o.styles=i.css`
12
- :host {
13
- display: block;
14
- position: absolute;
15
- top: 0;
16
- left: 0;
17
- right: 0;
18
- height: 48px;
19
- z-index: 1;
20
- }
21
-
22
- #container {
23
- background: ${l.colorSurface};
24
- display: flex;
25
- align-items: center;
26
- box-shadow: ${l.elevation02};
27
- padding: 0 16px;
28
- height: 100%;
29
- font-family: ${l.titleFont}, system-ui, sans-serif;
30
- }
31
-
32
- #left {
33
- flex-grow: 1;
34
- height: 100%;
35
- display: flex;
36
- align-items: center;
37
- min-width: 0;
38
- }
39
-
40
- #right {
41
- height: 100%;
42
- display: flex;
43
- align-items: center;
44
- }
45
-
46
- .title {
47
- color: ${l.colorOnSurfaceHigh};
48
- -webkit-font-smoothing: antialiased;
49
- font-size: 0.875rem;
50
- line-height: 2.25rem;
51
- font-weight: 500;
52
- letter-spacing: 0.0892857em;
53
- text-transform: uppercase;
54
- margin-right: 16px;
55
- }
56
-
57
- slot {
58
- display: flex;
59
- align-items: center;
60
- min-width: 0;
61
- }
62
- `,n([s.property({type:String})],o.prototype,"title",void 0),n([s.property({type:String})],o.prototype,"heading",void 0),e.customElement("ft-top-bar")(o),t.FtTopBar=o,t.FtTopBarCssVariables=l,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators);
62
+ `}}a.elementDefinitions={},a.styles=l,o([s.property({type:String})],a.prototype,"title",void 0),o([s.property({type:String})],a.prototype,"heading",void 0),e.customElement("ft-top-bar")(a),t.FtTopBar=a,t.FtTopBarCssVariables=n,t.styles=l,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators);
@@ -66,7 +66,58 @@ var tt,et;null==Y||Y(K,V),(null!==(x=globalThis.litHtmlVersions)&&void 0!==x?x:g
66
66
  -ms-user-select: none;
67
67
  user-select: none;
68
68
  }
69
- `,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(at=null===(rt=window.safari)||void 0===rt?void 0:rt.pushNotification)||void 0===at||at.toString());var ht=function(t,e,i,s){for(var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const dt={colorSurface:ot.external(nt.colorSurface,"Design system"),elevation02:ot.external(nt.elevation02,"Design system"),titleFont:ot.external(nt.titleFont,"Design system"),colorOnSurfaceHigh:ot.external(nt.colorOnSurfaceHigh,"Design system")};class ut extends ct{constructor(){super(...arguments),this.title="",this.heading=""}render(){return j`
69
+ `,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(at=null===(rt=window.safari)||void 0===rt?void 0:rt.pushNotification)||void 0===at||at.toString());const ht={colorSurface:ot.external(nt.colorSurface,"Design system"),elevation02:ot.external(nt.elevation02,"Design system"),titleFont:ot.external(nt.titleFont,"Design system"),colorOnSurfaceHigh:ot.external(nt.colorOnSurfaceHigh,"Design system")},dt=c`
70
+ :host {
71
+ display: block;
72
+ position: absolute;
73
+ top: 0;
74
+ left: 0;
75
+ right: 0;
76
+ height: 48px;
77
+ z-index: 1;
78
+ }
79
+
80
+ #container {
81
+ background: ${ht.colorSurface};
82
+ display: flex;
83
+ align-items: center;
84
+ box-shadow: ${ht.elevation02};
85
+ padding: 0 16px;
86
+ height: 100%;
87
+ font-family: ${ht.titleFont}, system-ui, sans-serif;
88
+ }
89
+
90
+ #left {
91
+ flex-grow: 1;
92
+ height: 100%;
93
+ display: flex;
94
+ align-items: center;
95
+ min-width: 0;
96
+ }
97
+
98
+ #right {
99
+ height: 100%;
100
+ display: flex;
101
+ align-items: center;
102
+ }
103
+
104
+ .title {
105
+ color: ${ht.colorOnSurfaceHigh};
106
+ -webkit-font-smoothing: antialiased;
107
+ font-size: 0.875rem;
108
+ line-height: 2.25rem;
109
+ font-weight: 500;
110
+ letter-spacing: 0.0892857em;
111
+ text-transform: uppercase;
112
+ margin-right: 16px;
113
+ }
114
+
115
+ slot {
116
+ display: flex;
117
+ align-items: center;
118
+ min-width: 0;
119
+ }
120
+ `;var ut,pt=function(t,e,i,s){for(var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ft extends ct{constructor(){super(...arguments),this.title="",this.heading=""}render(){return j`
70
121
  <div id="container">
71
122
  <div id="left">
72
123
  <span class="title" ?hidden=${!this.title&&!this.heading}>${this.heading||this.title}</span>
@@ -76,55 +127,4 @@ var tt,et;null==Y||Y(K,V),(null!==(x=globalThis.litHtmlVersions)&&void 0!==x?x:g
76
127
  <slot name="rightSlot"></slot>
77
128
  </div>
78
129
  </div>
79
- `}}var pt;ut.elementDefinitions={},ut.styles=c`
80
- :host {
81
- display: block;
82
- position: absolute;
83
- top: 0;
84
- left: 0;
85
- right: 0;
86
- height: 48px;
87
- z-index: 1;
88
- }
89
-
90
- #container {
91
- background: ${dt.colorSurface};
92
- display: flex;
93
- align-items: center;
94
- box-shadow: ${dt.elevation02};
95
- padding: 0 16px;
96
- height: 100%;
97
- font-family: ${dt.titleFont}, system-ui, sans-serif;
98
- }
99
-
100
- #left {
101
- flex-grow: 1;
102
- height: 100%;
103
- display: flex;
104
- align-items: center;
105
- min-width: 0;
106
- }
107
-
108
- #right {
109
- height: 100%;
110
- display: flex;
111
- align-items: center;
112
- }
113
-
114
- .title {
115
- color: ${dt.colorOnSurfaceHigh};
116
- -webkit-font-smoothing: antialiased;
117
- font-size: 0.875rem;
118
- line-height: 2.25rem;
119
- font-weight: 500;
120
- letter-spacing: 0.0892857em;
121
- text-transform: uppercase;
122
- margin-right: 16px;
123
- }
124
-
125
- slot {
126
- display: flex;
127
- align-items: center;
128
- min-width: 0;
129
- }
130
- `,ht([i({type:String})],ut.prototype,"title",void 0),ht([i({type:String})],ut.prototype,"heading",void 0),(pt="ft-top-bar",t=>{window.customElements.get(pt)||window.customElements.define(pt,t)})(ut),t.FtTopBar=ut,t.FtTopBarCssVariables=dt,Object.defineProperty(t,"i",{value:!0})}({});
130
+ `}}ft.elementDefinitions={},ft.styles=dt,pt([i({type:String})],ft.prototype,"title",void 0),pt([i({type:String})],ft.prototype,"heading",void 0),(ut="ft-top-bar",t=>{window.customElements.get(ut)||window.customElements.define(ut,t)})(ft),t.FtTopBar=ft,t.FtTopBarCssVariables=ht,t.styles=dt,Object.defineProperty(t,"i",{value:!0})}({});
@@ -0,0 +1,5 @@
1
+ export interface FtTopBarProperties {
2
+ title: string;
3
+ heading: string;
4
+ }
5
+ //# sourceMappingURL=ft-top-bar.properties.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ft-top-bar.properties.js.map
package/build/index.d.ts CHANGED
@@ -1,2 +1,4 @@
1
1
  export * from "./ft-top-bar";
2
+ export * from "./ft-top-bar.css";
3
+ export * from "./ft-top-bar.properties";
2
4
  //# sourceMappingURL=index.d.ts.map
package/build/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  import { customElement } from "@fluid-topics/ft-wc-utils";
2
2
  import { FtTopBar } from "./ft-top-bar";
3
3
  export * from "./ft-top-bar";
4
+ export * from "./ft-top-bar.css";
5
+ export * from "./ft-top-bar.properties";
4
6
  customElement("ft-top-bar")(FtTopBar);
5
7
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-top-bar",
3
- "version": "0.3.12",
3
+ "version": "0.3.13",
4
4
  "description": "A top bar for FT admin screens",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,8 +19,8 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "0.3.12",
22
+ "@fluid-topics/ft-wc-utils": "0.3.13",
23
23
  "lit": "2.2.8"
24
24
  },
25
- "gitHead": "126fc60c5ec4b89c3897901d1a92ee9b17286686"
25
+ "gitHead": "84b5fc920bc5d2bdb646b5da8815ad51caaf228e"
26
26
  }