Skip to content

Commit

Permalink
fix: fix viewbox
Browse files Browse the repository at this point in the history
  • Loading branch information
irsyadadl committed Dec 23, 2024
1 parent 6f86439 commit e26dcea
Show file tree
Hide file tree
Showing 1,025 changed files with 1,026 additions and 1,025 deletions.
2 changes: 1 addition & 1 deletion dist/cjs/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/es/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/umd/index.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"prebuild": "rimraf src && rimraf dist",
"optimize-svg": "npx svgo -f ../justd-svg -o ../optimized-svg",
"build": "npm run optimize-svg && npm run svgr && node scripts/add-custom-attr.js && node scripts/generate-declarations.js && rollup -c",
"svgr": "svgr --icon --replace-attr-values '#000=none' --replace-attr-values 1em=16 --replace-attr-values 24=16 -d src -- ../optimized-svg",
"scale:16": "find ../optimized-svg -type f -name \"*.svg\" -exec sed -i '' 's/viewBox=\"0 0 24 24\"/viewBox=\"0 0 16 16\"/g' {} +",
"svgr": "npm run scale:16 && svgr --icon --replace-attr-values '#000=none' --replace-attr-values '1em=16' --replace-attr-values '24=16' -d src -- ../optimized-svg",
"analyze": "rollup -c --bundleConfigAsCjs && npx rollup-plugin-visualizer",
"pr": "npm run build && git commit -a",
"release": "export GITHUB_TOKEN=$(cat .github_token) && release-it"
Expand Down
2 changes: 1 addition & 1 deletion src/Icon4K.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIcon4K = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/Icon4KFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIcon4KFill = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAcademicCap.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAcademicCap = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAcademicCapFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAcademicCapFill = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAccessible.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAccessible = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAccessibleFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAccessibleFill = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconActionCam.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconActionCam = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconActionCamFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconActionCamFill = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAdapter = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAdapterFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAdapterFill = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAddToCart.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAddToCart = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAddToCartFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAddToCartFill = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAdjustment.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAdjustment = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAdjustmentFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAdjustmentFill = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAirpodGen3Left.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAirpodGen3Left = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAirpodGen3Right.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAirpodGen3Right = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAirpodsGen3.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAirpodsGen3 = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAirpodsGen3Chargingcase.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAirpodsGen3Chargingcase = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAlbum.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAlbum = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAlbumFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAlbumFill = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAlignmentCenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAlignmentCenter = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAlignmentCenterFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAlignmentCenterFill = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAlignmentJustify.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAlignmentJustify = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAlignmentJustifyFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAlignmentJustifyFill = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAlignmentLeft.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAlignmentLeft = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAlignmentLeftFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAlignmentLeftFill = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAlignmentRight.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAlignmentRight = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAlignmentRightFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAlignmentRightFill = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAlt.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAlt = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAltFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAltFill = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path fill="currentColor" d="M8.082 12.589H6.667l.68-2.308h.034z" />
Expand Down
2 changes: 1 addition & 1 deletion src/IconAnonymous.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAnonymous = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAnonymousFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAnonymousFill = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconApple.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconApple = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconAppleFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconAppleFill = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconArchive.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconArchive = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconArchive2.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconArchive2 = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconArchive2Fill.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconArchive2Fill = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconArchiveFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconArchiveFill = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconArrowDown.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconArrowDown = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconArrowDownFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconArrowDownFill = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconArrowDownLeft.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconArrowDownLeft = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconArrowDownLeftFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconArrowDownLeftFill = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/IconArrowDownRight.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SvgIconArrowDownRight = (props) => (
width="16"
height="16"
fill="none"
viewBox="0 0 24 24"
viewBox="0 0 16 16"
{...props}
className={`justd-icons ${props.className || "size-4"}`} data-slot={props["data-slot"] || "icon"} aria-hidden="true">
<path
Expand Down
Loading

0 comments on commit e26dcea

Please sign in to comment.