matcha-components 1.0.5 → 1.0.6

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.
Files changed (177) hide show
  1. package/README.md +239 -2
  2. package/assets/open_in_new.png +0 -0
  3. package/ng-package.json +7 -0
  4. package/package.json +10 -23
  5. package/src/foundation/colors/base/amber.mdx +232 -0
  6. package/src/foundation/colors/base/blue.mdx +232 -0
  7. package/src/foundation/colors/base/cyan.mdx +232 -0
  8. package/src/foundation/colors/base/deep-orange.mdx +232 -0
  9. package/src/foundation/colors/base/deep-purple.mdx +232 -0
  10. package/src/foundation/colors/base/green.mdx +232 -0
  11. package/src/foundation/colors/base/indigo.mdx +232 -0
  12. package/src/foundation/colors/base/light-blue.mdx +232 -0
  13. package/src/foundation/colors/base/light-green.mdx +232 -0
  14. package/src/foundation/colors/base/lime.mdx +232 -0
  15. package/src/foundation/colors/base/orange.mdx +232 -0
  16. package/src/foundation/colors/base/pink.mdx +232 -0
  17. package/src/foundation/colors/base/purple.mdx +232 -0
  18. package/src/foundation/colors/base/red.mdx +232 -0
  19. package/src/foundation/colors/base/teal.mdx +232 -0
  20. package/src/foundation/colors/base/yellow.mdx +232 -0
  21. package/src/foundation/colors/base-colors.mdx +141 -0
  22. package/src/foundation/colors/surface-colors.mdx +93 -0
  23. package/src/foundation/colors/theme/accent.mdx +232 -0
  24. package/src/foundation/colors/theme/primary.mdx +232 -0
  25. package/src/foundation/colors/theme/warn.mdx +232 -0
  26. package/src/foundation/colors/theme-colors.mdx +159 -0
  27. package/src/foundation/sizes/heights.mdx +232 -0
  28. package/src/foundation/sizes/max-heights.mdx +237 -0
  29. package/src/foundation/sizes/max-width.mdx +236 -0
  30. package/src/foundation/sizes/min-heights.mdx +237 -0
  31. package/src/foundation/sizes/min-width.mdx +236 -0
  32. package/src/foundation/sizes/sizes.mdx +219 -0
  33. package/src/foundation/sizes/widths.mdx +234 -0
  34. package/src/lib/matcha-autocomplete/autocomplete-overview.directive.ts +16 -0
  35. package/src/lib/matcha-autocomplete/autocomplete.argtypes.ts +64 -0
  36. package/src/lib/matcha-autocomplete/autocomplete.directive.ts +14 -0
  37. package/src/lib/matcha-autocomplete/autocomplete.mdx +112 -0
  38. package/src/lib/matcha-autocomplete/autocomplete.module.ts +14 -0
  39. package/src/lib/matcha-autocomplete/autocomplete.stories.ts +113 -0
  40. package/src/lib/matcha-badge/badge.module.ts +14 -0
  41. package/src/lib/matcha-badge/matcha-badge.directive.ts +16 -0
  42. package/src/lib/matcha-bottom-sheet/bottom-sheet.module.ts +14 -0
  43. package/src/lib/matcha-bottom-sheet/matcha-bottom-sheet.directive.ts +16 -0
  44. package/src/lib/matcha-button-toggle/button-toggle.module.ts +14 -0
  45. package/src/lib/matcha-button-toggle/matcha-button-toggle.directive.ts +16 -0
  46. package/src/lib/matcha-buttons/button.stories.ts +111 -0
  47. package/src/lib/matcha-buttons/buttons.module.ts +27 -0
  48. package/src/lib/matcha-buttons/matcha-btn-md.directive.ts +16 -0
  49. package/src/lib/matcha-buttons/matcha-btn-pill.directive.ts +15 -0
  50. package/src/lib/matcha-buttons/matcha-btn-size.directive.ts +17 -0
  51. package/src/lib/matcha-buttons/matcha-btn-xl.directive.ts +15 -0
  52. package/src/lib/matcha-card/card.mdx.txt +55 -0
  53. package/src/lib/matcha-card/matcha-card-argtype.ts +123 -0
  54. package/src/lib/matcha-card/matcha-card-content/matcha-card-content.component.html +3 -0
  55. package/src/lib/matcha-card/matcha-card-content/matcha-card-content.component.scss +0 -0
  56. package/src/lib/matcha-card/matcha-card-content/matcha-card-content.component.spec.ts +21 -0
  57. package/src/lib/matcha-card/matcha-card-content/matcha-card-content.component.ts +10 -0
  58. package/src/lib/matcha-card/matcha-card-footer/matcha-card-footer.component.html +3 -0
  59. package/src/lib/matcha-card/matcha-card-footer/matcha-card-footer.component.scss +0 -0
  60. package/src/lib/matcha-card/matcha-card-footer/matcha-card-footer.component.spec.ts +21 -0
  61. package/src/lib/matcha-card/matcha-card-footer/matcha-card-footer.component.ts +10 -0
  62. package/src/lib/matcha-card/matcha-card-header/matcha-card-header.component.html +4 -0
  63. package/src/lib/matcha-card/matcha-card-header/matcha-card-header.component.scss +0 -0
  64. package/src/lib/matcha-card/matcha-card-header/matcha-card-header.component.spec.ts +21 -0
  65. package/src/lib/matcha-card/matcha-card-header/matcha-card-header.component.ts +10 -0
  66. package/src/lib/matcha-card/matcha-card.component.html +3 -0
  67. package/src/lib/matcha-card/matcha-card.component.scss +117 -0
  68. package/src/lib/matcha-card/matcha-card.component.spec.ts +21 -0
  69. package/src/lib/matcha-card/matcha-card.component.ts +43 -0
  70. package/src/lib/matcha-card/matcha-card.module.ts +27 -0
  71. package/src/lib/matcha-card/matcha-card.stories.ts +80 -0
  72. package/src/lib/matcha-checkbox/checkbox.argtype.ts +79 -0
  73. package/src/lib/matcha-checkbox/checkbox.directive.ts +14 -0
  74. package/src/lib/matcha-checkbox/checkbox.mdx +76 -0
  75. package/src/lib/matcha-checkbox/checkbox.module.ts +9 -0
  76. package/src/lib/matcha-checkbox/checkbox.stories.ts +161 -0
  77. package/src/lib/matcha-checkbox/checkbox.stories.txt +74 -0
  78. package/src/lib/matcha-chips/chips.module.ts +12 -0
  79. package/src/lib/matcha-chips/matcha-chips.directive.ts +16 -0
  80. package/src/lib/matcha-components.module.ts +78 -0
  81. package/src/lib/matcha-datepicker/datepicker.argtypes.ts +63 -0
  82. package/src/lib/matcha-datepicker/datepicker.directive.ts +14 -0
  83. package/src/lib/matcha-datepicker/datepicker.mdx +73 -0
  84. package/src/lib/matcha-datepicker/datepicker.module.ts +9 -0
  85. package/src/lib/matcha-datepicker/datepicker.stories.ts +277 -0
  86. package/src/lib/matcha-dialog/dialog.module.ts +14 -0
  87. package/src/lib/matcha-dialog/matcha-dialog.directive.ts +16 -0
  88. package/src/lib/matcha-dialog2/confirmation-dialog.component.ts.txt +54 -0
  89. package/src/lib/matcha-dialog2/confirmation-dialog.stories.ts.txt +24 -0
  90. package/src/lib/matcha-divider/divider.module.ts +14 -0
  91. package/src/lib/matcha-divider/matcha-divider.directive.ts +16 -0
  92. package/src/lib/matcha-expansion-panel/expansion-panel.module.ts +14 -0
  93. package/src/lib/matcha-expansion-panel/matcha-expansion-panel.directive.ts +16 -0
  94. package/src/lib/matcha-forms/forms.module.ts +19 -0
  95. package/src/lib/matcha-forms/matcha-form-field-appearance.directive.ts +16 -0
  96. package/src/lib/matcha-forms/matcha-form-field-argtype.ts +73 -0
  97. package/src/lib/matcha-forms/matcha-form-field.mdx +284 -0
  98. package/src/lib/matcha-forms/matcha-form-field.stories.ts +345 -0
  99. package/src/lib/matcha-forms/matcha-form-input-text.directive.ts +16 -0
  100. package/src/lib/matcha-icon/icon.module.ts +19 -0
  101. package/src/lib/matcha-icon/matcha-icon-position-pos.directive.ts +15 -0
  102. package/src/lib/matcha-icon/matcha-icon-position-pre.directive.ts +15 -0
  103. package/src/lib/matcha-list/list.module.ts +14 -0
  104. package/src/lib/matcha-list/matcha-list.directive.ts +16 -0
  105. package/src/lib/matcha-menu/matcha-menu.directive.ts +16 -0
  106. package/src/lib/matcha-menu/menu.module.ts +14 -0
  107. package/src/lib/matcha-menu/menu.stories.txt +76 -0
  108. package/src/lib/matcha-paginator/matcha-paginator.directive.ts +16 -0
  109. package/src/lib/matcha-paginator/paginator.module.ts +14 -0
  110. package/src/lib/matcha-progress-bar/progress-bar.argtype.ts +48 -0
  111. package/src/lib/matcha-progress-bar/progress-bar.directive.ts +16 -0
  112. package/src/lib/matcha-progress-bar/progress-bar.mdx +95 -0
  113. package/src/lib/matcha-progress-bar/progress-bar.module.ts +14 -0
  114. package/src/lib/matcha-progress-bar/progress-bar.stories.ts +89 -0
  115. package/src/lib/matcha-progress-spinner/progress-spinner.argtype.ts +65 -0
  116. package/src/lib/matcha-progress-spinner/progress-spinner.directive.ts +16 -0
  117. package/src/lib/matcha-progress-spinner/progress-spinner.mdx +23 -0
  118. package/src/lib/matcha-progress-spinner/progress-spinner.module.ts +14 -0
  119. package/src/lib/matcha-progress-spinner/progress-spinner.stories.ts +44 -0
  120. package/src/lib/matcha-radio-button/matcha-radio-button.argtype.ts +85 -0
  121. package/src/lib/matcha-radio-button/matcha-radio-button.directive.ts +16 -0
  122. package/src/lib/matcha-radio-button/matcha-radio-button.stories.ts +44 -0
  123. package/src/lib/matcha-radio-button/radio-button.module.ts +12 -0
  124. package/src/lib/matcha-select/matcha-select.directive.ts +16 -0
  125. package/src/lib/matcha-select/select.module.ts +12 -0
  126. package/src/lib/matcha-select/select.stories.txt +109 -0
  127. package/src/lib/matcha-slide-toggle/slide-toggle.argtype.ts +66 -0
  128. package/src/lib/matcha-slide-toggle/slide-toggle.directive.ts +16 -0
  129. package/src/lib/matcha-slide-toggle/slide-toggle.mdx +92 -0
  130. package/src/lib/matcha-slide-toggle/slide-toggle.module.ts +12 -0
  131. package/src/lib/matcha-slide-toggle/slide-toggle.stories.ts +167 -0
  132. package/src/lib/matcha-slider/matcha-slider.directive.ts +16 -0
  133. package/src/lib/matcha-slider/slider.module.ts +12 -0
  134. package/src/lib/matcha-snackbar/matcha-snackbar.directive.ts +16 -0
  135. package/src/lib/matcha-snackbar/snackbar.module.ts +12 -0
  136. package/src/lib/matcha-sort-header/matcha-sort-header.directive.ts +16 -0
  137. package/src/lib/matcha-sort-header/sort-header.module.ts +12 -0
  138. package/src/lib/matcha-stepper/matcha-stepper.directive.ts +16 -0
  139. package/src/lib/matcha-stepper/stepper.module.ts +12 -0
  140. package/src/lib/matcha-table/matcha-table.directive.ts +16 -0
  141. package/src/lib/matcha-table/table.module.ts +12 -0
  142. package/src/lib/matcha-tabs/matcha-tabs.directive.ts +17 -0
  143. package/src/lib/matcha-tabs/tabs.module.ts +16 -0
  144. package/src/lib/matcha-tabs/tabs.stories.txt +18 -0
  145. package/src/lib/matcha-title/matcha-title.component.html +33 -0
  146. package/src/lib/matcha-title/matcha-title.component.scss +0 -0
  147. package/src/lib/matcha-title/matcha-title.component.spec.ts +21 -0
  148. package/src/lib/matcha-title/matcha-title.component.ts +24 -0
  149. package/src/lib/matcha-title/matcha-title.module.ts +18 -0
  150. package/src/lib/matcha-tooltip/matcha-tooltip.directive.ts +16 -0
  151. package/src/lib/matcha-tooltip/tooltip.module.ts +12 -0
  152. package/src/lib/matcha-tree/matcha-tree.directive.ts +16 -0
  153. package/src/lib/matcha-tree/tree.module.ts +12 -0
  154. package/src/public-api.ts +93 -0
  155. package/tsconfig.lib.json +18 -0
  156. package/tsconfig.lib.prod.json +10 -0
  157. package/tsconfig.spec.json +14 -0
  158. package/esm2022/lib/matcha-button/matcha-button.component.mjs +0 -12
  159. package/esm2022/lib/matcha-card/matcha-card-content/matcha-card-content.component.mjs +0 -12
  160. package/esm2022/lib/matcha-card/matcha-card-footer/matcha-card-footer.component.mjs +0 -12
  161. package/esm2022/lib/matcha-card/matcha-card-header/matcha-card-header.component.mjs +0 -12
  162. package/esm2022/lib/matcha-card/matcha-card.component.mjs +0 -12
  163. package/esm2022/lib/matcha-card/matcha-card.module.mjs +0 -40
  164. package/esm2022/lib/matcha-components.module.mjs +0 -27
  165. package/esm2022/matcha-components.mjs +0 -5
  166. package/esm2022/public-api.mjs +0 -20
  167. package/fesm2022/matcha-components.mjs +0 -113
  168. package/fesm2022/matcha-components.mjs.map +0 -1
  169. package/index.d.ts +0 -5
  170. package/lib/matcha-button/matcha-button.component.d.ts +0 -5
  171. package/lib/matcha-card/matcha-card-content/matcha-card-content.component.d.ts +0 -5
  172. package/lib/matcha-card/matcha-card-footer/matcha-card-footer.component.d.ts +0 -5
  173. package/lib/matcha-card/matcha-card-header/matcha-card-header.component.d.ts +0 -5
  174. package/lib/matcha-card/matcha-card.component.d.ts +0 -5
  175. package/lib/matcha-card/matcha-card.module.d.ts +0 -11
  176. package/lib/matcha-components.module.d.ts +0 -8
  177. package/public-api.d.ts +0 -7
