@weing-dev/ui-kit-primitive 0.0.3 → 0.0.5
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/dist/components/Calendar/Calendar.d.ts +1 -1
- package/dist/components/Chips/Chips.d.ts +1 -1
- package/dist/components/Editor/Editor.context.d.ts +21 -3
- package/dist/components/Editor/Editor.d.ts +8 -6
- package/dist/components/Editor/constants/editor.constants.d.ts +24 -0
- package/dist/components/Editor/modules/ImageResize.d.ts +19 -0
- package/dist/components/Editor/modules/MediaResize.d.ts +19 -0
- package/dist/components/Editor/modules/index.d.ts +7 -0
- package/dist/components/Form/Switch/Switch.context.d.ts +2 -0
- package/dist/components/Icons/AddOutlined.d.ts +3 -0
- package/dist/components/Icons/ArrowDown.d.ts +3 -0
- package/dist/components/Icons/ArrowDropDown.d.ts +3 -0
- package/dist/components/Icons/ArrowUp.d.ts +3 -0
- package/dist/components/Icons/ArticleOutlined.d.ts +3 -0
- package/dist/components/Icons/CalendarMonth.d.ts +3 -0
- package/dist/components/Icons/CalendarToday.d.ts +3 -0
- package/dist/components/Icons/Category.d.ts +3 -0
- package/dist/components/Icons/CategoryOutlined.d.ts +3 -0
- package/dist/components/Icons/Celebration.d.ts +3 -0
- package/dist/components/Icons/CheckBadge.d.ts +3 -0
- package/dist/components/Icons/CheckList.d.ts +3 -0
- package/dist/components/Icons/ChevronLeft.d.ts +3 -0
- package/dist/components/Icons/ChromeReaderMode.d.ts +3 -0
- package/dist/components/Icons/CreditCard.d.ts +3 -0
- package/dist/components/Icons/CropOriginal.d.ts +3 -0
- package/dist/components/Icons/DensityMediumRound.d.ts +3 -0
- package/dist/components/Icons/DoubleArrowDown.d.ts +3 -0
- package/dist/components/Icons/DoubleArrowUp.d.ts +3 -0
- package/dist/components/Icons/EditNoteOutlined.d.ts +3 -0
- package/dist/components/Icons/FeedbackOutlined.d.ts +3 -0
- package/dist/components/Icons/FileDownloadDoneFilled.d.ts +3 -0
- package/dist/components/Icons/FileDownloadOutlined.d.ts +3 -0
- package/dist/components/Icons/HandshakeRound.d.ts +3 -0
- package/dist/components/Icons/Home.d.ts +3 -0
- package/dist/components/Icons/ImportExport.d.ts +3 -0
- package/dist/components/Icons/InfoFilled.d.ts +3 -0
- package/dist/components/Icons/LocalActivityOutlined.d.ts +3 -0
- package/dist/components/Icons/LocalHospital.d.ts +3 -0
- package/dist/components/Icons/MinusOutlined.d.ts +3 -0
- package/dist/components/Icons/Notification.d.ts +3 -0
- package/dist/components/Icons/Payment.d.ts +3 -0
- package/dist/components/Icons/PersonAddAlt.d.ts +3 -0
- package/dist/components/Icons/PersonFilled.d.ts +3 -0
- package/dist/components/Icons/PersonOutline.d.ts +3 -0
- package/dist/components/Icons/ScheduleRound.d.ts +3 -0
- package/dist/components/Icons/Search2.d.ts +3 -0
- package/dist/components/Icons/SettingFilled.d.ts +3 -0
- package/dist/components/Icons/TrashOutlined.d.ts +3 -0
- package/dist/components/Icons/index.d.ts +39 -0
- package/dist/components/LNB/LNB.colors.d.ts +91 -0
- package/dist/index-BL3MWQXq.js +255 -0
- package/dist/index.css +2 -2
- package/dist/index.js +6452 -5404
- package/dist/index.umd.cjs +22 -22
- package/dist/static/icon/ArrowDown.svg +5 -0
- package/dist/static/icon/ArrowUp.svg +5 -0
- package/dist/static/icon/CalendarMonth.svg +5 -0
- package/dist/static/icon/CalendarToday.svg +5 -0
- package/dist/static/icon/Category.svg +9 -0
- package/dist/static/icon/Celebration.svg +11 -0
- package/dist/static/icon/CheckList.svg +5 -0
- package/dist/static/icon/ChromeReaderMode.svg +5 -0
- package/dist/static/icon/CreditCard.svg +5 -0
- package/dist/static/icon/CropOriginal.svg +5 -0
- package/dist/static/icon/Home.svg +5 -0
- package/dist/static/icon/Notification.svg +3 -0
- package/dist/static/icon/Payment.svg +5 -0
- package/dist/static/icon/PersonAddAlt.svg +5 -0
- package/dist/static/icon/PersonOutline.svg +5 -0
- package/dist/static/icon/addOutlined.svg +3 -0
- package/dist/static/icon/arrow_drop_down.svg +5 -0
- package/dist/static/icon/articleOutlined.svg +4 -0
- package/dist/static/icon/categoryOutlined.svg +3 -0
- package/dist/static/icon/checkBadge.svg +3 -0
- package/dist/static/icon/chevron_left.svg +3 -0
- package/dist/static/icon/density_medium_Round.svg +5 -0
- package/dist/static/icon/doubleArrowDown.svg +4 -0
- package/dist/static/icon/doubleArrowUp.svg +4 -0
- package/dist/static/icon/edit_note_outlined.svg +3 -0
- package/dist/static/icon/feedback_Outlined.svg +3 -0
- package/dist/static/icon/file_download_Outlined.svg +3 -0
- package/dist/static/icon/file_download_done_Filled.svg +3 -0
- package/dist/static/icon/handshake_Round.svg +3 -0
- package/dist/static/icon/import_export.svg +5 -0
- package/dist/static/icon/infoFilled.svg +3 -0
- package/dist/static/icon/localActivityOutlined.svg +3 -0
- package/dist/static/icon/localHospital.svg +3 -0
- package/dist/static/icon/minusOutlined.svg +3 -0
- package/dist/static/icon/personFilled.svg +3 -0
- package/dist/static/icon/schedule_Round.svg +3 -0
- package/dist/static/icon/search2.svg +3 -0
- package/dist/static/icon/settingFilled.svg +3 -0
- package/dist/static/icon/trashOutlined.svg +3 -0
- package/dist/styles/color.d.ts +100 -4
- package/package.json +1 -1
- package/dist/hooks/useColorScheme.d.ts +0 -4
- package/dist/styles/color2.d.ts +0 -102
|
@@ -1,8 +1,26 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { default as
|
|
2
|
+
import { default as QuillType, Delta } from 'quill';
|
|
3
|
+
export type UploadedImageInfo = {
|
|
4
|
+
url: string;
|
|
5
|
+
objectKey?: string;
|
|
6
|
+
fileName?: string;
|
|
7
|
+
};
|
|
8
|
+
export type CustomImageUploadHandler = (file: File, quill: QuillType, // Quill 인스턴스
|
|
9
|
+
range: any) => Promise<UploadedImageInfo | string | null>;
|
|
3
10
|
export interface EditorContextValue {
|
|
4
|
-
quill:
|
|
11
|
+
quill: QuillType | null;
|
|
5
12
|
isLoading: boolean;
|
|
6
13
|
editorRef: React.RefObject<HTMLDivElement | null>;
|
|
14
|
+
initialValue?: string;
|
|
15
|
+
readOnly?: boolean;
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
onChange?: (props: {
|
|
18
|
+
delta: Delta;
|
|
19
|
+
oldContents: Delta;
|
|
20
|
+
source: string;
|
|
21
|
+
value?: string;
|
|
22
|
+
}) => void;
|
|
23
|
+
onImageUpload?: CustomImageUploadHandler;
|
|
7
24
|
}
|
|
8
|
-
export declare const
|
|
25
|
+
export declare const initialEditorContextValue: EditorContextValue;
|
|
26
|
+
export declare const EditorContext: React.Context<EditorContextValue>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { EditorContextValue, CustomImageUploadHandler } from './Editor.context';
|
|
3
|
+
type EditorSkeletonProps = React.JSX.IntrinsicElements["div"];
|
|
4
|
+
declare const EditorSkeleton: (props: EditorSkeletonProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
+
type EditorInputProps = React.JSX.IntrinsicElements["div"];
|
|
6
|
+
declare const EditorInput: (props: EditorInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
type EditorRootProps = React.PropsWithChildren<Omit<EditorContextValue, "quill" | "isLoading" | "editorRef" | "onImageUpload"> & {
|
|
8
|
+
onImageUpload?: CustomImageUploadHandler;
|
|
9
|
+
} & Omit<React.JSX.IntrinsicElements["div"], "onChange">>;
|
|
8
10
|
declare const EditorRoot: (props: EditorRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
interface EditorComposition {
|
|
10
12
|
Root: typeof EditorRoot;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const FONT_SIZE_OPTIONS: string[];
|
|
2
|
+
export declare const TOOLBAR_OPTIONS: (string[] | {
|
|
3
|
+
header: (number | boolean)[];
|
|
4
|
+
}[] | {
|
|
5
|
+
size: string[];
|
|
6
|
+
}[] | {
|
|
7
|
+
list: string;
|
|
8
|
+
}[] | {
|
|
9
|
+
script: string;
|
|
10
|
+
}[] | {
|
|
11
|
+
indent: string;
|
|
12
|
+
}[] | {
|
|
13
|
+
direction: string;
|
|
14
|
+
}[] | ({
|
|
15
|
+
color: never[];
|
|
16
|
+
background?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
background: never[];
|
|
19
|
+
color?: undefined;
|
|
20
|
+
})[] | {
|
|
21
|
+
font: never[];
|
|
22
|
+
}[] | {
|
|
23
|
+
align: never[];
|
|
24
|
+
}[])[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as Quill } from 'quill';
|
|
2
|
+
export default class ImageResize {
|
|
3
|
+
private quill;
|
|
4
|
+
private img;
|
|
5
|
+
private box;
|
|
6
|
+
private startPos;
|
|
7
|
+
private startSize;
|
|
8
|
+
private currentHandle;
|
|
9
|
+
private aspectRatio;
|
|
10
|
+
constructor(quill: Quill);
|
|
11
|
+
private onClick;
|
|
12
|
+
private onDocClick;
|
|
13
|
+
private showResizeBox;
|
|
14
|
+
private initResize;
|
|
15
|
+
private performResize;
|
|
16
|
+
private stopResize;
|
|
17
|
+
private saveToDelta;
|
|
18
|
+
private removeBox;
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as Quill } from 'quill';
|
|
2
|
+
export default class MediaResize {
|
|
3
|
+
private quill;
|
|
4
|
+
private media;
|
|
5
|
+
private box;
|
|
6
|
+
private startPos;
|
|
7
|
+
private startSize;
|
|
8
|
+
private currentHandle;
|
|
9
|
+
private aspectRatio;
|
|
10
|
+
constructor(quill: Quill);
|
|
11
|
+
private getMedia;
|
|
12
|
+
private observeHover;
|
|
13
|
+
private showResizeBox;
|
|
14
|
+
private initResize;
|
|
15
|
+
private performResize;
|
|
16
|
+
private stopResize;
|
|
17
|
+
private saveToDelta;
|
|
18
|
+
private removeBox;
|
|
19
|
+
}
|
|
@@ -15,6 +15,8 @@ type SwitchContextType = {
|
|
|
15
15
|
status?: SwitchStatus;
|
|
16
16
|
/** size */
|
|
17
17
|
size?: "small" | "medium" | "large";
|
|
18
|
+
/** direction */
|
|
19
|
+
direction?: "row" | "column";
|
|
18
20
|
};
|
|
19
21
|
export declare const SwitchContext: React.Context<SwitchContextType>;
|
|
20
22
|
export type SwitchProviderProps = React.PropsWithChildren<Partial<Omit<SwitchContextType, "">>> & {
|
|
@@ -1,60 +1,99 @@
|
|
|
1
1
|
export { default as Add } from './Add';
|
|
2
|
+
export { default as AddOutlined } from './AddOutlined';
|
|
2
3
|
export { default as AddAPhoto } from './AddAPhoto';
|
|
3
4
|
export { default as ApprovalInactive } from './ApprovalInactive';
|
|
5
|
+
export { default as ArrowDown } from './ArrowDown';
|
|
4
6
|
export { default as ArrowRight } from './ArrowRight';
|
|
7
|
+
export { default as ArrowUp } from './ArrowUp';
|
|
8
|
+
export { default as ArrowDropDown } from './ArrowDropDown';
|
|
9
|
+
export { default as ArticleOutlined } from './ArticleOutlined';
|
|
5
10
|
export { default as AttachFile } from './AttachFile';
|
|
11
|
+
export { default as CalendarMonth } from './CalendarMonth';
|
|
12
|
+
export { default as CalendarToday } from './CalendarToday';
|
|
6
13
|
export { default as CancleFilled } from './CancleFilled';
|
|
7
14
|
export { default as Cancle } from './Cancle';
|
|
8
15
|
export { default as CartFilled } from './CartFilled';
|
|
9
16
|
export { default as Cart } from './Cart';
|
|
17
|
+
export { default as Category } from './Category';
|
|
18
|
+
export { default as CategoryOutlined } from './CategoryOutlined';
|
|
19
|
+
export { default as Celebration } from './Celebration';
|
|
10
20
|
export { default as Check } from './Check';
|
|
21
|
+
export { default as CheckBadge } from './CheckBadge';
|
|
11
22
|
export { default as CheckBoxRound } from './CheckBoxRound';
|
|
23
|
+
export { default as CheckList } from './CheckList';
|
|
12
24
|
export { default as CheckCircle } from './CheckCircle';
|
|
25
|
+
export { default as ChevronLeft } from './ChevronLeft';
|
|
26
|
+
export { default as ChromeReaderMode } from './ChromeReaderMode';
|
|
13
27
|
export { default as Close } from './Close';
|
|
14
28
|
export { default as Company } from './Company';
|
|
29
|
+
export { default as CreditCard } from './CreditCard';
|
|
30
|
+
export { default as CropOriginal } from './CropOriginal';
|
|
31
|
+
export { default as DensityMediumRound } from './DensityMediumRound';
|
|
32
|
+
export { default as DoubleArrowDown } from './DoubleArrowDown';
|
|
33
|
+
export { default as DoubleArrowUp } from './DoubleArrowUp';
|
|
15
34
|
export { default as Download } from './Download';
|
|
16
35
|
export { default as DragHandle } from './DragHandle';
|
|
17
36
|
export { default as Eco } from './Eco';
|
|
18
37
|
export { default as EditSquare } from './EditSquare';
|
|
38
|
+
export { default as EditNoteOutlined } from './EditNoteOutlined';
|
|
19
39
|
export { default as ErrorFilled } from './ErrorFilled';
|
|
20
40
|
export { default as Error } from './Error';
|
|
21
41
|
export { default as ExpandAll } from './ExpandAll';
|
|
22
42
|
export { default as ExpandLess } from './ExpandLess';
|
|
23
43
|
export { default as ExpandMore } from './ExpandMore';
|
|
24
44
|
export { default as Factory } from './Factory';
|
|
45
|
+
export { default as FeedbackOutlined } from './FeedbackOutlined';
|
|
25
46
|
export { default as FileUpload } from './FileUpload';
|
|
26
47
|
export { default as FilecheckInactive } from './FilecheckInactive';
|
|
48
|
+
export { default as FileDownloadDoneFilled } from './FileDownloadDoneFilled';
|
|
49
|
+
export { default as FileDownloadOutlined } from './FileDownloadOutlined';
|
|
27
50
|
export { default as GoBefore } from './GoBefore';
|
|
28
51
|
export { default as GoNext } from './GoNext';
|
|
29
52
|
export { default as HamburgerMenu } from './HamburgerMenu';
|
|
53
|
+
export { default as HandshakeRound } from './HandshakeRound';
|
|
54
|
+
export { default as Home } from './Home';
|
|
30
55
|
export { default as ImagecheckPlay } from './ImagecheckPlay';
|
|
56
|
+
export { default as ImportExport } from './ImportExport';
|
|
57
|
+
export { default as InfoFilled } from './InfoFilled';
|
|
31
58
|
export { default as Inventory } from './Inventory';
|
|
32
59
|
export { default as KakaoTalk } from './KakaoTalk';
|
|
33
60
|
export { default as ListAll } from './ListAll';
|
|
61
|
+
export { default as LocalActivityOutlined } from './LocalActivityOutlined';
|
|
62
|
+
export { default as LocalHospital } from './LocalHospital';
|
|
34
63
|
export { default as LocalShipping } from './LocalShipping';
|
|
35
64
|
export { default as Logout } from './Logout';
|
|
36
65
|
export { default as Menu } from './Menu';
|
|
37
66
|
export { default as Minus } from './Minus';
|
|
67
|
+
export { default as MinusOutlined } from './MinusOutlined';
|
|
38
68
|
export { default as ModeEdit } from './ModeEdit';
|
|
39
69
|
export { default as More } from './More';
|
|
40
70
|
export { default as NaverBlog } from './NaverBlog';
|
|
41
71
|
export { default as Naver } from './Naver';
|
|
72
|
+
export { default as Notification } from './Notification';
|
|
42
73
|
export { default as OrderApprove } from './OrderApprove';
|
|
43
74
|
export { default as OrderInactive } from './OrderInactive';
|
|
44
75
|
export { default as OrderPlay } from './OrderPlay';
|
|
45
76
|
export { default as Outward } from './Outward';
|
|
46
77
|
export { default as PayApprove } from './PayApprove';
|
|
47
78
|
export { default as PayInactive } from './PayInactive';
|
|
79
|
+
export { default as Payment } from './Payment';
|
|
80
|
+
export { default as PersonAddAlt } from './PersonAddAlt';
|
|
48
81
|
export { default as Personcard } from './Personcard';
|
|
82
|
+
export { default as PersonFilled } from './PersonFilled';
|
|
83
|
+
export { default as PersonOutline } from './PersonOutline';
|
|
49
84
|
export { default as PrintInactive } from './PrintInactive';
|
|
50
85
|
export { default as PrintPlay } from './PrintPlay';
|
|
51
86
|
export { default as Product } from './Product';
|
|
87
|
+
export { default as ScheduleRound } from './ScheduleRound';
|
|
52
88
|
export { default as Search } from './Search';
|
|
89
|
+
export { default as Search2 } from './Search2';
|
|
90
|
+
export { default as SettingFilled } from './SettingFilled';
|
|
53
91
|
export { default as Settings } from './Settings';
|
|
54
92
|
export { default as ShippingDone } from './ShippingDone';
|
|
55
93
|
export { default as SupportAgent } from './SupportAgent';
|
|
56
94
|
export { default as SwapVert } from './SwapVert';
|
|
57
95
|
export { default as Task } from './Task';
|
|
96
|
+
export { default as TrashOutlined } from './TrashOutlined';
|
|
58
97
|
export { default as Upload } from './Upload';
|
|
59
98
|
export { default as User } from './User';
|
|
60
99
|
export { default as WarningFilled } from './WarningFilled';
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
declare const useLNBColors: () => {
|
|
2
|
+
full: {
|
|
3
|
+
enabled: {
|
|
4
|
+
backgroundColor: string;
|
|
5
|
+
color: string;
|
|
6
|
+
borderColor: string;
|
|
7
|
+
};
|
|
8
|
+
actived: {
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
color: string;
|
|
11
|
+
borderColor: string;
|
|
12
|
+
};
|
|
13
|
+
hover: {
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
color: string;
|
|
16
|
+
borderColor: string;
|
|
17
|
+
};
|
|
18
|
+
disabled: {
|
|
19
|
+
backgroundColor: string;
|
|
20
|
+
color: string;
|
|
21
|
+
borderColor: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
secondary: {
|
|
25
|
+
enabled: {
|
|
26
|
+
backgroundColor: string;
|
|
27
|
+
color: string;
|
|
28
|
+
borderColor: string;
|
|
29
|
+
};
|
|
30
|
+
actived: {
|
|
31
|
+
backgroundColor: string;
|
|
32
|
+
color: string;
|
|
33
|
+
borderColor: string;
|
|
34
|
+
};
|
|
35
|
+
hover: {
|
|
36
|
+
backgroundColor: string;
|
|
37
|
+
color: string;
|
|
38
|
+
borderColor: string;
|
|
39
|
+
};
|
|
40
|
+
disabled: {
|
|
41
|
+
backgroundColor: string;
|
|
42
|
+
color: string;
|
|
43
|
+
borderColor: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
list: {
|
|
47
|
+
enabled: {
|
|
48
|
+
backgroundColor: string;
|
|
49
|
+
color: string;
|
|
50
|
+
borderColor: string;
|
|
51
|
+
};
|
|
52
|
+
actived: {
|
|
53
|
+
backgroundColor: string;
|
|
54
|
+
color: string;
|
|
55
|
+
borderColor: string;
|
|
56
|
+
};
|
|
57
|
+
hover: {
|
|
58
|
+
backgroundColor: string;
|
|
59
|
+
color: string;
|
|
60
|
+
borderColor: string;
|
|
61
|
+
};
|
|
62
|
+
disabled: {
|
|
63
|
+
backgroundColor: string;
|
|
64
|
+
color: string;
|
|
65
|
+
borderColor: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
title: {
|
|
69
|
+
enabled: {
|
|
70
|
+
backgroundColor: string;
|
|
71
|
+
color: string;
|
|
72
|
+
borderColor: string;
|
|
73
|
+
};
|
|
74
|
+
actived: {
|
|
75
|
+
backgroundColor: string;
|
|
76
|
+
color: string;
|
|
77
|
+
borderColor: string;
|
|
78
|
+
};
|
|
79
|
+
hover: {
|
|
80
|
+
backgroundColor: string;
|
|
81
|
+
color: string;
|
|
82
|
+
borderColor: string;
|
|
83
|
+
};
|
|
84
|
+
disabled: {
|
|
85
|
+
backgroundColor: string;
|
|
86
|
+
color: string;
|
|
87
|
+
borderColor: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
export default useLNBColors;
|