-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Start separating components into modules
BREAKING CHANGE: Package now exports separated modules instead of single one with all components
- Loading branch information
Showing
38 changed files
with
996 additions
and
925 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 |
---|---|---|
@@ -1,15 +1,20 @@ | ||
export default { | ||
template: ` | ||
<article class="accordion relative"> | ||
<input type="checkbox" checked /> | ||
<i class="accordion-chevron fr"></i> | ||
<h6 class="accordion-title ma0" ng-bind="$ctrl.title"></h6> | ||
<div class="accordion-content relative overflow-hidden dim" ng-transclude></div> | ||
</article> | ||
`, | ||
controllerAs: '$ctrl', | ||
transclude: true, | ||
bindings: { | ||
title: '@', | ||
}, | ||
}; | ||
import angular from 'angular'; | ||
|
||
export const accordion = angular | ||
.module('blipComponents.accordion', []) | ||
.component('accordion', { | ||
template: ` | ||
<article class="accordion relative"> | ||
<input type="checkbox" checked /> | ||
<i class="accordion-chevron fr"></i> | ||
<h6 class="accordion-title ma0" ng-bind="$ctrl.title"></h6> | ||
<div class="accordion-content relative overflow-hidden dim" ng-transclude></div> | ||
</article> | ||
`, | ||
controllerAs: '$ctrl', | ||
transclude: true, | ||
bindings: { | ||
title: '@', | ||
}, | ||
}) | ||
.name; |
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
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
Oops, something went wrong.