@max-ts/svelte 1.4.0 → 1.4.1
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.
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
type $$ComponentProps = {
|
|
4
|
-
align?: TypographyAlign;
|
|
5
|
-
variant?: TypographyVariant;
|
|
6
|
-
color?: TypographyColor;
|
|
7
|
-
component?: ComponentVariant;
|
|
8
|
-
display?: 'block' | 'inline';
|
|
9
|
-
weight?: 'normal' | 'bold' | 'medium' | 'semibold';
|
|
10
|
-
transform?: 'lowercase' | 'capitalize' | 'uppercase';
|
|
11
|
-
decoration?: 'none' | 'underline' | 'lineThrough';
|
|
12
|
-
gutterBottom?: boolean;
|
|
13
|
-
children?: Snippet;
|
|
14
|
-
ref?: HTMLElement | null;
|
|
15
|
-
class?: string;
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
};
|
|
18
|
-
declare const Typography: import("svelte").Component<$$ComponentProps, {}, "ref">;
|
|
1
|
+
import type { TypographyProps } from './types.js';
|
|
2
|
+
declare const Typography: import("svelte").Component<TypographyProps, {}, "ref">;
|
|
19
3
|
type Typography = ReturnType<typeof Typography>;
|
|
20
4
|
export default Typography;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
1
2
|
export type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'caption' | 'overline';
|
|
2
3
|
export type TypographyAlign = 'left' | 'center' | 'right' | 'justify';
|
|
3
4
|
export type ComponentVariant = 'div' | 'p' | 'span' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
4
5
|
export type TypographyColor = 'primary' | 'disabled' | 'info' | 'secondary' | 'success' | 'error' | 'muted' | 'warning';
|
|
6
|
+
export type TypographyProps = {
|
|
7
|
+
align?: TypographyAlign;
|
|
8
|
+
variant?: TypographyVariant;
|
|
9
|
+
color?: TypographyColor;
|
|
10
|
+
component?: ComponentVariant;
|
|
11
|
+
display?: 'block' | 'inline';
|
|
12
|
+
weight?: 'normal' | 'bold' | 'medium' | 'semibold';
|
|
13
|
+
transform?: 'lowercase' | 'capitalize' | 'uppercase';
|
|
14
|
+
decoration?: 'none' | 'underline' | 'lineThrough';
|
|
15
|
+
gutterBottom?: boolean;
|
|
16
|
+
children?: Snippet<[]>;
|
|
17
|
+
ref?: HTMLElement | null;
|
|
18
|
+
class?: string;
|
|
19
|
+
};
|