@onereach/ui-components 15.2.2 → 15.2.3

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.
@@ -84,7 +84,7 @@ var script = defineComponent({
84
84
  return ProgressColor.Error;
85
85
  }
86
86
  } else {
87
- return props.color in ProgressColor ? props.color : ProgressColor.Success;
87
+ return Object.values(ProgressColor).includes(props.color) ? props.color : ProgressColor.Success;
88
88
  }
89
89
  });
90
90
  const computedSize = computed(() => isMobile.value ? 20 : 16);
@@ -1 +1 @@
1
- export { s as default } from '../OrProgressV3-d096f427.js';
1
+ export { s as default } from '../OrProgressV3-0ba2e633.js';
@@ -1 +1 @@
1
- export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrProgressV3-d096f427.js';
1
+ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrProgressV3-0ba2e633.js';
@@ -1 +1 @@
1
- export { P as ProgressColor, a as ProgressType } from '../OrProgressV3-d096f427.js';
1
+ export { P as ProgressColor, a as ProgressType } from '../OrProgressV3-0ba2e633.js';
@@ -1 +1 @@
1
- export { i as ProgressBarAnimationTypes, g as ProgressBarBackground, j as ProgressBarColors, h as ProgressBarMain, k as ProgressFooter, d as ProgressHeader, e as ProgressHeaderLabel, f as ProgressHeaderPercent, b as ProgressRoot, c as ProgressRootTypes } from '../OrProgressV3-d096f427.js';
1
+ export { i as ProgressBarAnimationTypes, g as ProgressBarBackground, j as ProgressBarColors, h as ProgressBarMain, k as ProgressFooter, d as ProgressHeader, e as ProgressHeaderLabel, f as ProgressHeaderPercent, b as ProgressRoot, c as ProgressRootTypes } from '../OrProgressV3-0ba2e633.js';
@@ -156,7 +156,7 @@ var script = defineComponent({
156
156
  return ProgressColor.Error;
157
157
  }
158
158
  } else {
159
- return props.color in ProgressColor ? props.color : ProgressColor.Success;
159
+ return Object.values(ProgressColor).includes(props.color) ? props.color : ProgressColor.Success;
160
160
  }
161
161
  });
162
162
  const computedSize = computed(() => isMobile.value ? 20 : 16);
@@ -79,7 +79,7 @@ export { s as OrPaginationV3 } from './OrPaginationV3-cb69af51.js';
79
79
  export { default as OrPassword } from './OrPassword/OrPassword.js';
80
80
  export { s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, i as isPrevented } from './OrPopoverV3-a7894f60.js';
81
81
  export { s as OrProgress, O as OrProgressColors, a as OrProgressTypes } from './OrProgress-f6b53323.js';
82
- export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgressV3-d096f427.js';
82
+ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgressV3-0ba2e633.js';
83
83
  export { s as OrRadio } from './OrRadio-35a345cd.js';
84
84
  export { default as OrRadioGroup } from './OrRadioGroup/OrRadioGroup.js';
85
85
  export { default as OrRadioGroupV3 } from './OrRadioGroupV3/OrRadioGroup.js';
@@ -39,7 +39,7 @@ export { N as NotificationVariant, s as OrNotificationV3 } from './components/Or
39
39
  export { default as OrNumberInput } from './components/OrNumberInput/OrNumberInput.js';
40
40
  export { default as OrOverflowMenu } from './components/OrOverflowMenu/OrOverflowMenu.js';
41
41
  export { default as OrPassword } from './components/OrPassword/OrPassword.js';
42
- export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './components/OrProgressV3-d096f427.js';
42
+ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './components/OrProgressV3-0ba2e633.js';
43
43
  export { s as OrRadio } from './components/OrRadio-35a345cd.js';
44
44
  export { default as OrRadioGroup } from './components/OrRadioGroup/OrRadioGroup.js';
45
45
  export { default as OrRadioGroupV3 } from './components/OrRadioGroupV3/OrRadioGroup.js';
@@ -159,7 +159,7 @@ var script = defineComponent({
159
159
  return ProgressColor.Error;
160
160
  }
161
161
  } else {
162
- return props.color in ProgressColor ? props.color : ProgressColor.Success;
162
+ return Object.values(ProgressColor).includes(props.color) ? props.color : ProgressColor.Success;
163
163
  }
