matcha-components 1.0.6 → 1.0.8
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/index.ts +1 -0
- package/package.json +1 -1
- package/src/documentation/presentation.mdx +105 -0
- package/src/foundation/borders/borders.mdx +180 -0
- package/src/foundation/colors/base/amber.mdx +12 -9
- package/src/foundation/colors/base/blue.mdx +12 -9
- package/src/foundation/colors/base/cyan.mdx +12 -9
- package/src/foundation/colors/base/deep-orange.mdx +12 -9
- package/src/foundation/colors/base/deep-purple.mdx +12 -9
- package/src/foundation/colors/base/green.mdx +12 -9
- package/src/foundation/colors/base/indigo.mdx +12 -9
- package/src/foundation/colors/base/light-blue.mdx +12 -9
- package/src/foundation/colors/base/light-green.mdx +12 -9
- package/src/foundation/colors/base/lime.mdx +12 -9
- package/src/foundation/colors/base/orange.mdx +12 -9
- package/src/foundation/colors/base/pink.mdx +12 -9
- package/src/foundation/colors/base/purple.mdx +12 -9
- package/src/foundation/colors/base/red.mdx +12 -9
- package/src/foundation/colors/base/teal.mdx +12 -9
- package/src/foundation/colors/base/yellow.mdx +12 -9
- package/src/foundation/colors/base-colors.mdx +21 -18
- package/src/foundation/colors/theme/accent.mdx +12 -9
- package/src/foundation/colors/theme/primary.mdx +12 -9
- package/src/foundation/colors/theme/warn.mdx +12 -9
- package/src/foundation/colors/theme-colors.mdx +11 -37
- package/src/foundation/spacing/margins.mdx +183 -0
- package/src/foundation/spacing/paddings.mdx +156 -0
- package/src/foundation/typography/colors.mdx +26 -0
- package/src/foundation/typography/font-size.mdx +57 -0
- package/src/foundation/typography/font-weight.mdx +65 -0
- package/src/foundation/typography/helpers.mdx +86 -0
- package/src/foundation/typography/letter-spacing.mdx +35 -0
- package/src/foundation/typography/line-height.mdx +52 -0
- package/src/foundation/typography/message-box.mdx +43 -0
- package/src/foundation/typography/text-align.mdx +22 -0
- package/src/foundation/typography/text-styles.mdx +88 -0
- package/src/lib/matcha-autocomplete/autocomplete.mdx +1 -1
- package/src/lib/matcha-autocomplete/autocomplete.stories.ts +16 -25
- package/src/lib/matcha-autocomplete/example/autocomplete-auto-active-first-option-example.css +9 -0
- package/src/lib/matcha-autocomplete/example/autocomplete-auto-active-first-option-example.html +9 -0
- package/src/lib/matcha-autocomplete/example/autocomplete-auto-active-first-option-example.ts +37 -0
- package/src/lib/matcha-autocomplete/example/autocomplete-overview-example.css +19 -0
- package/src/lib/matcha-autocomplete/example/autocomplete-overview-example.html +17 -0
- package/src/lib/matcha-autocomplete/example/autocomplete-overview-example.ts +70 -0
- package/src/lib/matcha-badge/badge.argtypes.ts +77 -0
- package/src/lib/matcha-badge/badge.directive.ts +11 -0
- package/src/lib/matcha-badge/badge.mdx +69 -0
- package/src/lib/matcha-badge/badge.module.ts +5 -10
- package/src/lib/matcha-badge/badge.stories.ts +79 -0
- package/src/lib/matcha-bottom-sheet/bottom-sheet-overview-example-sheet.html +21 -0
- package/src/lib/matcha-bottom-sheet/bottom-sheet-overview-example.component.ts +34 -0
- package/src/lib/matcha-bottom-sheet/bottom-sheet-overview-example.html +2 -0
- package/src/lib/matcha-bottom-sheet/bottom-sheet.argtypes.ts +117 -0
- package/src/lib/matcha-bottom-sheet/bottom-sheet.mdx +69 -0
- package/src/lib/matcha-bottom-sheet/bottom-sheet.module.ts +5 -10
- package/src/lib/matcha-bottom-sheet/bottom-sheet.stories.ts +39 -0
- package/src/lib/matcha-button/button-overview-example.component.ts +18 -0
- package/src/lib/matcha-button/button-overview-example.html +118 -0
- package/src/lib/matcha-button/button-overview-example.scss +31 -0
- package/src/lib/matcha-button/button.argtypes.ts +20 -0
- package/src/lib/matcha-button/button.directive.ts +39 -0
- package/src/lib/matcha-button/button.mdx +171 -0
- package/src/lib/matcha-button/button.module.ts +10 -0
- package/src/lib/matcha-button/button.stories.ts +38 -0
- package/src/lib/matcha-button-toggle/button-toggle.argtype.ts +115 -0
- package/src/lib/matcha-button-toggle/button-toggle.directive.ts +13 -0
- package/src/lib/matcha-button-toggle/button-toggle.mdx +63 -0
- package/src/lib/matcha-button-toggle/button-toggle.stories.ts +64 -0
- package/src/lib/matcha-button-toggle/matcha-button-toggle.directive.ts +0 -1
- package/src/lib/matcha-card/card-argtype.ts +54 -0
- package/src/lib/matcha-card/card-header.html +10 -0
- package/src/lib/matcha-card/card-title-group.html +12 -0
- package/src/lib/matcha-card/card.component.spec.ts +21 -0
- package/src/lib/matcha-card/card.component.ts +47 -0
- package/src/lib/matcha-card/card.mdx +43 -0
- package/src/lib/matcha-card/card.module.ts +10 -0
- package/src/lib/matcha-card/card.stories.ts +92 -0
- package/src/lib/matcha-components.module.ts +12 -47
- package/src/lib/matcha-dialog/confirmation-dialog.component.ts +39 -0
- package/src/lib/matcha-dialog/confirmation-dialog.stories.ts +21 -0
- package/src/lib/matcha-divider/divider.argtypes.ts +18 -0
- package/src/lib/matcha-divider/divider.mdx +51 -0
- package/src/lib/matcha-divider/divider.module.ts +5 -9
- package/src/lib/matcha-divider/divider.stories.ts +49 -0
- package/src/lib/matcha-elevation/elevation.argtypes.ts +16 -0
- package/src/lib/matcha-elevation/elevation.directive.ts +24 -0
- package/src/lib/matcha-elevation/elevation.mdx +50 -0
- package/src/lib/matcha-elevation/elevation.module.ts +10 -0
- package/src/lib/matcha-elevation/elevation.stories.ts +50 -0
- package/src/lib/matcha-expansion/expansion.argtypes.ts +44 -0
- package/src/lib/matcha-expansion/expansion.directive.ts +11 -0
- package/src/lib/matcha-expansion/expansion.mdx +69 -0
- package/src/lib/matcha-expansion/expansion.module.ts +10 -0
- package/src/lib/matcha-expansion/expansion.stories.ts +67 -0
- package/src/lib/matcha-forms/form-field-argtype.ts +60 -0
- package/src/lib/matcha-forms/form-field.directive.ts +11 -0
- package/src/lib/matcha-forms/form-field.mdx +20 -0
- package/src/lib/matcha-forms/{matcha-form-field.stories.ts → form-field.stories.ts} +64 -68
- package/src/lib/matcha-forms/forms.module.ts +5 -14
- package/src/lib/matcha-headers/headers.argtype.ts +14 -0
- package/src/lib/matcha-headers/headers.mdx +94 -0
- package/src/lib/matcha-headers/headers.module.ts +12 -0
- package/src/lib/matcha-headers/headers.stories.ts +88 -0
- package/src/lib/matcha-headers/headine/headline.component.html +1 -0
- package/src/lib/matcha-headers/headine/headline.component.ts +20 -0
- package/src/lib/matcha-headers/subhead/subhead.component.html +1 -0
- package/src/lib/matcha-headers/subhead/subhead.component.ts +20 -0
- package/src/lib/matcha-headers/title/title.component.html +1 -0
- package/src/lib/matcha-headers/title/title.component.ts +20 -0
- package/src/lib/matcha-icon/icon-argtype.ts +36 -0
- package/src/lib/matcha-icon/icon.component.html +3 -0
- package/src/lib/matcha-icon/icon.component.scss +0 -0
- package/src/lib/matcha-icon/icon.component.ts +34 -0
- package/src/lib/matcha-icon/icon.mdx +60 -0
- package/src/lib/matcha-icon/icon.module.ts +5 -14
- package/src/lib/matcha-icon/icon.stories.ts +423 -0
- package/src/lib/matcha-input/input.argtypes.ts +42 -0
- package/src/lib/matcha-input/input.directive.ts +11 -0
- package/src/lib/matcha-input/input.mdx +73 -0
- package/src/lib/matcha-input/input.module.ts +9 -0
- package/src/lib/matcha-input/input.stories.ts +97 -0
- package/src/lib/matcha-list/list.argtypes.ts +44 -0
- package/src/lib/matcha-list/{matcha-list.directive.ts → list.directive.ts} +3 -8
- package/src/lib/matcha-list/list.mdx +69 -0
- package/src/lib/matcha-list/list.module.ts +5 -9
- package/src/lib/matcha-list/list.stories.ts +101 -0
- package/src/lib/matcha-menu/menu.argtypes.ts +114 -0
- package/src/lib/matcha-menu/menu.mdx +59 -0
- package/src/lib/matcha-menu/menu.module.ts +5 -9
- package/src/lib/matcha-menu/menu.stories.ts +122 -0
- package/src/lib/matcha-paginator/paginator-overview-example.component.ts +13 -0
- package/src/lib/matcha-paginator/paginator-overview-example.css +0 -0
- package/src/lib/matcha-paginator/paginator-overview-example.html +1 -0
- package/src/lib/matcha-paginator/paginator.argtypes.ts +11 -0
- package/src/lib/matcha-paginator/paginator.mdx +53 -0
- package/src/lib/matcha-paginator/paginator.module.ts +5 -9
- package/src/lib/matcha-paginator/paginator.stories.ts +34 -0
- package/src/lib/matcha-progress-bar/progress-bar.mdx +1 -1
- package/src/lib/matcha-progress-spinner/progress-spinner.mdx +33 -13
- package/src/lib/matcha-progress-spinner/progress-spinner.stories.ts +8 -8
- package/src/lib/matcha-select/select.argtypes.ts +265 -0
- package/src/lib/matcha-select/{matcha-select.directive.ts → select.directive.ts} +3 -8
- package/src/lib/matcha-select/select.mdx +54 -0
- package/src/lib/matcha-select/select.module.ts +5 -7
- package/src/lib/matcha-select/select.stories.ts +164 -0
- package/src/lib/matcha-sidenav/sidenav.argtypes.ts +60 -0
- package/src/lib/matcha-sidenav/sidenav.directive.ts +11 -0
- package/src/lib/matcha-sidenav/sidenav.mdx +57 -0
- package/src/lib/matcha-sidenav/sidenav.module.ts +10 -0
- package/src/lib/matcha-sidenav/sidenav.stories.ts +79 -0
- package/src/lib/matcha-slide-toggle/slide-toggle.mdx +1 -1
- package/src/lib/matcha-slider/slider.argtypes.ts +83 -0
- package/src/lib/matcha-slider/slider.mdx +45 -0
- package/src/lib/matcha-slider/slider.stories.ts +149 -0
- package/src/lib/matcha-snackbar/snack-bar-overview-example.component.ts +23 -0
- package/src/lib/matcha-snackbar/snack-bar-overview-example.css +3 -0
- package/src/lib/matcha-snackbar/snack-bar-overview-example.html +11 -0
- package/src/lib/matcha-snackbar/snack-bar.argtypes.ts +11 -0
- package/src/lib/matcha-snackbar/snack-bar.directive.ts +11 -0
- package/src/lib/matcha-snackbar/snack-bar.mdx +53 -0
- package/src/lib/matcha-snackbar/snack-bar.module.ts +10 -0
- package/src/lib/matcha-snackbar/snack-bar.stories.ts +34 -0
- package/src/lib/matcha-sort-header/example/sort-overview-example.component.ts +67 -0
- package/src/lib/matcha-sort-header/example/sort-overview-example.css +3 -0
- package/src/lib/matcha-sort-header/example/sort-overview-example.html +21 -0
- package/src/lib/matcha-sort-header/sort-header.argtypes.ts +11 -0
- package/src/lib/matcha-sort-header/sort-header.mdx +78 -0
- package/src/lib/matcha-sort-header/sort-header.module.ts +5 -7
- package/src/lib/matcha-sort-header/sort-header.stories.ts +34 -0
- package/src/lib/matcha-stepper/stepper.argtypes.ts +92 -0
- package/src/lib/matcha-stepper/stepper.mdx +68 -0
- package/src/lib/matcha-stepper/stepper.module.ts +5 -7
- package/src/lib/matcha-stepper/stepper.stories.ts +163 -0
- package/src/lib/matcha-table/example/table-basic-example.component.ts +37 -0
- package/src/lib/matcha-table/example/table-basic-example.css +0 -0
- package/src/lib/matcha-table/example/table-basic-example.html +35 -0
- package/src/lib/matcha-table/table.argtypes.ts +11 -0
- package/src/lib/matcha-table/table.mdx +78 -0
- package/src/lib/matcha-table/table.module.ts +5 -7
- package/src/lib/matcha-table/table.stories.ts +34 -0
- package/src/lib/matcha-tabs/tabs.argtypes.ts +11 -0
- package/src/lib/matcha-tabs/tabs.mdx +69 -0
- package/src/lib/matcha-tabs/tabs.module.ts +5 -11
- package/src/lib/matcha-tabs/tabs.stories.ts +49 -0
- package/src/lib/matcha-toolbar/toolbar.argtypes.ts +20 -0
- package/src/lib/matcha-toolbar/toolbar.directive.ts +11 -0
- package/src/lib/matcha-toolbar/toolbar.mdx +57 -0
- package/src/lib/matcha-toolbar/toolbar.module.ts +10 -0
- package/src/lib/matcha-toolbar/toolbar.stories.ts +100 -0
- package/src/lib/matcha-tooltip/tooltip.argtypes.ts +11 -0
- package/src/lib/matcha-tooltip/tooltip.mdx +69 -0
- package/src/lib/matcha-tooltip/tooltip.module.ts +5 -7
- package/src/lib/matcha-tooltip/tooltip.stories.ts +79 -0
- package/src/lib/matcha-tree/tree.argtypes.ts +42 -0
- package/src/lib/matcha-tree/tree.mdx +49 -0
- package/src/lib/matcha-tree/tree.module.ts +5 -7
- package/src/lib/matcha-tree/tree.stories.ts +130 -0
- package/src/public-api.ts +27 -28
- package/src/lib/matcha-badge/matcha-badge.directive.ts +0 -16
- package/src/lib/matcha-buttons/buttons.module.ts +0 -27
- package/src/lib/matcha-buttons/matcha-btn-md.directive.ts +0 -16
- package/src/lib/matcha-buttons/matcha-btn-pill.directive.ts +0 -15
- package/src/lib/matcha-buttons/matcha-btn-size.directive.ts +0 -17
- package/src/lib/matcha-buttons/matcha-btn-xl.directive.ts +0 -15
- package/src/lib/matcha-card/card.mdx.txt +0 -55
- package/src/lib/matcha-card/matcha-card-argtype.ts +0 -123
- package/src/lib/matcha-card/matcha-card-content/matcha-card-content.component.html +0 -3
- package/src/lib/matcha-card/matcha-card-content/matcha-card-content.component.spec.ts +0 -21
- package/src/lib/matcha-card/matcha-card-content/matcha-card-content.component.ts +0 -10
- package/src/lib/matcha-card/matcha-card-footer/matcha-card-footer.component.html +0 -3
- package/src/lib/matcha-card/matcha-card-footer/matcha-card-footer.component.spec.ts +0 -21
- package/src/lib/matcha-card/matcha-card-footer/matcha-card-footer.component.ts +0 -10
- package/src/lib/matcha-card/matcha-card-header/matcha-card-header.component.html +0 -4
- package/src/lib/matcha-card/matcha-card-header/matcha-card-header.component.spec.ts +0 -21
- package/src/lib/matcha-card/matcha-card-header/matcha-card-header.component.ts +0 -10
- package/src/lib/matcha-card/matcha-card.component.scss +0 -117
- package/src/lib/matcha-card/matcha-card.component.spec.ts +0 -21
- package/src/lib/matcha-card/matcha-card.component.ts +0 -43
- package/src/lib/matcha-card/matcha-card.module.ts +0 -27
- package/src/lib/matcha-card/matcha-card.stories.ts +0 -80
- package/src/lib/matcha-expansion-panel/expansion-panel.module.ts +0 -14
- package/src/lib/matcha-expansion-panel/matcha-expansion-panel.directive.ts +0 -16
- package/src/lib/matcha-forms/matcha-form-field-appearance.directive.ts +0 -16
- package/src/lib/matcha-forms/matcha-form-field-argtype.ts +0 -73
- package/src/lib/matcha-forms/matcha-form-field.mdx +0 -284
- package/src/lib/matcha-forms/matcha-form-input-text.directive.ts +0 -16
- package/src/lib/matcha-icon/matcha-icon-position-pos.directive.ts +0 -15
- package/src/lib/matcha-icon/matcha-icon-position-pre.directive.ts +0 -15
- package/src/lib/matcha-menu/menu.stories.txt +0 -76
- package/src/lib/matcha-snackbar/matcha-snackbar.directive.ts +0 -16
- package/src/lib/matcha-snackbar/snackbar.module.ts +0 -12
- package/src/lib/matcha-title/matcha-title.component.html +0 -33
- package/src/lib/matcha-title/matcha-title.component.spec.ts +0 -21
- package/src/lib/matcha-title/matcha-title.component.ts +0 -24
- package/src/lib/matcha-title/matcha-title.module.ts +0 -18
- /package/src/lib/matcha-bottom-sheet/{matcha-bottom-sheet.directive.ts → bottom-sheet.directive.ts} +0 -0
- /package/src/lib/{matcha-buttons/button.stories.ts → matcha-button/button.stories.ts.TXT} +0 -0
- /package/src/lib/matcha-card/{matcha-card.component.html → card.component.html} +0 -0
- /package/src/lib/matcha-card/{matcha-card-content/matcha-card-content.component.scss → card.component.scss} +0 -0
- /package/src/lib/matcha-divider/{matcha-divider.directive.ts → divider.directive.ts} +0 -0
- /package/src/lib/{matcha-card/matcha-card-footer/matcha-card-footer.component.scss → matcha-headers/headine/headline.component.scss} +0 -0
- /package/src/lib/{matcha-card/matcha-card-header/matcha-card-header.component.scss → matcha-headers/subhead/subhead.component.scss} +0 -0
- /package/src/lib/{matcha-title/matcha-title.component.scss → matcha-headers/title/title.component.scss} +0 -0
- /package/src/lib/matcha-menu/{matcha-menu.directive.ts → menu.directive.ts} +0 -0
- /package/src/lib/matcha-paginator/{matcha-paginator.directive.ts → paginator.directive.ts} +0 -0
- /package/src/lib/matcha-sort-header/{matcha-sort-header.directive.ts → sort-header.directive.ts} +0 -0
- /package/src/lib/matcha-stepper/{matcha-stepper.directive.ts → stepper.directive.ts} +0 -0
- /package/src/lib/matcha-table/{matcha-table.directive.ts → table.directive.ts} +0 -0
- /package/src/lib/matcha-tabs/{matcha-tabs.directive.ts → tabs.directive.ts} +0 -0
- /package/src/lib/matcha-tooltip/{matcha-tooltip.directive.ts → tooltip.directive.ts} +0 -0
- /package/src/lib/matcha-tree/{matcha-tree.directive.ts → tree.directive.ts} +0 -0
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { Meta } from '@storybook/addon-docs';
|
|
2
|
+
|
|
3
|
+
<Meta title="Fundamentos / Spacing / Margin" />
|
|
4
|
+
|
|
5
|
+
### Margin
|
|
6
|
+
|
|
7
|
+
Os tamanhos para as classes de margin são sempre múltiplos de **4**, sendo o
|
|
8
|
+
máximo **64**.
|
|
9
|
+
|
|
10
|
+
<div class="h-400 w-100-p overflow-y-scroll">
|
|
11
|
+
<table class="w-100-p">
|
|
12
|
+
<thead>
|
|
13
|
+
<tr>
|
|
14
|
+
<th>Classe</th>
|
|
15
|
+
<th>Propriedade</th>
|
|
16
|
+
</tr>
|
|
17
|
+
</thead>
|
|
18
|
+
<tbody>
|
|
19
|
+
{Array.from({ length: 17 }, (_, index) => {
|
|
20
|
+
const marginValue = index* 4;
|
|
21
|
+
return (
|
|
22
|
+
<>
|
|
23
|
+
{[
|
|
24
|
+
{'abrev':'m', 'prop': ''},
|
|
25
|
+
{'abrev':'mt', 'prop': '-top'},
|
|
26
|
+
{'abrev':'mr', 'prop': '-right'},
|
|
27
|
+
{'abrev':'mb', 'prop': '-bottom'},
|
|
28
|
+
{'abrev':'ml', 'prop': '-left'},
|
|
29
|
+
{'abrev':'mx', 'prop': '-left and margin-right'},
|
|
30
|
+
{'abrev':'my', 'prop': '-top and margin-bottom'}
|
|
31
|
+
].map((margin) => (
|
|
32
|
+
<tr>
|
|
33
|
+
<td>{`${margin.abrev}-${marginValue}`}</td>
|
|
34
|
+
<td>{`margin${margin.prop}: ${marginValue}px;`}</td>
|
|
35
|
+
</tr>
|
|
36
|
+
))
|
|
37
|
+
}
|
|
38
|
+
</>
|
|
39
|
+
);
|
|
40
|
+
})}
|
|
41
|
+
</tbody>
|
|
42
|
+
</table>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<div class="h-24"></div>
|
|
46
|
+
|
|
47
|
+
<p class="h5 mb-8 font-size-16 mt-4">Exemplos</p>
|
|
48
|
+
|
|
49
|
+
<div class="matcha-card background-surface d-flex-column gap-16">
|
|
50
|
+
<div class="grid-2 gap-16 grid-sm-7 d-flex-sm-space-between p-16">
|
|
51
|
+
<div class="background-bg border-radius-4 b-2" style={{ height: 'fit-content', width: 'fit-content'}}>
|
|
52
|
+
<div class="accent border-radius-2 d-flex-center-center h-52 w-52 text-center font-size-14 m-12--force">m-12</div>
|
|
53
|
+
</div>
|
|
54
|
+
<div class="background-bg border-radius-4 b-2" style={{ height: 'fit-content', width: 'fit-content'}}>
|
|
55
|
+
<div class="accent border-radius-2 d-flex-center-center h-52 w-52 text-center font-size-14 mt-12--force">mt-12</div>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="background-bg border-radius-4 b-2" style={{ height: 'fit-content', width: 'fit-content'}}>
|
|
58
|
+
<div class="accent border-radius-2 d-flex-center-center h-52 w-52 text-center font-size-14 mr-12--force">mr-12</div>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="background-bg border-radius-4 b-2" style={{ height: 'fit-content', width: 'fit-content'}}>
|
|
61
|
+
<div class="accent border-radius-2 d-flex-center-center h-52 w-52 text-center font-size-14 mb-12--force">mb-12</div>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="background-bg border-radius-4 b-2" style={{ height: 'fit-content', width: 'fit-content'}}>
|
|
64
|
+
<div class="accent border-radius-2 d-flex-center-center h-52 w-52 text-center font-size-14 ml-12--force">ml-12</div>
|
|
65
|
+
</div>
|
|
66
|
+
<div class="background-bg border-radius-4 b-2" style={{ height: 'fit-content', width: 'fit-content'}}>
|
|
67
|
+
<div class="accent border-radius-2 d-flex-center-center h-52 w-52 text-center font-size-14 mx-12--force">mx-12</div>
|
|
68
|
+
</div>
|
|
69
|
+
<div class="background-bg border-radius-4 b-2" style={{ height: 'fit-content', width: 'fit-content'}}>
|
|
70
|
+
<div class="accent border-radius-2 d-flex-center-center h-52 w-52 text-center font-size-14 my-12--force">my-12</div>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
<div>
|
|
74
|
+
```html
|
|
75
|
+
<div class="m-12">m-12</div>
|
|
76
|
+
<div class="mt-12">mt-12</div>
|
|
77
|
+
<div class="mr-12">mr-12</div>
|
|
78
|
+
<div class="mb-12">mb-12</div>
|
|
79
|
+
<div class="ml-12">ml-12</div>
|
|
80
|
+
<div class="mx-12">mx-12</div>
|
|
81
|
+
<div class="my-12">my-12</div>
|
|
82
|
+
```
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
|
|
86
|
+
<div class="h-24"></div>
|
|
87
|
+
|
|
88
|
+
#### Valores negativos
|
|
89
|
+
|
|
90
|
+
Os tamanhos para as classes de margin também podem ser negativos.
|
|
91
|
+
|
|
92
|
+
<div class="h-400 w-100-p overflow-y-scroll">
|
|
93
|
+
<table class="w-100-p">
|
|
94
|
+
<thead>
|
|
95
|
+
<tr>
|
|
96
|
+
<th>Classe</th>
|
|
97
|
+
<th>Propriedade</th>
|
|
98
|
+
</tr>
|
|
99
|
+
</thead>
|
|
100
|
+
<tbody>
|
|
101
|
+
{Array.from({ length: 33 }, (_, index) => {
|
|
102
|
+
const marginValue = (index - 16 )* 4;
|
|
103
|
+
return (
|
|
104
|
+
<>
|
|
105
|
+
{[
|
|
106
|
+
{'abrev':'m', 'prop': ''},
|
|
107
|
+
{'abrev':'mt', 'prop': '-top'},
|
|
108
|
+
{'abrev':'mr', 'prop': '-right'},
|
|
109
|
+
{'abrev':'mb', 'prop': '-bottom'},
|
|
110
|
+
{'abrev':'ml', 'prop': '-left'},
|
|
111
|
+
{'abrev':'mx', 'prop': '-left and margin-right'},
|
|
112
|
+
{'abrev':'my', 'prop': '-top and margin-bottom'}
|
|
113
|
+
].map((margin) => (
|
|
114
|
+
<tr>
|
|
115
|
+
<td>{`${margin.abrev}-${marginValue}`}</td>
|
|
116
|
+
<td>{`margin${margin.prop}: ${marginValue}px;`}</td>
|
|
117
|
+
</tr>
|
|
118
|
+
))
|
|
119
|
+
}
|
|
120
|
+
</>
|
|
121
|
+
);
|
|
122
|
+
})}
|
|
123
|
+
</tbody>
|
|
124
|
+
</table>
|
|
125
|
+
</div>
|
|
126
|
+
|
|
127
|
+
<div class="h-24"></div>
|
|
128
|
+
|
|
129
|
+
#### Breakpoints
|
|
130
|
+
|
|
131
|
+
- xs: 600px
|
|
132
|
+
- sm: 1024px
|
|
133
|
+
- md: 1440px
|
|
134
|
+
- lg: 1920px
|
|
135
|
+
- xl: 2560px
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
<p class="h5 mb-8 font-size-16">Classes de Margin com breakpoint:</p>
|
|
140
|
+
|
|
141
|
+
<div class="h-400 w-100-p overflow-y-scroll">
|
|
142
|
+
<table class="w-100-p">
|
|
143
|
+
<thead>
|
|
144
|
+
<tr>
|
|
145
|
+
<th>Classe</th>
|
|
146
|
+
<th>Propriedade</th>
|
|
147
|
+
<th>Breakpoint</th>
|
|
148
|
+
</tr>
|
|
149
|
+
</thead>
|
|
150
|
+
<tbody>
|
|
151
|
+
{Array.from({ length: 65 }, (_, index) => {
|
|
152
|
+
const marginValue = index * 4;
|
|
153
|
+
return (
|
|
154
|
+
<>
|
|
155
|
+
{[
|
|
156
|
+
{'abrev':'m', 'prop': ''},
|
|
157
|
+
{'abrev':'mt', 'prop': '-top'},
|
|
158
|
+
{'abrev':'mr', 'prop': '-right'},
|
|
159
|
+
{'abrev':'mb', 'prop': '-bottom'},
|
|
160
|
+
{'abrev':'ml', 'prop': '-left'},
|
|
161
|
+
{'abrev':'mx', 'prop': '-left and margin-right'},
|
|
162
|
+
{'abrev':'my', 'prop': '-top and margin-bottom'}
|
|
163
|
+
].map((margin) => (
|
|
164
|
+
[
|
|
165
|
+
{'name':'xs', 'value': '600px'},
|
|
166
|
+
{'name':'sm', 'value': '1024px'},
|
|
167
|
+
{'name':'md', 'value': '1440px'},
|
|
168
|
+
{'name':'lg', 'value': '1920px'},
|
|
169
|
+
{'name':'xl', 'value': '2560px'}
|
|
170
|
+
].map((breakpoint) => (
|
|
171
|
+
<tr key={`${margin.abrev}-${breakpoint.name}-${marginValue}`}>
|
|
172
|
+
<td>{`${margin.abrev}-${breakpoint.name}-${marginValue}`}</td>
|
|
173
|
+
<td>{`margin${margin.prop}: ${marginValue}px;`}</td>
|
|
174
|
+
<td>{`@media only screen and (min-width: ${breakpoint.value})`}</td>
|
|
175
|
+
</tr>
|
|
176
|
+
))
|
|
177
|
+
))}
|
|
178
|
+
</>
|
|
179
|
+
);
|
|
180
|
+
})}
|
|
181
|
+
</tbody>
|
|
182
|
+
</table>
|
|
183
|
+
</div>
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { Meta } from '@storybook/addon-docs';
|
|
2
|
+
|
|
3
|
+
<Meta title="Fundamentos / Spacing / Padding" />
|
|
4
|
+
|
|
5
|
+
### Padding
|
|
6
|
+
|
|
7
|
+
Os tamanhos para as classes de padding são sempre múltiplos de **4**, sendo o
|
|
8
|
+
mínimo **0** e o máximo **64**.
|
|
9
|
+
|
|
10
|
+
<div class="h-400 w-100-p overflow-y-scroll">
|
|
11
|
+
<table class="w-100-p">
|
|
12
|
+
<thead>
|
|
13
|
+
<tr>
|
|
14
|
+
<th>Classe</th>
|
|
15
|
+
<th>Propriedade</th>
|
|
16
|
+
</tr>
|
|
17
|
+
</thead>
|
|
18
|
+
<tbody>
|
|
19
|
+
{Array.from({ length: 17 }, (_, index) => {
|
|
20
|
+
const paddingValue = index * 4;
|
|
21
|
+
return (
|
|
22
|
+
<>
|
|
23
|
+
{[
|
|
24
|
+
{'abrev':'p', 'prop': ''},
|
|
25
|
+
{'abrev':'pt', 'prop': '-top'},
|
|
26
|
+
{'abrev':'pr', 'prop': '-right'},
|
|
27
|
+
{'abrev':'pb', 'prop': '-bottom'},
|
|
28
|
+
{'abrev':'pl', 'prop': '-left'},
|
|
29
|
+
{'abrev':'px', 'prop': '-left and padding-right'},
|
|
30
|
+
{'abrev':'py', 'prop': '-top and padding-bottom'}
|
|
31
|
+
].map((padding) => (
|
|
32
|
+
<tr>
|
|
33
|
+
<td>{`${padding.abrev}-${paddingValue}`}</td>
|
|
34
|
+
<td>{`padding${padding.prop}: ${paddingValue}px;`}</td>
|
|
35
|
+
</tr>
|
|
36
|
+
))
|
|
37
|
+
}
|
|
38
|
+
</>
|
|
39
|
+
);
|
|
40
|
+
})}
|
|
41
|
+
</tbody>
|
|
42
|
+
</table>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<div class="h-24"></div>
|
|
46
|
+
|
|
47
|
+
<p class="h5 mb-8 font-size-16 mt-4">Exemplos</p>
|
|
48
|
+
|
|
49
|
+
<div class="matcha-card background-surface d-flex-column gap-16">
|
|
50
|
+
<div class="matcha-card background-bg grid-2 gap-16 grid-sm-7 d-flex-sm-space-between">
|
|
51
|
+
<div class="accent-200-bg border-radius-4 p-12" style={{ height: 'fit-content', width: 'fit-content'}}>
|
|
52
|
+
<div class="accent border-radius-4 d-flex-center-center h-52 w-52 text-center font-size-14">p-12</div>
|
|
53
|
+
</div>
|
|
54
|
+
<div class="accent-200-bg border-radius-4 pt-12" style={{ height: 'fit-content', width: 'fit-content'}}>
|
|
55
|
+
<div class="accent border-radius-4 d-flex-center-center h-52 w-52 text-center font-size-14">pt-12</div>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="accent-200-bg border-radius-4 pr-12" style={{ height: 'fit-content', width: 'fit-content'}}>
|
|
58
|
+
<div class="accent border-radius-4 d-flex-center-center h-52 w-52 text-center font-size-14">pr-12</div>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="accent-200-bg border-radius-4 pb-12" style={{ height: 'fit-content', width: 'fit-content'}}>
|
|
61
|
+
<div class="accent border-radius-4 d-flex-center-center h-52 w-52 text-center font-size-14">pb-12</div>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="accent-200-bg border-radius-4 pl-12" style={{ height: 'fit-content', width: 'fit-content'}}>
|
|
64
|
+
<div class="accent border-radius-4 d-flex-center-center h-52 w-52 text-center font-size-14">pl-12</div>
|
|
65
|
+
</div>
|
|
66
|
+
<div class="accent-200-bg border-radius-4 px-12" style={{ height: 'fit-content', width: 'fit-content'}}>
|
|
67
|
+
<div class="accent border-radius-4 d-flex-center-center h-52 w-52 text-center font-size-14">px-12</div>
|
|
68
|
+
</div>
|
|
69
|
+
<div class="accent-200-bg border-radius-4 py-12" style={{ height: 'fit-content', width: 'fit-content'}}>
|
|
70
|
+
<div class="accent border-radius-4 d-flex-center-center h-52 w-52 text-center font-size-14">py-12</div>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
<div>
|
|
74
|
+
```html
|
|
75
|
+
<div class="p-12">
|
|
76
|
+
<div class="h-12 w-12 ...">p-12</div>
|
|
77
|
+
</div>
|
|
78
|
+
<div class="pt-12">
|
|
79
|
+
<div class="h-12 w-12 ...">pt-12</div>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="pr-12">
|
|
82
|
+
<div class="h-12 w-12 ...">pr-12</div>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="pb-12">
|
|
85
|
+
<div class="h-12 w-12 ...">pb-12</div>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="pl-12">
|
|
88
|
+
<div class="h-12 w-12 ...">pl-12</div>
|
|
89
|
+
</div>
|
|
90
|
+
<div class="px-12">
|
|
91
|
+
<div class="h-12 w-12 ...">px-12</div>
|
|
92
|
+
</div>
|
|
93
|
+
<div class="py-12">
|
|
94
|
+
<div class="h-12 w-12 ...">py-12</div>
|
|
95
|
+
</div>
|
|
96
|
+
```
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
|
|
100
|
+
<div class="h-24"></div>
|
|
101
|
+
|
|
102
|
+
#### Breakpoints
|
|
103
|
+
|
|
104
|
+
- xs: 600px
|
|
105
|
+
- sm: 1024px
|
|
106
|
+
- md: 1440px
|
|
107
|
+
- lg: 1920px
|
|
108
|
+
- xl: 2560px
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
<p class="h5 mb-8 font-size-16">Classes de Padding com breakpoint:</p>
|
|
113
|
+
|
|
114
|
+
<div class="h-400 w-100-p overflow-y-scroll">
|
|
115
|
+
<table class="w-100-p">
|
|
116
|
+
<thead>
|
|
117
|
+
<tr>
|
|
118
|
+
<th>Classe</th>
|
|
119
|
+
<th>Propriedade</th>
|
|
120
|
+
<th>Breakpoint</th>
|
|
121
|
+
</tr>
|
|
122
|
+
</thead>
|
|
123
|
+
<tbody>
|
|
124
|
+
{Array.from({ length: 17 }, (_, index) => {
|
|
125
|
+
const paddingValue = index * 4;
|
|
126
|
+
return (
|
|
127
|
+
<>
|
|
128
|
+
{[
|
|
129
|
+
{'abrev':'p', 'prop': ''},
|
|
130
|
+
{'abrev':'pt', 'prop': '-top'},
|
|
131
|
+
{'abrev':'pr', 'prop': '-right'},
|
|
132
|
+
{'abrev':'pb', 'prop': '-bottom'},
|
|
133
|
+
{'abrev':'pl', 'prop': '-left'},
|
|
134
|
+
{'abrev':'px', 'prop': '-left and padding-right'},
|
|
135
|
+
{'abrev':'py', 'prop': '-top and padding-bottom'}
|
|
136
|
+
].map((paddingType) => (
|
|
137
|
+
[
|
|
138
|
+
{'name':'xs', 'value': '600px'},
|
|
139
|
+
{'name':'sm', 'value': '1024px'},
|
|
140
|
+
{'name':'md', 'value': '1440px'},
|
|
141
|
+
{'name':'lg', 'value': '1920px'},
|
|
142
|
+
{'name':'xl', 'value': '2560px'}
|
|
143
|
+
].map((breakpoint) => (
|
|
144
|
+
<tr key={`${paddingType.abrev}-${breakpoint.name}-${paddingValue}`}>
|
|
145
|
+
<td>{`${paddingType.abrev}-${breakpoint.name}-${paddingValue}`}</td>
|
|
146
|
+
<td>{`padding${paddingType.prop}: ${paddingValue}px;`}</td>
|
|
147
|
+
<td>{`@media only screen and (min-width: ${breakpoint.value})`}</td>
|
|
148
|
+
</tr>
|
|
149
|
+
))
|
|
150
|
+
))}
|
|
151
|
+
</>
|
|
152
|
+
);
|
|
153
|
+
})}
|
|
154
|
+
</tbody>
|
|
155
|
+
</table>
|
|
156
|
+
</div>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Meta } from '@storybook/addon-docs';
|
|
2
|
+
|
|
3
|
+
<Meta title="Fundamentos / Typography / Colors" />
|
|
4
|
+
|
|
5
|
+
### Text Theme - Colors
|
|
6
|
+
|
|
7
|
+
Definições de cores padrão para textos.
|
|
8
|
+
|
|
9
|
+
<div class="matcha-card background-surface d-flex-column gap-16">
|
|
10
|
+
<div class="matcha-card background-bg">
|
|
11
|
+
<p class="text-primary">Exemplo de cor no texto</p>
|
|
12
|
+
<p class="text-basic">Exemplo de cor no texto</p>
|
|
13
|
+
<p class="text-placeholder">Exemplo de cor no texto</p>
|
|
14
|
+
<p class="text-warn">Exemplo de cor no texto</p>
|
|
15
|
+
<p class="text-label">Exemplo de cor no texto</p>
|
|
16
|
+
</div>
|
|
17
|
+
<div>
|
|
18
|
+
```html
|
|
19
|
+
<p class="text-primary">Exemplo de cor no texto</p>
|
|
20
|
+
<p class="text-basic">Exemplo de cor no texto</p>
|
|
21
|
+
<p class="text-placeholder">Exemplo de cor no texto</p>
|
|
22
|
+
<p class="text-warn">Exemplo de cor no texto</p>
|
|
23
|
+
<p class="text-label">Exemplo de cor no texto</p>
|
|
24
|
+
```
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Meta } from '@storybook/addon-docs';
|
|
2
|
+
|
|
3
|
+
<Meta title="Fundamentos / Typography / Font-size" />
|
|
4
|
+
|
|
5
|
+
### Font-size
|
|
6
|
+
|
|
7
|
+
Nessa seção serão apresentadas as maneiras de se usar as classes para font-size.
|
|
8
|
+
|
|
9
|
+
#### Pixels
|
|
10
|
+
|
|
11
|
+
Os tamanhos em pixels das classes são sempre múltiplos de **2**, sendo o mínimo
|
|
12
|
+
**2** e o máximo **72**.
|
|
13
|
+
|
|
14
|
+
<div class="h-256 w-100-p overflow-y-scroll">
|
|
15
|
+
<table class="w-100-p">
|
|
16
|
+
<thead>
|
|
17
|
+
<tr>
|
|
18
|
+
<th>Classe</th>
|
|
19
|
+
<th>Propriedade</th>
|
|
20
|
+
</tr>
|
|
21
|
+
</thead>
|
|
22
|
+
<tbody>
|
|
23
|
+
{Array.from({ length: 36 }, (_, index) => {
|
|
24
|
+
const fontSizeValue = (index + 1)* 2;
|
|
25
|
+
return (
|
|
26
|
+
<tr key={`font-size-${fontSizeValue}`}>
|
|
27
|
+
<td>fs-{fontSizeValue}</td>
|
|
28
|
+
<td>font-size: {fontSizeValue}px;</td>
|
|
29
|
+
</tr>
|
|
30
|
+
);
|
|
31
|
+
})}
|
|
32
|
+
</tbody>
|
|
33
|
+
</table>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<div class="h-24"></div>
|
|
37
|
+
|
|
38
|
+
<p class="h5 mb-8 font-size-16 mt-4">Exemplos</p>
|
|
39
|
+
|
|
40
|
+
<div class="matcha-card background-surface d-flex-column gap-16">
|
|
41
|
+
<div class="matcha-card background-bg">
|
|
42
|
+
<p class="fs-12">font-size: 12px</p>
|
|
43
|
+
<p class="fs-16">font-size: 16px</p>
|
|
44
|
+
<p class="fs-22">font-size: 22px</p>
|
|
45
|
+
<p class="fs-24">font-size: 24px</p>
|
|
46
|
+
<p class="fs-28">font-size: 28px</p>
|
|
47
|
+
</div>
|
|
48
|
+
<div>
|
|
49
|
+
```html
|
|
50
|
+
<p class="fs-12">font-size: 12px</p>
|
|
51
|
+
<p class="fs-16">font-size: 16px</p>
|
|
52
|
+
<p class="fs-22">font-size: 22px</p>
|
|
53
|
+
<p class="fs-24">font-size: 24px</p>
|
|
54
|
+
<p class="fs-28">font-size: 28px</p>
|
|
55
|
+
```
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Meta } from '@storybook/addon-docs';
|
|
2
|
+
|
|
3
|
+
<Meta title="Fundamentos / Typography / Font-weight" />
|
|
4
|
+
|
|
5
|
+
### Font-weight
|
|
6
|
+
|
|
7
|
+
O **font-weight** é usado para controlar a espessura ou a intensidade da fonte
|
|
8
|
+
de um texto e varia de 100 a 900.
|
|
9
|
+
|
|
10
|
+
<p class="h5 mb-8 font-size-16 mt-4">Classes</p>
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<div class="matcha-card background-surface d-flex-column gap-16">
|
|
14
|
+
<div class="matcha-card background-bg">
|
|
15
|
+
<p class="fw-100">font-weight: 100</p>
|
|
16
|
+
<p class="fw-200">font-weight: 200</p>
|
|
17
|
+
<p class="fw-300">font-weight: 300</p>
|
|
18
|
+
<p class="fw-400">font-weight: 400</p>
|
|
19
|
+
<p class="fw-500">font-weight: 500</p>
|
|
20
|
+
<p class="fw-600">font-weight: 600</p>
|
|
21
|
+
<p class="fw-700">font-weight: 700</p>
|
|
22
|
+
<p class="fw-800">font-weight: 800</p>
|
|
23
|
+
<p class="fw-900">font-weight: 900</p>
|
|
24
|
+
</div>
|
|
25
|
+
<div>
|
|
26
|
+
```html
|
|
27
|
+
<p class="fw-100">font-weight: 100</p>
|
|
28
|
+
<p class="fw-200">font-weight: 200</p>
|
|
29
|
+
<p class="fw-300">font-weight: 300</p>
|
|
30
|
+
<p class="fw-400">font-weight: 400</p>
|
|
31
|
+
<p class="fw-500">font-weight: 500</p>
|
|
32
|
+
<p class="fw-600">font-weight: 600</p>
|
|
33
|
+
<p class="fw-700">font-weight: 700</p>
|
|
34
|
+
<p class="fw-800">font-weight: 800</p>
|
|
35
|
+
<p class="fw-900">font-weight: 900</p>
|
|
36
|
+
```
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
|
|
40
|
+
### Outras classes
|
|
41
|
+
|
|
42
|
+
<div class="h-256 w-100-p overflow-y-scroll">
|
|
43
|
+
<table class="w-100-p">
|
|
44
|
+
<thead>
|
|
45
|
+
<tr>
|
|
46
|
+
<th>Classe</th>
|
|
47
|
+
<th>Propriedade</th>
|
|
48
|
+
</tr>
|
|
49
|
+
</thead>
|
|
50
|
+
<tbody>
|
|
51
|
+
<tr>
|
|
52
|
+
<td>text-regular</td>
|
|
53
|
+
<td>font-weight: 400</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr>
|
|
56
|
+
<td>text-book</td>
|
|
57
|
+
<td>font-weight: 500</td>
|
|
58
|
+
</tr>
|
|
59
|
+
<tr>
|
|
60
|
+
<td>text-semibold</td>
|
|
61
|
+
<td>font-weight: 600</td>
|
|
62
|
+
</tr>
|
|
63
|
+
</tbody>
|
|
64
|
+
</table>
|
|
65
|
+
</div>
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Meta } from '@storybook/addon-docs';
|
|
2
|
+
|
|
3
|
+
<Meta title="Fundamentos / Typography / Helpers" />
|
|
4
|
+
|
|
5
|
+
### Helpers
|
|
6
|
+
|
|
7
|
+
Classes para te auxiliar
|
|
8
|
+
|
|
9
|
+
#### Definir número de linhas de um texto
|
|
10
|
+
|
|
11
|
+
<div class="h-24"></div>
|
|
12
|
+
|
|
13
|
+
<div class="matcha-card background-surface gap-16 d-flex-column d-flex-sm-row d-flex-sm-space-between">
|
|
14
|
+
<div class="matcha-card background-bg d-flex-column gap-8">
|
|
15
|
+
<p class="fs-16 lh-20 one-line-text background-surface p-8 border-radius-6">Lorem ipsum dolor sit amet, sed tortor massa, finibus at nunc vel. Sed tortor massa, finibus at nunc vel, Sed tortor massa, finibus at nunc vel consectetur consectetur adipiscing elit. Sed tortor massa, finibus at nunc vel, consectetur adipiscing elit. Sed tortor massa, finibus at nunc vel, varius tincidunt tortor. EtiamSed tortor massa, finibus at nunc vel, consectetur id arcu porttitor, congue sem ac, posuere lorem. </p>
|
|
16
|
+
<p class="fs-16 lh-20 two-lines-text background-surface p-8 border-radius-6">Lorem ipsum dolor sit amet, sed tortor massa, finibus at nunc vel. Sed tortor massa, finibus at nunc vel, Sed tortor massa, finibus at nunc vel consectetur consectetur adipiscing elit. Sed tortor massa, finibus at nunc vel, consectetur adipiscing elit. Sed tortor massa, finibus at nunc vel, varius tincidunt tortor. Etiam Sed tortor massa, finibus at nunc vel, consecteturid arcu porttitor, congue sem ac, posuere lorem. </p>
|
|
17
|
+
<p class="fs-16 lh-20 three-lines-text background-surface p-8 border-radius-6">Lorem ipsum dolor sit amet, sed tortor massa, finibus at nunc vel. Sed tortor massa, finibus at nunc vel, Sed tortor massa, finibus at nunc vel consectetur consectetur adipiscing elit. Sed tortor massa, finibus at nunc vel, consectetur adipiscing elit. Sed tortor massa, finibus at nunc vel, varius tincidunt tortor. Etiam Sed tortor massa, finibus at nunc vel, consecteturid arcu porttitor, congue sem ac, posuere lorem. </p>
|
|
18
|
+
<p class="fs-16 lh-20 four-lines-text background-surface p-8 border-radius-6">Lorem ipsum dolor sit amet, sed tortor massa, finibus at nunc vel. Sed tortor massa, finibus at nunc vel, Sed tortor massa, finibus at nunc vel consectetur consectetur adipiscing elit. Sed tortor massa, finibus at nunc vel, consectetur adipiscing elit. Sed tortor massa, finibus at nunc vel, varius tincidunt tortor. Etiam Sed tortor massa, finibus at nunc vel, consecteturid arcu porttitor, congue sem ac, posuere lorem. </p>
|
|
19
|
+
<p class="fs-16 lh-20 five-lines-text background-surface p-8 border-radius-6">Lorem ipsum dolor sit amet, sed tortor massa, finibus at nunc vel. Sed tortor massa, finibus at nunc vel, Sed tortor massa, finibus at nunc vel consectetur consectetur adipiscing elit. Sed tortor massa, finibus at nunc vel, consectetur adipiscing elit. Sed tortor massa, finibus at nunc vel, varius tincidunt tortor. Etiam Sed tortor massa, finibus at nunc vel, consecteturid arcu porttitor, congue sem ac, posuere lorem. </p>
|
|
20
|
+
</div>
|
|
21
|
+
<div>
|
|
22
|
+
```html
|
|
23
|
+
<p class="fs-16 one-line-text"></p>
|
|
24
|
+
<p class="fs-16 two-lines-text"></p>
|
|
25
|
+
<p class="fs-16 three-lines-text"></p>
|
|
26
|
+
<p class="fs-16 four-lines-text"></p>
|
|
27
|
+
<p class="fs-16 five-lines-text"></p>
|
|
28
|
+
```
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<div class="h-24"></div>
|
|
33
|
+
|
|
34
|
+
#### Title
|
|
35
|
+
|
|
36
|
+
<div class="h-24"></div>
|
|
37
|
+
|
|
38
|
+
<div class="matcha-card background-surface gap-16 d-flex-column">
|
|
39
|
+
<div class="matcha-card background-bg d-flex-column">
|
|
40
|
+
<div class="title">
|
|
41
|
+
<p class="fs-16 title-bullet">Lorem ipsum dolor sit amet, sed tortor massa, finibus at nunc vel.</p>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="title">
|
|
44
|
+
<p class="fs-16 title-content">Lorem ipsum dolor sit amet, sed tortor massa, finibus at nunc vel.</p>
|
|
45
|
+
</div>
|
|
46
|
+
<p class="fs-16 title-sm ">Lorem ipsum dolor sit amet, sed tortor massa, finibus at nunc vel.</p>
|
|
47
|
+
|
|
48
|
+
</div>
|
|
49
|
+
<div>
|
|
50
|
+
```html
|
|
51
|
+
<div class="title">
|
|
52
|
+
<p class="fs-16 title-bullet">Lorem ipsum dolor sit amet, sed tortor massa, finibus at nunc vel.</p>
|
|
53
|
+
</div>
|
|
54
|
+
<div class="title">
|
|
55
|
+
<p class="fs-16 title-content">Lorem ipsum dolor sit amet, sed tortor massa, finibus at nunc vel.</p>
|
|
56
|
+
</div>
|
|
57
|
+
<p class="fs-16 title-sm ">Lorem ipsum dolor sit amet, sed tortor massa, finibus at nunc vel.</p>
|
|
58
|
+
```
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<div class="h-24"></div>
|
|
63
|
+
|
|
64
|
+
#### Paragraph
|
|
65
|
+
|
|
66
|
+
<div class="h-24"></div>
|
|
67
|
+
|
|
68
|
+
<div class="matcha-card background-surface gap-16 d-flex-column">
|
|
69
|
+
<div class="matcha-card background-bg d-flex-column">
|
|
70
|
+
<p class="par-xs">Lorem ipsum dolor sit amet, sed tortor massa, finibus at nunc vel.</p>
|
|
71
|
+
<p class="par-sm">Lorem ipsum dolor sit amet, sed tortor massa, finibus at nunc vel.</p>
|
|
72
|
+
<p class="par-md">Lorem ipsum dolor sit amet, sed tortor massa, finibus at nunc vel.</p>
|
|
73
|
+
<p class="par-lg">Lorem ipsum dolor sit amet, sed tortor massa, finibus at nunc vel.</p>
|
|
74
|
+
<p class="par-xl">Lorem ipsum dolor sit amet, sed tortor massa, finibus at nunc vel.</p>
|
|
75
|
+
|
|
76
|
+
</div>
|
|
77
|
+
<div>
|
|
78
|
+
```html
|
|
79
|
+
<p class="par-xs">Lorem ipsum dolor sit amet, sed tortor massa, finibus at nunc vel.</p>
|
|
80
|
+
<p class="par-sm">Lorem ipsum dolor sit amet, sed tortor massa, finibus at nunc vel.</p>
|
|
81
|
+
<p class="par-md">Lorem ipsum dolor sit amet, sed tortor massa, finibus at nunc vel.</p>
|
|
82
|
+
<p class="par-lg">Lorem ipsum dolor sit amet, sed tortor massa, finibus at nunc vel.</p>
|
|
83
|
+
<p class="par-xl">Lorem ipsum dolor sit amet, sed tortor massa, finibus at nunc vel.</p>
|
|
84
|
+
```
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Meta } from '@storybook/addon-docs';
|
|
2
|
+
|
|
3
|
+
<Meta title="Fundamentos / Typography / Letter-spacing" />
|
|
4
|
+
|
|
5
|
+
### Letter-spacing
|
|
6
|
+
|
|
7
|
+
O **letter-spacing** é usado para ajustar o espaço entre os caracteres de um
|
|
8
|
+
texto.
|
|
9
|
+
|
|
10
|
+
<p class="h5 mb-8 font-size-16 mt-4">Classes</p>
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<div class="matcha-card background-surface d-flex-column gap-16">
|
|
14
|
+
<div class="matcha-card background-bg d-flex-row gap-8">
|
|
15
|
+
<div>
|
|
16
|
+
<p class="fs-20">Condensed</p>
|
|
17
|
+
<p class="fs-16 lh-20 letter-spacing-condensed background-surface p-8 border-radius-6">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed tortor massa, finibus at nunc vel, consectetur adipiscing elit. Sed tortor massa, finibus at nunc vel, varius tincidunt tortor. Etiam id arcu porttitor, congue sem ac, posuere lorem. </p>
|
|
18
|
+
</div>
|
|
19
|
+
<div>
|
|
20
|
+
<p class="fs-20">Normal</p>
|
|
21
|
+
<p class="fs-16 lh-20 letter-spacing-normal background-surface p-8 border-radius-6">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed tortor massa, finibus at nunc vel, consectetur adipiscing elit. Sed tortor massa, finibus at nunc vel, varius tincidunt tortor. Etiam id arcu porttitor, congue sem ac, posuere lorem. </p>
|
|
22
|
+
</div>
|
|
23
|
+
<div>
|
|
24
|
+
<p class="fs-20">Relaxed</p>
|
|
25
|
+
<p class="fs-16 lh-20 letter-spacing-relaxed background-surface p-8 border-radius-6">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed tortor massa, finibus at nunc vel, consectetur adipiscing elit. Sed tortor massa, finibus at nunc vel, varius tincidunt tortor. Etiam id arcu porttitor, congue sem ac, posuere lorem. </p>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
<div>
|
|
29
|
+
```html
|
|
30
|
+
<p class="letter-spacing-condensed">letter-spacing: -.08em</p>
|
|
31
|
+
<p class="letter-spacing-normal">letter-spacing: normal</p>
|
|
32
|
+
<p class="letter-spacing-relaxed">letter-spacing: .08em</p>
|
|
33
|
+
```
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|