@operato/styles 9.0.0-beta.6 → 9.0.1
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/CHANGELOG.md +137 -0
- package/dist/src/box-padding-editor-styles.d.ts +1 -0
- package/dist/src/box-padding-editor-styles.js +99 -0
- package/dist/src/box-padding-editor-styles.js.map +1 -0
- package/dist/src/gradient-direction-styles.d.ts +4 -0
- package/dist/src/gradient-direction-styles.js +78 -0
- package/dist/src/gradient-direction-styles.js.map +1 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/src/index.js +6 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/inspector-styles.d.ts +4 -0
- package/dist/src/inspector-styles.js +41 -0
- package/dist/src/inspector-styles.js.map +1 -0
- package/dist/src/line-styles.d.ts +4 -0
- package/dist/src/line-styles.js +144 -0
- package/dist/src/line-styles.js.map +1 -0
- package/dist/src/property-grid-styles.d.ts +4 -0
- package/dist/src/property-grid-styles.js +169 -0
- package/dist/src/property-grid-styles.js.map +1 -0
- package/dist/src/table-event-styles.d.ts +4 -0
- package/dist/src/table-event-styles.js +57 -0
- package/dist/src/table-event-styles.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/icons/icon-inspector.png +0 -0
- package/icons/icon-properties-arrow-type.png +0 -0
- package/icons/icon-properties-gradient-direction.png +0 -0
- package/icons/icon-properties-line-type.png +0 -0
- package/icons/icon-properties-padding.png +0 -0
- package/icons/icon-properties-table.png +0 -0
- package/package.json +59 -3
- package/dist/stories/button-container-styles.stories.d.ts +0 -16
- package/dist/stories/button-container-styles.stories.js +0 -77
- package/dist/stories/button-container-styles.stories.js.map +0 -1
- package/dist/stories/common-header-styles-actions.stories.d.ts +0 -22
- package/dist/stories/common-header-styles-actions.stories.js +0 -101
- package/dist/stories/common-header-styles-actions.stories.js.map +0 -1
- package/dist/stories/common-header-styles-pure.stories.d.ts +0 -21
- package/dist/stories/common-header-styles-pure.stories.js +0 -78
- package/dist/stories/common-header-styles-pure.stories.js.map +0 -1
@@ -1,77 +0,0 @@
|
|
1
|
-
import '@material/web/icon/icon.js';
|
2
|
-
import { ButtonContainerStyles } from '../src/button-container-styles.js';
|
3
|
-
import { html } from 'lit';
|
4
|
-
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js';
|
5
|
-
export default {
|
6
|
-
title: 'button-container-styles-pure',
|
7
|
-
component: 'div',
|
8
|
-
argTypes: {}
|
9
|
-
};
|
10
|
-
const Template = ({}) => html `
|
11
|
-
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
12
|
-
|
13
|
-
<link href="/themes/light.css" rel="stylesheet" />
|
14
|
-
<link href="/themes/dark.css" rel="stylesheet" />
|
15
|
-
<link href="/themes/spacing.css" rel="stylesheet" />
|
16
|
-
|
17
|
-
<link
|
18
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
19
|
-
rel="stylesheet"
|
20
|
-
/>
|
21
|
-
<link
|
22
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
23
|
-
rel="stylesheet"
|
24
|
-
/>
|
25
|
-
<link
|
26
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
27
|
-
rel="stylesheet"
|
28
|
-
/>
|
29
|
-
|
30
|
-
<style>
|
31
|
-
body {
|
32
|
-
width: 100%;
|
33
|
-
height: 500px;
|
34
|
-
text-align: center;
|
35
|
-
|
36
|
-
|
37
|
-
background-color: var(--md-sys-color-background);
|
38
|
-
color: var(--md-sys-color-on-background);
|
39
|
-
}
|
40
|
-
|
41
|
-
.container {
|
42
|
-
padding: var(--spacing-medium);
|
43
|
-
background-color: var(--md-sys-color-primary-container);
|
44
|
-
color: var(--md-sys-color-on-primary-container);
|
45
|
-
|
46
|
-
display: flex;
|
47
|
-
flex-direction: column;
|
48
|
-
gap: 10px;
|
49
|
-
}
|
50
|
-
|
51
|
-
${MDTypeScaleStyles.cssText}
|
52
|
-
${ButtonContainerStyles.cssText}
|
53
|
-
</style>
|
54
|
-
|
55
|
-
<div class="container md-typescale-body-medium">
|
56
|
-
<div class="button-container" style="background-color: white;">
|
57
|
-
<button raised><md-icon>save</md-icon>save</button>
|
58
|
-
<button outlined><md-icon>launch</md-icon>remove</button>
|
59
|
-
<button danger><md-icon>delete</md-icon>delete</button>
|
60
|
-
</div>
|
61
|
-
|
62
|
-
<div class="button-container" style="background-color: white;">
|
63
|
-
<button danger><md-icon>cancel</md-icon>cancel</button>
|
64
|
-
<button><md-icon>done</md-icon>confirm</button>
|
65
|
-
</div>
|
66
|
-
|
67
|
-
<div class="button-container" style="background-color: white;margin-left: unset;">
|
68
|
-
<button danger><md-icon>restart_alt</md-icon>reset</button>
|
69
|
-
<div filler></div>
|
70
|
-
<button danger><md-icon>cancel</md-icon>cancel</button>
|
71
|
-
<button><md-icon>done</md-icon>confirm</button>
|
72
|
-
</div>
|
73
|
-
</div>
|
74
|
-
`;
|
75
|
-
export const Regular = Template.bind({});
|
76
|
-
Regular.args = {};
|
77
|
-
//# sourceMappingURL=button-container-styles.stories.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"button-container-styles.stories.js","sourceRoot":"","sources":["../../stories/button-container-styles.stories.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AAEzE,OAAO,EAAO,IAAI,EAA0B,MAAM,KAAK,CAAA;AACvD,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,iDAAiD,CAAA;AAE7F,eAAe;IACb,KAAK,EAAE,8BAA8B;IACrC,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE,EAAE;CACb,CAAA;AAUD,MAAM,QAAQ,GAAoB,CAAC,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyClD,iBAAiB,CAAC,OAAO;MACzB,qBAAqB,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;;CAsBlC,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,OAAO,CAAC,IAAI,GAAG,EAAE,CAAA","sourcesContent":["import '@material/web/icon/icon.js'\nimport { ButtonContainerStyles } from '../src/button-container-styles.js'\n\nimport { css, html, render, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js'\n\nexport default {\n title: 'button-container-styles-pure',\n component: 'div',\n argTypes: {}\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {}\n\nconst Template: Story<ArgTypes> = ({}: ArgTypes) => html`\n <link href=\"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap\" rel=\"stylesheet\" />\n\n <link href=\"/themes/light.css\" rel=\"stylesheet\" />\n <link href=\"/themes/dark.css\" rel=\"stylesheet\" />\n <link href=\"/themes/spacing.css\" rel=\"stylesheet\" />\n\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n\n <style>\n body {\n width: 100%;\n height: 500px;\n text-align: center;\n\n\n background-color: var(--md-sys-color-background);\n color: var(--md-sys-color-on-background);\n }\n\n .container {\n padding: var(--spacing-medium);\n background-color: var(--md-sys-color-primary-container);\n color: var(--md-sys-color-on-primary-container);\n\n display: flex;\n flex-direction: column;\n gap: 10px;\n }\n\n ${MDTypeScaleStyles.cssText}\n ${ButtonContainerStyles.cssText}\n </style>\n\n <div class=\"container md-typescale-body-medium\">\n <div class=\"button-container\" style=\"background-color: white;\">\n <button raised><md-icon>save</md-icon>save</button>\n <button outlined><md-icon>launch</md-icon>remove</button>\n <button danger><md-icon>delete</md-icon>delete</button>\n </div>\n\n <div class=\"button-container\" style=\"background-color: white;\">\n <button danger><md-icon>cancel</md-icon>cancel</button>\n <button><md-icon>done</md-icon>confirm</button>\n </div>\n\n <div class=\"button-container\" style=\"background-color: white;margin-left: unset;\">\n <button danger><md-icon>restart_alt</md-icon>reset</button>\n <div filler></div>\n <button danger><md-icon>cancel</md-icon>cancel</button>\n <button><md-icon>done</md-icon>confirm</button>\n </div>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {}\n"]}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import '@material/web/icon/icon.js';
|
2
|
-
import '@operato/context/ox-context-page-toolbar.js';
|
3
|
-
import { TemplateResult } from 'lit';
|
4
|
-
declare const _default: {
|
5
|
-
title: string;
|
6
|
-
component: string;
|
7
|
-
argTypes: {
|
8
|
-
label: {
|
9
|
-
control: string;
|
10
|
-
};
|
11
|
-
};
|
12
|
-
};
|
13
|
-
export default _default;
|
14
|
-
interface Story<T> {
|
15
|
-
(args: T): TemplateResult;
|
16
|
-
args?: Partial<T>;
|
17
|
-
argTypes?: Record<string, unknown>;
|
18
|
-
}
|
19
|
-
interface ArgTypes {
|
20
|
-
label?: string;
|
21
|
-
}
|
22
|
-
export declare const Regular: Story<ArgTypes>;
|
@@ -1,101 +0,0 @@
|
|
1
|
-
import '@material/web/icon/icon.js';
|
2
|
-
import '@operato/context/ox-context-page-toolbar.js';
|
3
|
-
import { CommonHeaderStyles } from '../src/common-header-styles.js';
|
4
|
-
import { html } from 'lit';
|
5
|
-
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js';
|
6
|
-
export default {
|
7
|
-
title: 'common-header-styles-actions',
|
8
|
-
component: 'div',
|
9
|
-
argTypes: {
|
10
|
-
label: { control: 'string' }
|
11
|
-
}
|
12
|
-
};
|
13
|
-
const Template = ({ label = '' }) => html `
|
14
|
-
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
15
|
-
|
16
|
-
<link href="/themes/light.css" rel="stylesheet" />
|
17
|
-
<link href="/themes/dark.css" rel="stylesheet" />
|
18
|
-
<link href="/themes/spacing.css" rel="stylesheet" />
|
19
|
-
|
20
|
-
<link
|
21
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
22
|
-
rel="stylesheet"
|
23
|
-
/>
|
24
|
-
<link
|
25
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
26
|
-
rel="stylesheet"
|
27
|
-
/>
|
28
|
-
<link
|
29
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
30
|
-
rel="stylesheet"
|
31
|
-
/>
|
32
|
-
|
33
|
-
<style>
|
34
|
-
body {
|
35
|
-
width: 100%;
|
36
|
-
height: 500px;
|
37
|
-
text-align: center;
|
38
|
-
|
39
|
-
background-color: var(--md-sys-color-background);
|
40
|
-
color: var(--md-sys-color-on-background);
|
41
|
-
}
|
42
|
-
|
43
|
-
.container {
|
44
|
-
padding: var(--spacing-medium);
|
45
|
-
background-color: var(--md-sys-color-primary-container);
|
46
|
-
color: var(--md-sys-color-on-primary-container);
|
47
|
-
|
48
|
-
display: flex;
|
49
|
-
flex-direction: column;
|
50
|
-
gap: var(--spacing-medium);
|
51
|
-
}
|
52
|
-
|
53
|
-
${MDTypeScaleStyles.cssText}
|
54
|
-
${CommonHeaderStyles.cssText}
|
55
|
-
</style>
|
56
|
-
|
57
|
-
<div class="container md-typescale-body-medium">
|
58
|
-
<div class="header">
|
59
|
-
<div class="title">${label}</div>
|
60
|
-
|
61
|
-
<div class="filters"><label>Filter</label><input type="text" /></div>
|
62
|
-
|
63
|
-
<ox-context-page-toolbar
|
64
|
-
class="actions"
|
65
|
-
.context=${{
|
66
|
-
exportable: {
|
67
|
-
// name: i18next.t('title.data-set list'),
|
68
|
-
// data: this.exportHandler.bind(this)
|
69
|
-
},
|
70
|
-
importable: {
|
71
|
-
// handler: this.importHandler.bind(this)
|
72
|
-
},
|
73
|
-
actions: [
|
74
|
-
{
|
75
|
-
title: 'save',
|
76
|
-
// action: this._updateDataSet.bind(this),
|
77
|
-
icon: 'save'
|
78
|
-
},
|
79
|
-
{
|
80
|
-
title: 'copy',
|
81
|
-
// action: this._copyDataSet.bind(this),
|
82
|
-
icon: 'content_copy'
|
83
|
-
},
|
84
|
-
{
|
85
|
-
title: 'delete',
|
86
|
-
// action: this._deleteDataSet.bind(this),
|
87
|
-
icon: 'delete'
|
88
|
-
}
|
89
|
-
],
|
90
|
-
toolbar: false
|
91
|
-
}}
|
92
|
-
>
|
93
|
-
</ox-context-page-toolbar>
|
94
|
-
</div>
|
95
|
-
</div>
|
96
|
-
`;
|
97
|
-
export const Regular = Template.bind({});
|
98
|
-
Regular.args = {
|
99
|
-
label: 'common header styles'
|
100
|
-
};
|
101
|
-
//# sourceMappingURL=common-header-styles-actions.stories.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"common-header-styles-actions.stories.js","sourceRoot":"","sources":["../../stories/common-header-styles-actions.stories.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,6CAA6C,CAAA;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AAEnE,OAAO,EAAO,IAAI,EAA0B,MAAM,KAAK,CAAA;AACvD,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,iDAAiD,CAAA;AAE7F,eAAe;IACb,KAAK,EAAE,8BAA8B;IACrC,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;KAC7B;CACF,CAAA;AAYD,MAAM,QAAQ,GAAoB,CAAC,EAAE,KAAK,GAAG,EAAE,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwC9D,iBAAiB,CAAC,OAAO;MACzB,kBAAkB,CAAC,OAAO;;;;;2BAKL,KAAK;;;;;;mBAMb;IACT,UAAU,EAAE;IACV,0CAA0C;IAC1C,sCAAsC;KACvC;IACD,UAAU,EAAE;IACV,yCAAyC;KAC1C;IACD,OAAO,EAAE;QACP;YACE,KAAK,EAAE,MAAM;YACb,0CAA0C;YAC1C,IAAI,EAAE,MAAM;SACb;QACD;YACE,KAAK,EAAE,MAAM;YACb,wCAAwC;YACxC,IAAI,EAAE,cAAc;SACrB;QACD;YACE,KAAK,EAAE,QAAQ;YACf,0CAA0C;YAC1C,IAAI,EAAE,QAAQ;SACf;KACF;IACD,OAAO,EAAE,KAAK;CACf;;;;;CAKR,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,OAAO,CAAC,IAAI,GAAG;IACb,KAAK,EAAE,sBAAsB;CAC9B,CAAA","sourcesContent":["import '@material/web/icon/icon.js'\nimport '@operato/context/ox-context-page-toolbar.js'\n\nimport { CommonHeaderStyles } from '../src/common-header-styles.js'\n\nimport { css, html, render, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js'\n\nexport default {\n title: 'common-header-styles-actions',\n component: 'div',\n argTypes: {\n label: { control: 'string' }\n }\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {\n label?: string\n}\n\nconst Template: Story<ArgTypes> = ({ label = '' }: ArgTypes) => html`\n <link href=\"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap\" rel=\"stylesheet\" />\n\n <link href=\"/themes/light.css\" rel=\"stylesheet\" />\n <link href=\"/themes/dark.css\" rel=\"stylesheet\" />\n <link href=\"/themes/spacing.css\" rel=\"stylesheet\" />\n\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n\n <style>\n body {\n width: 100%;\n height: 500px;\n text-align: center;\n\n background-color: var(--md-sys-color-background);\n color: var(--md-sys-color-on-background);\n }\n\n .container {\n padding: var(--spacing-medium);\n background-color: var(--md-sys-color-primary-container);\n color: var(--md-sys-color-on-primary-container);\n\n display: flex;\n flex-direction: column;\n gap: var(--spacing-medium);\n }\n\n ${MDTypeScaleStyles.cssText}\n ${CommonHeaderStyles.cssText}\n </style>\n\n <div class=\"container md-typescale-body-medium\">\n <div class=\"header\">\n <div class=\"title\">${label}</div>\n\n <div class=\"filters\"><label>Filter</label><input type=\"text\" /></div>\n\n <ox-context-page-toolbar\n class=\"actions\"\n .context=${{\n exportable: {\n // name: i18next.t('title.data-set list'),\n // data: this.exportHandler.bind(this)\n },\n importable: {\n // handler: this.importHandler.bind(this)\n },\n actions: [\n {\n title: 'save',\n // action: this._updateDataSet.bind(this),\n icon: 'save'\n },\n {\n title: 'copy',\n // action: this._copyDataSet.bind(this),\n icon: 'content_copy'\n },\n {\n title: 'delete',\n // action: this._deleteDataSet.bind(this),\n icon: 'delete'\n }\n ],\n toolbar: false\n }}\n >\n </ox-context-page-toolbar>\n </div>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n label: 'common header styles'\n}\n"]}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import '@material/web/icon/icon.js';
|
2
|
-
import { TemplateResult } from 'lit';
|
3
|
-
declare const _default: {
|
4
|
-
title: string;
|
5
|
-
component: string;
|
6
|
-
argTypes: {
|
7
|
-
label: {
|
8
|
-
control: string;
|
9
|
-
};
|
10
|
-
};
|
11
|
-
};
|
12
|
-
export default _default;
|
13
|
-
interface Story<T> {
|
14
|
-
(args: T): TemplateResult;
|
15
|
-
args?: Partial<T>;
|
16
|
-
argTypes?: Record<string, unknown>;
|
17
|
-
}
|
18
|
-
interface ArgTypes {
|
19
|
-
label?: string;
|
20
|
-
}
|
21
|
-
export declare const Regular: Story<ArgTypes>;
|
@@ -1,78 +0,0 @@
|
|
1
|
-
import '@material/web/icon/icon.js';
|
2
|
-
import { CommonHeaderStyles } from '../src/common-header-styles.js';
|
3
|
-
import { html } from 'lit';
|
4
|
-
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js';
|
5
|
-
export default {
|
6
|
-
title: 'common-header-styles-pure',
|
7
|
-
component: 'div',
|
8
|
-
argTypes: {
|
9
|
-
label: { control: 'string' }
|
10
|
-
}
|
11
|
-
};
|
12
|
-
const Template = ({ label = '' }) => html `
|
13
|
-
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
14
|
-
|
15
|
-
<link href="/themes/light.css" rel="stylesheet" />
|
16
|
-
<link href="/themes/dark.css" rel="stylesheet" />
|
17
|
-
<link href="/themes/spacing.css" rel="stylesheet" />
|
18
|
-
|
19
|
-
<link
|
20
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
21
|
-
rel="stylesheet"
|
22
|
-
/>
|
23
|
-
<link
|
24
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
25
|
-
rel="stylesheet"
|
26
|
-
/>
|
27
|
-
<link
|
28
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
29
|
-
rel="stylesheet"
|
30
|
-
/>
|
31
|
-
|
32
|
-
<style>
|
33
|
-
body {
|
34
|
-
width: 100%;
|
35
|
-
height: 500px;
|
36
|
-
text-align: center;
|
37
|
-
|
38
|
-
background-color: var(--md-sys-color-background);
|
39
|
-
color: var(--md-sys-color-on-background);
|
40
|
-
}
|
41
|
-
|
42
|
-
.container {
|
43
|
-
padding: var(--spacing-medium);
|
44
|
-
background-color: var(--md-sys-color-primary-container);
|
45
|
-
color: var(--md-sys-color-on-primary-container);
|
46
|
-
|
47
|
-
display: flex;
|
48
|
-
flex-direction: column;
|
49
|
-
gap: 10px;
|
50
|
-
}
|
51
|
-
|
52
|
-
${MDTypeScaleStyles.cssText}
|
53
|
-
${CommonHeaderStyles.cssText}
|
54
|
-
</style>
|
55
|
-
|
56
|
-
<div class="container md-typescale-body-medium">
|
57
|
-
<div class="header">
|
58
|
-
<div class="title">${label}</div>
|
59
|
-
|
60
|
-
<div class="filters">
|
61
|
-
<div class="filter"><label>Filter</label><input type="text" /></div>
|
62
|
-
<div class="filter"><label>Filter</label><input type="text" /></div>
|
63
|
-
<div class="filter"><label>Filter</label><input type="text" /></div>
|
64
|
-
</div>
|
65
|
-
|
66
|
-
<div class="actions">
|
67
|
-
<div class="textbtn">Action</div>
|
68
|
-
<div class="iconbtn"><md-icon>save</md-icon></div>
|
69
|
-
<div class="iconbtn"><md-icon>delete</md-icon></div>
|
70
|
-
</div>
|
71
|
-
</div>
|
72
|
-
</div>
|
73
|
-
`;
|
74
|
-
export const Regular = Template.bind({});
|
75
|
-
Regular.args = {
|
76
|
-
label: 'common header styles'
|
77
|
-
};
|
78
|
-
//# sourceMappingURL=common-header-styles-pure.stories.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"common-header-styles-pure.stories.js","sourceRoot":"","sources":["../../stories/common-header-styles-pure.stories.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AAEnE,OAAO,EAAO,IAAI,EAA0B,MAAM,KAAK,CAAA;AACvD,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,iDAAiD,CAAA;AAE7F,eAAe;IACb,KAAK,EAAE,2BAA2B;IAClC,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;KAC7B;CACF,CAAA;AAYD,MAAM,QAAQ,GAAoB,CAAC,EAAE,KAAK,GAAG,EAAE,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwC9D,iBAAiB,CAAC,OAAO;MACzB,kBAAkB,CAAC,OAAO;;;;;2BAKL,KAAK;;;;;;;;;;;;;;;CAe/B,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,OAAO,CAAC,IAAI,GAAG;IACb,KAAK,EAAE,sBAAsB;CAC9B,CAAA","sourcesContent":["import '@material/web/icon/icon.js'\nimport { CommonHeaderStyles } from '../src/common-header-styles.js'\n\nimport { css, html, render, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js'\n\nexport default {\n title: 'common-header-styles-pure',\n component: 'div',\n argTypes: {\n label: { control: 'string' }\n }\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {\n label?: string\n}\n\nconst Template: Story<ArgTypes> = ({ label = '' }: ArgTypes) => html`\n <link href=\"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap\" rel=\"stylesheet\" />\n\n <link href=\"/themes/light.css\" rel=\"stylesheet\" />\n <link href=\"/themes/dark.css\" rel=\"stylesheet\" />\n <link href=\"/themes/spacing.css\" rel=\"stylesheet\" />\n\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n\n <style>\n body {\n width: 100%;\n height: 500px;\n text-align: center;\n\n background-color: var(--md-sys-color-background);\n color: var(--md-sys-color-on-background);\n }\n\n .container {\n padding: var(--spacing-medium);\n background-color: var(--md-sys-color-primary-container);\n color: var(--md-sys-color-on-primary-container);\n\n display: flex;\n flex-direction: column;\n gap: 10px;\n }\n\n ${MDTypeScaleStyles.cssText}\n ${CommonHeaderStyles.cssText}\n </style>\n\n <div class=\"container md-typescale-body-medium\">\n <div class=\"header\">\n <div class=\"title\">${label}</div>\n\n <div class=\"filters\">\n <div class=\"filter\"><label>Filter</label><input type=\"text\" /></div>\n <div class=\"filter\"><label>Filter</label><input type=\"text\" /></div>\n <div class=\"filter\"><label>Filter</label><input type=\"text\" /></div>\n </div>\n\n <div class=\"actions\">\n <div class=\"textbtn\">Action</div>\n <div class=\"iconbtn\"><md-icon>save</md-icon></div>\n <div class=\"iconbtn\"><md-icon>delete</md-icon></div>\n </div>\n </div>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n label: 'common header styles'\n}\n"]}
|