@nmorph/nmorph-ui-kit 1.0.75 → 1.0.76

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/index.es.js CHANGED
@@ -339,7 +339,7 @@ const usePlacement = (data) => {
339
339
 
340
340
  const name = "@nmorph/nmorph-ui-kit";
341
341
  const type = "module";
342
- const version = "1.0.75";
342
+ const version = "1.0.76";
343
343
  const license = "MIT";
344
344
  const engines = {
345
345
  node: "18.13.0",
@@ -8063,7 +8063,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
8063
8063
  "nmorph-progress": []
8064
8064
  })
8065
8065
  );
8066
- computed(() => `${props.percentage}%`);
8066
+ const innerContentWidth = computed(() => `${props.percentage}%`);
8067
8067
  const color = computed(() => {
8068
8068
  if (Array.isArray(props.color)) {
8069
8069
  return props.color.find((el) => el.percentage <= props.percentage)?.color;
@@ -8072,7 +8072,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
8072
8072
  return props.color(props.percentage);
8073
8073
  return props.color;
8074
8074
  });
8075
- computed(() => {
8075
+ const animation = computed(() => {
8076
8076
  return props.indeterminate ? "var(--animation)" : "none";
8077
8077
  });
8078
8078
  const circle = ref(null);
@@ -8084,7 +8084,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
8084
8084
  return;
8085
8085
  circumference.value = 2 * Math.PI * circle.value.r.baseVal.value;
8086
8086
  });
8087
- computed(() => `${props.circleSize}px`);
8087
+ const circleContainerSize = computed(() => `${props.circleSize}px`);
8088
8088
  const displayPercentage = computed(() => `${props.percentage}%`);
8089
8089
  const slide = Gi`
8090
8090
  from {
@@ -8098,7 +8098,6 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
8098
8098
  const commonCSS = Hi`
8099
8099
  --height: 8px;
8100
8100
  --width-transition: 0.4s ease-in-out width;
8101
- --animation: ${slide} 2s linear infinite;
8102
8101
  display: inline;
8103
8102
 
8104
8103
  .nmorph-progress__linear {
@@ -8116,12 +8115,9 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
8116
8115
 
8117
8116
  .nmorph-progress__inner {
8118
8117
  position: relative;
8119
- width: v-bind(innerContentWidth);
8120
8118
  height: 100%;
8121
- background: v-bind(color);
8122
8119
  border-radius: var(--border-radius-40);
8123
8120
  transition: var(--width-transition);
8124
- animation: v-bind(animation);
8125
8121
  }
8126
8122
 
8127
8123
  .nmorph-progress__percentage,
@@ -8140,8 +8136,6 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
8140
8136
 
8141
8137
  .nmorph-progress__circle {
8142
8138
  position: relative;
8143
- width: v-bind(circleContainerSize);
8144
- height: v-bind(circleContainerSize);
8145
8139
  border-radius: var(--border-radius-circular);
8146
8140
 
8147
8141
  &::after {
@@ -8177,6 +8171,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
8177
8171
  }
8178
8172
  `;
8179
8173
  const StyledComponent = Kr.div`
8174
+ --animation: ${slide} 2s linear infinite;
8180
8175
  ${commonCSS}
8181
8176
  .nmorph-progress__linear {
8182
8177
  .nmorph-progress__outer {
@@ -8193,9 +8188,16 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
8193
8188
  }
8194
8189
  }
8195
8190
 
8191
+ .nmorph-progress__inner {
8192
+ width: ${innerContentWidth.value};
8193
+ background: ${color.value};
8194
+ animation: ${animation.value};
8195
+ }
8196
8196
 
8197
8197
  .nmorph-progress__circle {
8198
8198
  ${nmorphInset()}
8199
+ width: ${circleContainerSize.value};
8200
+ height: ${circleContainerSize.value};
8199
8201
  }
8200
8202
 
8201
8203
  .nmorph-progress__circle-ring {
package/dist/index.umd.js CHANGED
@@ -342,7 +342,7 @@
342
342
 
343
343
  const name = "@nmorph/nmorph-ui-kit";
344
344
  const type = "module";
345
- const version = "1.0.75";
345
+ const version = "1.0.76";
346
346
  const license = "MIT";
347
347
  const engines = {
348
348
  node: "18.13.0",
@@ -8066,7 +8066,7 @@
8066
8066
  "nmorph-progress": []
8067
8067
  })
8068
8068
  );
8069
- vue.computed(() => `${props.percentage}%`);
8069
+ const innerContentWidth = vue.computed(() => `${props.percentage}%`);
8070
8070
  const color = vue.computed(() => {
8071
8071
  if (Array.isArray(props.color)) {
8072
8072
  return props.color.find((el) => el.percentage <= props.percentage)?.color;
@@ -8075,7 +8075,7 @@
8075
8075
  return props.color(props.percentage);
8076
8076
  return props.color;
8077
8077
  });
8078
- vue.computed(() => {
8078
+ const animation = vue.computed(() => {
8079
8079
  return props.indeterminate ? "var(--animation)" : "none";
8080
8080
  });
8081
8081
  const circle = vue.ref(null);
@@ -8087,7 +8087,7 @@
8087
8087
  return;
8088
8088
  circumference.value = 2 * Math.PI * circle.value.r.baseVal.value;
8089
8089
  });
8090
- vue.computed(() => `${props.circleSize}px`);
8090
+ const circleContainerSize = vue.computed(() => `${props.circleSize}px`);
8091
8091
  const displayPercentage = vue.computed(() => `${props.percentage}%`);
8092
8092
  const slide = Gi`
8093
8093
  from {
@@ -8101,7 +8101,6 @@
8101
8101
  const commonCSS = Hi`
8102
8102
  --height: 8px;
8103
8103
  --width-transition: 0.4s ease-in-out width;
8104
- --animation: ${slide} 2s linear infinite;
8105
8104
  display: inline;
8106
8105
 
8107
8106
  .nmorph-progress__linear {
@@ -8119,12 +8118,9 @@
8119
8118
 
8120
8119
  .nmorph-progress__inner {
8121
8120
  position: relative;
8122
- width: v-bind(innerContentWidth);
8123
8121
  height: 100%;
8124
- background: v-bind(color);
8125
8122
  border-radius: var(--border-radius-40);
8126
8123
  transition: var(--width-transition);
8127
- animation: v-bind(animation);
8128
8124
  }
8129
8125
 
8130
8126
  .nmorph-progress__percentage,
@@ -8143,8 +8139,6 @@
8143
8139
 
8144
8140
  .nmorph-progress__circle {
8145
8141
  position: relative;
8146
- width: v-bind(circleContainerSize);
8147
- height: v-bind(circleContainerSize);
8148
8142
  border-radius: var(--border-radius-circular);
8149
8143
 
8150
8144
  &::after {
@@ -8180,6 +8174,7 @@
8180
8174
  }
8181
8175
  `;
8182
8176
  const StyledComponent = Kr.div`
8177
+ --animation: ${slide} 2s linear infinite;
8183
8178
  ${commonCSS}
8184
8179
  .nmorph-progress__linear {
8185
8180
  .nmorph-progress__outer {
@@ -8196,9 +8191,16 @@
8196
8191
  }
8197
8192
  }
8198
8193
 
8194
+ .nmorph-progress__inner {
8195
+ width: ${innerContentWidth.value};
8196
+ background: ${color.value};
8197
+ animation: ${animation.value};
8198
+ }
8199
8199
 
8200
8200
  .nmorph-progress__circle {
8201
8201
  ${nmorphInset()}
8202
+ width: ${circleContainerSize.value};
8203
+ height: ${circleContainerSize.value};
8202
8204
  }
8203
8205
 
8204
8206
  .nmorph-progress__circle-ring {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@nmorph/nmorph-ui-kit",
3
3
  "type": "module",
4
4
  "private": false,
5
- "version": "1.0.75",
5
+ "version": "1.0.76",
6
6
  "license": "MIT",
7
7
  "engines": {
8
8
  "node": "18.13.0",