@co4/components
Advanced tools
Comparing version 0.4.0 to 0.4.1
{ | ||
"name": "@co4/components", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "The component library for the CO4 project.", | ||
@@ -33,3 +33,3 @@ "author": { | ||
"scripts": {}, | ||
"gitHead": "f46e27fc7ad5f5d22f6c11f6910c82521f7a269c" | ||
"gitHead": "61a256d21241955d4386589bfcd98ce2af653e62" | ||
} |
@@ -36,2 +36,12 @@ import { setBasePath } from '@shoelace-style/shoelace/dist/utilities/base-path'; | ||
registerIconLibrary('unicons', { | ||
resolver: (name) => { | ||
const match = name.match(/^(.*?)(-s)?$/); | ||
return `https://cdn.jsdelivr.net/npm/@iconscout/unicons@3.0.3/svg/${match?.[2] === '-s' ? 'solid' : 'line'}/${ | ||
match?.[1] | ||
}.svg`; | ||
}, | ||
mutator: (svg) => svg.setAttribute('fill', 'currentColor'), | ||
}); | ||
setBasePath('/'); | ||
@@ -57,4 +67,5 @@ | ||
export * from './FileUpload'; | ||
export * from './NavButton'; | ||
export * from './Pagination'; | ||
export * from './Table'; | ||
export * from './hooks'; |
Sorry, the diff of this file is not supported yet
38312
24
893