@co4/components
Advanced tools
Comparing version 0.3.1 to 0.3.2
{ | ||
"name": "@co4/components", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "The component library for the CO4 project.", | ||
@@ -24,3 +24,3 @@ "author": { | ||
"scripts": {}, | ||
"gitHead": "2ab4a07f522d67c69b2aaf5ad40443ff8d66827e" | ||
"gitHead": "319380c8e6c1a6baa7a0d44c6bcbb08ea9152b8b" | ||
} |
@@ -11,4 +11,11 @@ import { setBasePath } from '@shoelace-style/shoelace/dist/utilities/base-path'; | ||
registerIconLibrary('lucide', { | ||
resolver: (name) => `https://cdn.jsdelivr.net/npm/lucide-static@latest/icons/${name}.svg`, | ||
registerIconLibrary('fa', { | ||
resolver: (name) => { | ||
const filename = name.replace(/^fa[rbs]-/, ''); | ||
let folder = 'regular'; | ||
if (name.substring(0, 4) === 'fas-') folder = 'solid'; | ||
if (name.substring(0, 4) === 'fab-') folder = 'brands'; | ||
return `https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.2.1/svgs/${folder}/${filename}.svg`; | ||
}, | ||
mutator: (svg) => svg.setAttribute('fill', 'currentColor'), | ||
}); | ||
@@ -21,1 +28,3 @@ | ||
export * from './Table'; | ||
export * from './Autocomplete'; | ||
export * from './useOnOutsideClick'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
27102
14
607
1