164
164
  });
165
165
  const computedSize = computed(() => isMobile.value ? 20 : 16);
@@ -98,7 +98,7 @@ export { _ as OrPassword } from '../OrPassword-464ce6f9.js';
98
98
  export { _ as OrPopoverV3, a as PopoverPlacement, P as PopoverVariant } from '../OrPopover-45e2dbce.js';
99
99
  export { i as isPrevented } from '../isPrevented-b1764210.js';
100
100
  export { _ as OrProgress, O as OrProgressColors, a as OrProgressTypes } from '../OrProgress-8a37f30d.js';
101
- export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrProgress-107d7db4.js';
101
+ export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrProgress-d9ad3e28.js';
102
102
  export { _ as OrRadio } from '../OrRadio-7077aacc.js';
103
103
  export { _ as OrRadioGroup } from '../OrRadioGroup-11424644.js';
104
104
  export { _ as OrRadioGroupV3 } from '../OrRadioGroup-ad1ffc12.js';
@@ -1,4 +1,4 @@
1
- export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from '../../OrProgress-107d7db4.js';
1
+ export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from '../../OrProgress-d9ad3e28.js';
2
2
  import '@vueuse/core';
3
3
  import 'lodash/round';
4
4
  import 'vue-demi';
@@ -98,7 +98,7 @@ export { _ as OrPassword } from './OrPassword-464ce6f9.js';
98
98
  export { _ as OrPopoverV3, a as PopoverPlacement, P as PopoverVariant } from './OrPopover-45e2dbce.js';
99
99
  export { i as isPrevented } from './isPrevented-b1764210.js';
100
100
  export { _ as OrProgress, O as OrProgressColors, a as OrProgressTypes } from './OrProgress-8a37f30d.js';
101
- export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgress-107d7db4.js';
101
+ export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgress-d9ad3e28.js';
102
102
  export { _ as OrRadio } from './OrRadio-7077aacc.js';
103
103
  export { _ as OrRadioGroup } from './OrRadioGroup-11424644.js';
104
104
  export { _ as OrRadioGroupV3 } from './OrRadioGroup-ad1ffc12.js';
@@ -159,7 +159,7 @@ var script = defineComponent({
159
159
  return ProgressColor.Error;
160
160
  }
161
161
  } else {
162
- return props.color in ProgressColor ? props.color : ProgressColor.Success;
162
+ return Object.values(ProgressColor).includes(props.color) ? props.color : ProgressColor.Success;
163
163
  }
164
164
  });
165
165
  const computedSize = computed(() => isMobile.value ? 20 : 16);
@@ -95,7 +95,7 @@ export { s as OrPassword } from '../OrPassword-352677d0.js';
95
95
  export { s as OrPopoverV3, a as PopoverPlacement, P as PopoverVariant } from '../OrPopover-0daeba14.js';
96
96
  export { i as isPrevented } from '../isPrevented-b1764210.js';
97
97
  export { s as OrProgress, O as OrProgressColors, a as OrProgressTypes } from '../OrProgress-86f6d15b.js';
98
- export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrProgress-53100de0.js';
98
+ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrProgress-210d3538.js';
99
99
  export { s as OrRadio } from '../OrRadio-8506e7d9.js';
100
100
  export { s as OrRadioGroup } from '../OrRadioGroup-00785e41.js';
101
101
  export { s as OrRadioGroupV3 } from '../OrRadioGroup-1a0fe40f.js';
@@ -1,4 +1,4 @@
1
- export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from '../../OrProgress-53100de0.js';
1
+ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from '../../OrProgress-210d3538.js';
2
2
  import '@vueuse/core';
3
3
  import 'lodash/round';
4
4
  import 'vue-demi';
@@ -95,7 +95,7 @@ export { s as OrPassword } from './OrPassword-352677d0.js';
95
95
  export { s as OrPopoverV3, a as PopoverPlacement, P as PopoverVariant } from './OrPopover-0daeba14.js';
96
96
  export { i as isPrevented } from './isPrevented-b1764210.js';
97
97
  export { s as OrProgress, O as OrProgressColors, a as OrProgressTypes } from './OrProgress-86f6d15b.js';
