diff --git a/.changeset/six-owls-thank.md b/.changeset/six-owls-thank.md new file mode 100644 index 00000000..f65b9a15 --- /dev/null +++ b/.changeset/six-owls-thank.md @@ -0,0 +1,5 @@ +--- +"@devup-ui/react": patch +--- + +Add maskPos, maskImg diff --git a/libs/css/src/constant.rs b/libs/css/src/constant.rs index c58aa4ba..348ac726 100644 --- a/libs/css/src/constant.rs +++ b/libs/css/src/constant.rs @@ -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"], @@ -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"], @@ -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", diff --git a/packages/react/src/types/props/background.ts b/packages/react/src/types/props/background.ts index 8590ebd7..22dd7920 100644 --- a/packages/react/src/types/props/background.ts +++ b/packages/react/src/types/props/background.ts @@ -19,4 +19,6 @@ export interface DevupUiBackgroundProps { bgRepeat?: ResponsiveValue bgSize?: ResponsiveValue bgBlendMode?: ResponsiveValue + backgroundImg?: ResponsiveValue + bgImg?: ResponsiveValue } diff --git a/packages/react/src/types/props/index.ts b/packages/react/src/types/props/index.ts index 76f68bc7..cb245892 100644 --- a/packages/react/src/types/props/index.ts +++ b/packages/react/src/types/props/index.ts @@ -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' @@ -22,6 +23,7 @@ export interface DevupShortcutsProps DevupUiImageProps, DevupUiMotionPathProps, DevupUiPositionProps, + DevupUiMaskProps, DevupUiTextProps {} export type DevupCommonProps = Merge< diff --git a/packages/react/src/types/props/mask.ts b/packages/react/src/types/props/mask.ts new file mode 100644 index 00000000..c40f54d8 --- /dev/null +++ b/packages/react/src/types/props/mask.ts @@ -0,0 +1,8 @@ +import type { Property } from 'csstype' + +import type { ResponsiveValue } from '../responsive-value' + +export interface DevupUiMaskProps { + maskPos?: ResponsiveValue + maskImg?: ResponsiveValue +}