@croquiscom/pds 8.33.0 → 8.34.1

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 8.34.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 7f73851: Modal contentProps div prop 받을 수 있도록 수정
8
+
9
+ ## 8.34.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 6fa7cd4: Switch 고정너비로 변경, 너비값 옵션 추가, animation추가
14
+
3
15
  ## 8.33.0
4
16
 
5
17
  ### Minor Changes
@@ -1,11 +1,11 @@
1
- import React, { ReactNode } from 'react';
1
+ import React, { ReactNode, HTMLAttributes } from 'react';
2
2
  import { ButtonProps } from '../button';
3
3
  import { CSSValueWithLength, SpaceProps } from '../../styles';
4
4
  import { ModalOverlayBaseProps, ModalBaseCancelReason } from './ModalOverlay';
5
5
  import { ModalActionButtonType } from './ModalActionButton';
6
6
  export type ModalButtonProps = Omit<ButtonProps, 'onClick'>;
7
7
  export type ModalCancelReason = ModalBaseCancelReason;
8
- export interface ModalContentProps extends SpaceProps {
8
+ export interface ModalContentProps extends SpaceProps, HTMLAttributes<HTMLDivElement> {
9
9
  maxHeight?: CSSValueWithLength;
10
10
  scrollable?: boolean;
11
11
  }
@@ -21,3 +21,4 @@ export declare const CustomMaxHeight: Story;
21
21
  export declare const Scrollable: Story;
22
22
  export declare const AutoFocusButton: Story;
23
23
  export declare const NestingFloatingElements: Story;
24
+ export declare const FitContent: Story;
@@ -9,6 +9,10 @@ export interface SwitchProps extends ButtonHTMLAttributes<HTMLButtonElement> {
9
9
  * @default small
10
10
  */
11
11
  size?: SwitchSize;
12
+ /**
13
+ * @default small
14
+ */
15
+ width?: number;
12
16
  /**
13
17
  * @default ON
14
18
  */
@@ -4,3 +4,6 @@ declare const meta: Meta<typeof Switch>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof Switch>;
6
6
  export declare const Base: Story;
7
+ export declare const DefaultLong: Story;
8
+ export declare const FixedWidth: Story;
9
+ export declare const EmptyLabel: Story;
@@ -1,4 +1,8 @@
1
1
  import { SwitchSize } from './Switch';
2
2
  export declare const switch_base_css: import("@emotion/utils").SerializedStyles;
3
- export declare const getStylesByActive: (isOn: boolean) => import("@emotion/utils").SerializedStyles;
4
- export declare const getStyleByProps: (size: SwitchSize, isOn: boolean) => import("@emotion/utils").SerializedStyles;
3
+ export declare const getStyleByProps: ({ size, isOn, width, hasLabel, }: {
4
+ size: SwitchSize;
5
+ isOn: boolean;
6
+ width?: number;
7
+ hasLabel: boolean;
8
+ }) => import("@emotion/utils").SerializedStyles;
@@ -96,7 +96,7 @@ export interface DataTableProps<DataType> {
96
96
  * Row 배경색을 지정하는 함수 혹은 컬러값을 전달합니다.
97
97
  * hover는 auto code 정책을 따릅니다.
98
98
  */
99
- rowColor?: (row: DataType, index: number) => string | string;
99
+ rowColor?: (row: DataType, index: number) => (string | undefined) | string;
100
100
  /**
101
101
  * Sort 이벤트, 대상 Column 아이디를 전달합니다.
102
102
  */
@@ -5,7 +5,7 @@ interface DataTableRowsProps<DataType> extends Pick<DataTableProps<DataType>, 'c
5
5
  tableContainerAttribute: number;
6
6
  allSelected?: boolean;
7
7
  selectedRows?: DataTableRowsType<DataType>;
8
- rowColor?: (row: DataTableRowType<DataType>, index: number) => string | string;
8
+ rowColor?: (row: DataTableRowType<DataType>, index: number) => (string | undefined) | string;
9
9
  onSelectedRow?: (action: SelectRowAction<DataType>) => void;
10
10
  }
11
11
  export declare const DataTableRows: <DataType extends object = any>({ columns, rows, loading, selectableRows, clickableRows, selectedRows, noDataText, cellHoverStyle, cellDisabledStyle, tableContainerAttribute, resize, onSelectedRow, rowColor, }: DataTableRowsProps<DataType>) => React.JSX.Element;