Skip to content

Commit 6c25c5d

Browse files
committed
Add mask shortcut
1 parent e90377a commit 6c25c5d

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

.changeset/six-owls-thank.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 maskPos, maskImg

libs/css/src/constant.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ pub(super) static GLOBAL_STYLE_PROPERTY: phf::Map<&str, &[&str]> = phf_map! {
6868
"borderRightRadius" => &["border-top-right-radius", "border-bottom-right-radius"],
6969
"objectPos" => &["object-position"],
7070
"offsetPos" => &["offset-position"],
71+
"maskPos" => &["mask-position"],
72+
"maskImg" => &["mask-image"],
7173
};
7274
pub(super) static OPTIMIZE_MULTI_CSS_VALUE_PROPERTY: phf::Set<&str> = phf_set! {
7375
"font-family",

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import type { DevupUiBoxModelProps } from './box-model'
88
import type { DevupUiBoxSizingProps } from './box-sizing'
99
import type { DevupUiFlexProps } from './flex'
1010
import type { DevupUiImageProps } from './image'
11+
import type { DevupUiMaskProps } from './mask'
1112
import type { DevupUiMotionPathProps } from './motion-path'
1213
import type { DevupUiPositionProps } from './position'
1314
import type { DevupSelectorProps, DevupThemeSelectorProps } from './selector'
@@ -22,6 +23,7 @@ export interface DevupShortcutsProps
2223
DevupUiImageProps,
2324
DevupUiMotionPathProps,
2425
DevupUiPositionProps,
26+
DevupUiMaskProps,
2527
DevupUiTextProps {}
2628

2729
export type DevupCommonProps = Merge<
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import type { Property } from 'csstype'
2+
3+
import type { ResponsiveValue } from '../responsive-value'
4+
5+
export interface DevupUiMaskProps {
6+
maskPos?: ResponsiveValue<Property.MaskPosition>
7+
maskImg?: ResponsiveValue<Property.MaskImage>
8+
}

0 commit comments

Comments
 (0)