Skip to content

Commit

Permalink
fix(navbar): correct loading design-tokens (#UIM-737) (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
lskramarov authored and pimenovoleg committed Sep 1, 2021
1 parent 50f4bab commit 69a0f31
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/mosaic/design-tokens/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './public-api';
7 changes: 7 additions & 0 deletions packages/mosaic/design-tokens/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ngPackage": {
"lib": {
"entryFile": "index.ts"
}
}
}
1 change: 1 addition & 0 deletions packages/mosaic/design-tokens/public-api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './tokens';
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
js: {
transformGroup: 'js',
files: [{
destination: 'tokens.js',
destination: 'tokens.ts',
format: 'javascript/es6'
}]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* tslint:disable:naming-convention object-literal-key-quotes quotemark whitespace */
/**
* Do not edit directly
* Generated on Tue, 24 Aug 2021 08:22:46 GMT
* Generated on Mon, 30 Aug 2021 13:44:07 GMT
*/

export const LightColorSchemePrimaryDefault = "#338FCC";
Expand Down Expand Up @@ -777,4 +778,4 @@ export const TooltipFontDefault = "caption";
export const TreeSizePaddingRight = "16px";
export const TreeSizeBorderWidth = "2px";
export const TreeSizeNodeHeight = "28px";
export const TreeFontNode = "body";
export const TreeFontNode = "body";
8 changes: 6 additions & 2 deletions packages/mosaic/navbar/vertical-navbar.animation.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import { animate, AnimationTriggerMetadata, style, transition, trigger, state } from '@angular/animations';
import {
VerticalNavbarSizeStatesClosedWidth as closedWidth,
VerticalNavbarSizeStatesOpenedWidth as openedWidth
} from '@ptsecurity/mosaic/design-tokens';


export function toggleVerticalNavbarAnimation(): AnimationTriggerMetadata {
return trigger('toggle', [
state('0', style({ width: '48px' })),
state('1', style({ width: '240px' })),
state('0', style({ width: `var(--mc-vertical-navbar-size-states-closed-width, ${closedWidth})` })),
state('1', style({ width: `var(--mc-vertical-navbar-size-states-opened-width, ${openedWidth})` })),
transition('0 <=> 1', animate('200ms cubic-bezier(0, 1, 0.5, 1)'))
]);
}
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"@ptsecurity/mosaic/checkbox": ["packages/mosaic/checkbox/index.ts"],
"@ptsecurity/mosaic/core": ["packages/mosaic/core/index.ts"],
"@ptsecurity/mosaic/datepicker": ["packages/mosaic/datepicker/index.ts"],
"@ptsecurity/mosaic/design-tokens": ["packages/mosaic/design-tokens/index.ts"],
"@ptsecurity/mosaic/divider": ["packages/mosaic/divider/index.ts"],
"@ptsecurity/mosaic/dropdown": ["packages/mosaic/dropdown/index.ts"],
"@ptsecurity/mosaic/form-field": ["packages/mosaic/form-field/index.ts"],
Expand Down

0 comments on commit 69a0f31

Please sign in to comment.