@mekari/pixel3-text 0.0.1-alpha.0 → 0.0.2

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.
@@ -5,7 +5,7 @@ import {
5
5
 
6
6
  // src/text.tsx
7
7
  import { createVNode as _createVNode, isVNode as _isVNode } from "vue";
8
- import { defineComponent } from "vue";
8
+ import { defineComponent, computed } from "vue";
9
9
  import { token } from "@mekari/pixel3-styled-system/tokens";
10
10
  import { textRecipe } from "@mekari/pixel3-styled-system/recipes";
11
11
  function _isSlot(s) {
@@ -18,9 +18,11 @@ var MpText = defineComponent({
18
18
  setup(props, {
19
19
  slots
20
20
  }) {
21
- const classes = textRecipe({
22
- size: props.size,
23
- weight: props.weight
21
+ const classes = computed(() => {
22
+ return textRecipe({
23
+ size: props.size,
24
+ weight: props.weight
25
+ });
24
26
  });
25
27
  const handleStyleTruncate = /* @__PURE__ */ __name(() => {
26
28
  return props.isTruncated && {
@@ -39,7 +41,7 @@ var MpText = defineComponent({
39
41
  isTextLink
40
42
  } = props;
41
43
  return _createVNode(Component, {
42
- "class": classes,
44
+ "class": classes.value,
43
45
  "data-pixel-component": "MpText",
44
46
  "data-text-strike": isStrike ? true : void 0,
45
47
  "data-text-link": isTextLink ? true : void 0,
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { MpText } from './text.mjs';
2
+ import 'vue/jsx-runtime';
2
3
  import './modules/text.type.mjs';
3
4
  import 'vue';
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { MpText } from './text.js';
2
+ import 'vue/jsx-runtime';
2
3
  import './modules/text.type.js';
3
4
  import 'vue';
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ var __copyProps = (to, from, except, desc) => {
18
18
  };
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
 
21
- // src/index.tsx
21
+ // src/index.ts
22
22
  var src_exports = {};
23
23
  __export(src_exports, {
24
24
  MpText: () => MpText
@@ -73,9 +73,11 @@ var MpText = (0, import_vue2.defineComponent)({
73
73
  setup(props, {
74
74
  slots
75
75
  }) {
76
- const classes = (0, import_recipes.textRecipe)({
77
- size: props.size,
78
- weight: props.weight
76
+ const classes = (0, import_vue2.computed)(() => {
77
+ return (0, import_recipes.textRecipe)({
78
+ size: props.size,
79
+ weight: props.weight
80
+ });
79
81
  });
80
82
  const handleStyleTruncate = /* @__PURE__ */ __name(() => {
81
83
  return props.isTruncated && {
@@ -94,7 +96,7 @@ var MpText = (0, import_vue2.defineComponent)({
94
96
  isTextLink
95
97
  } = props;
96
98
  return (0, import_vue.createVNode)(Component, {
97
- "class": classes,
99
+ "class": classes.value,
98
100
  "data-pixel-component": "MpText",
99
101
  "data-text-strike": isStrike ? true : void 0,
100
102
  "data-text-link": isTextLink ? true : void 0,
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MpText
3
- } from "./chunk-MUU2JOPN.mjs";
3
+ } from "./chunk-A7GUGWQD.mjs";
4
4
  import "./chunk-5REAQYN3.mjs";
5
5
  export {
6
6
  MpText
@@ -1 +1 @@
1
- {"inputs":{"src/modules/text.props.ts":{"bytes":749,"imports":[{"path":"../modules/text.type","kind":"import-statement","external":true}],"format":"esm"},"src/text.tsx":{"bytes":1669,"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.tsx":{"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.tsx","inputs":{"src/index.tsx":{"bytesInOutput":117},"src/text.tsx":{"bytesInOutput":1560},"src/modules/text.props.ts":{"bytesInOutput":359}},"bytes":3107},"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":1680},"src/modules/text.props.ts":{"bytesInOutput":359}},"bytes":3092},"dist/modules/text.props.js":{"imports":[],"exports":[],"entryPoint":"src/modules/text.props.ts","inputs":{"src/modules/text.props.ts":{"bytesInOutput":503}},"bytes":1435},"dist/modules/text.type.js":{"imports":[],"exports":[],"entryPoint":"src/modules/text.type.ts","inputs":{"src/modules/text.type.ts":{"bytesInOutput":78}},"bytes":778}}}
1
+ {"inputs":{"src/modules/text.props.ts":{"bytes":749,"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":359}},"bytes":3173},"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":359}},"bytes":3159},"dist/modules/text.props.js":{"imports":[],"exports":[],"entryPoint":"src/modules/text.props.ts","inputs":{"src/modules/text.props.ts":{"bytesInOutput":503}},"bytes":1435},"dist/modules/text.type.js":{"imports":[],"exports":[],"entryPoint":"src/modules/text.type.ts","inputs":{"src/modules/text.type.ts":{"bytesInOutput":78}},"bytes":778}}}
@@ -1 +1 @@
1
- {"inputs":{"src/modules/text.props.ts":{"bytes":749,"imports":[{"path":"../modules/text.type","kind":"import-statement","external":true}],"format":"esm"},"src/text.tsx":{"bytes":1669,"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.tsx":{"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-MUU2JOPN.mjs","kind":"import-statement"},{"path":"dist/chunk-5REAQYN3.mjs","kind":"import-statement"}],"exports":["MpText"],"entryPoint":"src/index.tsx","inputs":{"src/index.tsx":{"bytesInOutput":0}},"bytes":101},"dist/text.mjs":{"imports":[{"path":"dist/chunk-MUU2JOPN.mjs","kind":"import-statement"},{"path":"dist/chunk-5REAQYN3.mjs","kind":"import-statement"}],"exports":["MpText"],"entryPoint":"src/text.tsx","inputs":{},"bytes":101},"dist/chunk-MUU2JOPN.mjs":{"imports":[{"path":"dist/chunk-5REAQYN3.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":1508}},"bytes":1609},"dist/modules/text.props.mjs":{"imports":[{"path":"dist/chunk-5REAQYN3.mjs","kind":"import-statement"}],"exports":["textProps"],"entryPoint":"src/modules/text.props.ts","inputs":{},"bytes":77},"dist/chunk-5REAQYN3.mjs":{"imports":[],"exports":["__name","textProps"],"inputs":{"src/modules/text.props.ts":{"bytesInOutput":359}},"bytes":553},"dist/modules/text.type.mjs":{"imports":[],"exports":[],"entryPoint":"src/modules/text.type.ts","inputs":{"src/modules/text.type.ts":{"bytesInOutput":0}},"bytes":0}}}
1
+ {"inputs":{"src/modules/text.props.ts":{"bytes":749,"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-A7GUGWQD.mjs","kind":"import-statement"},{"path":"dist/chunk-5REAQYN3.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-A7GUGWQD.mjs","kind":"import-statement"},{"path":"dist/chunk-5REAQYN3.mjs","kind":"import-statement"}],"exports":["MpText"],"entryPoint":"src/text.tsx","inputs":{},"bytes":101},"dist/chunk-A7GUGWQD.mjs":{"imports":[{"path":"dist/chunk-5REAQYN3.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-5REAQYN3.mjs","kind":"import-statement"}],"exports":["textProps"],"entryPoint":"src/modules/text.props.ts","inputs":{},"bytes":77},"dist/chunk-5REAQYN3.mjs":{"imports":[],"exports":["__name","textProps"],"inputs":{"src/modules/text.props.ts":{"bytesInOutput":359}},"bytes":553},"dist/modules/text.type.mjs":{"imports":[],"exports":[],"entryPoint":"src/modules/text.type.ts","inputs":{"src/modules/text.type.ts":{"bytesInOutput":0}},"bytes":0}}}
package/dist/text.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as vue_jsx_runtime from 'vue/jsx-runtime';
1
2
  import { FontSize, FontWeight } from './modules/text.type.mjs';
2
3
  import * as vue from 'vue';
3
4
 
@@ -29,7 +30,7 @@ declare const MpText: vue.DefineComponent<{
29
30
  isTruncated: {
30
31
  type: BooleanConstructor;
31
32
  };
32
- }, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
33
+ }, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
33
34
  as: {
34
35
  type: vue.PropType<keyof HTMLElementTagNameMap>;
35
36
  default: string;
package/dist/text.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as vue_jsx_runtime from 'vue/jsx-runtime';
1
2
  import { FontSize, FontWeight } from './modules/text.type.js';
2
3
  import * as vue from 'vue';
3
4
 
@@ -29,7 +30,7 @@ declare const MpText: vue.DefineComponent<{
29
30
  isTruncated: {
30
31
  type: BooleanConstructor;
31
32
  };
32
- }, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
33
+ }, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
33
34
  as: {
34
35
  type: vue.PropType<keyof HTMLElementTagNameMap>;
35
36
  default: string;
package/dist/text.js CHANGED
@@ -71,9 +71,11 @@ var MpText = (0, import_vue2.defineComponent)({
71
71
  setup(props, {
72
72
  slots
73
73
  }) {
74
- const classes = (0, import_recipes.textRecipe)({
75
- size: props.size,
76
- weight: props.weight
74
+ const classes = (0, import_vue2.computed)(() => {
75
+ return (0, import_recipes.textRecipe)({
76
+ size: props.size,
77
+ weight: props.weight
78
+ });
77
79
  });
78
80
  const handleStyleTruncate = /* @__PURE__ */ __name(() => {
79
81
  return props.isTruncated && {
@@ -92,7 +94,7 @@ var MpText = (0, import_vue2.defineComponent)({
92
94
  isTextLink
93
95
  } = props;
94
96
  return (0, import_vue.createVNode)(Component, {
95
- "class": classes,
97
+ "class": classes.value,
96
98
  "data-pixel-component": "MpText",
97
99
  "data-text-strike": isStrike ? true : void 0,
98
100
  "data-text-link": isTextLink ? true : void 0,
package/dist/text.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MpText
3
- } from "./chunk-MUU2JOPN.mjs";
3
+ } from "./chunk-A7GUGWQD.mjs";
4
4
  import "./chunk-5REAQYN3.mjs";
5
5
  export {
6
6
  MpText
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@mekari/pixel3-text",
3
3
  "description": "Text component for mekari pixel 3",
4
- "version": "0.0.1-alpha.0",
4
+ "version": "0.0.2",
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.1-alpha.0"
11
+ "@mekari/pixel3-styled-system": "0.0.1"
12
12
  },
13
13
  "peerDependencies": {
14
14
  "vue": "^3.3.7"