@dataloop-ai/components 0.20.59 → 0.20.61-cdn-fix.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataloop-ai/components",
3
- "version": "0.20.59",
3
+ "version": "0.20.61-cdn-fix.0",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -325,7 +325,7 @@ export default defineComponent({
325
325
  alignItems: 'center',
326
326
  borderRadius: '2px',
327
327
  border: this.collapseBorder,
328
- background: 'var(--dl-color-component, #30363D)',
328
+ background: 'var(--dl-color-bg, #30363D)',
329
329
  boxShadow:
330
330
  '0px 4px 4px 0px var(--dl-color-shadow, rgba(27, 30, 34, 0.24))'
331
331
  }
@@ -176,9 +176,13 @@ export default defineComponent({
176
176
  }
177
177
 
178
178
  try {
179
+ const publicPath =
180
+ process.env.PUBLIC_PATH === 'true'
181
+ ? '__PUBLIC_PATH'
182
+ : ''
179
183
  svgElement.src = svgSource.value
180
184
  ? `${svgSource.value}/${cleanedIconName.value}.svg`
181
- : `/icons/assets/${cleanedIconName.value}.svg`
185
+ : `${publicPath}/icons/assets/${cleanedIconName.value}.svg`
182
186
  } catch (e) {
183
187
  reject(e)
184
188
  }