@clds/icon
Advanced tools
Comparing version 0.53.2 to 0.53.3
@@ -6,7 +6,8 @@ import { jsx as _jsx } from "react/jsx-runtime"; | ||
import { lightTheme } from '@clds/themes'; | ||
import { iconNextSizeVariant } from './theme.js'; | ||
const palette = lightTheme.palette; | ||
const getColor = (colorName) => palette[colorName] ?? colorName; | ||
const StyledSvg = styled.svg(({ theme, size, color }) => css ` | ||
width: ${theme.spacing[size]}; | ||
height: ${theme.spacing[size]}; | ||
const StyledSvg = styled.svg(({ size, color }) => css ` | ||
width: ${iconNextSizeVariant(size).width}; | ||
height: ${iconNextSizeVariant(size).width}; | ||
fill: ${color === undefined | ||
@@ -13,0 +14,0 @@ ? css `var(${blenderCss.variables.foregroundColor}, currentColor)` |
{ | ||
"name": "@clds/icon", | ||
"description": "", | ||
"version": "0.53.2", | ||
"type": "module", | ||
"version": "0.53.3", | ||
"author": "Cloudinary", | ||
@@ -13,7 +12,8 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"@clds/blender": "0.53.2", | ||
"@clds/component-theme": "0.53.2", | ||
"@clds/design-system-foundations": "0.53.2", | ||
"@clds/themes": "0.53.2", | ||
"@clds/typography": "0.53.2" | ||
"es-toolkit": "^1.31.0", | ||
"@clds/blender": "0.53.3", | ||
"@clds/component-theme": "0.53.3", | ||
"@clds/design-system-foundations": "0.53.3", | ||
"@clds/themes": "0.53.3", | ||
"@clds/typography": "0.53.3" | ||
}, | ||
@@ -34,5 +34,5 @@ "devDependencies": { | ||
"tsx": "^4.19.2", | ||
"@clds/dev-components": "0.53.2", | ||
"@clds/testing": "0.53.2", | ||
"@clds/testing-library": "0.53.2" | ||
"@clds/dev-components": "0.53.3", | ||
"@clds/testing": "0.53.3", | ||
"@clds/testing-library": "0.53.3" | ||
}, | ||
@@ -50,2 +50,3 @@ "files": [ | ||
"scripts": { | ||
"add-single-icon": "tsx ./scripts/add-single-icon.mts", | ||
"depcheck": "depcheck", | ||
@@ -52,0 +53,0 @@ "generate-stories": "pnpm run sort-icons-exports && tsx ./scripts/generate-stories.mts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
10751
2310496
9
No
+ Addedes-toolkit@^1.31.0
+ Added@clds/blender@0.53.3(transitive)
+ Added@clds/common-definitions@0.53.3(transitive)
+ Added@clds/component-theme@0.53.3(transitive)
+ Added@clds/design-system-foundations@0.53.3(transitive)
+ Added@clds/theme-helper@0.53.3(transitive)
+ Added@clds/themes@0.53.3(transitive)
+ Added@clds/typography@0.53.3(transitive)
- Removed@clds/blender@0.53.2(transitive)
- Removed@clds/common-definitions@0.53.2(transitive)
- Removed@clds/component-theme@0.53.2(transitive)
- Removed@clds/design-system-foundations@0.53.2(transitive)
- Removed@clds/theme-helper@0.53.2(transitive)
- Removed@clds/themes@0.53.2(transitive)
- Removed@clds/typography@0.53.2(transitive)
Updated@clds/blender@0.53.3
Updated@clds/component-theme@0.53.3
Updated@clds/themes@0.53.3
Updated@clds/typography@0.53.3