@datalayer/primer-addons 1.0.25 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -173,6 +173,10 @@ export interface ThemeStyles {
173
173
  * and a frame; the hairline; at most one level of shadow. As custom
174
174
  * properties every theme sets — `--theme-radius-control` and the rest — so
175
175
  * that a component reads its shape the way it reads its colour.
176
+ *
177
+ * And its motion (LOOP T-10): three durations — a status changing, a message
178
+ * arriving, a pane opening — and one easing. Today's is no motion at all, so
179
+ * a component that moves by them moves only in a theme that says so.
176
180
  */
177
181
  export interface ThemeShape {
178
182
  radiusControl: string;
@@ -181,6 +185,10 @@ export interface ThemeShape {
181
185
  radiusFrame: string;
182
186
  hairline: string;
183
187
  shadow: string;
188
+ motionStatus: string;
189
+ motionMessage: string;
190
+ motionPane: string;
191
+ motionEasing: string;
184
192
  }
185
193
  /** Today's shape, which every theme has unless it says otherwise. */
186
194
  export declare const DEFAULT_THEME_SHAPE: ThemeShape;
@@ -254,6 +254,10 @@ export const DEFAULT_THEME_SHAPE = {
254
254
  radiusFrame: 'var(--borderRadius-large, 12px)',
255
255
  hairline: 'var(--borderWidth-thin, 1px)',
256
256
  shadow: 'var(--shadow-resting-small, none)',
257
+ motionStatus: '0ms',
258
+ motionMessage: '0ms',
259
+ motionPane: '0ms',
260
+ motionEasing: 'ease',
257
261
  };
258
262
  /** A shape as custom properties. */
259
263
  export function shapeVars(shape = {}) {
@@ -265,6 +269,10 @@ export function shapeVars(shape = {}) {
265
269
  '--theme-radius-frame': full.radiusFrame,
266
270
  '--theme-hairline': full.hairline,
267
271
  '--theme-shadow': full.shadow,
272
+ '--theme-motion-status': full.motionStatus,
273
+ '--theme-motion-message': full.motionMessage,
274
+ '--theme-motion-pane': full.motionPane,
275
+ '--theme-motion-easing': full.motionEasing,
268
276
  };
269
277
  }
270
278
  export function buildThemeStyles(light, dark, options) {
@@ -319,6 +319,10 @@ export const loopThemeStyles = buildThemeStyles(loopLight, loopDark, {
319
319
  radiusBubble: loopShapeVars['--loop-radius-bubble'],
320
320
  radiusFrame: loopShapeVars['--loop-radius-frame'],
321
321
  shadow: loopShapeVars['--loop-shadow-frame'],
322
+ motionStatus: loopMotionVars['--loop-motion-status'],
323
+ motionMessage: loopMotionVars['--loop-motion-message'],
324
+ motionPane: loopMotionVars['--loop-motion-pane'],
325
+ motionEasing: loopMotionVars['--loop-motion-easing'],
322
326
  },
323
327
  variables: {
324
328
  light: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datalayer/primer-addons",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "license": "BSD-3-Clause",
5
5
  "scripts": {
6
6
  "build": "npm run build:lib",