@croquiscom/pds 0.22.0 → 0.23.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.
@@ -1,14 +1,19 @@
1
1
  import React, { InputHTMLAttributes, ReactElement, ReactNode } from 'react';
2
+ import { InputAffixProps } from './InputAffix';
2
3
  import { InputAlignment, InputStatus } from './types';
3
4
  import { IconProps } from '../icons/generated';
4
5
  export interface InputBaseType {
5
6
  alignment?: InputAlignment;
6
7
  /** @default info */
7
8
  status?: InputStatus;
8
- /** 좌측 영역에 렌더링 될 요소 */
9
+ /** @desc 좌측 영역에 렌더링 될 요소 */
9
10
  startElement?: ReactElement<IconProps> | ReactNode;
10
- /** 우측 영역에 렌더링 될 요소 */
11
+ /** @desc 우측 영역에 렌더링 될 요소 */
11
12
  endElement?: ReactElement<IconProps> | ReactNode;
13
+ /** @desc prefix */
14
+ leftAddon?: InputAffixProps['prefix'];
15
+ /** @desc suffix */
16
+ rightAddon?: InputAffixProps['suffix'];
12
17
  }
13
18
  export declare type InputBaseProps = InputHTMLAttributes<HTMLInputElement> & InputBaseType;
14
19
  export declare const InputBase: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & InputBaseType & React.RefAttributes<HTMLInputElement>>;
@@ -10,7 +10,7 @@ export declare const input_default_style: {
10
10
  };
11
11
  export declare const input_error_style: {
12
12
  border: string;
13
- '&:focus, &:hover': {
13
+ '&:focus, &:hover, &:focus-within': {
14
14
  border: string;
15
15
  };
16
16
  };
@@ -25,7 +25,7 @@ export declare const input_disabled_style: {
25
25
  backgroundColor: string;
26
26
  border: string;
27
27
  color: string;
28
- '&:focus, &:hover': {
28
+ '&:focus, &:hover, &:focus-within': {
29
29
  border: string;
30
30
  };
31
31
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@croquiscom/pds",
3
- "version": "0.22.0",
3
+ "version": "0.23.1",
4
4
  "description": "Design system for Zigzag's Partner Center",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.es.js",