Skip to content

Commit

Permalink
fix: defaultValue is not extracted correctly from vitals
Browse files Browse the repository at this point in the history
  • Loading branch information
8845musign committed Oct 31, 2024
1 parent 20f8552 commit 8ec5a50
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
20 changes: 10 additions & 10 deletions src/components/Box/Box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
import clsx from 'clsx';
import styles from './Box.module.css';
import {
paddingVariables,
marginVariables,
radiusVariables,
colorVariable,
cssFontSizeToken,
cssLeadingToken,
colorVariable,
marginVariables,
paddingVariables,
radiusVariables,
widthVariables,
} from '../../utils/style';
import { HTMLTagname } from '../../utils/types';
import type { CustomDataAttributeProps } from '../../types/attributes';
import type {
PaddingProps,
MarginProps,
RadiusProp,
BackgroundColor,
TextType,
TextColor,
BodyFontSize,
BodyLeading,
MarginProps,
PaddingProps,
RadiusProp,
TextColor,
TextType,
WidthProps,
} from '../../types/style';
import type { CSSProperties, FC, ReactNode } from 'react';
Expand All @@ -48,7 +48,7 @@ type BaseProps = {
border?: 'gray' | 'grayThick' | 'primary' | 'primaryThick';
/**
* 幅を指定。fullは後方互換のため残している
* @defaultValue 'autp'
* @default 'auto'
*/
width?: 'full' | Width;
/**
Expand Down
4 changes: 2 additions & 2 deletions src/components/FlexItem/FlexItem.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';

import { clsx } from 'clsx';
import { CSSProperties, forwardRef, type PropsWithChildren, type HTMLAttributes } from 'react';
import { CSSProperties, forwardRef, type HTMLAttributes, type PropsWithChildren } from 'react';
import styles from './FlexItem.module.css';
import { CSSWitdh, MarginProps, PaddingProps, WidthProps } from '../../types/style';
import { marginVariables, paddingVariables } from '../../utils/style';
Expand All @@ -17,7 +17,7 @@ type AllowedDivAttributes = Omit<HTMLAttributes<HTMLDivElement>, 'className'>;
type Props = {
/**
* flexの値を指定。 growなどを指定したい場合はオブジェクトで指定
* @defaultValue none
* @default none
*/
flex?: 'none' | FlexProperty;
} & Omit<WidthProps, 'width'> &
Expand Down
6 changes: 3 additions & 3 deletions src/types/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,17 +195,17 @@ export type CSSMinWidth =
export type WidthProps = {
/**
* 幅を指定
* @defaultValue auto
* @default auto
*/
width?: CSSWitdh;
/**
* 最小幅
* @defaultValue auto
* @default auto
*/
minWidth?: CSSMinWidth;
/**
* 最大幅
* @defaultValue none
* @default none
*/
maxWidth?: CSSMaxWidth;
};

0 comments on commit 8ec5a50

Please sign in to comment.