@@ -0,0 +1,54 @@
1
+ import {Component, ViewEncapsulation} from "@angular/core";
2
+ import {MatDialog, MatDialogModule} from "@angular/material/dialog";
3
+ import {MatIconModule} from "@angular/material/icon";
4
+ import {MatButtonModule} from "@angular/material/button";
5
+
6
+ @Component({
7
+ template: `
8
+ <section>
9
+ <button mat-stroked-button (click)="openDialog()">OPEN DIALOG</button>
10
+ </section>
11
+ `,
12
+ styles: [
13
+ 'section {display: flex; justify-content: center; align-items: center; height: 100%}',
14
+ '.dialog-border mat-dialog-container {border-radius: 20px; border: 5px solid green} '
15
+ ],
16
+ standalone: true,
17
+ imports: [
18
+ MatDialogModule,
19
+ MatButtonModule
20
+ ],
21
+ encapsulation: ViewEncapsulation.None
22
+ })
23
+ export class ConfirmationDialogComponent {
24
+ constructor(private readonly dialog: MatDialog) {}
25
+
26
+ openDialog(): void {
27
+ this.dialog.open(ConfirmationDialogDialogComponent, {
28
+ width: '250px',
29
+ autoFocus: false,
30
+ panelClass: 'dialog-border'
31
+ });
32
+ }
33
+ }
34
+
35
+ @Component({
36
+ template: `
37
+ <mat-icon>check_circle</mat-icon>
38
+ <h3>Your order has been created successfully!</h3>
39
+ <button mat-stroked-button mat-dialog-close>TRACK MY ORDER</button>
40
+ `,
41
+ styles: [
42
+ ':host {display: flex; justify-content: center; align-items: center; flex-direction: column}',
43
+ 'h3 {text-align: center}',
44
+ 'mat-icon {color: green; height: 6rem; width: 6rem; font-size: 6rem}'
45
+ ],
46
+ standalone: true,
47
+ imports: [
48
+ MatIconModule,
49
+ MatButtonModule,
50
+ MatDialogModule
51
+ ]
52
+ })
53
+ class ConfirmationDialogDialogComponent {
54
+ }
@@ -0,0 +1,24 @@
1
+ import { Meta, moduleMetadata, StoryObj } from '@storybook/angular';
2
+ import { ConfirmationDialogComponent } from './confirmation-dialog.component';
3
+ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
4
+ import { defaultUsecasesParameters } from '../../../.storybook/utils';
5
+
6
+ export default {
7
+ title: 'Usecases/Dialog',
8
+ component: ConfirmationDialogComponent,
9
+ decorators: [
10
+ moduleMetadata({
11
+ imports: [BrowserAnimationsModule],
12
+ }),
13
+ ],
14
+ parameters: {
15
+ ...defaultUsecasesParameters,
16
+ },
17
+ } as Meta;
18
+
19
+ export const Template: StoryObj<ConfirmationDialogComponent> = {
20
+ render: (args) => ({
21
+ props: args,
22
+ }),
23
+ name: 'success (custom css)',
24
+ };
@@ -0,0 +1,14 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { MatchaDividerDirective } from './matcha-divider.directive';
4
+
5
+ @NgModule({
6
+ declarations: [MatchaDividerDirective],
7
+ imports: [
8
+ CommonModule
9
+ ],
10
+ exports:[
11
+ MatchaDividerDirective
12
+ ]
13
+ })
14
+ export class MatchaDividerModule { }
@@ -0,0 +1,16 @@
1
+ import { Directive, ElementRef, Renderer2 } from '@angular/core';
2
+
3
+ @Directive({
4
+ selector: '[matchaDivider]'
5
+ })
6
+ export class MatchaDividerDirective {
7
+
8
+ constructor(
9
+ private _elementRef: ElementRef,
10
+ private _renderer: Renderer2
11
+ ) {
12
+ //this._elementRef.nativeElement.style.backgroundColor = 'grey';
13
+ this._renderer.addClass(this._elementRef.nativeElement,'matcha-dialog')
14
+ }
15
+
16
+ }
@@ -0,0 +1,14 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { MatchaExpansionPanelDirective } from './matcha-expansion-panel.directive';
4
+
5
+ @NgModule({
6
+ declarations: [MatchaExpansionPanelDirective],
7
+ imports: [
8
+ CommonModule
9
+ ],
10
+ exports:[
11
+ MatchaExpansionPanelDirective
12
+ ]
13
+ })
14
+ export class MatchaExpansionPanelModule { }
@@ -0,0 +1,16 @@
1
+ import { Directive, ElementRef, Renderer2 } from '@angular/core';
2
+
3
+ @Directive({
4
+ selector: '[matchaExpansionPanel]'
5
+ })
6
+ export class MatchaExpansionPanelDirective {
7
+
8
+ constructor(
9
+ private _elementRef: ElementRef,
10
+ private _renderer: Renderer2
11
+ ) {
12
+ //this._elementRef.nativeElement.style.backgroundColor = 'grey';
13
+ this._renderer.addClass(this._elementRef.nativeElement,'matcha-expansion-panel')
14
+ }
15
+
16
+ }
@@ -0,0 +1,19 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { MatchaFormInputTextDirective } from './matcha-form-input-text.directive';
4
+ import { MatchaFormFieldAppearanceDirective } from './matcha-form-field-appearance.directive';
5
+
6
+ @NgModule({
7
+ declarations: [
8
+ MatchaFormInputTextDirective,
9
+ MatchaFormFieldAppearanceDirective
10
+ ],
11
+ imports: [
12
+ CommonModule
13
+ ],
14
+ exports: [
15
+ MatchaFormInputTextDirective,
16
+ MatchaFormFieldAppearanceDirective
17
+ ]
18
+ })
19
+ export class MatchaFormsModule { }
@@ -0,0 +1,16 @@
1
+ import { Directive, ElementRef, Renderer2 } from '@angular/core';
2
+
3
+ @Directive({
4
+ selector: '[matchaFormFieldAppearance]'
5
+ })
6
+ export class MatchaFormFieldAppearanceDirective {
7
+
8
+ constructor(
9
+ private _elementRef: ElementRef,
10
+ private _renderer: Renderer2
11
+ ) {
12
+ //this._elementRef.nativeElement.style.backgroundColor = 'grey';
13
+ this._renderer.addClass(this._elementRef.nativeElement, 'matcha-form-field-appearance')
14
+ }
15
+
16
+ }
@@ -0,0 +1,73 @@
1
+ export const formFieldArgtypes = {
2
+ appearance: {
3
+ description: 'The form field appearance style',
4
+ control: 'select',
5
+ defaultValue: 'standard',
6
+ table: {
7
+ defaultValue: { summary: 'outline' },
8
+ },
9
+ options: [
10
+ 'outline',
11
+ ]
12
+ },
13
+ color: {
14
+ description: 'Theme color palette',
15
+ control: 'select',
16
+ defaultValue: 'primary',
17
+ table: {
18
+ defaultValue: { summary: 'primary' },
19
+ },
20
+ options: [
21
+ 'primary',
22
+ 'accent',
23
+ 'warn',
24
+ ]
25
+ },
26
+ floatLabel: {
27
+ description: 'Whether the label should always float, never float or float as the user types',
28
+ control: 'select',
29
+ defaultValue: 'primary',
30
+ table: {
31
+ defaultValue: { summary: 'primary' },
32
+ },
33
+ options: [
34
+ 'always',
35
+ 'never',
36
+ 'auto',
37
+ ]
38
+ },
39
+ hideRequiredMarker: {
40
+ description: 'Whether the required marker should be hidden',
41
+ defaultValue: false,
42
+ table: {
43
+ type: { summary: 'boolean' },
44
+ defaultValue: { summary: false },
45
+ },
46
+ control: {
47
+ type: 'boolean'
48
+ }
49
+ },
50
+ hintLabel: {
51
+ description: 'Text for the form field hint',
52
+ defaultValue: '',
53
+ table: {
54
+ type: { summary: 'text' },
55
+ defaultValue: { summary: '' },
56
+ },
57
+ control: {
58
+ type: 'text'
59
+ }
60
+ },
61
+ alignHint: {
62
+ description: 'Whether to align the hint label at the start or end of the line',
63
+ control: 'select',
64
+ defaultValue: 'start',
65
+ table: {
66
+ defaultValue: { summary: 'start' },
67
+ },
68
+ options: [
69
+ 'start',
70
+ 'end',
71
+ ]
72
+ },
73
+ }
@@ -0,0 +1,284 @@
1
+ import {Story} from '@storybook/blocks';
2
+ import LinkTo from '@storybook/addon-links/react';
3
+
4
+ import linkImage from '../../../assets/open_in_new.png'
5
+ import * as ComponentStories from './matcha-form-field.stories';
6
+
7
+ # Form field
8
+
9
+ > *mat-form-field* is a component used to wrap several Angular Material components and apply common Text field styles such as the underline, floating label, and hint messages.
10
+
11
+ <br/>
12
+
13
+ ## Installation
14
+
15
+ `import {MatFormFieldModule} from '@angular/material/form-field';`
16
+
17
+ [Official documentation](https://material.angular.io/components/form-field/overview)
18
+
19
+ <br/>
20
+
21
+ ## Basic usage
22
+
23
+ <br/>
24
+ <br/>
25
+
26
+ <article class="inline-story">
27
+ <header>
28
+ <h5>Basic usage</h5>
29
+ <LinkTo kind="components-form-field" story="aa-with-basic-usage">
30
+ <img src={linkImage} aria-hidden={true}/>
31
+ </LinkTo>
32
+ </header>
33
+ <Story id="components-form-field--aa-with-basic-usage" />
34
+ </article>
35
+
36
+ <br/>
37
+ <br/>
38
+ <br/>
39
+
40
+ ## State
41
+
42
+ <br/>
43
+ <br/>
44
+ <br/>
45
+
46
+ <section class="stories-container">
47
+ <article class="inline-story">
48
+ <header>
49
+ <h5>Inactive</h5>
50
+ <LinkTo kind="components-form-field" story="aa-with-basic-usage">
51
+ <img src={linkImage} aria-hidden={true}/>
52
+ </LinkTo>
53
+ </header>
54
+ <Story id="components-form-field--aa-with-basic-usage" />
55
+ </article>
56
+
57
+ <article class="inline-story">
58
+ <header>
59
+ <h5>Filled</h5>
60
+ <LinkTo kind="components-form-field" story="with-state-filled">
61
+ <img src={linkImage} aria-hidden={true}/>
62
+ </LinkTo>
63
+ </header>
64
+ <Story id="components-form-field--with-state-filled" />
65
+ </article>
66
+
67
+ <article class="inline-story">
68
+ <header>
69
+ <h5>Hover</h5>
70
+ <LinkTo kind="components-form-field" story="with-state-hover">
71
+ <img src={linkImage} aria-hidden={true}/>
72
+ </LinkTo>
73
+ </header>
74
+ <Story id="components-form-field--with-state-hover" />
75
+ </article>
76
+
77
+ <article class="inline-story">
78
+ <header>
79
+ <h5>Focused</h5>
80
+ <LinkTo kind="components-form-field" story="with-state-focused">
81
+ <img src={linkImage} aria-hidden={true}/>
82
+ </LinkTo>
83
+ </header>
84
+ <Story id="components-form-field--with-state-focused" />
85
+ </article>
86
+
87
+ <article class="inline-story">
88
+ <header>
89
+ <h5>Disabled</h5>
90
+ <LinkTo kind="components-form-field" story="with-state-disabled">
91
+ <img src={linkImage} aria-hidden={true}/>
92
+ </LinkTo>
93
+ </header>
94
+ <Story id="components-form-field--with-state-disabled" />
95
+ </article>
96
+
97
+ <article class="inline-story">
98
+ <header>
99
+ <h5>Error</h5>
100
+ <LinkTo kind="components-form-field" story="with-error-message">
101
+ <img src={linkImage} aria-hidden={true}/>
102
+ </LinkTo>
103
+ </header>
104
+ <Story id="components-form-field--with-error-message" />
105
+ </article>
106
+ </section>
107
+
108
+
109
+ <br/>
110
+ <br/>
111
+ <br/>
112
+
113
+
114
+ ## Appearance
115
+
116
+ > supports 4 different appearance variants.
117
+
118
+ <a href="https://material.angular.io/components/form-field/overview#form-field-appearance-variants" target="_blank">Official
119
+ documentation</a>
120
+
121
+ <br/>
122
+ <br/>
123
+ <br/>
124
+
125
+ <section class="stories-container">
126
+ <article class="inline-story">
127
+ <header>
128
+ <h5>Legacy</h5>
129
+ <LinkTo kind="components-form-field" story="with-appearance-legacy">
130
+ <img src={linkImage} aria-hidden={true}/>
131
+ </LinkTo>
132
+ </header>
133
+ <Story id="components-form-field--with-appearance-legacy" />
134
+ </article>
135
+
136
+ <article class="inline-story">
137
+ <header>
138
+ <h5>Standard</h5>
139
+ <LinkTo kind="components-form-field" story="with-appearance-standard">
140
+ <img src={linkImage} aria-hidden={true}/>
141
+ </LinkTo>
142
+ </header>
143
+ <Story id="components-form-field--with-appearance-standard" />
144
+ </article>
145
+
146
+ <article class="inline-story">
147
+ <header>
148
+ <h5>Fill</h5>
149
+ <LinkTo kind="components-form-field" story="with-appearance-fill">
150
+ <img src={linkImage} aria-hidden={true}/>
151
+ </LinkTo>
152
+ </header>
153
+ <Story id="components-form-field--with-appearance-fill" />
154
+ </article>
155
+
156
+ <article class="inline-story">
157
+ <header>
158
+ <h5>Outline</h5>
159
+ <LinkTo kind="components-form-field" story="with-appearance-outline">
160
+ <img src={linkImage} aria-hidden={true}/>
161
+ </LinkTo>
162
+ </header>
163
+ <Story id="components-form-field--with-appearance-outline" />
164
+ </article>
165
+ </section>
166
+
167
+ <br/>
168
+ <br/>
169
+ <br/>
170
+
171
+ ## Hints
172
+
173
+ > Hint labels are additional descriptive text that appears below the form field's underline.
174
+
175
+ <a href="https://material.angular.io/components/form-field/overview#hint-labels" target="_blank">Official
176
+ documentation</a>
177
+
178
+ <br/>
179
+ <br/>
180
+ <br/>
181
+
182
+ <section class="stories-container">
183
+ <article class="inline-story">
184
+ <header>
185
+ <h5>Left hint</h5>
186
+ <LinkTo kind="components-form-field" story="with-start-hint">
187
+ <img src={linkImage} aria-hidden={true}/>
188
+ </LinkTo>
189
+ </header>
190
+ <Story id="components-form-field--with-start-hint" />
191
+ </article>
192
+
193
+ <article class="inline-story">
194
+ <header>
195
+ <h5>Right hint</h5>
196
+ <LinkTo kind="components-form-field" story="with-end-hint">
197
+ <img src={linkImage} aria-hidden={true}/>
198
+ </LinkTo>
199
+ </header>
200
+ <Story id="components-form-field--with-end-hint" />
201
+ </article>
202
+
203
+ <article class="inline-story">
204
+ <header>
205
+ <h5>Double hints</h5>
206
+ <LinkTo kind="components-form-field" story="with-double-hints">
207
+ <img src={linkImage} aria-hidden={true}/>
208
+ </LinkTo>
209
+ </header>
210
+ <Story id="components-form-field--with-double-hints" />
211
+ </article>
212
+ </section>
213
+
214
+ <br/>
215
+ <br/>
216
+ <br/>
217
+
218
+ ## Prefix and suffix
219
+
220
+ > Custom content can be included before and after the input tag, as a prefix or suffix.
221
+
222
+ <a href="https://material.angular.io/components/form-field/overview#prefix--suffix" target="_blank">Official
223
+ documentation</a>
224
+
225
+ <br/>
226
+ <br/>
227
+ <br/>
228
+
229
+ <section class="stories-container">
230
+ <article class="inline-story">
231
+ <header>
232
+ <h5>Prefix</h5>
233
+ <LinkTo kind="components-form-field" story="with-prefix">
234
+ <img src={linkImage} aria-hidden={true}/>
235
+ </LinkTo>
236
+ </header>
237
+ <Story id="components-form-field--with-prefix" />
238
+ </article>
239
+
240
+ <article class="inline-story">
241
+ <header>
242
+ <h5>Suffix</h5>
243
+ <LinkTo kind="components-form-field" story="with-suffix">
244
+ <img src={linkImage} aria-hidden={true}/>
245
+ </LinkTo>
246
+ </header>
247
+ <Story id="components-form-field--with-suffix" />
248
+ </article>
249
+
250
+ <article class="inline-story">
251
+ <header>
252
+ <h5>Prefix and suffix</h5>
253
+ <LinkTo kind="components-form-field" story="with-prefix-and-suffix">
254
+ <img src={linkImage} aria-hidden={true}/>
255
+ </LinkTo>
256
+ </header>
257
+ <Story id="components-form-field--with-prefix-and-suffix" />
258
+ </article>
259
+ </section>
260
+
261
+ <br/>
262
+ <br/>
263
+ <br/>
264
+
265
+ ## Error message
266
+
267
+ > Error messages can be shown under the form field underline.
268
+
269
+ <a href="https://material.angular.io/components/form-field/overview#error-messages" target="_blank">Official
270
+ documentation</a>
271
+
272
+ <br/>
273
+ <br/>
274
+ <br/>
275
+
276
+ <article class="inline-story">
277
+ <header>
278
+ <h5>Error message</h5>
279
+ <LinkTo kind="components-form-field" story="with-error-message">
280
+ <img src={linkImage} aria-hidden={true}/>
281
+ </LinkTo>
282
+ </header>
283
+ <Story id="components-form-field--with-error-message" />
284
+ </article>