@croquiscom/pds 4.4.1 → 4.5.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,18 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 4.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 134fef2: add arrow=false into Popover
8
+ - 64082ab: add DraggableList
9
+
10
+ ## 4.4.2
11
+
12
+ ### Patch Changes
13
+
14
+ - 758ac24: - Dropdown focusIndex 버그 수정
15
+
3
16
  ## 4.4.1
4
17
 
5
18
  ### Patch Changes
@@ -0,0 +1,3 @@
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="M13.7656 2.4696L21.5303 10.2343L20.4697 11.295L19.4808 10.3061L13.859 15.9279L13.6309 19.6342C13.6128 19.9287 13.4238 20.1851 13.1479 20.2896C12.8721 20.394 12.5606 20.3271 12.352 20.1185L8.64704 16.4135L3.53031 21.5303L2.46965 20.4696L7.58638 15.3529L3.88141 11.6479C3.67283 11.4393 3.60589 11.1279 3.71034 10.852C3.8148 10.5761 4.07126 10.3871 4.36568 10.369L8.072 10.1409L13.6938 4.51912L12.7049 3.53026L13.7656 2.4696Z" fill="#363644"/>
3
+ </svg>
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconProps } from '.';
3
+ declare const SvgPinFill: ({ size, color, secondaryColor, ...props }: IconProps) => JSX.Element;
4
+ export default SvgPinFill;
@@ -172,6 +172,7 @@ export { default as IconPicture } from './Picture';
172
172
  export { default as IconPictureX } from './PictureX';
173
173
  export { default as IconPin } from './Pin';
174
174
  export { default as IconPinColor } from './PinColor';
175
+ export { default as IconPinFill } from './PinFill';
175
176
  export { default as IconPlayFill } from './PlayFill';
176
177
  export { default as IconPlus } from './Plus';
177
178
  export { default as IconRefresh } from './Refresh';
@@ -28,3 +28,5 @@ export * from './pagination';
28
28
  export * from './file-upload';
29
29
  export * from './table';
30
30
  export * from './drawer';
31
+ export * from './list';
32
+ export * from './list-item';
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { ListItemProps } from '../list-item';
3
+ export interface ListProps {
4
+ items: Array<Omit<ListItemProps, 'draggable' | 'index'>>;
5
+ /**
6
+ * 항목을 드래그해서 순서를 바꿀 수 있는 기능 확장 여부
7
+ * @default false
8
+ */
9
+ draggable?: boolean;
10
+ /**
11
+ * 드래그될 경우 변경된 items값을 파라미터로 넘겨준다
12
+ * @see draggable
13
+ */
14
+ onChange?: (items: Array<Omit<ListItemProps, 'draggable' | 'index'>>) => void;
15
+ width?: number;
16
+ }
17
+ export declare const List: React.FC<ListProps>;
@@ -0,0 +1,7 @@
1
+ import { ComponentMeta } from '@storybook/react';
2
+ import React from 'react';
3
+ declare const _default: ComponentMeta<React.FC<import("./List").ListProps>>;
4
+ export default _default;
5
+ export declare const Base: any;
6
+ export declare const Draggable: any;
7
+ export declare const FullCase: any;
@@ -0,0 +1 @@
1
+ export * from './List';
@@ -0,0 +1,35 @@
1
+ import React, { ReactNode } from 'react';
2
+ export interface ListItemProps<T = string> {
3
+ id: T;
4
+ text: ReactNode;
5
+ disabled?: boolean;
6
+ /**
7
+ * 항목을 드래그해서 순서를 바꿀 수 있는 기능 확장 여부
8
+ * @default false
9
+ */
10
+ draggable?: boolean;
11
+ /**
12
+ * draggable=true이면, index는 필수값이 된다
13
+ * @see draggable
14
+ */
15
+ index?: number;
16
+ /**
17
+ * isOn 정의시 토글버튼을 사용한다 (Togglable)
18
+ */
19
+ isOn?: boolean;
20
+ /**
21
+ * isOn 정의시 onToggle은 필수값이 된다
22
+ * @see isOn
23
+ */
24
+ onToggle?: (isOn: boolean, index?: number) => void;
25
+ /**
26
+ * fixed 정의시 핀버튼을 사용한다 (Pinnable)
27
+ */
28
+ fixed?: boolean;
29
+ /**
30
+ * fixed 정의시 onPin은 필수값이 된다
31
+ * @see fixed
32
+ */
33
+ onPin?: (fixed: boolean, index?: number) => void;
34
+ }
35
+ export declare const ListItem: React.FC<ListItemProps>;
@@ -0,0 +1,11 @@
1
+ import { ComponentMeta } from '@storybook/react';
2
+ import React from 'react';
3
+ import { ListItemProps } from './ListItem';
4
+ declare const _default: ComponentMeta<React.FC<ListItemProps<string>>>;
5
+ export default _default;
6
+ export declare const Base: any;
7
+ export declare const Draggable: any;
8
+ export declare const Disabled: any;
9
+ export declare const Togglable: any;
10
+ export declare const Pinnable: any;
11
+ export declare const FullCase: any;
@@ -0,0 +1 @@
1
+ export * from './ListItem';
@@ -0,0 +1,5 @@
1
+ export declare const getItemStyle: (isDragging: boolean, draggableStyle: any) => any;
2
+ export declare const item_base_css: import("@emotion/utils").SerializedStyles;
3
+ export declare const pin_base_css: import("@emotion/utils").SerializedStyles;
4
+ export declare const getStylesByPinned: (isFixed: boolean) => import("@emotion/utils").SerializedStyles;
5
+ export declare const three_bars_base_css: import("@emotion/utils").SerializedStyles;
@@ -44,6 +44,14 @@ export interface PopoverProps {
44
44
  * @default true
45
45
  */
46
46
  canClickOutside?: boolean;
47
+ /**
48
+ * 화살표 사용 여부
49
+ * - false로 지정할 경우, 화살표가 빠지고 border-radius와 box-shadow가 적용됩니다.
50
+ * - placement의 기본값은 'bottom-start' 로 변경 됩니다. (자동 배치 되지 않음)
51
+ * - openerTriggerEvent의 기본값은 'click' 로 변경 됩니다.
52
+ * @default true
53
+ */
54
+ arrow?: boolean;
47
55
  }
48
56
  export declare const Popover: React.FC<PopoverProps>;
49
57
  export {};
@@ -18,3 +18,13 @@ export declare const TemplateWithCloseButton: {
18
18
  };
19
19
  };
20
20
  export declare const HidingFullyClippedReferenceElements: () => JSX.Element;
21
+ export declare const NoArrow: {
22
+ (): JSX.Element;
23
+ parameters: {
24
+ docs: {
25
+ description: {
26
+ story: string;
27
+ };
28
+ };
29
+ };
30
+ };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const PopoverRoundedBase: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme;
4
+ as?: import("react").ElementType<any>;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;