@operato/styles 8.0.0-beta.0 → 8.0.0-beta.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.
@@ -1,91 +0,0 @@
1
- import '@material/web/icon/icon.js'
2
- import { CommonHeaderStyles } from '../src/common-header-styles.js'
3
-
4
- import { css, html, render, TemplateResult } from 'lit'
5
- import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'
6
-
7
- export default {
8
- title: 'common-header-styles-pure',
9
- component: 'div',
10
- argTypes: {
11
- label: { control: 'string' }
12
- }
13
- }
14
-
15
- interface Story<T> {
16
- (args: T): TemplateResult
17
- args?: Partial<T>
18
- argTypes?: Record<string, unknown>
19
- }
20
-
21
- interface ArgTypes {
22
- label?: string
23
- }
24
-
25
- const Template: Story<ArgTypes> = ({ label = '' }: ArgTypes) => html`
26
- <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
27
-
28
- <link href="/themes/light.css" rel="stylesheet" />
29
- <link href="/themes/dark.css" rel="stylesheet" />
30
- <link href="/themes/spacing.css" rel="stylesheet" />
31
-
32
- <link
33
- href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
34
- rel="stylesheet"
35
- />
36
- <link
37
- href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
38
- rel="stylesheet"
39
- />
40
- <link
41
- href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
42
- rel="stylesheet"
43
- />
44
-
45
- <style>
46
- body {
47
- width: 100%;
48
- height: 500px;
49
- text-align: center;
50
-
51
- background-color: var(--md-sys-color-background);
52
- color: var(--md-sys-color-on-background);
53
- }
54
-
55
- .container {
56
- padding: var(--spacing-medium);
57
- background-color: var(--md-sys-color-primary-container);
58
- color: var(--md-sys-color-on-primary-container);
59
-
60
- display: flex;
61
- flex-direction: column;
62
- gap: 10px;
63
- }
64
-
65
- ${MDTypeScaleStyles.cssText}
66
- ${CommonHeaderStyles.cssText}
67
- </style>
68
-
69
- <div class="container md-typescale-body-medium">
70
- <div class="header">
71
- <div class="title">${label}</div>
72
-
73
- <div class="filters">
74
- <div class="filter"><label>Filter</label><input type="text" /></div>
75
- <div class="filter"><label>Filter</label><input type="text" /></div>
76
- <div class="filter"><label>Filter</label><input type="text" /></div>
77
- </div>
78
-
79
- <div class="actions">
80
- <div class="textbtn">Action</div>
81
- <div class="iconbtn"><md-icon>save</md-icon></div>
82
- <div class="iconbtn"><md-icon>delete</md-icon></div>
83
- </div>
84
- </div>
85
- </div>
86
- `
87
-
88
- export const Regular = Template.bind({})
89
- Regular.args = {
90
- label: 'common header styles'
91
- }
package/tsconfig.json DELETED
@@ -1,24 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es2018",
4
- "module": "esnext",
5
- "moduleResolution": "node",
6
- "noEmitOnError": true,
7
- "lib": ["es2017", "dom"],
8
- "strict": true,
9
- "esModuleInterop": true,
10
- "allowSyntheticDefaultImports": true,
11
- "experimentalDecorators": true,
12
- "useDefineForClassFields": false,
13
- "importHelpers": true,
14
- "outDir": "dist",
15
- "sourceMap": true,
16
- "inlineSources": true,
17
- "rootDir": "./",
18
- "declaration": true,
19
- "incremental": true,
20
- "skipLibCheck": true,
21
- "types": ["node", "mocha"]
22
- },
23
- "include": ["**/*.ts", "*.d.ts"]
24
- }
@@ -1,27 +0,0 @@
1
- // import { hmrPlugin, presets } from '@open-wc/dev-server-hmr';
2
-
3
- /** Use Hot Module replacement by adding --hmr to the start command */
4
- const hmr = process.argv.includes('--hmr');
5
-
6
- export default /** @type {import('@web/dev-server').DevServerConfig} */ ({
7
- open: '/demo/',
8
- /** Use regular watch mode if HMR is not enabled. */
9
- watch: !hmr,
10
- /** Resolve bare module imports */
11
- nodeResolve: {
12
- exportConditions: ['browser', 'development'],
13
- },
14
-
15
- /** Compile JS for older browsers. Requires @web/dev-server-esbuild plugin */
16
- // esbuildTarget: 'auto'
17
-
18
- /** Set appIndex to enable SPA routing */
19
- // appIndex: 'demo/index.html',
20
-
21
- plugins: [
22
- /** Use Hot Module Replacement by uncommenting. Requires @open-wc/dev-server-hmr plugin */
23
- // hmr && hmrPlugin({ exclude: ['**/*/node_modules/**/*'], presets: [presets.litElement] }),
24
- ],
25
-
26
- // See documentation for all available options
27
- });