98
- export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgress-53100de0.js';
98
+ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgress-210d3538.js';
99
99
  export { s as OrRadio } from './OrRadio-8506e7d9.js';
100
100
  export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
101
101
  export { s as OrRadioGroupV3 } from './OrRadioGroup-1a0fe40f.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "15.2.2",
3
+ "version": "15.2.3",
4
4
  "npmUnpacked": "4.15.2",
5
5
  "description": "Vue components library for v2/3",
6
6
  "sideEffects": false,
@@ -40,7 +40,7 @@
40
40
  "@codemirror/lang-json": "6.0.1",
41
41
  "@codemirror/lang-markdown": "6.1.1",
42
42
  "@floating-ui/dom": "1.5.3",
43
- "@onereach/styles": "^15.2.2",
43
+ "@onereach/styles": "^15.2.3",
44
44
  "@splidejs/splide": "4.0.6",
45
45
  "@tiptap/core": "2.0.3",
46
46
  "@tiptap/extension-blockquote": "2.0.3",
@@ -180,5 +180,5 @@
180
180
  },
181
181
  "./package.json": "./package.json"
182
182
  },
183
- "gitHead": "93daef0030a9dbf66a0b1d519ae28a2e7e42de84"
183
+ "gitHead": "c6ee3d924d61881dafd1bdbed3c79c8f7df5e337"
184
184
  }
@@ -102,7 +102,7 @@ import round from 'lodash/round';
102
102
  import { computed, defineComponent, PropType, ref, useSlots } from 'vue-demi';
103
103
  import { useResponsive } from '../../hooks';
104
104
  import { ProgressColor, ProgressType } from './props';
105
- import { ProgressBarAnimationTypes, ProgressBarBackground, ProgressBarColors, ProgressBarMain, ProgressFooter, ProgressHeader, ProgressHeaderLabel, ProgressHeaderPercent, ProgressRoot, ProgressRootTypes } from './styles';
105
+ import * as Styles from './styles';
106
106
 
107
107
  export default defineComponent({
108
108
  name: 'OrProgress',
@@ -189,7 +189,7 @@ export default defineComponent({
189
189
  return ProgressColor.Error;
190
190
  }
191
191
  } else {
192
- return props.color in ProgressColor
192
+ return Object.values(ProgressColor).includes(props.color as ProgressColor)
193
193
  ? props.color
194
194
  : ProgressColor.Success;
195
195
  }
@@ -200,34 +200,34 @@ export default defineComponent({
200
200
  // Styles
201
201
  const rootStyles = computed(() => [
202
202
  'or-progress-v3',
203
- ...ProgressRoot,
204
- ...ProgressRootTypes[props.type],
203
+ ...Styles.ProgressRoot,
204
+ ...Styles.ProgressRootTypes[props.type],
205
205
  ]);
206
206
 
207
207
  const headerStyles = computed(() => [
208
- ...ProgressHeader,
208
+ ...Styles.ProgressHeader,
209
209
  ]);
210
210
 
211
211
  const labelStyles = computed(() => [
212
- ...ProgressHeaderLabel,
212
+ ...Styles.ProgressHeaderLabel,
213
213
  ]);
214
214
 
215
215
  const percentStyles = computed(() => [
216
- ...ProgressHeaderPercent,
216
+ ...Styles.ProgressHeaderPercent,
217
217
  ]);
218
218
 
219
219
  const footerStyles = computed(() => [
220
- ...ProgressFooter,
220
+ ...Styles.ProgressFooter,
221
221
  ]);
222
222
 
223
223
  const progressBarBackgroundStyles = computed(() => [
224
- ...ProgressBarBackground,
224
+ ...Styles.ProgressBarBackground,
225
225
  ]);
226
226
 
227
227
  const progressBarMainPartStyles = computed(() => [
228
- ...ProgressBarMain,
229
- ...(props.loading ? ProgressBarAnimationTypes[props.type] : []),
230
- ...ProgressBarColors[localColor.value],
228
+ ...Styles.ProgressBarMain,
229
+ ...(props.loading ? Styles.ProgressBarAnimationTypes[props.type] : []),
230
+ ...Styles.ProgressBarColors[localColor.value],
231
231
  ]);
232
232
 
233
233
  const strokeDasharray = computed(() =>