@esportsplus/ui 0.0.103 → 0.0.104

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.
@@ -1,14 +1,24 @@
1
- declare const header: ({ subtitle, suptitle, title }: {
2
- subtitle?: string | undefined;
3
- suptitle?: string | undefined;
4
- title?: string | undefined;
5
- }) => import("@esportsplus/template/build/types").Renderable;
1
+ declare const subtitle: () => {
2
+ class: string;
3
+ };
4
+ declare const suptitle: () => {
5
+ class: string;
6
+ style: string;
7
+ };
8
+ declare const title: (subtitle: unknown, suptitle: unknown) => {
9
+ class: string;
10
+ };
6
11
  declare const _default: {
7
- header: ({ subtitle, suptitle, title }: {
8
- subtitle?: string | undefined;
9
- suptitle?: string | undefined;
10
- title?: string | undefined;
11
- }) => import("@esportsplus/template/build/types").Renderable;
12
+ subtitle: () => {
13
+ class: string;
14
+ };
15
+ suptitle: () => {
16
+ class: string;
17
+ style: string;
18
+ };
19
+ title: (subtitle: unknown, suptitle: unknown) => {
20
+ class: string;
21
+ };
12
22
  };
13
23
  export default _default;
14
- export { header };
24
+ export { subtitle, suptitle, title };
@@ -1,25 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.header = void 0;
4
- const template_1 = require("@esportsplus/template");
5
- const header = ({ subtitle, suptitle, title }) => (0, template_1.html) `
6
- ${suptitle ? (0, template_1.html) `
7
- <span class="page-suptitle --text-bold --text-crop --text-uppercase --text-200" style="--color-default: var(--color-primary-400);letter-spacing: 0.24px;">
8
- ${suptitle}
9
- </span>
10
- ` : ''}
11
-
12
- ${title ? (0, template_1.html) `
13
- <h1 class="page-title --line-height-200 --margin-300 ${!subtitle && '--text-crop-bottom'} ${suptitle ? '--margin-top' : '--text-crop-top'}">
14
- ${title}
15
- </h1>
16
- ` : ''}
17
-
18
- ${subtitle ? (0, template_1.html) `
19
- <span class="page-subtitle --margin-top --margin-300 --text-crop-bottom">
20
- ${subtitle}
21
- </span>
22
- ` : ''}
23
- `;
24
- exports.header = header;
25
- exports.default = { header };
3
+ exports.title = exports.suptitle = exports.subtitle = void 0;
4
+ const subtitle = () => {
5
+ return {
6
+ class: 'page-subtitle --margin-top --margin-300 --text-crop-bottom'
7
+ };
8
+ };
9
+ exports.subtitle = subtitle;
10
+ const suptitle = () => {
11
+ return {
12
+ class: 'page-suptitle --text-bold --text-crop --text-uppercase --text-200',
13
+ style: '--color-default: var(--color-primary-400);letter-spacing: 0.24px;'
14
+ };
15
+ };
16
+ exports.suptitle = suptitle;
17
+ const title = (subtitle, suptitle) => {
18
+ return {
19
+ class: `page-title --line-height-200 --margin-300 ${!subtitle && '--text-crop-bottom'} ${suptitle ? '--margin-top' : '--text-crop-top'}`
20
+ };
21
+ };
22
+ exports.title = title;
23
+ exports.default = { subtitle, suptitle, title };
package/package.json CHANGED
@@ -21,5 +21,5 @@
21
21
  "prepublishOnly": "npm run build"
22
22
  },
23
23
  "types": "build/index.d.ts",
24
- "version": "0.0.103"
24
+ "version": "0.0.104"
25
25
  }
@@ -1,26 +1,22 @@
1
- import { html } from '@esportsplus/template';
1
+ const subtitle = () => {
2
+ return {
3
+ class: 'page-subtitle --margin-top --margin-300 --text-crop-bottom'
4
+ };
5
+ };
2
6
 
7
+ const suptitle = () => {
8
+ return {
9
+ class: 'page-suptitle --text-bold --text-crop --text-uppercase --text-200',
10
+ style: '--color-default: var(--color-primary-400);letter-spacing: 0.24px;'
11
+ }
12
+ };
3
13
 
4
- const header = ({ subtitle, suptitle, title }: { subtitle?: string, suptitle?: string, title?: string }) => html`
5
- ${suptitle ? html`
6
- <span class="page-suptitle --text-bold --text-crop --text-uppercase --text-200" style="--color-default: var(--color-primary-400);letter-spacing: 0.24px;">
7
- ${suptitle}
8
- </span>
9
- ` : ''}
14
+ const title = (subtitle: unknown, suptitle: unknown) => {
15
+ return {
16
+ class: `page-title --line-height-200 --margin-300 ${!subtitle && '--text-crop-bottom'} ${suptitle ? '--margin-top' : '--text-crop-top'}`
17
+ };
18
+ };
10
19
 
11
- ${title ? html`
12
- <h1 class="page-title --line-height-200 --margin-300 ${!subtitle && '--text-crop-bottom'} ${suptitle ? '--margin-top' : '--text-crop-top'}">
13
- ${title}
14
- </h1>
15
- ` : ''}
16
20
 
17
- ${subtitle ? html`
18
- <span class="page-subtitle --margin-top --margin-300 --text-crop-bottom">
19
- ${subtitle}
20
- </span>
21
- ` : ''}
22
- `;
23
-
24
-
25
- export default { header };
26
- export { header };
21
+ export default { subtitle, suptitle, title };
22
+ export { subtitle, suptitle, title };