@croquiscom/pds 8.15.0 → 8.16.0

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,11 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 8.16.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d36d280: SelectChip 추가
8
+
3
9
  ## 8.15.0
4
10
 
5
11
  ### Minor Changes
@@ -0,0 +1,9 @@
1
+ import React, { ButtonHTMLAttributes, ReactElement } from 'react';
2
+ import { IconProps } from '../icons/generated';
3
+ export interface ChipProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type' | 'children'> {
4
+ label: string;
5
+ selected?: boolean;
6
+ /** label 좌측 렌더링될 Icon (size, 변경 가능한 color 고정) */
7
+ leftIcon?: ReactElement<IconProps>;
8
+ }
9
+ export declare const SelectChip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { SelectChip } from './SelectChip';
3
+ declare const meta: Meta<typeof SelectChip>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof SelectChip>;
6
+ export declare const AllState: Story;
7
+ export declare const Base: Story;
@@ -4,3 +4,5 @@ export declare const input_chip_x_enabled_css: import("@emotion/utils").Serializ
4
4
  export declare const input_chip_x_disabled_css: import("@emotion/utils").SerializedStyles;
5
5
  export declare const input_chip_height_size_css: Record<InputSize, string>;
6
6
  export declare const input_chip_size_css: Record<InputSize, string>;
7
+ export declare const select_chip_base_css: import("@emotion/utils").SerializedStyles;
8
+ export declare const select_chip_selected_css: import("@emotion/utils").SerializedStyles;