Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/six-owls-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@devup-ui/react": patch
---

Add maskPos, maskImg
4 changes: 4 additions & 0 deletions libs/css/src/constant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pub(super) static GLOBAL_STYLE_PROPERTY: phf::Map<&str, &[&str]> = phf_map! {
"bgClip" => &["background-clip"],
"bgColor" => &["background-color"],
"bgImage" => &["background-image"],
"bgImg" => &["background-image"],
"bgOrigin" => &["background-origin"],
"bgPosition" => &["background-position"],
"bgPositionX" => &["background-position-x"],
Expand All @@ -38,6 +39,7 @@ pub(super) static GLOBAL_STYLE_PROPERTY: phf::Map<&str, &[&str]> = phf_map! {
"bgRepeat" => &["background-repeat"],
"bgSize" => &["background-size"],
"bgBlendMode" => &["background-blend-mode"],
"backgroundImg" => &["background-image"],
"animationDir" => &["animation-direction"],
"flexDir" => &["flex-direction"],
"pos" => &["position"],
Expand Down Expand Up @@ -68,6 +70,8 @@ pub(super) static GLOBAL_STYLE_PROPERTY: phf::Map<&str, &[&str]> = phf_map! {
"borderRightRadius" => &["border-top-right-radius", "border-bottom-right-radius"],
"objectPos" => &["object-position"],
"offsetPos" => &["offset-position"],
"maskPos" => &["mask-position"],
"maskImg" => &["mask-image"],
};
pub(super) static OPTIMIZE_MULTI_CSS_VALUE_PROPERTY: phf::Set<&str> = phf_set! {
"font-family",
Expand Down
2 changes: 2 additions & 0 deletions packages/react/src/types/props/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ export interface DevupUiBackgroundProps {
bgRepeat?: ResponsiveValue<Property.BackgroundRepeat>
bgSize?: ResponsiveValue<Property.BackgroundSize>
bgBlendMode?: ResponsiveValue<Property.BackgroundBlendMode>
backgroundImg?: ResponsiveValue<Property.BackgroundImage>
bgImg?: ResponsiveValue<Property.BackgroundImage>
}
2 changes: 2 additions & 0 deletions packages/react/src/types/props/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import type { DevupUiBoxModelProps } from './box-model'
import type { DevupUiBoxSizingProps } from './box-sizing'
import type { DevupUiFlexProps } from './flex'
import type { DevupUiImageProps } from './image'
import type { DevupUiMaskProps } from './mask'
import type { DevupUiMotionPathProps } from './motion-path'
import type { DevupUiPositionProps } from './position'
import type { DevupSelectorProps, DevupThemeSelectorProps } from './selector'
Expand All @@ -22,6 +23,7 @@ export interface DevupShortcutsProps
DevupUiImageProps,
DevupUiMotionPathProps,
DevupUiPositionProps,
DevupUiMaskProps,
DevupUiTextProps {}

export type DevupCommonProps = Merge<
Expand Down
8 changes: 8 additions & 0 deletions packages/react/src/types/props/mask.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import type { Property } from 'csstype'

import type { ResponsiveValue } from '../responsive-value'

export interface DevupUiMaskProps {
maskPos?: ResponsiveValue<Property.MaskPosition>
maskImg?: ResponsiveValue<Property.MaskImage>
}