@agilekit/ui 0.0.491-alpha.0 → 0.0.492-alpha.0
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,8 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
interface ILinkProps {
|
|
3
|
-
url
|
|
4
|
-
size?:
|
|
3
|
+
url?: string;
|
|
4
|
+
size?: "small" | "medium" | "large";
|
|
5
|
+
className?: string;
|
|
6
|
+
target?: string;
|
|
5
7
|
children: React.ReactNode;
|
|
8
|
+
onClick?: () => void;
|
|
6
9
|
}
|
|
7
10
|
declare const Link: React.FC<ILinkProps>;
|
|
8
11
|
export default Link;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import './text.scss';
|
|
3
|
+
type TextAppearance = 'display-extra-large' | 'display-large' | 'display-medium' | 'display-small' | 'headline-large' | 'headline-medium' | 'headline-small' | 'headline-subhead' | 'title-large' | 'title-medium' | 'title-medium-loud' | 'title-small' | 'body-lead' | 'body-extra-large' | 'body-large' | 'body-large-loud' | 'body-medium' | 'body-medium-loud' | 'body-small' | 'body-extra-small' | 'link-large' | 'link-medium' | 'link-small' | 'label-medium' | 'label-small' | 'button-extra-large' | 'button-large' | 'button-medium' | 'button-small';
|
|
4
|
+
interface TextProps {
|
|
5
|
+
align?: 'center' | 'inherit' | 'justify' | 'left' | 'right';
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
gutterBottom?: boolean;
|
|
9
|
+
noWrap?: boolean;
|
|
10
|
+
paragraph?: boolean;
|
|
11
|
+
appearance?: TextAppearance;
|
|
12
|
+
variant?: 'body1' | 'body2' | 'button' | 'caption' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'inherit' | 'overline' | 'subtitle1' | 'subtitle2';
|
|
13
|
+
variantMapping?: object;
|
|
14
|
+
}
|
|
15
|
+
declare const Text: React.FC<TextProps>;
|
|
16
|
+
export default Text;
|
package/lib/src/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export { default as Select } from './components/Select/Select';
|
|
|
40
40
|
export { default as Skeleton } from './components/Skeleton/Skeleton';
|
|
41
41
|
export { default as Slider } from './components/Slider/Slider';
|
|
42
42
|
export { default as Switch } from './components/Switch/Switch';
|
|
43
|
+
export { default as Text } from './components/Text/Text';
|
|
43
44
|
export { default as TableList } from './components/TableList/TableList';
|
|
44
45
|
export { default as TableListCell } from './components/TableList/components/Cell/Cell';
|
|
45
46
|
export { default as TableListColumnHeader } from './components/TableList/components/ColumnHeader/ColumnHeader';
|
package/package.json
CHANGED