Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
342 changes: 342 additions & 0 deletions src/components/__tests__/__snapshots__/ListSection.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,120 @@ exports[`renders list section with custom title style 1`] = `
"lineHeight": 20,
},
},
"motion": {
"duration": {
"extraLong1": 700,
"extraLong2": 800,
"extraLong3": 900,
"extraLong4": 1000,
"long1": 450,
"long2": 500,
"long3": 550,
"long4": 600,
"medium1": 250,
"medium2": 300,
"medium3": 350,
"medium4": 400,
"short1": 50,
"short2": 100,
"short3": 150,
"short4": 200,
},
"easing": {
"emphasized": [
0.2,
0,
0,
1,
],
"emphasizedAccelerate": [
0.3,
0,
0.8,
0.15,
],
"emphasizedDecelerate": [
0.05,
0.7,
0.1,
1,
],
"legacy": [
0.4,
0,
0.2,
1,
],
"legacyAccelerate": [
0.4,
0,
1,
1,
],
"legacyDecelerate": [
0,
0,
0.2,
1,
],
"linear": [
0,
0,
1,
1,
],
"standard": [
0.2,
0,
0,
1,
],
"standardAccelerate": [
0.3,
0,
1,
1,
],
"standardDecelerate": [
0,
0,
0,
1,
],
},
"spring": {
"default": {
"effects": {
"damping": 1,
"stiffness": 1600,
},
"spatial": {
"damping": 0.8,
"stiffness": 380,
},
},
"fast": {
"effects": {
"damping": 1,
"stiffness": 3800,
},
"spatial": {
"damping": 0.6,
"stiffness": 800,
},
},
"slow": {
"effects": {
"damping": 1,
"stiffness": 800,
},
"spatial": {
"damping": 0.8,
"stiffness": 200,
},
},
},
},
"roundness": 4,
"shapes": {
"extraExtraLarge": 48,
Expand Down Expand Up @@ -961,6 +1075,120 @@ exports[`renders list section with subheader 1`] = `
"lineHeight": 20,
},
},
"motion": {
"duration": {
"extraLong1": 700,
"extraLong2": 800,
"extraLong3": 900,
"extraLong4": 1000,
"long1": 450,
"long2": 500,
"long3": 550,
"long4": 600,
"medium1": 250,
"medium2": 300,
"medium3": 350,
"medium4": 400,
"short1": 50,
"short2": 100,
"short3": 150,
"short4": 200,
},
"easing": {
"emphasized": [
0.2,
0,
0,
1,
],
"emphasizedAccelerate": [
0.3,
0,
0.8,
0.15,
],
"emphasizedDecelerate": [
0.05,
0.7,
0.1,
1,
],
"legacy": [
0.4,
0,
0.2,
1,
],
"legacyAccelerate": [
0.4,
0,
1,
1,
],
"legacyDecelerate": [
0,
0,
0.2,
1,
],
"linear": [
0,
0,
1,
1,
],
"standard": [
0.2,
0,
0,
1,
],
"standardAccelerate": [
0.3,
0,
1,
1,
],
"standardDecelerate": [
0,
0,
0,
1,
],
},
"spring": {
"default": {
"effects": {
"damping": 1,
"stiffness": 1600,
},
"spatial": {
"damping": 0.8,
"stiffness": 380,
},
},
"fast": {
"effects": {
"damping": 1,
"stiffness": 3800,
},
"spatial": {
"damping": 0.6,
"stiffness": 800,
},
},
"slow": {
"effects": {
"damping": 1,
"stiffness": 800,
},
"spatial": {
"damping": 0.8,
"stiffness": 200,
},
},
},
},
"roundness": 4,
"shapes": {
"extraExtraLarge": 48,
Expand Down Expand Up @@ -1628,6 +1856,120 @@ exports[`renders list section without subheader 1`] = `
"lineHeight": 20,
},
},
"motion": {
"duration": {
"extraLong1": 700,
"extraLong2": 800,
"extraLong3": 900,
"extraLong4": 1000,
"long1": 450,
"long2": 500,
"long3": 550,
"long4": 600,
"medium1": 250,
"medium2": 300,
"medium3": 350,
"medium4": 400,
"short1": 50,
"short2": 100,
"short3": 150,
"short4": 200,
},
"easing": {
"emphasized": [
0.2,
0,
0,
1,
],
"emphasizedAccelerate": [
0.3,
0,
0.8,
0.15,
],
"emphasizedDecelerate": [
0.05,
0.7,
0.1,
1,
],
"legacy": [
0.4,
0,
0.2,
1,
],
"legacyAccelerate": [
0.4,
0,
1,
1,
],
"legacyDecelerate": [
0,
0,
0.2,
1,
],
"linear": [
0,
0,
1,
1,
],
"standard": [
0.2,
0,
0,
1,
],
"standardAccelerate": [
0.3,
0,
1,
1,
],
"standardDecelerate": [
0,
0,
0,
1,
],
},
"spring": {
"default": {
"effects": {
"damping": 1,
"stiffness": 1600,
},
"spatial": {
"damping": 0.8,
"stiffness": 380,
},
},
"fast": {
"effects": {
"damping": 1,
"stiffness": 3800,
},
"spatial": {
"damping": 0.6,
"stiffness": 800,
},
},
"slow": {
"effects": {
"damping": 1,
"stiffness": 800,
},
"spatial": {
"damping": 0.8,
"stiffness": 200,
},
},
},
},
"roundness": 4,
"shapes": {
"extraExtraLarge": 48,
Expand Down
5 changes: 5 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ export { default as PaperProvider } from './core/PaperProvider';
export { default as shadow } from './theme/shadow';
export { default as configureFonts } from './theme/fonts';
export { cornersToStyle } from './theme/tokens/sys/shape';
export {
expressiveMotion,
standardMotion,
toRawSpring,
} from './theme/tokens/sys/motion';

import * as Avatar from './components/Avatar/Avatar';
import * as Drawer from './components/Drawer/Drawer';
Expand Down
2 changes: 2 additions & 0 deletions src/theme/schemes/base.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { expressiveMotion } from '../tokens/sys/motion';
import { defaultShapes } from '../tokens/sys/shape';
import { defaultState } from '../tokens/sys/state';
import { defaultFonts } from '../tokens/sys/typography';
Expand All @@ -13,4 +14,5 @@ export const themeDefaults: ThemeDefaults = {
fonts: defaultFonts,
state: defaultState,
shapes: defaultShapes,
motion: expressiveMotion,
};
Loading
Loading