@mekari/pixel3-text 0.0.4 → 0.0.5
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/dist/{chunk-A7GUGWQD.mjs → chunk-F77YUOGV.mjs} +1 -1
- package/dist/{chunk-5REAQYN3.mjs → chunk-MZIUREHG.mjs} +7 -5
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +7 -5
- package/dist/index.mjs +2 -2
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/modules/text.props.d.mts +8 -4
- package/dist/modules/text.props.d.ts +8 -4
- package/dist/modules/text.props.js +7 -5
- package/dist/modules/text.props.mjs +1 -1
- package/dist/text.d.mts +18 -10
- package/dist/text.d.ts +18 -10
- package/dist/text.js +7 -5
- package/dist/text.mjs +2 -2
- package/package.json +3 -2
|
@@ -8,10 +8,12 @@ var textProps = {
|
|
|
8
8
|
default: "p"
|
|
9
9
|
},
|
|
10
10
|
size: {
|
|
11
|
-
type: String
|
|
11
|
+
type: String,
|
|
12
|
+
default: "label"
|
|
12
13
|
},
|
|
13
14
|
weight: {
|
|
14
|
-
type: String
|
|
15
|
+
type: String,
|
|
16
|
+
default: "regular"
|
|
15
17
|
},
|
|
16
18
|
color: {
|
|
17
19
|
type: String,
|
|
@@ -21,13 +23,13 @@ var textProps = {
|
|
|
21
23
|
type: String,
|
|
22
24
|
default: "1"
|
|
23
25
|
},
|
|
24
|
-
|
|
26
|
+
isTruncated: {
|
|
25
27
|
type: Boolean
|
|
26
28
|
},
|
|
27
|
-
|
|
29
|
+
isStrike: {
|
|
28
30
|
type: Boolean
|
|
29
31
|
},
|
|
30
|
-
|
|
32
|
+
isTextLink: {
|
|
31
33
|
type: Boolean
|
|
32
34
|
}
|
|
33
35
|
};
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -38,10 +38,12 @@ var textProps = {
|
|
|
38
38
|
default: "p"
|
|
39
39
|
},
|
|
40
40
|
size: {
|
|
41
|
-
type: String
|
|
41
|
+
type: String,
|
|
42
|
+
default: "label"
|
|
42
43
|
},
|
|
43
44
|
weight: {
|
|
44
|
-
type: String
|
|
45
|
+
type: String,
|
|
46
|
+
default: "regular"
|
|
45
47
|
},
|
|
46
48
|
color: {
|
|
47
49
|
type: String,
|
|
@@ -51,13 +53,13 @@ var textProps = {
|
|
|
51
53
|
type: String,
|
|
52
54
|
default: "1"
|
|
53
55
|
},
|
|
54
|
-
|
|
56
|
+
isTruncated: {
|
|
55
57
|
type: Boolean
|
|
56
58
|
},
|
|
57
|
-
|
|
59
|
+
isStrike: {
|
|
58
60
|
type: Boolean
|
|
59
61
|
},
|
|
60
|
-
|
|
62
|
+
isTextLink: {
|
|
61
63
|
type: Boolean
|
|
62
64
|
}
|
|
63
65
|
};
|
package/dist/index.mjs
CHANGED
package/dist/metafile-cjs.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/modules/text.props.ts":{"bytes":
|
|
1
|
+
{"inputs":{"src/modules/text.props.ts":{"bytes":863,"imports":[{"path":"../modules/text.type","kind":"import-statement","external":true}],"format":"esm"},"src/text.tsx":{"bytes":1729,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"src/modules/text.props.ts","kind":"import-statement","original":"./modules/text.props"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":117,"imports":[{"path":"src/text.tsx","kind":"import-statement","original":"./text"}],"format":"esm"},"src/modules/text.type.ts":{"bytes":239,"imports":[],"format":"esm"}},"outputs":{"dist/index.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":117},"src/text.tsx":{"bytesInOutput":1627},"src/modules/text.props.ts":{"bytesInOutput":405}},"bytes":3219},"dist/text.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/text.tsx","inputs":{"src/text.tsx":{"bytesInOutput":1747},"src/modules/text.props.ts":{"bytesInOutput":405}},"bytes":3205},"dist/modules/text.props.js":{"imports":[],"exports":[],"entryPoint":"src/modules/text.props.ts","inputs":{"src/modules/text.props.ts":{"bytesInOutput":549}},"bytes":1481},"dist/modules/text.type.js":{"imports":[],"exports":[],"entryPoint":"src/modules/text.type.ts","inputs":{"src/modules/text.type.ts":{"bytesInOutput":78}},"bytes":778}}}
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/modules/text.props.ts":{"bytes":
|
|
1
|
+
{"inputs":{"src/modules/text.props.ts":{"bytes":863,"imports":[{"path":"../modules/text.type","kind":"import-statement","external":true}],"format":"esm"},"src/text.tsx":{"bytes":1729,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"src/modules/text.props.ts","kind":"import-statement","original":"./modules/text.props"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":117,"imports":[{"path":"src/text.tsx","kind":"import-statement","original":"./text"}],"format":"esm"},"src/modules/text.type.ts":{"bytes":239,"imports":[],"format":"esm"}},"outputs":{"dist/index.mjs":{"imports":[{"path":"dist/chunk-F77YUOGV.mjs","kind":"import-statement"},{"path":"dist/chunk-MZIUREHG.mjs","kind":"import-statement"}],"exports":["MpText"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":101},"dist/text.mjs":{"imports":[{"path":"dist/chunk-F77YUOGV.mjs","kind":"import-statement"},{"path":"dist/chunk-MZIUREHG.mjs","kind":"import-statement"}],"exports":["MpText"],"entryPoint":"src/text.tsx","inputs":{},"bytes":101},"dist/chunk-F77YUOGV.mjs":{"imports":[{"path":"dist/chunk-MZIUREHG.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true}],"exports":["MpText"],"inputs":{"src/text.tsx":{"bytesInOutput":1568}},"bytes":1669},"dist/modules/text.props.mjs":{"imports":[{"path":"dist/chunk-MZIUREHG.mjs","kind":"import-statement"}],"exports":["textProps"],"entryPoint":"src/modules/text.props.ts","inputs":{},"bytes":77},"dist/chunk-MZIUREHG.mjs":{"imports":[],"exports":["__name","textProps"],"inputs":{"src/modules/text.props.ts":{"bytesInOutput":405}},"bytes":599},"dist/modules/text.type.mjs":{"imports":[],"exports":[],"entryPoint":"src/modules/text.type.ts","inputs":{"src/modules/text.type.ts":{"bytesInOutput":0}},"bytes":0}}}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { ColorToken } from '@mekari/pixel3-styled-system/tokens';
|
|
2
3
|
import { FontSize, FontWeight } from './text.type.mjs';
|
|
4
|
+
import { CombinedString } from '@mekari/pixel3-utils';
|
|
3
5
|
|
|
4
6
|
declare const textProps: {
|
|
5
7
|
as: {
|
|
@@ -8,25 +10,27 @@ declare const textProps: {
|
|
|
8
10
|
};
|
|
9
11
|
size: {
|
|
10
12
|
type: PropType<FontSize>;
|
|
13
|
+
default: string;
|
|
11
14
|
};
|
|
12
15
|
weight: {
|
|
13
16
|
type: PropType<FontWeight>;
|
|
17
|
+
default: string;
|
|
14
18
|
};
|
|
15
19
|
color: {
|
|
16
|
-
type: PropType<
|
|
20
|
+
type: PropType<ColorToken | CombinedString>;
|
|
17
21
|
default: string;
|
|
18
22
|
};
|
|
19
23
|
lineClamp: {
|
|
20
24
|
type: StringConstructor;
|
|
21
25
|
default: string;
|
|
22
26
|
};
|
|
23
|
-
|
|
27
|
+
isTruncated: {
|
|
24
28
|
type: BooleanConstructor;
|
|
25
29
|
};
|
|
26
|
-
|
|
30
|
+
isStrike: {
|
|
27
31
|
type: BooleanConstructor;
|
|
28
32
|
};
|
|
29
|
-
|
|
33
|
+
isTextLink: {
|
|
30
34
|
type: BooleanConstructor;
|
|
31
35
|
};
|
|
32
36
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { ColorToken } from '@mekari/pixel3-styled-system/tokens';
|
|
2
3
|
import { FontSize, FontWeight } from './text.type.js';
|
|
4
|
+
import { CombinedString } from '@mekari/pixel3-utils';
|
|
3
5
|
|
|
4
6
|
declare const textProps: {
|
|
5
7
|
as: {
|
|
@@ -8,25 +10,27 @@ declare const textProps: {
|
|
|
8
10
|
};
|
|
9
11
|
size: {
|
|
10
12
|
type: PropType<FontSize>;
|
|
13
|
+
default: string;
|
|
11
14
|
};
|
|
12
15
|
weight: {
|
|
13
16
|
type: PropType<FontWeight>;
|
|
17
|
+
default: string;
|
|
14
18
|
};
|
|
15
19
|
color: {
|
|
16
|
-
type: PropType<
|
|
20
|
+
type: PropType<ColorToken | CombinedString>;
|
|
17
21
|
default: string;
|
|
18
22
|
};
|
|
19
23
|
lineClamp: {
|
|
20
24
|
type: StringConstructor;
|
|
21
25
|
default: string;
|
|
22
26
|
};
|
|
23
|
-
|
|
27
|
+
isTruncated: {
|
|
24
28
|
type: BooleanConstructor;
|
|
25
29
|
};
|
|
26
|
-
|
|
30
|
+
isStrike: {
|
|
27
31
|
type: BooleanConstructor;
|
|
28
32
|
};
|
|
29
|
-
|
|
33
|
+
isTextLink: {
|
|
30
34
|
type: BooleanConstructor;
|
|
31
35
|
};
|
|
32
36
|
};
|
|
@@ -29,10 +29,12 @@ var textProps = {
|
|
|
29
29
|
default: "p"
|
|
30
30
|
},
|
|
31
31
|
size: {
|
|
32
|
-
type: String
|
|
32
|
+
type: String,
|
|
33
|
+
default: "label"
|
|
33
34
|
},
|
|
34
35
|
weight: {
|
|
35
|
-
type: String
|
|
36
|
+
type: String,
|
|
37
|
+
default: "regular"
|
|
36
38
|
},
|
|
37
39
|
color: {
|
|
38
40
|
type: String,
|
|
@@ -42,13 +44,13 @@ var textProps = {
|
|
|
42
44
|
type: String,
|
|
43
45
|
default: "1"
|
|
44
46
|
},
|
|
45
|
-
|
|
47
|
+
isTruncated: {
|
|
46
48
|
type: Boolean
|
|
47
49
|
},
|
|
48
|
-
|
|
50
|
+
isStrike: {
|
|
49
51
|
type: Boolean
|
|
50
52
|
},
|
|
51
|
-
|
|
53
|
+
isTextLink: {
|
|
52
54
|
type: Boolean
|
|
53
55
|
}
|
|
54
56
|
};
|
package/dist/text.d.mts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as vue_jsx_runtime from 'vue/jsx-runtime';
|
|
2
|
+
import * as _mekari_pixel3_utils from '@mekari/pixel3-utils';
|
|
2
3
|
import { FontSize, FontWeight } from './modules/text.type.mjs';
|
|
3
4
|
import * as vue from 'vue';
|
|
5
|
+
import { ColorToken } from '@mekari/pixel3-styled-system/tokens';
|
|
4
6
|
|
|
5
7
|
declare const MpText: vue.DefineComponent<{
|
|
6
8
|
as: {
|
|
@@ -9,25 +11,27 @@ declare const MpText: vue.DefineComponent<{
|
|
|
9
11
|
};
|
|
10
12
|
size: {
|
|
11
13
|
type: vue.PropType<FontSize>;
|
|
14
|
+
default: string;
|
|
12
15
|
};
|
|
13
16
|
weight: {
|
|
14
17
|
type: vue.PropType<FontWeight>;
|
|
18
|
+
default: string;
|
|
15
19
|
};
|
|
16
20
|
color: {
|
|
17
|
-
type: vue.PropType<
|
|
21
|
+
type: vue.PropType<ColorToken | _mekari_pixel3_utils.CombinedString>;
|
|
18
22
|
default: string;
|
|
19
23
|
};
|
|
20
24
|
lineClamp: {
|
|
21
25
|
type: StringConstructor;
|
|
22
26
|
default: string;
|
|
23
27
|
};
|
|
24
|
-
|
|
28
|
+
isTruncated: {
|
|
25
29
|
type: BooleanConstructor;
|
|
26
30
|
};
|
|
27
|
-
|
|
31
|
+
isStrike: {
|
|
28
32
|
type: BooleanConstructor;
|
|
29
33
|
};
|
|
30
|
-
|
|
34
|
+
isTextLink: {
|
|
31
35
|
type: BooleanConstructor;
|
|
32
36
|
};
|
|
33
37
|
}, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
@@ -37,34 +41,38 @@ declare const MpText: vue.DefineComponent<{
|
|
|
37
41
|
};
|
|
38
42
|
size: {
|
|
39
43
|
type: vue.PropType<FontSize>;
|
|
44
|
+
default: string;
|
|
40
45
|
};
|
|
41
46
|
weight: {
|
|
42
47
|
type: vue.PropType<FontWeight>;
|
|
48
|
+
default: string;
|
|
43
49
|
};
|
|
44
50
|
color: {
|
|
45
|
-
type: vue.PropType<
|
|
51
|
+
type: vue.PropType<ColorToken | _mekari_pixel3_utils.CombinedString>;
|
|
46
52
|
default: string;
|
|
47
53
|
};
|
|
48
54
|
lineClamp: {
|
|
49
55
|
type: StringConstructor;
|
|
50
56
|
default: string;
|
|
51
57
|
};
|
|
52
|
-
|
|
58
|
+
isTruncated: {
|
|
53
59
|
type: BooleanConstructor;
|
|
54
60
|
};
|
|
55
|
-
|
|
61
|
+
isStrike: {
|
|
56
62
|
type: BooleanConstructor;
|
|
57
63
|
};
|
|
58
|
-
|
|
64
|
+
isTextLink: {
|
|
59
65
|
type: BooleanConstructor;
|
|
60
66
|
};
|
|
61
67
|
}>>, {
|
|
62
68
|
as: keyof HTMLElementTagNameMap;
|
|
63
|
-
|
|
69
|
+
size: FontSize;
|
|
70
|
+
weight: FontWeight;
|
|
71
|
+
color: ColorToken | _mekari_pixel3_utils.CombinedString;
|
|
64
72
|
lineClamp: string;
|
|
73
|
+
isTruncated: boolean;
|
|
65
74
|
isStrike: boolean;
|
|
66
75
|
isTextLink: boolean;
|
|
67
|
-
isTruncated: boolean;
|
|
68
76
|
}, {}>;
|
|
69
77
|
|
|
70
78
|
export { MpText };
|
package/dist/text.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as vue_jsx_runtime from 'vue/jsx-runtime';
|
|
2
|
+
import * as _mekari_pixel3_utils from '@mekari/pixel3-utils';
|
|
2
3
|
import { FontSize, FontWeight } from './modules/text.type.js';
|
|
3
4
|
import * as vue from 'vue';
|
|
5
|
+
import { ColorToken } from '@mekari/pixel3-styled-system/tokens';
|
|
4
6
|
|
|
5
7
|
declare const MpText: vue.DefineComponent<{
|
|
6
8
|
as: {
|
|
@@ -9,25 +11,27 @@ declare const MpText: vue.DefineComponent<{
|
|
|
9
11
|
};
|
|
10
12
|
size: {
|
|
11
13
|
type: vue.PropType<FontSize>;
|
|
14
|
+
default: string;
|
|
12
15
|
};
|
|
13
16
|
weight: {
|
|
14
17
|
type: vue.PropType<FontWeight>;
|
|
18
|
+
default: string;
|
|
15
19
|
};
|
|
16
20
|
color: {
|
|
17
|
-
type: vue.PropType<
|
|
21
|
+
type: vue.PropType<ColorToken | _mekari_pixel3_utils.CombinedString>;
|
|
18
22
|
default: string;
|
|
19
23
|
};
|
|
20
24
|
lineClamp: {
|
|
21
25
|
type: StringConstructor;
|
|
22
26
|
default: string;
|
|
23
27
|
};
|
|
24
|
-
|
|
28
|
+
isTruncated: {
|
|
25
29
|
type: BooleanConstructor;
|
|
26
30
|
};
|
|
27
|
-
|
|
31
|
+
isStrike: {
|
|
28
32
|
type: BooleanConstructor;
|
|
29
33
|
};
|
|
30
|
-
|
|
34
|
+
isTextLink: {
|
|
31
35
|
type: BooleanConstructor;
|
|
32
36
|
};
|
|
33
37
|
}, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
@@ -37,34 +41,38 @@ declare const MpText: vue.DefineComponent<{
|
|
|
37
41
|
};
|
|
38
42
|
size: {
|
|
39
43
|
type: vue.PropType<FontSize>;
|
|
44
|
+
default: string;
|
|
40
45
|
};
|
|
41
46
|
weight: {
|
|
42
47
|
type: vue.PropType<FontWeight>;
|
|
48
|
+
default: string;
|
|
43
49
|
};
|
|
44
50
|
color: {
|
|
45
|
-
type: vue.PropType<
|
|
51
|
+
type: vue.PropType<ColorToken | _mekari_pixel3_utils.CombinedString>;
|
|
46
52
|
default: string;
|
|
47
53
|
};
|
|
48
54
|
lineClamp: {
|
|
49
55
|
type: StringConstructor;
|
|
50
56
|
default: string;
|
|
51
57
|
};
|
|
52
|
-
|
|
58
|
+
isTruncated: {
|
|
53
59
|
type: BooleanConstructor;
|
|
54
60
|
};
|
|
55
|
-
|
|
61
|
+
isStrike: {
|
|
56
62
|
type: BooleanConstructor;
|
|
57
63
|
};
|
|
58
|
-
|
|
64
|
+
isTextLink: {
|
|
59
65
|
type: BooleanConstructor;
|
|
60
66
|
};
|
|
61
67
|
}>>, {
|
|
62
68
|
as: keyof HTMLElementTagNameMap;
|
|
63
|
-
|
|
69
|
+
size: FontSize;
|
|
70
|
+
weight: FontWeight;
|
|
71
|
+
color: ColorToken | _mekari_pixel3_utils.CombinedString;
|
|
64
72
|
lineClamp: string;
|
|
73
|
+
isTruncated: boolean;
|
|
65
74
|
isStrike: boolean;
|
|
66
75
|
isTextLink: boolean;
|
|
67
|
-
isTruncated: boolean;
|
|
68
76
|
}, {}>;
|
|
69
77
|
|
|
70
78
|
export { MpText };
|
package/dist/text.js
CHANGED
|
@@ -36,10 +36,12 @@ var textProps = {
|
|
|
36
36
|
default: "p"
|
|
37
37
|
},
|
|
38
38
|
size: {
|
|
39
|
-
type: String
|
|
39
|
+
type: String,
|
|
40
|
+
default: "label"
|
|
40
41
|
},
|
|
41
42
|
weight: {
|
|
42
|
-
type: String
|
|
43
|
+
type: String,
|
|
44
|
+
default: "regular"
|
|
43
45
|
},
|
|
44
46
|
color: {
|
|
45
47
|
type: String,
|
|
@@ -49,13 +51,13 @@ var textProps = {
|
|
|
49
51
|
type: String,
|
|
50
52
|
default: "1"
|
|
51
53
|
},
|
|
52
|
-
|
|
54
|
+
isTruncated: {
|
|
53
55
|
type: Boolean
|
|
54
56
|
},
|
|
55
|
-
|
|
57
|
+
isStrike: {
|
|
56
58
|
type: Boolean
|
|
57
59
|
},
|
|
58
|
-
|
|
60
|
+
isTextLink: {
|
|
59
61
|
type: Boolean
|
|
60
62
|
}
|
|
61
63
|
};
|
package/dist/text.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mekari/pixel3-text",
|
|
3
3
|
"description": "Text component for mekari pixel 3",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.5",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@mekari/pixel3-styled-system": "0.0.3"
|
|
11
|
+
"@mekari/pixel3-styled-system": "0.0.3",
|
|
12
|
+
"@mekari/pixel3-utils": "0.0.4"
|
|
12
13
|
},
|
|
13
14
|
"peerDependencies": {
|
|
14
15
|
"vue": "^3.4.9"
|