diff --git a/packages/demo/src/app/post-sample/components/spinner/spinner-demo-page/spinner-demo-page.component.ts b/packages/demo/src/app/post-sample/components/spinner/spinner-demo-page/spinner-demo-page.component.ts index d095b00980..7aaaa87aba 100644 --- a/packages/demo/src/app/post-sample/components/spinner/spinner-demo-page/spinner-demo-page.component.ts +++ b/packages/demo/src/app/post-sample/components/spinner/spinner-demo-page/spinner-demo-page.component.ts @@ -2,19 +2,17 @@ import { Component } from '@angular/core'; const codeTemplate = require('!!raw-loader!../spinner-mini-demo/spinner-mini-demo.component.html').default; -const spinner = `
-
-
-
-
+const spinner = ` +
+
+
`; -const spinnerSmall = `
-
-
-
-
-
+const spinnerSmall = ` +
+
+
+
`; @Component({ diff --git a/packages/documentation/public/favicon.svg b/packages/documentation/public/favicon.svg new file mode 100644 index 0000000000..f4f0328a6b --- /dev/null +++ b/packages/documentation/public/favicon.svg @@ -0,0 +1,9 @@ + + + diff --git a/packages/documentation/src/stories/components/button-group/button-group.stories.ts b/packages/documentation/src/stories/components/button-group/button-group.stories.ts index 778f06bb1b..8a9c49f69f 100644 --- a/packages/documentation/src/stories/components/button-group/button-group.stories.ts +++ b/packages/documentation/src/stories/components/button-group/button-group.stories.ts @@ -23,13 +23,13 @@ const meta: Meta = { control: { type: 'select', labels: { - ' btn-sm': 'Small', - ' btn-rg': 'Regular', - ' btn-md': 'Medium', - ' btn-lg': 'Large', + 'btn-sm': 'Small', + 'btn-rg': 'Regular', + 'btn-md': 'Medium', + 'btn-lg': 'Large', }, }, - options: [' btn-sm', ' btn-rg', ' btn-md', ' btn-lg'], + options: ['btn-sm', 'btn-rg', 'btn-md', 'btn-lg'], table: { category: 'General', }, @@ -173,7 +173,7 @@ function createButtonTemplate(args: Args, context: StoryContext, index: number) updateArgs({ selected: isChecked }); }}" /> - + `; } case 'radio': { @@ -191,18 +191,14 @@ function createButtonTemplate(args: Args, context: StoryContext, index: number) updateArgs({ checked: position }); }}" /> - + `; } case 'link': - return html` - ${label} - `; + return html` ${label} `; case 'button': default: - return html` - - `; + return html` `; } } @@ -230,7 +226,7 @@ export const Sizing: Story = { }, }, args: { - size: ' btn-sm', + size: 'btn-sm', }, }; diff --git a/packages/documentation/src/stories/components/forms/radio/radio.stories.ts b/packages/documentation/src/stories/components/forms/radio/radio.stories.ts index e947e62f6e..834d03ae4a 100644 --- a/packages/documentation/src/stories/components/forms/radio/radio.stories.ts +++ b/packages/documentation/src/stories/components/forms/radio/radio.stories.ts @@ -123,22 +123,12 @@ function render(args: Args, context: StoryContext) { const useAriaLabel = args.hiddenLabel; const label: TemplateResult | null = !useAriaLabel - ? html` - - ` + ? html` ` : null; const contextual: (TemplateResult | null)[] = [ - args.validation === 'is-valid' - ? html` -

Ggranda sukceso!

- ` - : null, - args.validation === 'is-invalid' - ? html` -

Eraro okazis!

- ` - : null, + args.validation === 'is-valid' ? html`

Ggranda sukceso!

` : null, + args.validation === 'is-invalid' ? html`

Eraro okazis!

` : null, ]; const control = html` @@ -168,7 +158,7 @@ export const Default: Story = {}; export function renderInline(args: Args, context: Partial) { const [_, updateArgs] = useArgs(); - const baseId = `${context.viewMode}_${context.name.replace(/\s/g, '-')}_ExampleRadio`; + const baseId = `${context.viewMode}_${context.name?.replace(/\s/g, '-')}_ExampleRadio`; const id1 = baseId + '1'; const id2 = baseId + '2'; const id3 = baseId + '3'; diff --git a/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts b/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts index 389f96d498..31e3423710 100644 --- a/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts +++ b/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts @@ -160,34 +160,16 @@ function renderTextarea(args: Args, context: StoryContext) { }); const useAriaLabel = !args.floatingLabel && args.hiddenLabel; const label = !useAriaLabel - ? html` - - ` + ? html` ` : null; - const contextuals = [ + const contextual = [ args.validation === 'is-valid' - ? html` -
Ggranda sukceso!
- ` + ? html`
Ggranda sukceso!
` : null, args.validation === 'is-invalid' - ? html` -
Eraro okazis!
- ` - : null, - args.hint !== '' - ? html` -
- ${html` - ${args.hint} - `} -
- ` + ? html`
Eraro okazis!
` : null, + args.hint !== '' ? html`
${args.hint}
` : null, ]; const control = html`