Skip to content

Commit

Permalink
feat(): expose all missing component styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Enlcxx committed Dec 29, 2019
1 parent 25504a5 commit 47e09fd
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/lib/grid/grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const ALIGN_ALIAS = {

export type AlignItems = 'start' | 'center' | 'end' | 'stretch' | 'baseline';

const styles = () => ({
export const STYLES = () => ({
$priority: STYLE_PRIORITY,
$name: LyGrid.и,
root: lyl `{
Expand Down Expand Up @@ -47,7 +47,7 @@ export class LyGrid {
* Styles
* @docs-private
*/
readonly classes = this.theme.renderStyleSheet(styles);
readonly classes = this.theme.renderStyleSheet(STYLES);

private _spacing: string | number;
_spacingClass?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/icon/icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
import { take } from 'rxjs/operators';

const STYLE_PRIORITY = -2;
const STYLES = (theme: ThemeVariables) => {
export const STYLES = (theme: ThemeVariables) => {
const loading = keyframesUniqueId.next();
const { primary, secondary, tertiary } = theme.background;
const lum = primary.default.luminance();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/image-cropper/image-cropper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface LyImageCropperVariables {

const STYLE_PRIORITY = -2;

const STYLES = (theme: ThemeVariables & LyImageCropperVariables, ref: ThemeRef) => {
export const STYLES = (theme: ThemeVariables & LyImageCropperVariables, ref: ThemeRef) => {
const cropper = ref.selectorsOf(STYLES);
return {
$name: LyImageCropper.и,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/menu/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const STYLE_PRIORITY = -1;
const DEFAULT_PLACEMENT = YPosition.below;
const DEFAULT_XPOSITION = XPosition.after;

const STYLES = (theme: ThemeVariables & LyMenuVariables, ref: ThemeRef) => {
export const STYLES = (theme: ThemeVariables & LyMenuVariables, ref: ThemeRef) => {
const menu = ref.selectorsOf(STYLES);
return {
$priority: STYLE_PRIORITY,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/slider/slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const LY_SLIDER_CONTROL_VALUE_ACCESSOR = {
};

const STYLE_PRIORITY = -2;
const STYLES = (theme: ThemeVariables & LySliderVariables, ref: ThemeRef) => {
export const STYLES = (theme: ThemeVariables & LySliderVariables, ref: ThemeRef) => {
const __ = ref.selectorsOf(STYLES);
const { before } = theme;
return {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/toolbar/toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const STYLE_PRIORITY = -2;
const DEFAULT_POSITION = 'fixed';
const DEFAULT_BG = 'background:tertiary';

const STYLES = (theme: ThemeVariables & LyToolbarVariables, ref: ThemeRef) => {
export const STYLES = (theme: ThemeVariables & LyToolbarVariables, ref: ThemeRef) => {
const __ = ref.selectorsOf(STYLES);
return {
$priority: STYLE_PRIORITY,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/tooltip/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface LyTooltipVariables {

const DEFAULT_PLACEMENT = YPosition.below;
const STYLE_PRIORITY = -2;
const STYLES = (theme: ThemeVariables & LyTooltipVariables, ref: ThemeRef) => {
export const STYLES = (theme: ThemeVariables & LyTooltipVariables, ref: ThemeRef) => {
const __ = ref.selectorsOf(STYLES);
return {
$priority: STYLE_PRIORITY,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/typography/typography.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface LyTypographyVariables {
}

const STYLE_PRIORITY = -1;
const STYLES = (theme: ThemeVariables & LyTypographyVariables) => {
export const STYLES = (theme: ThemeVariables & LyTypographyVariables) => {
return {
$name: LyTypography.и,
$priority: STYLE_PRIORITY,
Expand Down

0 comments on commit 47e09fd

Please sign in to comment.