@mekari/pixel3-progress 0.0.9-dev.1 → 0.0.9-dev.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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __name,
3
3
  progressProps
4
- } from "./chunk-624LFHHP.mjs";
4
+ } from "./chunk-XJ3CNKOI.mjs";
5
5
 
6
6
  // src/progress.tsx
7
7
  import { createVNode as _createVNode } from "vue";
@@ -32,7 +32,8 @@ var MpProgress = defineComponent({
32
32
  return () => {
33
33
  const {
34
34
  value,
35
- color
35
+ color,
36
+ background
36
37
  } = props;
37
38
  return _createVNode("div", {
38
39
  "class": classes.value.root,
@@ -43,6 +44,7 @@ var MpProgress = defineComponent({
43
44
  "aria-valuenow": value,
44
45
  "style": {
45
46
  "--mp-progress-color": token(`colors.${color}`) || color,
47
+ "--mp-progress-bg-color": token(`colors.${background}`) || background,
46
48
  "--mp-progress-width": progressValue(value)
47
49
  }
48
50
  }, [props.variant === "linear" && _createVNode("div", {
@@ -15,6 +15,10 @@ var progressProps = {
15
15
  type: String,
16
16
  default: "sky.400"
17
17
  },
18
+ background: {
19
+ type: String,
20
+ default: "white"
21
+ },
18
22
  value: {
19
23
  type: String,
20
24
  default: "0"
package/dist/index.js CHANGED
@@ -45,6 +45,10 @@ var progressProps = {
45
45
  type: String,
46
46
  default: "sky.400"
47
47
  },
48
+ background: {
49
+ type: String,
50
+ default: "white"
51
+ },
48
52
  value: {
49
53
  type: String,
50
54
  default: "0"
@@ -76,7 +80,8 @@ var MpProgress = (0, import_vue2.defineComponent)({
76
80
  return () => {
77
81
  const {
78
82
  value,
79
- color
83
+ color,
84
+ background
80
85
  } = props;
81
86
  return (0, import_vue.createVNode)("div", {
82
87
  "class": classes.value.root,
@@ -87,6 +92,7 @@ var MpProgress = (0, import_vue2.defineComponent)({
87
92
  "aria-valuenow": value,
88
93
  "style": {
89
94
  "--mp-progress-color": (0, import_tokens.token)(`colors.${color}`) || color,
95
+ "--mp-progress-bg-color": (0, import_tokens.token)(`colors.${background}`) || background,
90
96
  "--mp-progress-width": progressValue(value)
91
97
  }
92
98
  }, [props.variant === "linear" && (0, import_vue.createVNode)("div", {
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  MpProgress
3
- } from "./chunk-P2TSWQAT.mjs";
4
- import "./chunk-624LFHHP.mjs";
3
+ } from "./chunk-JAEHJFZL.mjs";
4
+ import "./chunk-XJ3CNKOI.mjs";
5
5
  export {
6
6
  MpProgress
7
7
  };
@@ -1 +1 @@
1
- {"inputs":{"src/modules/progress.props.ts":{"bytes":697,"imports":[{"path":"../modules/progress.type","kind":"import-statement","external":true}],"format":"esm"},"src/progress.tsx":{"bytes":1839,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"src/modules/progress.props.ts","kind":"import-statement","original":"./modules/progress.props"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":125,"imports":[{"path":"src/progress.tsx","kind":"import-statement","original":"./progress"}],"format":"esm"},"src/modules/progress.type.ts":{"bytes":177,"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/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":125},"src/progress.tsx":{"bytesInOutput":1693},"src/modules/progress.props.ts":{"bytesInOutput":241}},"bytes":3145},"dist/progress.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/progress.tsx","inputs":{"src/progress.tsx":{"bytesInOutput":1833},"src/modules/progress.props.ts":{"bytesInOutput":241}},"bytes":3143},"dist/modules/progress.props.js":{"imports":[],"exports":[],"entryPoint":"src/modules/progress.props.ts","inputs":{"src/modules/progress.props.ts":{"bytesInOutput":405}},"bytes":1345},"dist/modules/progress.type.js":{"imports":[],"exports":[],"entryPoint":"src/modules/progress.type.ts","inputs":{"src/modules/progress.type.ts":{"bytesInOutput":86}},"bytes":790}}}
1
+ {"inputs":{"src/modules/progress.props.ts":{"bytes":800,"imports":[{"path":"../modules/progress.type","kind":"import-statement","external":true}],"format":"esm"},"src/progress.tsx":{"bytes":1956,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"src/modules/progress.props.ts","kind":"import-statement","original":"./modules/progress.props"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":125,"imports":[{"path":"src/progress.tsx","kind":"import-statement","original":"./progress"}],"format":"esm"},"src/modules/progress.type.ts":{"bytes":177,"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/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":125},"src/progress.tsx":{"bytesInOutput":1813},"src/modules/progress.props.ts":{"bytesInOutput":301}},"bytes":3325},"dist/progress.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/progress.tsx","inputs":{"src/progress.tsx":{"bytesInOutput":1953},"src/modules/progress.props.ts":{"bytesInOutput":301}},"bytes":3323},"dist/modules/progress.props.js":{"imports":[],"exports":[],"entryPoint":"src/modules/progress.props.ts","inputs":{"src/modules/progress.props.ts":{"bytesInOutput":465}},"bytes":1405},"dist/modules/progress.type.js":{"imports":[],"exports":[],"entryPoint":"src/modules/progress.type.ts","inputs":{"src/modules/progress.type.ts":{"bytesInOutput":86}},"bytes":790}}}
@@ -1 +1 @@
1
- {"inputs":{"src/modules/progress.props.ts":{"bytes":697,"imports":[{"path":"../modules/progress.type","kind":"import-statement","external":true}],"format":"esm"},"src/progress.tsx":{"bytes":1839,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"src/modules/progress.props.ts","kind":"import-statement","original":"./modules/progress.props"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":125,"imports":[{"path":"src/progress.tsx","kind":"import-statement","original":"./progress"}],"format":"esm"},"src/modules/progress.type.ts":{"bytes":177,"imports":[],"format":"esm"}},"outputs":{"dist/index.mjs":{"imports":[{"path":"dist/chunk-P2TSWQAT.mjs","kind":"import-statement"},{"path":"dist/chunk-624LFHHP.mjs","kind":"import-statement"}],"exports":["MpProgress"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":109},"dist/progress.mjs":{"imports":[{"path":"dist/chunk-P2TSWQAT.mjs","kind":"import-statement"},{"path":"dist/chunk-624LFHHP.mjs","kind":"import-statement"}],"exports":["MpProgress"],"entryPoint":"src/progress.tsx","inputs":{},"bytes":109},"dist/chunk-P2TSWQAT.mjs":{"imports":[{"path":"dist/chunk-624LFHHP.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true}],"exports":["MpProgress"],"inputs":{"src/progress.tsx":{"bytesInOutput":1591}},"bytes":1704},"dist/modules/progress.props.mjs":{"imports":[{"path":"dist/chunk-624LFHHP.mjs","kind":"import-statement"}],"exports":["progressProps"],"entryPoint":"src/modules/progress.props.ts","inputs":{},"bytes":85},"dist/chunk-624LFHHP.mjs":{"imports":[],"exports":["__name","progressProps"],"inputs":{"src/modules/progress.props.ts":{"bytesInOutput":241}},"bytes":443},"dist/modules/progress.type.mjs":{"imports":[],"exports":[],"entryPoint":"src/modules/progress.type.ts","inputs":{"src/modules/progress.type.ts":{"bytesInOutput":0}},"bytes":0}}}
1
+ {"inputs":{"src/modules/progress.props.ts":{"bytes":800,"imports":[{"path":"../modules/progress.type","kind":"import-statement","external":true}],"format":"esm"},"src/progress.tsx":{"bytes":1956,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"src/modules/progress.props.ts","kind":"import-statement","original":"./modules/progress.props"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":125,"imports":[{"path":"src/progress.tsx","kind":"import-statement","original":"./progress"}],"format":"esm"},"src/modules/progress.type.ts":{"bytes":177,"imports":[],"format":"esm"}},"outputs":{"dist/index.mjs":{"imports":[{"path":"dist/chunk-JAEHJFZL.mjs","kind":"import-statement"},{"path":"dist/chunk-XJ3CNKOI.mjs","kind":"import-statement"}],"exports":["MpProgress"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":109},"dist/progress.mjs":{"imports":[{"path":"dist/chunk-JAEHJFZL.mjs","kind":"import-statement"},{"path":"dist/chunk-XJ3CNKOI.mjs","kind":"import-statement"}],"exports":["MpProgress"],"entryPoint":"src/progress.tsx","inputs":{},"bytes":109},"dist/chunk-JAEHJFZL.mjs":{"imports":[{"path":"dist/chunk-XJ3CNKOI.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true}],"exports":["MpProgress"],"inputs":{"src/progress.tsx":{"bytesInOutput":1692}},"bytes":1805},"dist/modules/progress.props.mjs":{"imports":[{"path":"dist/chunk-XJ3CNKOI.mjs","kind":"import-statement"}],"exports":["progressProps"],"entryPoint":"src/modules/progress.props.ts","inputs":{},"bytes":85},"dist/chunk-XJ3CNKOI.mjs":{"imports":[],"exports":["__name","progressProps"],"inputs":{"src/modules/progress.props.ts":{"bytesInOutput":301}},"bytes":503},"dist/modules/progress.type.mjs":{"imports":[],"exports":[],"entryPoint":"src/modules/progress.type.ts","inputs":{"src/modules/progress.type.ts":{"bytesInOutput":0}},"bytes":0}}}
@@ -16,6 +16,10 @@ declare const progressProps: {
16
16
  type: PropType<CombinedString | ColorToken>;
17
17
  default: string;
18
18
  };
19
+ background: {
20
+ type: PropType<CombinedString | ColorToken>;
21
+ default: string;
22
+ };
19
23
  value: {
20
24
  type: StringConstructor;
21
25
  default: string;
@@ -16,6 +16,10 @@ declare const progressProps: {
16
16
  type: PropType<CombinedString | ColorToken>;
17
17
  default: string;
18
18
  };
19
+ background: {
20
+ type: PropType<CombinedString | ColorToken>;
21
+ default: string;
22
+ };
19
23
  value: {
20
24
  type: StringConstructor;
21
25
  default: string;
@@ -36,6 +36,10 @@ var progressProps = {
36
36
  type: String,
37
37
  default: "sky.400"
38
38
  },
39
+ background: {
40
+ type: String,
41
+ default: "white"
42
+ },
39
43
  value: {
40
44
  type: String,
41
45
  default: "0"
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  progressProps
3
- } from "../chunk-624LFHHP.mjs";
3
+ } from "../chunk-XJ3CNKOI.mjs";
4
4
  export {
5
5
  progressProps
6
6
  };
@@ -17,6 +17,10 @@ declare const MpProgress: vue.DefineComponent<{
17
17
  type: vue.PropType<_mekari_pixel3_utils.CombinedString | ColorToken>;
18
18
  default: string;
19
19
  };
20
+ background: {
21
+ type: vue.PropType<_mekari_pixel3_utils.CombinedString | ColorToken>;
22
+ default: string;
23
+ };
20
24
  value: {
21
25
  type: StringConstructor;
22
26
  default: string;
@@ -34,11 +38,16 @@ declare const MpProgress: vue.DefineComponent<{
34
38
  type: vue.PropType<_mekari_pixel3_utils.CombinedString | ColorToken>;
35
39
  default: string;
36
40
  };
41
+ background: {
42
+ type: vue.PropType<_mekari_pixel3_utils.CombinedString | ColorToken>;
43
+ default: string;
44
+ };
37
45
  value: {
38
46
  type: StringConstructor;
39
47
  default: string;
40
48
  };
41
49
  }>>, {
50
+ background: _mekari_pixel3_utils.CombinedString | ColorToken;
42
51
  variant: ProgressVariant;
43
52
  size: ProgressSize;
44
53
  color: _mekari_pixel3_utils.CombinedString | ColorToken;
@@ -17,6 +17,10 @@ declare const MpProgress: vue.DefineComponent<{
17
17
  type: vue.PropType<_mekari_pixel3_utils.CombinedString | ColorToken>;
18
18
  default: string;
19
19
  };
20
+ background: {
21
+ type: vue.PropType<_mekari_pixel3_utils.CombinedString | ColorToken>;
22
+ default: string;
23
+ };
20
24
  value: {
21
25
  type: StringConstructor;
22
26
  default: string;
@@ -34,11 +38,16 @@ declare const MpProgress: vue.DefineComponent<{
34
38
  type: vue.PropType<_mekari_pixel3_utils.CombinedString | ColorToken>;
35
39
  default: string;
36
40
  };
41
+ background: {
42
+ type: vue.PropType<_mekari_pixel3_utils.CombinedString | ColorToken>;
43
+ default: string;
44
+ };
37
45
  value: {
38
46
  type: StringConstructor;
39
47
  default: string;
40
48
  };
41
49
  }>>, {
50
+ background: _mekari_pixel3_utils.CombinedString | ColorToken;
42
51
  variant: ProgressVariant;
43
52
  size: ProgressSize;
44
53
  color: _mekari_pixel3_utils.CombinedString | ColorToken;
package/dist/progress.js CHANGED
@@ -43,6 +43,10 @@ var progressProps = {
43
43
  type: String,
44
44
  default: "sky.400"
45
45
  },
46
+ background: {
47
+ type: String,
48
+ default: "white"
49
+ },
46
50
  value: {
47
51
  type: String,
48
52
  default: "0"
@@ -74,7 +78,8 @@ var MpProgress = (0, import_vue2.defineComponent)({
74
78
  return () => {
75
79
  const {
76
80
  value,
77
- color
81
+ color,
82
+ background
78
83
  } = props;
79
84
  return (0, import_vue.createVNode)("div", {
80
85
  "class": classes.value.root,
@@ -85,6 +90,7 @@ var MpProgress = (0, import_vue2.defineComponent)({
85
90
  "aria-valuenow": value,
86
91
  "style": {
87
92
  "--mp-progress-color": (0, import_tokens.token)(`colors.${color}`) || color,
93
+ "--mp-progress-bg-color": (0, import_tokens.token)(`colors.${background}`) || background,
88
94
  "--mp-progress-width": progressValue(value)
89
95
  }
90
96
  }, [props.variant === "linear" && (0, import_vue.createVNode)("div", {
package/dist/progress.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  MpProgress
3
- } from "./chunk-P2TSWQAT.mjs";
4
- import "./chunk-624LFHHP.mjs";
3
+ } from "./chunk-JAEHJFZL.mjs";
4
+ import "./chunk-XJ3CNKOI.mjs";
5
5
  export {
6
6
  MpProgress
7
7
  };
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@mekari/pixel3-progress",
3
3
  "description": "Progress component for mekari pixel 3",
4
- "version": "0.0.9-dev.1",
4
+ "version": "0.0.9-dev.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-icon": "0.0.9-dev.1",
12
- "@mekari/pixel3-spinner": "0.0.9-dev.1",
13
- "@mekari/pixel3-styled-system": "0.0.7-dev.1",
11
+ "@mekari/pixel3-icon": "0.0.9-dev.2",
12
+ "@mekari/pixel3-spinner": "0.0.9-dev.2",
13
+ "@mekari/pixel3-styled-system": "0.0.7-dev.2",
14
14
  "@mekari/pixel3-utils": "0.0.5"
15
15
  },
16
16
  "peerDependencies": {