angular-latest 0.0.0 → 0.0.2
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/angular-latest-0.0.2.tgz +0 -0
- package/package.json +2 -1
- package/{storybook-static/project.json → project.json} +1 -1
- package/.cache/storybook/default/dev-server/a5a8bf6e622aef57065c6498611f40c911543d7d-3920d97c51b8ad2521918fb1205babd22b0ed3d7 +0 -1
- package/.cache/storybook/default/dev-server/a5a8bf6e622aef57065c6498611f40c911543d7d-43fdebe5fc35e4e9fabee9a83c7faea931b05ea0 +0 -1
- package/.storybook/main.ts +0 -19
- package/.storybook/preview.ts +0 -17
- package/.storybook/tsconfig.doc.json +0 -10
- package/.storybook/tsconfig.json +0 -11
- package/.storybook/typings.d.ts +0 -4
- package/.vscode/extensions.json +0 -4
- package/.vscode/launch.json +0 -13
- package/.vscode/tasks.json +0 -24
- package/README.md +0 -27
- package/angular.json +0 -139
- package/documentation.json +0 -552
- package/src/app/app.component.ts +0 -17
- package/src/app/app.config.ts +0 -8
- package/src/app/app.routes.ts +0 -3
- package/src/app/components/loader/loader.component.css +0 -21
- package/src/app/components/loader/loader.component.html +0 -1
- package/src/app/components/loader/loader.component.ts +0 -10
- package/src/assets/.gitkeep +0 -0
- package/src/favicon.ico +0 -0
- package/src/index.html +0 -13
- package/src/main.ts +0 -6
- package/src/stories/.eslintrc.json +0 -5
- package/src/stories/Configure.mdx +0 -364
- package/src/stories/assets/accessibility.png +0 -0
- package/src/stories/assets/accessibility.svg +0 -5
- package/src/stories/assets/addon-library.png +0 -0
- package/src/stories/assets/assets.png +0 -0
- package/src/stories/assets/avif-test-image.avif +0 -0
- package/src/stories/assets/context.png +0 -0
- package/src/stories/assets/discord.svg +0 -15
- package/src/stories/assets/docs.png +0 -0
- package/src/stories/assets/figma-plugin.png +0 -0
- package/src/stories/assets/github.svg +0 -3
- package/src/stories/assets/share.png +0 -0
- package/src/stories/assets/styling.png +0 -0
- package/src/stories/assets/testing.png +0 -0
- package/src/stories/assets/theming.png +0 -0
- package/src/stories/assets/tutorials.svg +0 -12
- package/src/stories/assets/youtube.svg +0 -4
- package/src/stories/button.component.ts +0 -56
- package/src/stories/button.css +0 -30
- package/src/stories/button.stories.ts +0 -48
- package/src/stories/header.component.ts +0 -79
- package/src/stories/header.css +0 -32
- package/src/stories/header.stories.ts +0 -33
- package/src/stories/loader.stories.ts +0 -28
- package/src/stories/page.component.ts +0 -82
- package/src/stories/page.css +0 -69
- package/src/stories/page.stories.ts +0 -32
- package/src/stories/user.ts +0 -3
- package/src/styles.scss +0 -1
- package/tsconfig.app.json +0 -14
- package/tsconfig.json +0 -32
- /package/{storybook-static/419.9380106a.iframe.bundle.js → 419.9380106a.iframe.bundle.js} +0 -0
- /package/{storybook-static/555.5343233e.iframe.bundle.js → 555.5343233e.iframe.bundle.js} +0 -0
- /package/{storybook-static/723.dcfee548.iframe.bundle.js → 723.dcfee548.iframe.bundle.js} +0 -0
- /package/{storybook-static/723.dcfee548.iframe.bundle.js.LICENSE.txt → 723.dcfee548.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/{storybook-static/723.dcfee548.iframe.bundle.js.map → 723.dcfee548.iframe.bundle.js.map} +0 -0
- /package/{storybook-static/764.16831083.iframe.bundle.js → 764.16831083.iframe.bundle.js} +0 -0
- /package/{storybook-static/787.f3a8f680.iframe.bundle.js → 787.f3a8f680.iframe.bundle.js} +0 -0
- /package/{storybook-static/912.a867d3a2.iframe.bundle.js → 912.a867d3a2.iframe.bundle.js} +0 -0
- /package/{storybook-static/944.63355339.iframe.bundle.js → 944.63355339.iframe.bundle.js} +0 -0
- /package/{storybook-static/994.091897e1.iframe.bundle.js → 994.091897e1.iframe.bundle.js} +0 -0
- /package/{storybook-static/994.091897e1.iframe.bundle.js.LICENSE.txt → 994.091897e1.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/{storybook-static/994.091897e1.iframe.bundle.js.map → 994.091897e1.iframe.bundle.js.map} +0 -0
- /package/{storybook-static/favicon.svg → favicon.svg} +0 -0
- /package/{storybook-static/iframe.html → iframe.html} +0 -0
- /package/{storybook-static/index.html → index.html} +0 -0
- /package/{storybook-static/index.json → index.json} +0 -0
- /package/{storybook-static/main.01eb4ecea8870f3a4901.css → main.01eb4ecea8870f3a4901.css} +0 -0
- /package/{storybook-static/main.c80cd11c.iframe.bundle.js → main.c80cd11c.iframe.bundle.js} +0 -0
- /package/{storybook-static/runtime~main.19b79a34.iframe.bundle.js → runtime~main.19b79a34.iframe.bundle.js} +0 -0
- /package/{storybook-static/sb-addons → sb-addons}/chromatic-com-storybook-9/manager-bundle.js +0 -0
- /package/{storybook-static/sb-addons → sb-addons}/chromatic-com-storybook-9/manager-bundle.js.LEGAL.txt +0 -0
- /package/{storybook-static/sb-addons → sb-addons}/essentials-actions-3/manager-bundle.js +0 -0
- /package/{storybook-static/sb-addons → sb-addons}/essentials-actions-3/manager-bundle.js.LEGAL.txt +0 -0
- /package/{storybook-static/sb-addons → sb-addons}/essentials-backgrounds-4/manager-bundle.js +0 -0
- /package/{storybook-static/sb-addons → sb-addons}/essentials-backgrounds-4/manager-bundle.js.LEGAL.txt +0 -0
- /package/{storybook-static/sb-addons → sb-addons}/essentials-controls-2/manager-bundle.js +0 -0
- /package/{storybook-static/sb-addons → sb-addons}/essentials-controls-2/manager-bundle.js.LEGAL.txt +0 -0
- /package/{storybook-static/sb-addons → sb-addons}/essentials-measure-7/manager-bundle.js +0 -0
- /package/{storybook-static/sb-addons → sb-addons}/essentials-measure-7/manager-bundle.js.LEGAL.txt +0 -0
- /package/{storybook-static/sb-addons → sb-addons}/essentials-outline-8/manager-bundle.js +0 -0
- /package/{storybook-static/sb-addons → sb-addons}/essentials-outline-8/manager-bundle.js.LEGAL.txt +0 -0
- /package/{storybook-static/sb-addons → sb-addons}/essentials-toolbars-6/manager-bundle.js +0 -0
- /package/{storybook-static/sb-addons → sb-addons}/essentials-toolbars-6/manager-bundle.js.LEGAL.txt +0 -0
- /package/{storybook-static/sb-addons → sb-addons}/essentials-viewport-5/manager-bundle.js +0 -0
- /package/{storybook-static/sb-addons → sb-addons}/essentials-viewport-5/manager-bundle.js.LEGAL.txt +0 -0
- /package/{storybook-static/sb-addons → sb-addons}/interactions-10/manager-bundle.js +0 -0
- /package/{storybook-static/sb-addons → sb-addons}/interactions-10/manager-bundle.js.LEGAL.txt +0 -0
- /package/{storybook-static/sb-addons → sb-addons}/links-1/manager-bundle.js +0 -0
- /package/{storybook-static/sb-addons → sb-addons}/links-1/manager-bundle.js.LEGAL.txt +0 -0
- /package/{storybook-static/sb-addons → sb-addons}/storybook-core-server-presets-0/common-manager-bundle.js +0 -0
- /package/{storybook-static/sb-addons → sb-addons}/storybook-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
- /package/{storybook-static/sb-common-assets → sb-common-assets}/fonts.css +0 -0
- /package/{storybook-static/sb-common-assets → sb-common-assets}/nunito-sans-bold-italic.woff2 +0 -0
- /package/{storybook-static/sb-common-assets → sb-common-assets}/nunito-sans-bold.woff2 +0 -0
- /package/{storybook-static/sb-common-assets → sb-common-assets}/nunito-sans-italic.woff2 +0 -0
- /package/{storybook-static/sb-common-assets → sb-common-assets}/nunito-sans-regular.woff2 +0 -0
- /package/{storybook-static/sb-manager → sb-manager}/WithTooltip-Y7J54OF7-CEHQ77YF.js +0 -0
- /package/{storybook-static/sb-manager → sb-manager}/chunk-FEE35O7J.js +0 -0
- /package/{storybook-static/sb-manager → sb-manager}/chunk-GFFGH77H.js +0 -0
- /package/{storybook-static/sb-manager → sb-manager}/chunk-KCHUFUTG.js +0 -0
- /package/{storybook-static/sb-manager → sb-manager}/chunk-S4VOIVUE.js +0 -0
- /package/{storybook-static/sb-manager → sb-manager}/chunk-XCO5HRLK.js +0 -0
- /package/{storybook-static/sb-manager → sb-manager}/chunk-XP3HGWTR.js +0 -0
- /package/{storybook-static/sb-manager → sb-manager}/formatter-B5HCVTEV-7DCBOGO6.js +0 -0
- /package/{storybook-static/sb-manager → sb-manager}/globals-module-info.js +0 -0
- /package/{storybook-static/sb-manager → sb-manager}/globals-runtime.js +0 -0
- /package/{storybook-static/sb-manager → sb-manager}/globals.js +0 -0
- /package/{storybook-static/sb-manager → sb-manager}/index.js +0 -0
- /package/{storybook-static/sb-manager → sb-manager}/runtime.js +0 -0
- /package/{storybook-static/sb-manager → sb-manager}/syntaxhighlighter-JOJW2KGS-VF6EEVPI.js +0 -0
- /package/{storybook-static/sb-preview → sb-preview}/globals.js +0 -0
- /package/{storybook-static/sb-preview → sb-preview}/runtime.js +0 -0
- /package/{storybook-static/static → static}/media/accessibility.2dbc6973.png +0 -0
- /package/{storybook-static/static → static}/media/addon-library.7a58d2cb.png +0 -0
- /package/{storybook-static/static → static}/media/assets.e6440a95.png +0 -0
- /package/{storybook-static/static → static}/media/context.645728c6.png +0 -0
- /package/{storybook-static/static → static}/media/discord.bd319a53.svg +0 -0
- /package/{storybook-static/static → static}/media/docs.f7d8b9a8.png +0 -0
- /package/{storybook-static/static → static}/media/figma-plugin.9335a1a9.png +0 -0
- /package/{storybook-static/static → static}/media/github.0366d3df.svg +0 -0
- /package/{storybook-static/static → static}/media/share.161528bb.png +0 -0
- /package/{storybook-static/static → static}/media/styling.38cab73b.png +0 -0
- /package/{storybook-static/static → static}/media/testing.c720ced2.png +0 -0
- /package/{storybook-static/static → static}/media/theming.e93de094.png +0 -0
- /package/{storybook-static/static → static}/media/tutorials.dc623e0d.svg +0 -0
- /package/{storybook-static/static → static}/media/youtube.9ab9c849.svg +0 -0
- /package/{storybook-static/stories-Configure-mdx.4d18500d.iframe.bundle.js → stories-Configure-mdx.4d18500d.iframe.bundle.js} +0 -0
- /package/{storybook-static/stories-Configure-mdx.4d18500d.iframe.bundle.js.LICENSE.txt → stories-Configure-mdx.4d18500d.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/{storybook-static/stories-button-stories.e503e31e.iframe.bundle.js → stories-button-stories.e503e31e.iframe.bundle.js} +0 -0
- /package/{storybook-static/stories-header-stories.2b1be1ea.iframe.bundle.js → stories-header-stories.2b1be1ea.iframe.bundle.js} +0 -0
- /package/{storybook-static/stories-loader-stories.8e527f9e.iframe.bundle.js → stories-loader-stories.8e527f9e.iframe.bundle.js} +0 -0
- /package/{storybook-static/stories-page-stories.528e11e1.iframe.bundle.js → stories-page-stories.528e11e1.iframe.bundle.js} +0 -0
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
|
|
4
|
-
import { ButtonComponent } from './button.component';
|
|
5
|
-
import type { User } from './user';
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'storybook-header',
|
|
9
|
-
standalone: true,
|
|
10
|
-
imports: [CommonModule, ButtonComponent],
|
|
11
|
-
template: `<header>
|
|
12
|
-
<div class="storybook-header">
|
|
13
|
-
<div>
|
|
14
|
-
<svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
|
15
|
-
<g fill="none" fillRule="evenodd">
|
|
16
|
-
<path
|
|
17
|
-
d="M10 0h12a10 10 0 0110 10v12a10 10 0 01-10 10H10A10 10 0 010 22V10A10 10 0 0110 0z"
|
|
18
|
-
fill="#FFF"
|
|
19
|
-
/>
|
|
20
|
-
<path
|
|
21
|
-
d="M5.3 10.6l10.4 6v11.1l-10.4-6v-11zm11.4-6.2l9.7 5.5-9.7 5.6V4.4z"
|
|
22
|
-
fill="#555AB9"
|
|
23
|
-
/>
|
|
24
|
-
<path
|
|
25
|
-
d="M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z"
|
|
26
|
-
fill="#91BAF8"
|
|
27
|
-
/>
|
|
28
|
-
</g>
|
|
29
|
-
</svg>
|
|
30
|
-
<h1>Acme</h1>
|
|
31
|
-
</div>
|
|
32
|
-
<div>
|
|
33
|
-
<div *ngIf="user">
|
|
34
|
-
<span class="welcome">
|
|
35
|
-
Welcome, <b>{{ user.name }}</b
|
|
36
|
-
>!
|
|
37
|
-
</span>
|
|
38
|
-
<storybook-button
|
|
39
|
-
*ngIf="user"
|
|
40
|
-
size="small"
|
|
41
|
-
(onClick)="onLogout.emit($event)"
|
|
42
|
-
label="Log out"
|
|
43
|
-
></storybook-button>
|
|
44
|
-
</div>
|
|
45
|
-
<div *ngIf="!user">
|
|
46
|
-
<storybook-button
|
|
47
|
-
*ngIf="!user"
|
|
48
|
-
size="small"
|
|
49
|
-
class="margin-left"
|
|
50
|
-
(onClick)="onLogin.emit($event)"
|
|
51
|
-
label="Log in"
|
|
52
|
-
></storybook-button>
|
|
53
|
-
<storybook-button
|
|
54
|
-
*ngIf="!user"
|
|
55
|
-
size="small"
|
|
56
|
-
[primary]="true"
|
|
57
|
-
class="margin-left"
|
|
58
|
-
(onClick)="onCreateAccount.emit($event)"
|
|
59
|
-
label="Sign up"
|
|
60
|
-
></storybook-button>
|
|
61
|
-
</div>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
</header>`,
|
|
65
|
-
styleUrls: ['./header.css'],
|
|
66
|
-
})
|
|
67
|
-
export class HeaderComponent {
|
|
68
|
-
@Input()
|
|
69
|
-
user: User | null = null;
|
|
70
|
-
|
|
71
|
-
@Output()
|
|
72
|
-
onLogin = new EventEmitter<Event>();
|
|
73
|
-
|
|
74
|
-
@Output()
|
|
75
|
-
onLogout = new EventEmitter<Event>();
|
|
76
|
-
|
|
77
|
-
@Output()
|
|
78
|
-
onCreateAccount = new EventEmitter<Event>();
|
|
79
|
-
}
|
package/src/stories/header.css
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
.storybook-header {
|
|
2
|
-
font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
3
|
-
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
4
|
-
padding: 15px 20px;
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: space-between;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.storybook-header svg {
|
|
11
|
-
display: inline-block;
|
|
12
|
-
vertical-align: top;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.storybook-header h1 {
|
|
16
|
-
font-weight: 700;
|
|
17
|
-
font-size: 20px;
|
|
18
|
-
line-height: 1;
|
|
19
|
-
margin: 6px 0 6px 10px;
|
|
20
|
-
display: inline-block;
|
|
21
|
-
vertical-align: top;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.storybook-header button + button {
|
|
25
|
-
margin-left: 10px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.storybook-header .welcome {
|
|
29
|
-
color: #333;
|
|
30
|
-
font-size: 14px;
|
|
31
|
-
margin-right: 10px;
|
|
32
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/angular';
|
|
2
|
-
|
|
3
|
-
import { HeaderComponent } from './header.component';
|
|
4
|
-
import { fn } from '@storybook/test';
|
|
5
|
-
|
|
6
|
-
const meta: Meta<HeaderComponent> = {
|
|
7
|
-
title: 'Example/Header',
|
|
8
|
-
component: HeaderComponent,
|
|
9
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
|
|
10
|
-
tags: ['autodocs'],
|
|
11
|
-
parameters: {
|
|
12
|
-
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
|
13
|
-
layout: 'fullscreen',
|
|
14
|
-
},
|
|
15
|
-
args: {
|
|
16
|
-
onLogin: fn(),
|
|
17
|
-
onLogout: fn(),
|
|
18
|
-
onCreateAccount: fn(),
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export default meta;
|
|
23
|
-
type Story = StoryObj<HeaderComponent>;
|
|
24
|
-
|
|
25
|
-
export const LoggedIn: Story = {
|
|
26
|
-
args: {
|
|
27
|
-
user: {
|
|
28
|
-
name: 'Jane Doe',
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export const LoggedOut: Story = {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/angular';
|
|
2
|
-
import { fn } from '@storybook/test';
|
|
3
|
-
import { LoaderComponent } from '../app/components/loader/loader.component';
|
|
4
|
-
|
|
5
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
6
|
-
const meta: Meta<LoaderComponent> = {
|
|
7
|
-
title: 'Example/Loader',
|
|
8
|
-
component: LoaderComponent,
|
|
9
|
-
tags: ['autodocs'],
|
|
10
|
-
};
|
|
11
|
-
export default meta;
|
|
12
|
-
type Story = StoryObj<LoaderComponent>;
|
|
13
|
-
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
|
|
14
|
-
export const Default: Story = {
|
|
15
|
-
args: {
|
|
16
|
-
size: 'medium',
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
export const Small: Story = {
|
|
20
|
-
args: {
|
|
21
|
-
size: 'small'
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
export const Large: Story = {
|
|
25
|
-
args: {
|
|
26
|
-
size: 'large'
|
|
27
|
-
},
|
|
28
|
-
};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
|
|
4
|
-
import { HeaderComponent } from './header.component';
|
|
5
|
-
import type { User } from './user';
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'storybook-page',
|
|
9
|
-
standalone: true,
|
|
10
|
-
imports: [CommonModule, HeaderComponent],
|
|
11
|
-
template: `<article>
|
|
12
|
-
<storybook-header
|
|
13
|
-
[user]="user"
|
|
14
|
-
(onLogout)="doLogout()"
|
|
15
|
-
(onLogin)="doLogin()"
|
|
16
|
-
(onCreateAccount)="doCreateAccount()"
|
|
17
|
-
></storybook-header>
|
|
18
|
-
<section class="storybook-page">
|
|
19
|
-
<h2>Pages in Storybook</h2>
|
|
20
|
-
<p>
|
|
21
|
-
We recommend building UIs with a
|
|
22
|
-
<a href="https://componentdriven.org" target="_blank" rel="noopener noreferrer">
|
|
23
|
-
<strong>component-driven</strong>
|
|
24
|
-
</a>
|
|
25
|
-
process starting with atomic components and ending with pages.
|
|
26
|
-
</p>
|
|
27
|
-
<p>
|
|
28
|
-
Render pages with mock data. This makes it easy to build and review page states without
|
|
29
|
-
needing to navigate to them in your app. Here are some handy patterns for managing page data
|
|
30
|
-
in Storybook:
|
|
31
|
-
</p>
|
|
32
|
-
<ul>
|
|
33
|
-
<li>
|
|
34
|
-
Use a higher-level connected component. Storybook helps you compose such data from the
|
|
35
|
-
"args" of child component stories
|
|
36
|
-
</li>
|
|
37
|
-
<li>
|
|
38
|
-
Assemble data in the page component from your services. You can mock these services out
|
|
39
|
-
using Storybook.
|
|
40
|
-
</li>
|
|
41
|
-
</ul>
|
|
42
|
-
<p>
|
|
43
|
-
Get a guided tutorial on component-driven development at
|
|
44
|
-
<a href="https://storybook.js.org/tutorials/" target="_blank" rel="noopener noreferrer">
|
|
45
|
-
Storybook tutorials
|
|
46
|
-
</a>
|
|
47
|
-
. Read more in the
|
|
48
|
-
<a href="https://storybook.js.org/docs" target="_blank" rel="noopener noreferrer"> docs </a>
|
|
49
|
-
.
|
|
50
|
-
</p>
|
|
51
|
-
<div class="tip-wrapper">
|
|
52
|
-
<span class="tip">Tip</span> Adjust the width of the canvas with the
|
|
53
|
-
<svg width="10" height="10" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">
|
|
54
|
-
<g fill="none" fillRule="evenodd">
|
|
55
|
-
<path
|
|
56
|
-
d="M1.5 5.2h4.8c.3 0 .5.2.5.4v5.1c-.1.2-.3.3-.4.3H1.4a.5.5 0 01-.5-.4V5.7c0-.3.2-.5.5-.5zm0-2.1h6.9c.3 0 .5.2.5.4v7a.5.5 0 01-1 0V4H1.5a.5.5 0 010-1zm0-2.1h9c.3 0 .5.2.5.4v9.1a.5.5 0 01-1 0V2H1.5a.5.5 0 010-1zm4.3 5.2H2V10h3.8V6.2z"
|
|
57
|
-
id="a"
|
|
58
|
-
fill="#999"
|
|
59
|
-
/>
|
|
60
|
-
</g>
|
|
61
|
-
</svg>
|
|
62
|
-
Viewports addon in the toolbar
|
|
63
|
-
</div>
|
|
64
|
-
</section>
|
|
65
|
-
</article>`,
|
|
66
|
-
styleUrls: ['./page.css'],
|
|
67
|
-
})
|
|
68
|
-
export class PageComponent {
|
|
69
|
-
user: User | null = null;
|
|
70
|
-
|
|
71
|
-
doLogout() {
|
|
72
|
-
this.user = null;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
doLogin() {
|
|
76
|
-
this.user = { name: 'Jane Doe' };
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
doCreateAccount() {
|
|
80
|
-
this.user = { name: 'Jane Doe' };
|
|
81
|
-
}
|
|
82
|
-
}
|
package/src/stories/page.css
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
.storybook-page {
|
|
2
|
-
font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
3
|
-
font-size: 14px;
|
|
4
|
-
line-height: 24px;
|
|
5
|
-
padding: 48px 20px;
|
|
6
|
-
margin: 0 auto;
|
|
7
|
-
max-width: 600px;
|
|
8
|
-
color: #333;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.storybook-page h2 {
|
|
12
|
-
font-weight: 700;
|
|
13
|
-
font-size: 32px;
|
|
14
|
-
line-height: 1;
|
|
15
|
-
margin: 0 0 4px;
|
|
16
|
-
display: inline-block;
|
|
17
|
-
vertical-align: top;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.storybook-page p {
|
|
21
|
-
margin: 1em 0;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.storybook-page a {
|
|
25
|
-
text-decoration: none;
|
|
26
|
-
color: #1ea7fd;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.storybook-page ul {
|
|
30
|
-
padding-left: 30px;
|
|
31
|
-
margin: 1em 0;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.storybook-page li {
|
|
35
|
-
margin-bottom: 8px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.storybook-page .tip {
|
|
39
|
-
display: inline-block;
|
|
40
|
-
border-radius: 1em;
|
|
41
|
-
font-size: 11px;
|
|
42
|
-
line-height: 12px;
|
|
43
|
-
font-weight: 700;
|
|
44
|
-
background: #e7fdd8;
|
|
45
|
-
color: #66bf3c;
|
|
46
|
-
padding: 4px 12px;
|
|
47
|
-
margin-right: 10px;
|
|
48
|
-
vertical-align: top;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.storybook-page .tip-wrapper {
|
|
52
|
-
font-size: 13px;
|
|
53
|
-
line-height: 20px;
|
|
54
|
-
margin-top: 40px;
|
|
55
|
-
margin-bottom: 40px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.storybook-page .tip-wrapper svg {
|
|
59
|
-
display: inline-block;
|
|
60
|
-
height: 12px;
|
|
61
|
-
width: 12px;
|
|
62
|
-
margin-right: 4px;
|
|
63
|
-
vertical-align: top;
|
|
64
|
-
margin-top: 3px;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.storybook-page .tip-wrapper svg path {
|
|
68
|
-
fill: #1ea7fd;
|
|
69
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/angular';
|
|
2
|
-
import { within, userEvent, expect } from '@storybook/test';
|
|
3
|
-
|
|
4
|
-
import { PageComponent } from './page.component';
|
|
5
|
-
|
|
6
|
-
const meta: Meta<PageComponent> = {
|
|
7
|
-
title: 'Example/Page',
|
|
8
|
-
component: PageComponent,
|
|
9
|
-
parameters: {
|
|
10
|
-
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
|
11
|
-
layout: 'fullscreen',
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export default meta;
|
|
16
|
-
type Story = StoryObj<PageComponent>;
|
|
17
|
-
|
|
18
|
-
export const LoggedOut: Story = {};
|
|
19
|
-
|
|
20
|
-
// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
|
|
21
|
-
export const LoggedIn: Story = {
|
|
22
|
-
play: async ({ canvasElement }) => {
|
|
23
|
-
const canvas = within(canvasElement);
|
|
24
|
-
const loginButton = canvas.getByRole('button', { name: /Log in/i });
|
|
25
|
-
await expect(loginButton).toBeInTheDocument();
|
|
26
|
-
await userEvent.click(loginButton);
|
|
27
|
-
await expect(loginButton).not.toBeInTheDocument();
|
|
28
|
-
|
|
29
|
-
const logoutButton = canvas.getByRole('button', { name: /Log out/i });
|
|
30
|
-
await expect(logoutButton).toBeInTheDocument();
|
|
31
|
-
},
|
|
32
|
-
};
|
package/src/stories/user.ts
DELETED
package/src/styles.scss
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/* You can add global styles to this file, and also import other style files */
|
package/tsconfig.app.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
-
{
|
|
3
|
-
"extends": "./tsconfig.json",
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
"outDir": "./out-tsc/app",
|
|
6
|
-
"types": []
|
|
7
|
-
},
|
|
8
|
-
"files": [
|
|
9
|
-
"src/main.ts"
|
|
10
|
-
],
|
|
11
|
-
"include": [
|
|
12
|
-
"src/**/*.d.ts"
|
|
13
|
-
]
|
|
14
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
-
{
|
|
3
|
-
"compileOnSave": false,
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
"outDir": "./dist/out-tsc",
|
|
6
|
-
"strict": true,
|
|
7
|
-
"noImplicitOverride": true,
|
|
8
|
-
"noPropertyAccessFromIndexSignature": true,
|
|
9
|
-
"noImplicitReturns": true,
|
|
10
|
-
"noFallthroughCasesInSwitch": true,
|
|
11
|
-
"skipLibCheck": true,
|
|
12
|
-
"esModuleInterop": true,
|
|
13
|
-
"sourceMap": true,
|
|
14
|
-
"declaration": false,
|
|
15
|
-
"experimentalDecorators": true,
|
|
16
|
-
"moduleResolution": "node",
|
|
17
|
-
"importHelpers": true,
|
|
18
|
-
"target": "ES2022",
|
|
19
|
-
"module": "ES2022",
|
|
20
|
-
"useDefineForClassFields": false,
|
|
21
|
-
"lib": [
|
|
22
|
-
"ES2022",
|
|
23
|
-
"dom"
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
"angularCompilerOptions": {
|
|
27
|
-
"enableI18nLegacyMessageIdFormat": false,
|
|
28
|
-
"strictInjectionParameters": true,
|
|
29
|
-
"strictInputAccessModifiers": true,
|
|
30
|
-
"strictTemplates": true
|
|
31
|
-
}
|
|
32
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{storybook-static/723.dcfee548.iframe.bundle.js.map → 723.dcfee548.iframe.bundle.js.map}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{storybook-static/994.091897e1.iframe.bundle.js.map → 994.091897e1.iframe.bundle.js.map}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{storybook-static/sb-addons → sb-addons}/chromatic-com-storybook-9/manager-bundle.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{storybook-static/sb-addons → sb-addons}/essentials-actions-3/manager-bundle.js.LEGAL.txt
RENAMED
|
File without changes
|
/package/{storybook-static/sb-addons → sb-addons}/essentials-backgrounds-4/manager-bundle.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{storybook-static/sb-addons → sb-addons}/essentials-controls-2/manager-bundle.js.LEGAL.txt
RENAMED
|
File without changes
|
|
File without changes
|
/package/{storybook-static/sb-addons → sb-addons}/essentials-measure-7/manager-bundle.js.LEGAL.txt
RENAMED
|
File without changes
|
|
File without changes
|
/package/{storybook-static/sb-addons → sb-addons}/essentials-outline-8/manager-bundle.js.LEGAL.txt
RENAMED
|
File without changes
|
|
File without changes
|
/package/{storybook-static/sb-addons → sb-addons}/essentials-toolbars-6/manager-bundle.js.LEGAL.txt
RENAMED
|
File without changes
|
|
File without changes
|
/package/{storybook-static/sb-addons → sb-addons}/essentials-viewport-5/manager-bundle.js.LEGAL.txt
RENAMED
|
File without changes
|
|
File without changes
|
/package/{storybook-static/sb-addons → sb-addons}/interactions-10/manager-bundle.js.LEGAL.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{storybook-static/sb-common-assets → sb-common-assets}/nunito-sans-bold-italic.woff2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|