@onivoro/server-html 0.0.3 → 0.0.5

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 (35) hide show
  1. package/package.json +1 -1
  2. package/src/index.d.ts +6 -0
  3. package/src/index.js +6 -0
  4. package/src/index.js.map +1 -1
  5. package/src/lib/attributes.type.d.ts +4 -0
  6. package/src/lib/attributes.type.js +3 -0
  7. package/src/lib/attributes.type.js.map +1 -0
  8. package/src/lib/element-renderer.type.d.ts +2 -0
  9. package/src/lib/element-renderer.type.js +3 -0
  10. package/src/lib/element-renderer.type.js.map +1 -0
  11. package/src/lib/element.function.d.ts +2 -0
  12. package/src/lib/element.function.js +14 -0
  13. package/src/lib/element.function.js.map +1 -0
  14. package/src/lib/elements.d.ts +25 -0
  15. package/src/lib/elements.js +29 -0
  16. package/src/lib/elements.js.map +1 -0
  17. package/src/lib/email-body.function.d.ts +2 -1
  18. package/src/lib/email-body.function.js +22 -28
  19. package/src/lib/email-body.function.js.map +1 -1
  20. package/src/lib/html.function.js +8 -8
  21. package/src/lib/html.function.js.map +1 -1
  22. package/src/lib/login-button.function.d.ts +1 -1
  23. package/src/lib/login-button.function.js +14 -3
  24. package/src/lib/login-button.function.js.map +1 -1
  25. package/src/lib/self-closing-element-renderer.type.d.ts +2 -0
  26. package/src/lib/self-closing-element-renderer.type.js +3 -0
  27. package/src/lib/self-closing-element-renderer.type.js.map +1 -0
  28. package/src/lib/self-closing-element.function.d.ts +2 -0
  29. package/src/lib/self-closing-element.function.js +9 -0
  30. package/src/lib/self-closing-element.function.js.map +1 -0
  31. package/src/lib/table.function.js +3 -3
  32. package/src/lib/table.function.js.map +1 -1
  33. package/src/lib/tags.d.ts +22 -22
  34. package/src/lib/tags.js +23 -23
  35. package/src/lib/tags.js.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onivoro/server-html",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "main": "./src/index.js",
5
5
  "type": "commonjs"
6
6
  }
package/src/index.d.ts CHANGED
@@ -1,10 +1,16 @@
1
1
  export * from './lib/a.function';
2
+ export * from './lib/attributes.type';
3
+ export * from './lib/element.function';
4
+ export * from './lib/elements';
5
+ export * from './lib/element-renderer.type';
2
6
  export * from './lib/email-body.function';
3
7
  export * from './lib/format-attributes.function';
4
8
  export * from './lib/html-element-renderer.type';
5
9
  export * from './lib/html.function';
6
10
  export * from './lib/inline-style.function';
7
11
  export * from './lib/login-button.function';
12
+ export * from './lib/self-closing-element-renderer.type';
13
+ export * from './lib/self-closing-element.function';
8
14
  export * from './lib/self-closing-html-element-renderer.type';
9
15
  export * from './lib/self-closing-tag.function';
10
16
  export * from './lib/table.function';
package/src/index.js CHANGED
@@ -2,12 +2,18 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./lib/a.function"), exports);
5
+ tslib_1.__exportStar(require("./lib/attributes.type"), exports);
6
+ tslib_1.__exportStar(require("./lib/element.function"), exports);
7
+ tslib_1.__exportStar(require("./lib/elements"), exports);
8
+ tslib_1.__exportStar(require("./lib/element-renderer.type"), exports);
5
9
  tslib_1.__exportStar(require("./lib/email-body.function"), exports);
6
10
  tslib_1.__exportStar(require("./lib/format-attributes.function"), exports);
7
11
  tslib_1.__exportStar(require("./lib/html-element-renderer.type"), exports);
8
12
  tslib_1.__exportStar(require("./lib/html.function"), exports);
9
13
  tslib_1.__exportStar(require("./lib/inline-style.function"), exports);
10
14
  tslib_1.__exportStar(require("./lib/login-button.function"), exports);
15
+ tslib_1.__exportStar(require("./lib/self-closing-element-renderer.type"), exports);
16
+ tslib_1.__exportStar(require("./lib/self-closing-element.function"), exports);
11
17
  tslib_1.__exportStar(require("./lib/self-closing-html-element-renderer.type"), exports);
12
18
  tslib_1.__exportStar(require("./lib/self-closing-tag.function"), exports);
