@croquiscom/pds 8.4.0 → 8.5.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 +12 -0
- package/assets/icons/CategoryZDelivery.svg +6 -6
- package/dist/components/dropdown/DropdownInput.d.ts +5 -2
- package/dist/components/dropdown/DropdownInput.stories.d.ts +2 -1
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="
|
|
3
|
-
<path d="
|
|
4
|
-
<path d="
|
|
5
|
-
<path d="
|
|
6
|
-
<path d="
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.83333 6.33333C4.83333 6.14924 4.98257 6 5.16667 6H16.8667C17.0508 6 17.2 6.14924 17.2 6.33333V9.23332H19.1667C20.7174 9.23332 22 10.5159 22 12.0667V16.4333C22 16.6174 21.8508 16.7667 21.6667 16.7667H18.9918C19.0406 16.9473 19.0667 17.1373 19.0667 17.3333C19.0667 18.53 18.0966 19.5 16.9 19.5C15.7034 19.5 14.7333 18.53 14.7333 17.3333C14.7333 17.1373 14.7594 16.9473 14.8082 16.7667H10.5586C10.6074 16.9473 10.6335 17.1373 10.6335 17.3333C10.6335 18.53 9.66341 19.5 8.4668 19.5C7.27018 19.5 6.30013 18.53 6.30013 17.3333C6.30013 17.1373 6.32617 16.9473 6.37498 16.7667H5.16667C4.98257 16.7667 4.83333 16.6174 4.83333 16.4333C4.83333 16.2492 4.98257 16.1 5.16667 16.1H6.67725C7.05634 15.5257 7.71151 15.1333 8.46667 15.1333C9.22183 15.1333 9.87699 15.5257 10.2561 16.1H15.0773C15.3993 15.6121 15.9207 15.2555 16.5333 15.1592V6.66667H5.16667C4.98257 6.66667 4.83333 6.51743 4.83333 6.33333ZM17.2333 15.1592V9.89998H19.1667C20.3492 9.89998 21.3333 10.8841 21.3333 12.0667V16.1H18.6894C18.3673 15.6121 17.846 15.2555 17.2333 15.1592ZM8.4668 15.8333C7.63837 15.8333 6.9668 16.5049 6.9668 17.3333C6.9668 18.1618 7.63837 18.8333 8.4668 18.8333C9.29522 18.8333 9.9668 18.1618 9.9668 17.3333C9.9668 16.5049 9.29522 15.8333 8.4668 15.8333ZM16.9 15.8333C16.0716 15.8333 15.4 16.5049 15.4 17.3333C15.4 18.1618 16.0716 18.8333 16.9 18.8333C17.7284 18.8333 18.4 18.1618 18.4 17.3333C18.4 16.5049 17.7284 15.8333 16.9 15.8333Z" fill="#363644"/>
|
|
3
|
+
<path d="M2 9.10002C2 8.91592 2.14924 8.76668 2.33333 8.76668H5.16667C5.35076 8.76668 5.5 8.91592 5.5 9.10002C5.5 9.28411 5.35076 9.43335 5.16667 9.43335H2.33333C2.14924 9.43335 2 9.28411 2 9.10002Z" fill="#363644"/>
|
|
4
|
+
<path d="M3.0332 11.1333C3.0332 10.9492 3.18244 10.8 3.36654 10.8H6.6332C6.8173 10.8 6.96654 10.9492 6.96654 11.1333C6.96654 11.3174 6.8173 11.4666 6.6332 11.4666H3.36654C3.18244 11.4666 3.0332 11.3174 3.0332 11.1333Z" fill="#363644"/>
|
|
5
|
+
<path d="M2 13.1667C2 12.9826 2.14924 12.8333 2.33333 12.8333H6.16667C6.35076 12.8333 6.5 12.9826 6.5 13.1667C6.5 13.3508 6.35076 13.5 6.16667 13.5H2.33333C2.14924 13.5 2 13.3508 2 13.1667Z" fill="#363644"/>
|
|
6
|
+
<path d="M10.2865 9.72698V8.5H13.7L12.1393 12.5202H13.6134V13.75H10.2L11.7721 9.72698H10.2865Z" fill="#363644"/>
|
|
7
7
|
</svg>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode, ReactElement } from 'react';
|
|
2
2
|
import { AriaFocusProps } from '../../types/common';
|
|
3
3
|
import { DropdownProps } from './Dropdown';
|
|
4
|
+
import { IconProps } from '../icons/generated';
|
|
4
5
|
export interface DropdownInputOption<OptionValue> {
|
|
5
6
|
/**
|
|
6
7
|
* input 영역에 텍스트 형태로 노출되고, 자동 완성을 위해 사용되는 문자열 값입니다.
|
|
@@ -22,6 +23,8 @@ export interface DropdownInputProps<OptionValue> extends Omit<DropdownProps<Opti
|
|
|
22
23
|
* options에 없는 값을 허용할 지 여부입니다.
|
|
23
24
|
*/
|
|
24
25
|
allowCustomValue?: boolean;
|
|
26
|
+
startElement?: ReactElement<IconProps> | ReactNode;
|
|
27
|
+
endElement?: ReactElement<IconProps> | ReactNode;
|
|
25
28
|
/**
|
|
26
29
|
* 입력된 검색결과를 전달합니다.
|
|
27
30
|
*/
|
|
@@ -31,4 +34,4 @@ export interface DropdownInputProps<OptionValue> extends Omit<DropdownProps<Opti
|
|
|
31
34
|
keyExtractor?: (item: DropdownInputOption<OptionValue>, index: number) => string | number;
|
|
32
35
|
optionFilter?: (inputValue: string, item: DropdownInputOption<OptionValue>, index: number) => boolean;
|
|
33
36
|
}
|
|
34
|
-
export declare const DropdownInput: <OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, unstableFocusVisible, allowCustomValue, keyExtractor, optionFilter, autoPlacement: autoPlacementProps, onSearch, onChange, }: DropdownInputProps<OptionValue> & AriaFocusProps) => JSX.Element;
|
|
37
|
+
export declare const DropdownInput: <OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, unstableFocusVisible, allowCustomValue, keyExtractor, optionFilter, autoPlacement: autoPlacementProps, startElement, endElement, onSearch, onChange, }: DropdownInputProps<OptionValue> & AriaFocusProps) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
3
|
import { DropdownInput } from './DropdownInput';
|
|
4
|
-
declare const _default: ComponentMeta<(<OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, unstableFocusVisible, allowCustomValue, keyExtractor, optionFilter, autoPlacement: autoPlacementProps, onSearch, onChange, }: import("./DropdownInput").DropdownInputProps<OptionValue> & import("../../types/common").AriaFocusProps) => JSX.Element)>;
|
|
4
|
+
declare const _default: ComponentMeta<(<OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, unstableFocusVisible, allowCustomValue, keyExtractor, optionFilter, autoPlacement: autoPlacementProps, startElement, endElement, onSearch, onChange, }: import("./DropdownInput").DropdownInputProps<OptionValue> & import("../../types/common").AriaFocusProps) => JSX.Element)>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Base: any;
|
|
7
7
|
export declare const Error: any;
|
|
@@ -13,3 +13,4 @@ export declare const Disabled: any;
|
|
|
13
13
|
export declare const Controlled: ComponentStory<typeof DropdownInput>;
|
|
14
14
|
export declare const TestComposition: ComponentStory<typeof DropdownInput>;
|
|
15
15
|
export declare const AllowCustomValue: ComponentStory<typeof DropdownInput>;
|
|
16
|
+
export declare const Search: ComponentStory<typeof DropdownInput>;
|