-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/update-label' into feature/update
- Loading branch information
Showing
11 changed files
with
52 additions
and
112 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
.a-label { | ||
@apply block; | ||
@apply mb-1; | ||
@apply text-gray-600 leading-relaxed; | ||
} | ||
|
||
.a-label--inline { | ||
@apply mr-2; | ||
} | ||
|
||
.a-label--hidden { | ||
@apply sr-only; | ||
} |
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,6 @@ | ||
<label | ||
class="a-label" | ||
> | ||
<!-- @slot Slot for label content --> | ||
<slot /> | ||
</label> |
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,2 @@ | ||
// @vue/component | ||
export default {} |
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { select, text } from '@storybook/addon-knobs' | ||
|
||
import getClassKnobsConfig from '@utils/helpers/get-class-knobs-config.js' | ||
import selectorsConfig from './Label.selectors.json' | ||
|
||
import ALabel from './Label.vue' | ||
|
||
const classKnobsConfig = getClassKnobsConfig(selectorsConfig) | ||
|
||
export default { | ||
title: 'Atoms/Label', | ||
component: ALabel | ||
} | ||
|
||
export const Default = () => ({ | ||
components: { ALabel }, | ||
props: { | ||
classKnobs: { | ||
default: select('BEM Modifier', classKnobsConfig) | ||
}, | ||
textKnobs: { | ||
default: text('Text', 'Label') | ||
} | ||
}, | ||
template: ` | ||
<a-label :class="classKnobs"> | ||
{{ textKnobs }} | ||
</a-label> | ||
` | ||
}) |
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