-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
784 additions
and
11,209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,4 +41,5 @@ testem.log | |
.DS_Store | ||
Thumbs.db | ||
|
||
*storybook.log | ||
*storybook.log | ||
documentation.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { DIALOG_DATA, DialogRef } from '@angular/cdk/dialog'; | ||
import { Meta, applicationConfig } from '@storybook/angular'; | ||
import { Tailwind } from '../shared/constants/tailwind-colors'; | ||
import { AnalyticsService, AnalyticsServiceMock } from '../shared/data-access/analytics.service'; | ||
import { ExportService, ExportServiceMock } from '../shared/data-access/export.service'; | ||
import { ToastService, ToastServiceMock } from '../shared/data-access/toast.service'; | ||
import { createStory } from '../shared/utils/storybook'; | ||
import { ExportModalComponent } from './export-modal.component'; | ||
|
||
const meta: Meta<ExportModalComponent> = { | ||
title: 'Export/Export', | ||
component: ExportModalComponent, | ||
tags: ['autodocs'], | ||
decorators: [ | ||
applicationConfig({ | ||
providers: [ | ||
{ provide: DIALOG_DATA, useValue: { palette: Tailwind } }, | ||
{ | ||
provide: DialogRef, | ||
useValue: { | ||
close: (): void => {} | ||
} | ||
}, | ||
{ provide: ToastService, useClass: ToastServiceMock }, | ||
{ provide: ExportService, useClass: ExportServiceMock }, | ||
{ provide: AnalyticsService, useClass: AnalyticsServiceMock } | ||
] | ||
}) | ||
] | ||
}; | ||
export default meta; | ||
|
||
export const Export = createStory<ExportModalComponent>({}); |
30 changes: 30 additions & 0 deletions
30
src/app/export/ui/export-download/export-download.component.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { Meta } from '@storybook/angular'; | ||
import { ExportFormat } from '../../../shared/constants/export-format'; | ||
import { createStory } from '../../../shared/utils/storybook'; | ||
import { ExportDownloadComponent } from './export-download.component'; | ||
|
||
const meta: Meta<ExportDownloadComponent> = { | ||
title: 'Export/Download', | ||
component: ExportDownloadComponent, | ||
tags: ['autodocs'], | ||
argTypes: { | ||
exportFormat: { | ||
control: 'select', | ||
type: { | ||
name: 'enum', | ||
value: Object.values(ExportFormat).filter((format) => format !== ExportFormat.OTHER), | ||
required: true | ||
} | ||
}, | ||
choseDownloadFormat: { | ||
table: { | ||
disable: true | ||
} | ||
} | ||
} | ||
}; | ||
export default meta; | ||
|
||
export const Download = createStory<ExportDownloadComponent>({ | ||
args: { exportFormat: ExportFormat.LESS } | ||
}); |
19 changes: 19 additions & 0 deletions
19
src/app/export/ui/export-format/export-format.component.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Meta } from '@storybook/angular'; | ||
import { createStory } from '../../../shared/utils/storybook'; | ||
import { ExportFormatComponent } from './export-format.component'; | ||
|
||
const meta: Meta<ExportFormatComponent> = { | ||
title: 'Export/Format', | ||
component: ExportFormatComponent, | ||
tags: ['autodocs'], | ||
argTypes: { | ||
choseExportFormat: { | ||
table: { | ||
disable: true | ||
} | ||
} | ||
} | ||
}; | ||
export default meta; | ||
|
||
export const Format = createStory<ExportFormatComponent>({}); |
40 changes: 40 additions & 0 deletions
40
src/app/export/ui/export-success/export-success.component.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { Meta } from '@storybook/angular'; | ||
import { ExportFormat } from '../../../shared/constants/export-format'; | ||
import { createStory } from '../../../shared/utils/storybook'; | ||
import { ExportSuccessComponent } from './export-success.component'; | ||
|
||
const meta: Meta<ExportSuccessComponent> = { | ||
title: 'Export/Success', | ||
component: ExportSuccessComponent, | ||
tags: ['autodocs'], | ||
argTypes: { | ||
exportOption: { | ||
type: { | ||
name: 'enum', | ||
value: ['copy', 'file'], | ||
required: true | ||
} | ||
}, | ||
exportFormat: { | ||
control: 'select', | ||
type: { | ||
name: 'enum', | ||
value: Object.values(ExportFormat).filter((format) => format !== ExportFormat.OTHER), | ||
required: true | ||
} | ||
}, | ||
openDocumentation: { | ||
table: { | ||
disable: true | ||
} | ||
} | ||
} | ||
}; | ||
export default meta; | ||
|
||
export const Copy = createStory<ExportSuccessComponent>({ | ||
args: { exportOption: 'copy', exportFormat: ExportFormat.CSS } | ||
}); | ||
export const File = createStory<ExportSuccessComponent>({ | ||
args: { exportOption: 'file', exportFormat: ExportFormat.TAILWIND } | ||
}); |
12 changes: 12 additions & 0 deletions
12
src/app/export/ui/request-format/request-format.component.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Meta } from '@storybook/angular'; | ||
import { createStory } from '../../../shared/utils/storybook'; | ||
import { RequestFormatComponent } from './request-format.component'; | ||
|
||
const meta: Meta<RequestFormatComponent> = { | ||
title: 'Export/Request Format', | ||
component: RequestFormatComponent, | ||
tags: ['autodocs'] | ||
}; | ||
export default meta; | ||
|
||
export const RequestFormat = createStory<RequestFormatComponent>({}); |
34 changes: 34 additions & 0 deletions
34
src/app/home/ui/home-generator/home-generator.component.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { Meta } from '@storybook/angular'; | ||
import { PaletteScheme } from '../../../shared/constants/palette-scheme'; | ||
import { createStory } from '../../../shared/utils/storybook'; | ||
import { HomeGeneratorComponent } from './home-generator.component'; | ||
|
||
const meta: Meta<HomeGeneratorComponent> = { | ||
title: 'Home/Generator', | ||
component: HomeGeneratorComponent, | ||
tags: ['autodocs'], | ||
argTypes: { | ||
scheme: { | ||
control: { | ||
type: 'select' | ||
}, | ||
type: { | ||
name: 'enum', | ||
value: Object.values(PaletteScheme) | ||
} | ||
}, | ||
generate: { | ||
table: { | ||
disable: true | ||
} | ||
} | ||
} | ||
}; | ||
export default meta; | ||
|
||
export const Generator = createStory<HomeGeneratorComponent>({ | ||
args: { | ||
hex: '#3B82F6', | ||
scheme: PaletteScheme.RAINBOW | ||
} | ||
}); |
12 changes: 12 additions & 0 deletions
12
src/app/home/ui/home-manual/home-manual.component.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Meta } from '@storybook/angular'; | ||
import { createStory } from '../../../shared/utils/storybook'; | ||
import { HomeManualComponent } from './home-manual.component'; | ||
|
||
const meta: Meta<HomeManualComponent> = { | ||
title: 'Home/Manual', | ||
component: HomeManualComponent, | ||
tags: ['autodocs'] | ||
}; | ||
export default meta; | ||
|
||
export const Manual = createStory<HomeManualComponent>({}); |
12 changes: 12 additions & 0 deletions
12
src/app/home/ui/home-support/home-support.component.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Meta } from '@storybook/angular'; | ||
import { createStory } from '../../../shared/utils/storybook'; | ||
import { HomeSupportComponent } from './home-support.component'; | ||
|
||
const meta: Meta<HomeSupportComponent> = { | ||
title: 'Home/Support', | ||
component: HomeSupportComponent, | ||
tags: ['autodocs'] | ||
}; | ||
export default meta; | ||
|
||
export const Support = createStory<HomeSupportComponent>({}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { heroAdjustmentsHorizontalSolid, heroRectangleGroupSolid, heroSwatchSolid } from '@ng-icons/heroicons/solid'; | ||
import { NavigationEntry } from '../types/navigation-entry'; | ||
|
||
export const NAVIGATION_ENTRIES: Array<NavigationEntry> = [ | ||
{ | ||
title: 'layout.navigation.generate.title', | ||
path: '/', | ||
icon: heroSwatchSolid, | ||
description: 'layout.navigation.generate.description' | ||
}, | ||
{ | ||
title: 'layout.navigation.view.title', | ||
path: '/view', | ||
icon: heroAdjustmentsHorizontalSolid, | ||
description: 'layout.navigation.view.description' | ||
}, | ||
{ | ||
title: 'layout.navigation.preview.title', | ||
path: '/preview', | ||
icon: heroRectangleGroupSolid, | ||
description: 'layout.navigation.preview.description' | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
src/app/layout/ui/layout-analytics-consent/layout-analytics-consent.component.css
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
src/app/layout/ui/layout-analytics-consent/layout-analytics-consent.component.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { ActivatedRoute } from '@angular/router'; | ||
import { Meta, applicationConfig } from '@storybook/angular'; | ||
import { createStory } from '../../../shared/utils/storybook'; | ||
import { LayoutAnalyticsConsentComponent } from './layout-analytics-consent.component'; | ||
|
||
const meta: Meta<LayoutAnalyticsConsentComponent> = { | ||
title: 'Layout/Analytics Consent', | ||
component: LayoutAnalyticsConsentComponent, | ||
tags: ['autodocs'], | ||
decorators: [ | ||
applicationConfig({ | ||
providers: [{ provide: ActivatedRoute, useValue: {} }] | ||
}) | ||
], | ||
argTypes: { | ||
consent: { | ||
table: { | ||
disable: true | ||
} | ||
}, | ||
height: { | ||
table: { | ||
disable: true | ||
} | ||
} | ||
} | ||
}; | ||
export default meta; | ||
|
||
export const AnalyticsConsent = createStory<LayoutAnalyticsConsentComponent>({}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/app/layout/ui/layout-footer/layout-footer.component.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { ActivatedRoute } from '@angular/router'; | ||
import { Meta, applicationConfig } from '@storybook/angular'; | ||
import { VersionService, VersionServiceMock } from '../../../shared/data-access/version.service'; | ||
import { createStory } from '../../../shared/utils/storybook'; | ||
import { LayoutFooterComponent } from './layout-footer.component'; | ||
|
||
const meta: Meta<LayoutFooterComponent> = { | ||
title: 'Layout/Footer', | ||
component: LayoutFooterComponent, | ||
tags: ['autodocs'], | ||
decorators: [ | ||
applicationConfig({ | ||
providers: [ | ||
{ provide: ActivatedRoute, useValue: {} }, | ||
{ provide: VersionService, useClass: VersionServiceMock } | ||
] | ||
}) | ||
], | ||
argTypes: {} | ||
}; | ||
export default meta; | ||
|
||
export const Footer = createStory<LayoutFooterComponent>({ | ||
args: { | ||
logoAsset: 'assets/rainbow-palette-dark.svg' | ||
} | ||
}); |
Oops, something went wrong.