Skip to content

Commit

Permalink
media-object-layout
Browse files Browse the repository at this point in the history
  • Loading branch information
sikhote committed Dec 6, 2024
1 parent 9686b6c commit a777f70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"prepare": "npm run build",
"prepublishOnly": "npm-run-all lint build",
"dev": "vite",
"build": "echo vue-tsc && vite build && npm run build:umd && npm run build:icons && npm run build:docgen && npm run build:copycss",
"build": "vue-tsc && vite build && npm run build:umd && npm run build:icons && npm run build:docgen && npm run build:copycss",
"build:docgen": "node docgen.mjs",
"build:icons": "ts-node src/components/icon/build/generate.ts",
"build:copycss": "node build/copy-css.js",
Expand All @@ -53,7 +53,7 @@
"lint:styles": "stylelint src/**/*.scss",
"lint:styles:fix": "stylelint 'src/**/*.scss' --fix",
"lint:styles:report": "stylelint src/**/*.scss --custom-formatter=./stylelint-report-formatter.js",
"lint:types": "echo vue-tsc --noEmit",
"lint:types": "vue-tsc --noEmit",
"lint:report": "node lint-report-generator.mjs",
"lint:full": "npm-run-all lint lint:report",
"prepush": "npm-run-all lint unit",
Expand Down
4 changes: 3 additions & 1 deletion src/utils/other.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import * as tokens from '@rei/cdr-tokens';
import { Breakpoint, Space } from '../types/other';
import { NameValuePair } from '../types/interfaces';

const capitalize = (text: string) => String(text[0]).toUpperCase() + String(text).slice(1);
export const capitalize = (text: string) => String(text[0]).toUpperCase() + String(text).slice(1);

// Breakpoints for use by internal functions
export const breakpoints: Breakpoint[] = ['xs', 'sm', 'md', 'lg'];

// Spacing tokens for mapping to inline styles
export const spacing = {
...[
'zero',
Expand Down

0 comments on commit a777f70

Please sign in to comment.