@acyui/components 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,7 @@ export type ContainerSize = 'small' | 'medium' | 'large' | 'extraLarge' | 'full'
3
3
  export interface ContainerProps {
4
4
  children: React.ReactNode;
5
5
  size?: ContainerSize;
6
+ center?: boolean;
6
7
  className?: string;
7
8
  style?: React.CSSProperties;
8
9
  }
@@ -1,4 +1,4 @@
1
1
  import { default as React } from 'react';
2
2
  import { FlexProps } from './types';
3
3
  export type { FlexAlign, FlexDirection, FlexGap, FlexJustify, FlexOwnProps, FlexProps, FlexWrap } from './types';
4
- export declare const Flex: <TElement extends React.ElementType = "div">({ children, direction, align, justify, wrap, gap, className, style, as, ...props }: FlexProps<TElement>) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const Flex: <TElement extends React.ElementType = "div">({ children, direction, align, justify, wrap, gap, className, style, as, width, height, ...props }: FlexProps<TElement>) => import("react/jsx-runtime").JSX.Element;
@@ -12,5 +12,7 @@ export interface FlexOwnProps {
12
12
  justify?: FlexJustify;
13
13
  wrap?: FlexWrap;
14
14
  gap?: FlexGap;
15
+ width?: number | string;
16
+ height?: number | string;
15
17
  }
16
18
  export type FlexProps<TElement extends React.ElementType = 'div'> = PolymorphicComponentProps<TElement, FlexOwnProps>;
@@ -1,10 +1,10 @@
1
1
  import type * as React from 'react';
2
2
  export type ImageObjectFit = 'cover' | 'contain' | 'fill' | 'none' | 'scaleDown';
3
3
  export type ImageRadius = 'small' | 'medium' | 'large' | 'full';
4
- export interface ImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
4
+ export interface ImageProps extends Omit<React.ImgHTMLAttributes<HTMLImageElement>, 'width' | 'height'> {
5
5
  objectFit?: ImageObjectFit;
6
6
  radius?: ImageRadius;
7
7
  fallback?: React.ReactNode;
8
- width?: number;
9
- height?: number;
8
+ width?: number | string;
9
+ height?: number | string;
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acyui/components",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Acyui React component library",
5
5
  "keywords": [
6
6
  "react",