Skip to content

Commit 3ad6806

Browse files
committed
feat: update ./codegen
1 parent b62e022 commit 3ad6806

File tree

3 files changed

+35
-3
lines changed

3 files changed

+35
-3
lines changed

codegen/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const ignoredSvgPropKeys = [
8383
]
8484

8585
const camelCaseSvgProps = Object.fromEntries(
86-
Object.entries(svgProps)
86+
Object.entries(svgProps.svgElementAttributes)
8787
.filter(([elName]) => !ignoredSvgPropKeys.includes(elName)) // Exclude ignored keys
8888
.map(([elName, attrs]) => [
8989
elName,
@@ -209,4 +209,4 @@ fs.writeFileSync(htmlSimplifiedGenFile, simplifiedHtmlHeader + htmlSimplifiedTag
209209
console.log(`Writing "${svgGenFile}" ...`);
210210
fs.writeFileSync(svgGenFile, svgHeader + svgTagTypes);
211211

212-
console.log("Done.");
212+
console.log("Done.");

codegen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"dependencies": {
88
"react-html-attributes": "^1.4.6",
99
"change-case": "^5.4.4",
10-
"svg-element-attributes": "^1.3.1"
10+
"svg-element-attributes": "^2.1.0"
1111
}
1212
}

src/React/Basic/DOM/SVG.purs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4647,6 +4647,34 @@ _set'
46474647
:: ReactComponent (Record (SharedSVGProps Props_set))
46484648
_set' = unsafePerformEffect (unsafeCreateDOMComponent "set")
46494649

4650+
type Props_solidColor =
4651+
( _aria :: Object String
4652+
, _data :: Object String
4653+
, children :: Array JSX
4654+
, key :: String
4655+
, ref :: Ref (Nullable Node)
4656+
)
4657+
4658+
solidColor
4659+
:: forall attrs attrs_
4660+
. Union attrs attrs_ (SharedSVGProps Props_solidColor)
4661+
=> Record attrs
4662+
-> JSX
4663+
solidColor = element solidColor'
4664+
4665+
solidColor_ :: Array JSX -> JSX
4666+
solidColor_ children = solidColor { children }
4667+
4668+
solidColor'
4669+
:: forall attrs attrs_
4670+
. Union attrs attrs_ (SharedSVGProps Props_solidColor)
4671+
=> ReactComponent (Record attrs)
4672+
solidColor' = unsafeCoerce _solidColor'
4673+
4674+
_solidColor'
4675+
:: ReactComponent (Record (SharedSVGProps Props_solidColor))
4676+
_solidColor' = unsafePerformEffect (unsafeCreateDOMComponent "solidColor")
4677+
46504678
type Props_stop =
46514679
( _aria :: Object String
46524680
, _data :: Object String
@@ -5029,6 +5057,7 @@ type Props_symbol =
50295057
, fontWeight :: String
50305058
, glyphOrientationHorizontal :: String
50315059
, glyphOrientationVertical :: String
5060+
, height :: String
50325061
, imageRendering :: String
50335062
, kerning :: String
50345063
, key :: String
@@ -5062,8 +5091,11 @@ type Props_symbol =
50625091
, unicodeBidi :: String
50635092
, viewBox :: String
50645093
, visibility :: String
5094+
, width :: String
50655095
, wordSpacing :: String
50665096
, writingMode :: String
5097+
, x :: String
5098+
, y :: String
50675099
)
50685100

50695101
symbol

0 commit comments

Comments
 (0)