Skip to content

Commit d8cf183

Browse files
authored
Merge pull request #133 from dev-five-git/add-property
Add property
2 parents 49d4145 + 9c3f4cb commit d8cf183

File tree

5 files changed

+14
-0
lines changed

5 files changed

+14
-0
lines changed

.changeset/calm-camels-hide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@devup-ui/react": patch
3+
---
4+
5+
Add lineClamp, willChange

.changeset/many-maps-notice.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@devup-ui/wasm": patch
3+
---
4+
5+
Add lineClamp

libs/extractor/src/extract_style/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ static MAINTAIN_VALUE_PROPERTIES: Lazy<HashSet<String>> = Lazy::new(|| {
2525
set.insert("opacity".to_string());
2626
set.insert("flex".to_string());
2727
set.insert("zIndex".to_string());
28+
set.insert("lineClamp".to_string());
2829
set.insert("fontWeight".to_string());
2930
set.insert("scale".to_string());
3031
set.insert("aspectRatio".to_string());

packages/react/src/types/props/text.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface DevupUiTextProps {
3636

3737
content?: ResponsiveValue<Property.Content>
3838

39+
lineClamp?: ResponsiveValue<Property.LineClamp>
40+
3941
typography?: TypographyKey<DevupThemeTypography>
4042
}
4143

packages/react/src/types/props/ui.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ export interface DevupUiUiProps {
1818
pointerEvents?: ResponsiveValue<Property.PointerEvents>
1919
resize?: ResponsiveValue<Property.Resize>
2020
userSelect?: ResponsiveValue<Property.UserSelect>
21+
willChange?: ResponsiveValue<Property.WillChange>
2122
}

0 commit comments

Comments
 (0)