@croquiscom/pds 8.18.0 → 8.19.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/dist/components/color-picker/ColorChip.d.ts +14 -0
- package/dist/components/color-picker/ColorPicker.d.ts +34 -0
- package/dist/components/color-picker/ColorPicker.stories.d.ts +7 -0
- package/dist/components/color-picker/ColorPickerTrigger.d.ts +8 -0
- package/dist/components/color-picker/Controller.d.ts +8 -0
- package/dist/components/color-picker/HslController.d.ts +7 -0
- package/dist/components/color-picker/Preset.d.ts +11 -0
- package/dist/components/color-picker/RgbController.d.ts +7 -0
- package/dist/components/color-picker/index.d.ts +2 -0
- package/dist/components/color-picker/styles.d.ts +13 -0
- package/dist/components/color-picker/types.d.ts +10 -0
- package/dist/components/color-picker/utils.d.ts +4 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.es.js +8 -8
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ColorChipProps {
|
|
3
|
+
color?: string;
|
|
4
|
+
displayedColor?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
selected?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onClick: (color: string) => void;
|
|
9
|
+
}
|
|
10
|
+
interface ColorChipInstance {
|
|
11
|
+
focus: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const ColorChip: React.ForwardRefExoticComponent<ColorChipProps & React.RefAttributes<ColorChipInstance>>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ColorPickerSize, PresetType } from './types';
|
|
3
|
+
export type ColorPickerLayout = 'custom' | 'preset';
|
|
4
|
+
export interface ColorPickerProps {
|
|
5
|
+
/**
|
|
6
|
+
* hex color code (ex: #FFFFFF)
|
|
7
|
+
*/
|
|
8
|
+
value?: string;
|
|
9
|
+
/**
|
|
10
|
+
* @param code hex color code (ex: FFFFFF, #FFFFFF6D)
|
|
11
|
+
*/
|
|
12
|
+
onChange(code: string): void;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @default medium
|
|
16
|
+
*/
|
|
17
|
+
size?: ColorPickerSize;
|
|
18
|
+
/**
|
|
19
|
+
* preset props이 없으면 layout=preset이 적용되지 않습니다.
|
|
20
|
+
* @default custom
|
|
21
|
+
*/
|
|
22
|
+
layout?: ColorPickerLayout;
|
|
23
|
+
alpha?: boolean;
|
|
24
|
+
preset?: PresetType[];
|
|
25
|
+
resetText?: string;
|
|
26
|
+
settingText?: string;
|
|
27
|
+
/**
|
|
28
|
+
* 기본값으로 [ZIndexOrder](https://github.com/croquiscom/pds/blob/main/src/styles/zIndex.ts) 규칙을 적용합니다.
|
|
29
|
+
* @default 1035
|
|
30
|
+
*/
|
|
31
|
+
zIndex?: number;
|
|
32
|
+
className?: string;
|
|
33
|
+
}
|
|
34
|
+
export declare const ColorPicker: React.FC<ColorPickerProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ColorPicker, ColorPickerProps } from './ColorPicker';
|
|
3
|
+
declare const meta: Meta<typeof ColorPicker>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<ColorPickerProps>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const State: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { ColorPickerSize } from './types';
|
|
3
|
+
export interface ColorPickerTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
color?: string;
|
|
5
|
+
opened?: boolean;
|
|
6
|
+
size?: ColorPickerSize;
|
|
7
|
+
}
|
|
8
|
+
export declare const ColorPickerTrigger: React.ForwardRefExoticComponent<ColorPickerTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PresetType } from './types';
|
|
3
|
+
export interface PresetProps {
|
|
4
|
+
/**
|
|
5
|
+
* @desc hex 컬러 코드 (ex: #000000)
|
|
6
|
+
*/
|
|
7
|
+
selected_color?: string;
|
|
8
|
+
onSelect(color: string): void;
|
|
9
|
+
preset?: PresetType[];
|
|
10
|
+
}
|
|
11
|
+
export declare const Preset: React.FC<PresetProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const checker: import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const NoArrowNumberInput: import("@emotion/styled").StyledComponent<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "width" | "size"> & import("../input/InputBase").InputBaseType & import("../../types/common").AriaFocusProps & import("../input/InputAffix").InputAffixProps & import("react").RefAttributes<HTMLInputElement> & {
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
}, {}, {}>;
|
|
6
|
+
export declare const Unit: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme;
|
|
8
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
10
|
+
export declare const InputContainer: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme;
|
|
12
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
|
|
13
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|