13
19
  tslib_1.__exportStar(require("./lib/table.function"), exports);
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/server-html/src/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,oEAA0C;AAC1C,2EAAiD;AACjD,2EAAiD;AACjD,8DAAoC;AACpC,sEAA4C;AAC5C,sEAA4C;AAC5C,wFAA8D;AAC9D,0EAAgD;AAChD,+DAAqC;AACrC,6DAAmC;AACnC,qDAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/server-html/src/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,gEAAsC;AACtC,iEAAuC;AACvC,yDAA+B;AAC/B,sEAA4C;AAC5C,oEAA0C;AAC1C,2EAAiD;AACjD,2EAAiD;AACjD,8DAAoC;AACpC,sEAA4C;AAC5C,sEAA4C;AAC5C,mFAAyD;AACzD,8EAAoD;AACpD,wFAA8D;AAC9D,0EAAgD;AAChD,+DAAqC;AACrC,6DAAmC;AACnC,qDAA2B"}
@@ -0,0 +1,4 @@
1
+ export type TAttributes = Record<string, any> & {
2
+ cssClass?: string;
3
+ style?: Record<string, string>;
4
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=attributes.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attributes.type.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/attributes.type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { TAttributes } from "./attributes.type";
2
+ export type TElementRenderer = (content: Array<string | number>, attributes?: TAttributes) => string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=element-renderer.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"element-renderer.type.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/element-renderer.type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { TAttributes } from "./attributes.type";
2
+ export declare function element(tag: string, content: Array<string | number>, attributes: TAttributes): string;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.element = void 0;
4
+ const format_attributes_function_1 = require("./format-attributes.function");
5
+ const inline_style_function_1 = require("./inline-style.function");
6
+ function element(tag, content, attributes) {
7
+ const { cssClass = '', style = undefined, ...attrs } = attributes || {};
8
+ const classExp = cssClass ? ` class="${cssClass}"` : '';
9
+ const attributesExp = attrs ? ` ${(0, format_attributes_function_1.formatAttributes)(attrs)}` : '';
10
+ const styleExp = style ? ` ${(0, inline_style_function_1.inlineStyle)(style)}` : '';
11
+ return `<${tag}${classExp}${attributesExp}${styleExp}>${content.join?.('')}</${tag}>`;
12
+ }
13
+ exports.element = element;
14
+ //# sourceMappingURL=element.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"element.function.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/element.function.ts"],"names":[],"mappings":";;;AACA,6EAAgE;AAChE,mEAAsD;AAEtD,SAAgB,OAAO,CACnB,GAAW,EACX,OAA+B,EAC/B,UAAuB;IAEvB,MAAM,EAAE,QAAQ,GAAG,EAAE,EAAE,KAAK,GAAG,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,UAAU,IAAI,EAAE,CAAC;IACxE,MAAM,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,WAAW,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IACxD,MAAM,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,IAAA,6CAAgB,EAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACjE,MAAM,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,IAAA,mCAAW,EAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAEvD,OAAO,IAAI,GAAG,GAAG,QAAQ,GAAG,aAAa,GAAG,QAAQ,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,KAAK,GAAG,GAAG,CAAC;AAC1F,CAAC;AAXD,0BAWC"}
@@ -0,0 +1,25 @@
1
+ import { TElementRenderer } from "./element-renderer.type";
2
+ import { TSelfClosingElementRenderer } from "./self-closing-element-renderer.type";
3
+ export declare const anchor: TElementRenderer;
4
+ export declare const body: TElementRenderer;
5
+ export declare const div: TElementRenderer;
6
+ export declare const h1: TElementRenderer;
7
+ export declare const h2: TElementRenderer;
8
+ export declare const h3: TElementRenderer;
9
+ export declare const h4: TElementRenderer;
10
+ export declare const h5: TElementRenderer;
11
+ export declare const h6: TElementRenderer;
12
+ export declare const head: TElementRenderer;
13
+ export declare const header: TElementRenderer;
14
+ export declare const htm: TElementRenderer;
15
+ export declare const img: TSelfClosingElementRenderer;
16
+ export declare const main: TElementRenderer;
17
+ export declare const p: TElementRenderer;
18
+ export declare const pre: TElementRenderer;
19
+ export declare const tab: TElementRenderer;
20
+ export declare const tbody: TElementRenderer;
21
+ export declare const td: TElementRenderer;
22
+ export declare const th: TElementRenderer;
23
+ export declare const thead: TElementRenderer;
24
+ export declare const tr: TElementRenderer;
25
+ export declare const style: any;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.style = exports.tr = exports.thead = exports.th = exports.td = exports.tbody = exports.tab = exports.pre = exports.p = exports.main = exports.img = exports.htm = exports.header = exports.head = exports.h6 = exports.h5 = exports.h4 = exports.h3 = exports.h2 = exports.h1 = exports.div = exports.body = exports.anchor = void 0;
4
+ const element_function_1 = require("./element.function");
5
+ const self_closing_element_function_1 = require("./self-closing-element.function");
6
+ exports.anchor = element_function_1.element.bind(null, 'a');
7
+ exports.body = element_function_1.element.bind(null, 'body');
8
+ exports.div = element_function_1.element.bind(null, 'div');
9
+ exports.h1 = element_function_1.element.bind(null, 'h1');
10
+ exports.h2 = element_function_1.element.bind(null, 'h2');
11
+ exports.h3 = element_function_1.element.bind(null, 'h3');
12
+ exports.h4 = element_function_1.element.bind(null, 'h4');
13
+ exports.h5 = element_function_1.element.bind(null, 'h5');
14
+ exports.h6 = element_function_1.element.bind(null, 'h6');
15
+ exports.head = element_function_1.element.bind(null, 'head');
16
+ exports.header = element_function_1.element.bind(null, 'header');
17
+ exports.htm = element_function_1.element.bind(null, 'html');
18
+ exports.img = self_closing_element_function_1.selfClosingElement.bind(null, 'img');
19
+ exports.main = element_function_1.element.bind(null, 'main');
20
+ exports.p = element_function_1.element.bind(null, 'p');
21
+ exports.pre = element_function_1.element.bind(null, 'pre');
22
+ exports.tab = element_function_1.element.bind(null, 'table');
23
+ exports.tbody = element_function_1.element.bind(null, 'tbody');
24
+ exports.td = element_function_1.element.bind(null, 'td');
25
+ exports.th = element_function_1.element.bind(null, 'th');
26
+ exports.thead = element_function_1.element.bind(null, 'thead');
27
+ exports.tr = element_function_1.element.bind(null, 'tr');
28
+ exports.style = element_function_1.element.bind(null, 'style');
29
+ //# sourceMappingURL=elements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elements.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/elements.ts"],"names":[],"mappings":";;;AACA,yDAA6C;AAE7C,mFAAqE;AAExD,QAAA,MAAM,GAAqB,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AACnD,QAAA,IAAI,GAAqB,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AACpD,QAAA,GAAG,GAAqB,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,QAAA,EAAE,GAAqB,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAChD,QAAA,EAAE,GAAqB,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAChD,QAAA,EAAE,GAAqB,0BAAO,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AAI,EAAE,OAAO,CAAC,CAAC;AACtD,QAAA,EAAE,GAAqB,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAEhD,QAAA,KAAK,GAAG,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC"}
@@ -1 +1,2 @@
1
- export declare function emailBody(title: string, subtitle: string, markup: Array<string | number>, logoUrl?: string, extraStyles?: string[]): string;
1
+ import { TAttributes } from './attributes.type';
2
+ export declare function emailBody(title: string, subtitle: string, markup: Array<string | number>, logoUrl?: string, extraStyles?: TAttributes['style']): string;
@@ -1,34 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.emailBody = void 0;
4
- const tags_1 = require("./tags");
5
- function emailBody(title, subtitle, markup, logoUrl, extraStyles = []) {
6
- const bodyClass = 'onivoro-email-body';
7
- return (0, tags_1.div)([
8
- (0, tags_1.div)([
9
- (0, tags_1.style)([
10
- `.${bodyClass} {`,
11
- `font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;`,
12
- `font-size: 1rem;`,
13
- `-webkit-font-smoothing: antialiased;`,
14
- `-moz-osx-font-smoothing: grayscale;`,
15
- 'color: rgba(0, 0, 0, 0.6) !important;',
16
- ...extraStyles,
17
- '}',
18
- ]),
19
- ]),
20
- (0, tags_1.div)([
21
- (0, tags_1.div)([
22
- (0, tags_1.div)([
23
- logoUrl
24
- ? `<img height="64" width="auto" src="${logoUrl}" />`
25
- : undefined,
26
- title ? (0, tags_1.h1)([title]) : undefined,
27
- subtitle ? (0, tags_1.h2)([subtitle]) : undefined,
28
- ].filter(Boolean)),
29
- (0, tags_1.main)(markup),
30
- ], bodyClass),
31
- ]),
4
+ const elements_1 = require("./elements");
5
+ function emailBody(title, subtitle, markup, logoUrl, extraStyles = {}) {
6
+ return (0, elements_1.div)([
7
+ (0, elements_1.div)([
8
+ (0, elements_1.div)([
9
+ logoUrl
10
+ ? `<img height="64" width="auto" src="${logoUrl}" />`
11
+ : undefined,
12
+ title ? (0, elements_1.h1)([title]) : undefined,
13
+ subtitle ? (0, elements_1.h2)([subtitle]) : undefined,
14
+ ].filter(Boolean)),
15
+ (0, elements_1.div)(markup),
16
+ ], {
17
+ style: {
18
+ 'font-family': `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' !important`,
19
+ 'font-size': `1rem;`,
20
+ '-webkit-font-smoothing': `antialiased`,
21
+ '-moz-osx-font-smoothing': `grayscale`,
22
+ color: 'rgba(0, 0, 0, 0.6) !important',
23
+ ...(extraStyles || {})
24
+ }
25
+ }),
32
26
  ]);
33
27
  }
34
28
  exports.emailBody = emailBody;
@@ -1 +1 @@
1
- {"version":3,"file":"email-body.function.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/email-body.function.ts"],"names":[],"mappings":";;;AAAA,iCAAkD;AAElD,SAAgB,SAAS,CACvB,KAAa,EACb,QAAgB,EAChB,MAA8B,EAC9B,OAAgB,EAChB,cAAwB,EAAE;IAE1B,MAAM,SAAS,GAAG,oBAAoB,CAAC;IACvC,OAAO,IAAA,UAAG,EAAC;QACT,IAAA,UAAG,EAAC;YACF,IAAA,YAAK,EAAC;gBACJ,IAAI,SAAS,IAAI;gBACjB,wKAAwK;gBACxK,kBAAkB;gBAClB,sCAAsC;gBACtC,qCAAqC;gBACrC,uCAAuC;gBACvC,GAAG,WAAW;gBACd,GAAG;aACJ,CAAC;SACH,CAAC;QACF,IAAA,UAAG,EAAC;YACF,IAAA,UAAG,EAAC;gBACF,IAAA,UAAG,EACD;oBACE,OAAO;wBACL,CAAC,CAAC,sCAAsC,OAAO,MAAM;wBACrD,CAAC,CAAC,SAAS;oBACb,KAAK,CAAC,CAAC,CAAC,IAAA,SAAE,EAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;oBAC/B,QAAQ,CAAC,CAAC,CAAC,IAAA,SAAE,EAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;iBACtC,CAAC,MAAM,CAAC,OAAO,CAAC,CAClB;gBACD,IAAA,WAAI,EAAC,MAAM,CAAC;aACb,EAAE,SAAS,CAAC;SACd,CAAC;KACH,CAAC,CAAC;AACL,CAAC;AApCD,8BAoCC"}
1
+ {"version":3,"file":"email-body.function.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/email-body.function.ts"],"names":[],"mappings":";;;AACA,yCAAyC;AAEzC,SAAgB,SAAS,CACvB,KAAa,EACb,QAAgB,EAChB,MAA8B,EAC9B,OAAgB,EAChB,cAAoC,EAAE;IAEtC,OAAO,IAAA,cAAG,EAAC;QACT,IAAA,cAAG,EAAC;YACF,IAAA,cAAG,EACD;gBACE,OAAO;oBACL,CAAC,CAAC,sCAAsC,OAAO,MAAM;oBACrD,CAAC,CAAC,SAAS;gBACb,KAAK,CAAC,CAAC,CAAC,IAAA,aAAE,EAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;gBAC/B,QAAQ,CAAC,CAAC,CAAC,IAAA,aAAE,EAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;aACtC,CAAC,MAAM,CAAC,OAAO,CAAC,CAClB;YACD,IAAA,cAAG,EAAC,MAAM,CAAC;SACZ,EAAE;YACD,KAAK,EAAE;gBACL,aAAa,EAAE,0JAA0J;gBACzK,WAAW,EAAE,OAAO;gBACpB,wBAAwB,EAAE,aAAa;gBACvC,yBAAyB,EAAE,WAAW;gBACtC,KAAK,EAAE,+BAA+B;gBACtC,GAAG,CAAC,WAAW,IAAI,EAAE,CAAC;aACvB;SACF,CAAC;KACH,CAAC,CAAC;AACL,CAAC;AA9BD,8BA8BC"}
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.html = void 0;
4
4
  const tags_1 = require("./tags");
5
5
  function html(title, subtitle, markup, logoUrl) {
6
- return (0, tags_1.htm)([
7
- (0, tags_1.head)([
8
- (0, tags_1.style)([
6
+ return (0, tags_1._htm)([
7
+ (0, tags_1._head)([
8
+ (0, tags_1._style)([
9
9
  'body {',
10
10
  'padding: 64px;',
11
11
  `font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";`,
@@ -28,15 +28,15 @@ function html(title, subtitle, markup, logoUrl) {
28
28
  '.button { text-decoration: none; margin: 32px 0; background-color: rgb(205, 62, 71); color: white !important; }',
29
29
  ]),
30
30
  ]),
31
- (0, tags_1.body)([
32
- (0, tags_1.header)([
31
+ (0, tags_1._body)([
32
+ (0, tags_1._header)([
33
33
  logoUrl
34
34
  ? `<img height="64" width="auto" src="${logoUrl}" />`
35
35
  : undefined,
36
- (0, tags_1.h1)([title]),
37
- (0, tags_1.h2)([subtitle]),
36
+ (0, tags_1._h1)([title]),
37
+ (0, tags_1._h2)([subtitle]),
38
38
  ].filter(Boolean)),
39
- (0, tags_1.main)(markup),
39
+ (0, tags_1._main)(markup),
40
40
  ]),
41
41
  ]);
42
42
  }
@@ -1 +1 @@
1
- {"version":3,"file":"html.function.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/html.function.ts"],"names":[],"mappings":";;;AAAA,iCAAsE;AAEtE,SAAgB,IAAI,CAClB,KAAa,EACb,QAAgB,EAChB,MAA8B,EAC9B,OAAgB;IAEhB,OAAO,IAAA,UAAG,EAAC;QACT,IAAA,WAAI,EAAC;YACH,IAAA,YAAK,EAAC;gBACJ,QAAQ;gBACR,gBAAgB;gBAChB,6JAA6J;gBAC7J,kBAAkB;gBAClB,sCAAsC;gBACtC,qCAAqC;gBACrC,yBAAyB;gBACzB,GAAG;gBACH,4DAA4D;gBAC5D,2CAA2C;gBAC3C,kDAAkD;gBAClD,sGAAsG;gBACtG,8GAA8G;gBAC9G,wDAAwD;gBACxD,wDAAwD;gBACxD,2HAA2H;gBAC3H,yBAAyB;gBACzB,yCAAyC;gBACzC,gFAAgF;gBAChF,iHAAiH;aAClH,CAAC;SACH,CAAC;QACF,IAAA,WAAI,EAAC;YACH,IAAA,aAAM,EACJ;gBACE,OAAO;oBACL,CAAC,CAAC,sCAAsC,OAAO,MAAM;oBACrD,CAAC,CAAC,SAAS;gBACb,IAAA,SAAE,EAAC,CAAC,KAAK,CAAC,CAAC;gBACX,IAAA,SAAE,EAAC,CAAC,QAAQ,CAAC,CAAC;aACf,CAAC,MAAM,CAAC,OAAO,CAAC,CAClB;YACD,IAAA,WAAI,EAAC,MAAM,CAAC;SACb,CAAC;KACH,CAAC,CAAC;AACL,CAAC;AA5CD,oBA4CC"}
1
+ {"version":3,"file":"html.function.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/html.function.ts"],"names":[],"mappings":";;;AAAA,iCAA4I;AAE5I,SAAgB,IAAI,CAClB,KAAa,EACb,QAAgB,EAChB,MAA8B,EAC9B,OAAgB;IAEhB,OAAO,IAAA,WAAG,EAAC;QACT,IAAA,YAAI,EAAC;YACH,IAAA,aAAK,EAAC;gBACJ,QAAQ;gBACR,gBAAgB;gBAChB,6JAA6J;gBAC7J,kBAAkB;gBAClB,sCAAsC;gBACtC,qCAAqC;gBACrC,yBAAyB;gBACzB,GAAG;gBACH,4DAA4D;gBAC5D,2CAA2C;gBAC3C,kDAAkD;gBAClD,sGAAsG;gBACtG,8GAA8G;gBAC9G,wDAAwD;gBACxD,wDAAwD;gBACxD,2HAA2H;gBAC3H,yBAAyB;gBACzB,yCAAyC;gBACzC,gFAAgF;gBAChF,iHAAiH;aAClH,CAAC;SACH,CAAC;QACF,IAAA,YAAI,EAAC;YACH,IAAA,cAAM,EACJ;gBACE,OAAO;oBACL,CAAC,CAAC,sCAAsC,OAAO,MAAM;oBACrD,CAAC,CAAC,SAAS;gBACb,IAAA,UAAE,EAAC,CAAC,KAAK,CAAC,CAAC;gBACX,IAAA,UAAE,EAAC,CAAC,QAAQ,CAAC,CAAC;aACf,CAAC,MAAM,CAAC,OAAO,CAAC,CAClB;YACD,IAAA,YAAI,EAAC,MAAM,CAAC;SACb,CAAC;KACH,CAAC,CAAC;AACL,CAAC;AA5CD,oBA4CC"}
@@ -1 +1 @@
1
- export declare function loginButton(text: string, href: string): string;
1
+ export declare function loginButton(text: string, href: string, extraStyles?: Record<string, string>): string;
@@ -1,9 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loginButton = void 0;
4
- const a_function_1 = require("./a.function");
5
- function loginButton(text, href) {
6
- return (0, a_function_1.a)(text, href, 'drop-shadow button');
4
+ const elements_1 = require("./elements");
5
+ function loginButton(text, href, extraStyles) {
6
+ return (0, elements_1.anchor)([text], {
7
+ href,
8
+ style: {
9
+ padding: '1rem 1.5rem',
10
+ border: 'solid 1px',
11
+ 'border-radius': '4px',
12
+ display: 'inline-block',
13
+ 'text-align': 'center',
14
+ 'text-decoration': 'none',
15
+ ...(extraStyles || {})
16
+ }
17
+ });
7
18
  }
8
19
  exports.loginButton = loginButton;
9
20
  //# sourceMappingURL=login-button.function.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"login-button.function.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/login-button.function.ts"],"names":[],"mappings":";;;AAAA,6CAAiC;AAEjC,SAAgB,WAAW,CAAC,IAAY,EAAE,IAAY;IACpD,OAAO,IAAA,cAAC,EAAC,IAAI,EAAE,IAAI,EAAE,oBAAoB,CAAC,CAAC;AAC7C,CAAC;AAFD,kCAEC"}
1
+ {"version":3,"file":"login-button.function.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/login-button.function.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AAEpC,SAAgB,WAAW,CAAC,IAAY,EAAE,IAAY,EAAE,WAAoC;IAC1F,OAAO,IAAA,iBAAM,EAAC,CAAC,IAAI,CAAC,EAAE;QACpB,IAAI;QACJ,KAAK,EAAE;YACL,OAAO,EAAE,aAAa;YACtB,MAAM,EAAE,WAAW;YACnB,eAAe,EAAE,KAAK;YACtB,OAAO,EAAE,cAAc;YACvB,YAAY,EAAE,QAAQ;YACtB,iBAAiB,EAAE,MAAM;YACzB,GAAG,CAAC,WAAW,IAAI,EAAE,CAAC;SACvB;KACF,CAAC,CAAC;AACL,CAAC;AAbD,kCAaC"}
@@ -0,0 +1,2 @@
1
+ import { TAttributes } from "./attributes.type";
2
+ export type TSelfClosingElementRenderer = (attributes?: TAttributes) => string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=self-closing-element-renderer.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"self-closing-element-renderer.type.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/self-closing-element-renderer.type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { TAttributes } from "./attributes.type";
2
+ export declare function selfClosingElement(tag: string, attributes: TAttributes): string;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.selfClosingElement = void 0;
4
+ const element_function_1 = require("./element.function");
5
+ function selfClosingElement(tag, attributes) {
6
+ return (0, element_function_1.element)(tag, [], attributes).replace(`></${tag}>`, '/>');
7
+ }
8
+ exports.selfClosingElement = selfClosingElement;
9
+ //# sourceMappingURL=self-closing-element.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"self-closing-element.function.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/self-closing-element.function.ts"],"names":[],"mappings":";;;AACA,yDAA6C;AAE7C,SAAgB,kBAAkB,CAC9B,GAAW,EACX,UAAuB;IAEvB,OAAO,IAAA,0BAAO,EACV,GAAG,EACH,EAAE,EACF,UAAU,CACb,CAAC,OAAO,CAAC,MAAM,GAAG,GAAG,EAAE,IAAI,CAAC,CAAA;AACjC,CAAC;AATD,gDASC"}
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.table = void 0;
4
4
  const tags_1 = require("./tags");
5
5
  function table(columns, rows) {
6
- return (0, tags_1.tab)([
7
- (0, tags_1.thead)([(0, tags_1.tr)(columns.map((c) => (0, tags_1.th)([c])))]),
8
- (0, tags_1.tbody)(rows.map((row, i) => (0, tags_1.tr)(row.map((cell) => (0, tags_1.td)([cell])), i % 2 ? 'bg-gray' : ''))),
6
+ return (0, tags_1._tab)([
7
+ (0, tags_1._thead)([(0, tags_1._tr)(columns.map((c) => (0, tags_1._th)([c])))]),
8
+ (0, tags_1._tbody)(rows.map((row, i) => (0, tags_1._tr)(row.map((cell) => (0, tags_1._td)([cell])), i % 2 ? 'bg-gray' : ''))),
9
9
  ]);
10
10
  }
11
11
  exports.table = table;
@@ -1 +1 @@
1
- {"version":3,"file":"table.function.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/table.function.ts"],"names":[],"mappings":";;;AAAA,iCAAuD;AAEvD,SAAgB,KAAK,CAAC,OAAiB,EAAE,IAAkB;IACzD,OAAO,IAAA,UAAG,EAAC;QACT,IAAA,YAAK,EAAC,CAAC,IAAA,SAAE,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,SAAE,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACxC,IAAA,YAAK,EACH,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAClB,IAAA,SAAE,EACA,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,SAAE,EAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAC7B,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CACvB,CACF,CACF;KACF,CAAC,CAAC;AACL,CAAC;AAZD,sBAYC"}
1
+ {"version":3,"file":"table.function.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/table.function.ts"],"names":[],"mappings":";;;AAAA,iCAAwG;AAExG,SAAgB,KAAK,CAAC,OAAiB,EAAE,IAAkB;IACzD,OAAO,IAAA,WAAG,EAAC;QACT,IAAA,aAAK,EAAC,CAAC,IAAA,UAAE,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,UAAE,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACxC,IAAA,aAAK,EACH,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAClB,IAAA,UAAE,EACA,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,UAAE,EAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAC7B,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CACvB,CACF,CACF;KACF,CAAC,CAAC;AACL,CAAC;AAZD,sBAYC"}
package/src/lib/tags.d.ts CHANGED
@@ -1,24 +1,24 @@
1
1
  import { THtmlElementRenderer } from "./html-element-renderer.type";
2
2
  import { TSelfClosingHtmlElementRenderer } from "./self-closing-html-element-renderer.type";
3
- export declare const body: THtmlElementRenderer;
4
- export declare const div: THtmlElementRenderer;
5
- export declare const h1: THtmlElementRenderer;
6
- export declare const h2: THtmlElementRenderer;
7
- export declare const h3: THtmlElementRenderer;
8
- export declare const h4: THtmlElementRenderer;
9
- export declare const h5: THtmlElementRenderer;
10
- export declare const h6: THtmlElementRenderer;
11
- export declare const head: THtmlElementRenderer;
12
- export declare const header: THtmlElementRenderer;
13
- export declare const htm: THtmlElementRenderer;
14
- export declare const img: TSelfClosingHtmlElementRenderer;
15
- export declare const main: THtmlElementRenderer;
16
- export declare const p: THtmlElementRenderer;
17
- export declare const pre: THtmlElementRenderer;
18
- export declare const tab: THtmlElementRenderer;
19
- export declare const tbody: THtmlElementRenderer;
20
- export declare const td: THtmlElementRenderer;
21
- export declare const th: THtmlElementRenderer;
22
- export declare const thead: THtmlElementRenderer;
23
- export declare const tr: THtmlElementRenderer;
24
- export declare const style: any;
3
+ export declare const _body: THtmlElementRenderer;
4
+ export declare const _div: THtmlElementRenderer;
5
+ export declare const _h1: THtmlElementRenderer;
6
+ export declare const _h2: THtmlElementRenderer;
7
+ export declare const _h3: THtmlElementRenderer;
8
+ export declare const _h4: THtmlElementRenderer;
9
+ export declare const _h5: THtmlElementRenderer;
10
+ export declare const _h6: THtmlElementRenderer;
11
+ export declare const _head: THtmlElementRenderer;
12
+ export declare const _header: THtmlElementRenderer;
13
+ export declare const _htm: THtmlElementRenderer;
14
+ export declare const _img: TSelfClosingHtmlElementRenderer;
15
+ export declare const _main: THtmlElementRenderer;
16
+ export declare const _p: THtmlElementRenderer;
17
+ export declare const _pre: THtmlElementRenderer;
18
+ export declare const _tab: THtmlElementRenderer;
19
+ export declare const _tbody: THtmlElementRenderer;
20
+ export declare const _td: THtmlElementRenderer;
21
+ export declare const _th: THtmlElementRenderer;
22
+ export declare const _thead: THtmlElementRenderer;
23
+ export declare const _tr: THtmlElementRenderer;
24
+ export declare const _style: any;
package/src/lib/tags.js CHANGED
@@ -1,28 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.style = exports.tr = exports.thead = exports.th = exports.td = exports.tbody = exports.tab = exports.pre = exports.p = exports.main = exports.img = exports.htm = exports.header = exports.head = exports.h6 = exports.h5 = exports.h4 = exports.h3 = exports.h2 = exports.h1 = exports.div = exports.body = void 0;
3
+ exports._style = exports._tr = exports._thead = exports._th = exports._td = exports._tbody = exports._tab = exports._pre = exports._p = exports._main = exports._img = exports._htm = exports._header = exports._head = exports._h6 = exports._h5 = exports._h4 = exports._h3 = exports._h2 = exports._h1 = exports._div = exports._body = void 0;
4
4
  const self_closing_tag_function_1 = require("./self-closing-tag.function");
5
5
  const tag_function_1 = require("./tag.function");
6
- exports.body = tag_function_1.tag.bind(null, 'body');
7
- exports.div = tag_function_1.tag.bind(null, 'div');
8
- exports.h1 = tag_function_1.tag.bind(null, 'h1');
9
- exports.h2 = tag_function_1.tag.bind(null, 'h2');
10
- exports.h3 = tag_function_1.tag.bind(null, 'h3');
11
- exports.h4 = tag_function_1.tag.bind(null, 'h4');
12
- exports.h5 = tag_function_1.tag.bind(null, 'h5');
13
- exports.h6 = tag_function_1.tag.bind(null, 'h6');
14
- exports.head = tag_function_1.tag.bind(null, 'head');
15
- exports.header = tag_function_1.tag.bind(null, 'header');
16
- exports.htm = tag_function_1.tag.bind(null, 'html');
17
- exports.img = self_closing_tag_function_1.selfClosingTag.bind(null, 'img');
18
- exports.main = tag_function_1.tag.bind(null, 'main');
19
- exports.p = tag_function_1.tag.bind(null, 'p');
20
- exports.pre = tag_function_1.tag.bind(null, 'pre');
21
- exports.tab = tag_function_1.tag.bind(null, 'table');
22
- exports.tbody = tag_function_1.tag.bind(null, 'tbody');
23
- exports.td = tag_function_1.tag.bind(null, 'td');
24
- exports.th = tag_function_1.tag.bind(null, 'th');
25
- exports.thead = tag_function_1.tag.bind(null, 'thead');
26
- exports.tr = tag_function_1.tag.bind(null, 'tr');
27
- exports.style = tag_function_1.tag.bind(null, 'style');
6
+ exports._body = tag_function_1.tag.bind(null, 'body');
7
+ exports._div = tag_function_1.tag.bind(null, 'div');
8
+ exports._h1 = tag_function_1.tag.bind(null, 'h1');
9
+ exports._h2 = tag_function_1.tag.bind(null, 'h2');
10
+ exports._h3 = tag_function_1.tag.bind(null, 'h3');
11
+ exports._h4 = tag_function_1.tag.bind(null, 'h4');
12
+ exports._h5 = tag_function_1.tag.bind(null, 'h5');
13
+ exports._h6 = tag_function_1.tag.bind(null, 'h6');
14
+ exports._head = tag_function_1.tag.bind(null, 'head');
15
+ exports._header = tag_function_1.tag.bind(null, 'header');
16
+ exports._htm = tag_function_1.tag.bind(null, 'html');
17
+ exports._img = self_closing_tag_function_1.selfClosingTag.bind(null, 'img');
18
+ exports._main = tag_function_1.tag.bind(null, 'main');
19
+ exports._p = tag_function_1.tag.bind(null, 'p');
20
+ exports._pre = tag_function_1.tag.bind(null, 'pre');
21
+ exports._tab = tag_function_1.tag.bind(null, 'table');
22
+ exports._tbody = tag_function_1.tag.bind(null, 'tbody');
23
+ exports._td = tag_function_1.tag.bind(null, 'td');
24
+ exports._th = tag_function_1.tag.bind(null, 'th');
25
+ exports._thead = tag_function_1.tag.bind(null, 'thead');
26
+ exports._tr = tag_function_1.tag.bind(null, 'tr');
27
+ exports._style = tag_function_1.tag.bind(null, 'style');
28
28
  //# sourceMappingURL=tags.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tags.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/tags.ts"],"names":[],"mappings":";;;AAEA,2EAA6D;AAC7D,iDAAqC;AAExB,QAAA,IAAI,GAAyB,kBAAG,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AACpD,QAAA,GAAG,GAAyB,kBAAG,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,QAAA,EAAE,GAAyB,kBAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAChD,QAAA,EAAE,GAAyB,kBAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAChD,QAAA,EAAE,GAAyB,kBAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAChD,QAAA,EAAE,GAAyB,kBAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAChD,QAAA,EAAE,GAAyB,kBAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAChD,QAAA,EAAE,GAAyB,kBAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IA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