@mezzanine-ui/system 0.13.9 → 0.13.11
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.
- package/breakpoint/breakpoint.d.ts +2 -2
- package/breakpoint/breakpoint.js +6 -6
- package/breakpoint/index.d.ts +1 -1
- package/css/index.d.ts +2 -2
- package/css/toCssVar.d.ts +2 -2
- package/css/toCssVar.js +2 -2
- package/css/typings.d.ts +2 -2
- package/motion/duration.d.ts +2 -2
- package/motion/duration.js +6 -6
- package/motion/easing.d.ts +2 -2
- package/motion/easing.js +5 -5
- package/motion/index.d.ts +2 -2
- package/orientation/index.d.ts +1 -1
- package/orientation/orientation.d.ts +1 -1
- package/package.json +1 -1
- package/palette/constants.d.ts +1 -1
- package/palette/index.d.ts +2 -2
- package/palette/typings.d.ts +9 -9
- package/severity/index.d.ts +1 -1
- package/severity/severity.d.ts +2 -2
- package/size/index.d.ts +1 -1
- package/size/size.d.ts +1 -1
- package/spacing/constants.d.ts +1 -1
- package/spacing/index.d.ts +3 -3
- package/spacing/toSpacingCssVar.d.ts +2 -2
- package/spacing/toSpacingCssVar.js +2 -2
- package/spacing/typings.d.ts +1 -1
- package/typography/constants.d.ts +1 -1
- package/typography/index.d.ts +2 -2
- package/typography/typings.d.ts +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type Breakpoint = 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
2
|
-
export declare const breakpoints: Record<Breakpoint, number>;
|
|
1
|
+
export type Breakpoint = 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
2
|
+
export declare const breakpoints: Record<Breakpoint, number>;
|
package/breakpoint/breakpoint.js
CHANGED
package/breakpoint/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './breakpoint';
|
|
1
|
+
export * from './breakpoint';
|
package/css/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './typings';
|
|
2
|
-
export * from './toCssVar';
|
|
1
|
+
export * from './typings';
|
|
2
|
+
export * from './toCssVar';
|
package/css/toCssVar.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CssVarInterpolation } from './typings';
|
|
2
|
-
export declare function toCssVar(varname: string, fallback?: CssVarInterpolation): string;
|
|
1
|
+
import { CssVarInterpolation } from './typings';
|
|
2
|
+
export declare function toCssVar(varname: string, fallback?: CssVarInterpolation): string;
|
package/css/toCssVar.js
CHANGED
package/css/typings.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type CssVarInterpolation = string | number | null | undefined;
|
|
2
|
-
export type CssVarInterpolations = Record<string, CssVarInterpolation>;
|
|
1
|
+
export type CssVarInterpolation = string | number | null | undefined;
|
|
2
|
+
export type CssVarInterpolations = Record<string, CssVarInterpolation>;
|
package/motion/duration.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type MotionDurationType = 'shortest' | 'shorter' | 'short' | 'standard' | 'long';
|
|
2
|
-
export declare const MOTION_DURATION: Readonly<Record<MotionDurationType, number>>;
|
|
1
|
+
export type MotionDurationType = 'shortest' | 'shorter' | 'short' | 'standard' | 'long';
|
|
2
|
+
export declare const MOTION_DURATION: Readonly<Record<MotionDurationType, number>>;
|
package/motion/duration.js
CHANGED
package/motion/easing.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type MotionEasingType = 'standard' | 'emphasized' | 'decelerated' | 'accelerated';
|
|
2
|
-
export declare const MOTION_EASING: Readonly<Record<MotionEasingType, string>>;
|
|
1
|
+
export type MotionEasingType = 'standard' | 'emphasized' | 'decelerated' | 'accelerated';
|
|
2
|
+
export declare const MOTION_EASING: Readonly<Record<MotionEasingType, string>>;
|
package/motion/easing.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const MOTION_EASING = {
|
|
2
|
-
standard: 'cubic-bezier(0.58, 0.01, 0.29, 1.01)',
|
|
3
|
-
emphasized: 'cubic-bezier(0.83, 0, 0.17, 1)',
|
|
4
|
-
decelerated: 'cubic-bezier(0, 0, 0.3, 1)',
|
|
5
|
-
accelerated: 'cubic-bezier(0.32, 0, 0.67, 0)',
|
|
1
|
+
const MOTION_EASING = {
|
|
2
|
+
standard: 'cubic-bezier(0.58, 0.01, 0.29, 1.01)',
|
|
3
|
+
emphasized: 'cubic-bezier(0.83, 0, 0.17, 1)',
|
|
4
|
+
decelerated: 'cubic-bezier(0, 0, 0.3, 1)',
|
|
5
|
+
accelerated: 'cubic-bezier(0.32, 0, 0.67, 0)',
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export { MOTION_EASING };
|
package/motion/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './duration';
|
|
2
|
-
export * from './easing';
|
|
1
|
+
export * from './duration';
|
|
2
|
+
export * from './easing';
|
package/orientation/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './orientation';
|
|
1
|
+
export * from './orientation';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type Orientation = 'horizontal' | 'vertical';
|
|
1
|
+
export type Orientation = 'horizontal' | 'vertical';
|
package/package.json
CHANGED
package/palette/constants.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const palettePrefix = "mzn-color";
|
|
1
|
+
export declare const palettePrefix = "mzn-color";
|
package/palette/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './typings';
|
|
2
|
-
export * from './constants';
|
|
1
|
+
export * from './typings';
|
|
2
|
+
export * from './constants';
|
package/palette/typings.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type MainColor = 'primary' | 'secondary' | 'error' | 'warning' | 'success';
|
|
2
|
-
export type GradualMainColor = `${MainColor}-${'light' | 'dark'}`;
|
|
3
|
-
export type StatefulMainColor = `${MainColor}-${'hover-bg' | 'active-bg'}`;
|
|
4
|
-
export type MainContrastTextColor = `on-${MainColor}`;
|
|
5
|
-
export type TextColor = `text-${'primary' | 'secondary' | 'disabled'}`;
|
|
6
|
-
export type ActionForegroundColor = `action-${'active' | 'inactive' | 'disabled'}`;
|
|
7
|
-
export type ActionBackgroundColor = `action-${'disabled-bg'}`;
|
|
8
|
-
export type ActionColor = ActionForegroundColor | ActionBackgroundColor;
|
|
9
|
-
export type Color = MainColor | GradualMainColor | MainContrastTextColor | TextColor | ActionColor | 'bg' | 'surface' | 'border' | 'divider';
|
|
1
|
+
export type MainColor = 'primary' | 'secondary' | 'error' | 'warning' | 'success';
|
|
2
|
+
export type GradualMainColor = `${MainColor}-${'light' | 'dark'}`;
|
|
3
|
+
export type StatefulMainColor = `${MainColor}-${'hover-bg' | 'active-bg'}`;
|
|
4
|
+
export type MainContrastTextColor = `on-${MainColor}`;
|
|
5
|
+
export type TextColor = `text-${'primary' | 'secondary' | 'disabled'}`;
|
|
6
|
+
export type ActionForegroundColor = `action-${'active' | 'inactive' | 'disabled'}`;
|
|
7
|
+
export type ActionBackgroundColor = `action-${'disabled-bg'}`;
|
|
8
|
+
export type ActionColor = ActionForegroundColor | ActionBackgroundColor;
|
|
9
|
+
export type Color = MainColor | GradualMainColor | MainContrastTextColor | TextColor | ActionColor | 'bg' | 'surface' | 'border' | 'divider';
|
package/severity/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './severity';
|
|
1
|
+
export * from './severity';
|
package/severity/severity.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type Severity = 'success' | 'warning' | 'error';
|
|
2
|
-
export type SeverityWithInfo = Severity | 'info';
|
|
1
|
+
export type Severity = 'success' | 'warning' | 'error';
|
|
2
|
+
export type SeverityWithInfo = Severity | 'info';
|
package/size/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './size';
|
|
1
|
+
export * from './size';
|
package/size/size.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type Size = 'small' | 'medium' | 'large';
|
|
1
|
+
export type Size = 'small' | 'medium' | 'large';
|
package/spacing/constants.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const spacingPrefix = "mzn-spacing";
|
|
1
|
+
export declare const spacingPrefix = "mzn-spacing";
|
package/spacing/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './typings';
|
|
2
|
-
export * from './constants';
|
|
3
|
-
export * from './toSpacingCssVar';
|
|
1
|
+
export * from './typings';
|
|
2
|
+
export * from './constants';
|
|
3
|
+
export * from './toSpacingCssVar';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SpacingLevel } from './typings';
|
|
2
|
-
export declare function toSpacingCssVar(level: SpacingLevel): string;
|
|
1
|
+
import { SpacingLevel } from './typings';
|
|
2
|
+
export declare function toSpacingCssVar(level: SpacingLevel): string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { spacingPrefix } from './constants.js';
|
|
2
2
|
import { toCssVar } from '../css/toCssVar.js';
|
|
3
3
|
|
|
4
|
-
function toSpacingCssVar(level) {
|
|
5
|
-
return toCssVar(`${spacingPrefix}-${level}`);
|
|
4
|
+
function toSpacingCssVar(level) {
|
|
5
|
+
return toCssVar(`${spacingPrefix}-${level}`);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
export { toSpacingCssVar };
|
package/spacing/typings.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type SpacingLevel = number;
|
|
1
|
+
export type SpacingLevel = number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const typographyPrefix = "mzn-typography";
|
|
1
|
+
export declare const typographyPrefix = "mzn-typography";
|
package/typography/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './typings';
|
|
2
|
-
export * from './constants';
|
|
1
|
+
export * from './typings';
|
|
2
|
+
export * from './constants';
|
package/typography/typings.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type TypographyVariant = `h${1 | 2 | 3 | 4 | 5 | 6}` | `button${1 | 2 | 3}` | `input${1 | 2 | 3}` | `body${1 | 2}` | 'caption';
|
|
1
|
+
export type TypographyVariant = `h${1 | 2 | 3 | 4 | 5 | 6}` | `button${1 | 2 | 3}` | `input${1 | 2 | 3}` | `body${1 | 2}` | 'caption';
|