@gusun/design-system 0.1.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/README.md +16 -0
- package/dist-lib/Editor-wECQz1CV.js +1994 -0
- package/dist-lib/Editor-wECQz1CV.js.map +1 -0
- package/dist-lib/components/Accordion.d.ts +25 -0
- package/dist-lib/components/Button.d.ts +27 -0
- package/dist-lib/components/ButtonGroup.d.ts +18 -0
- package/dist-lib/components/CalendarDayButton.d.ts +39 -0
- package/dist-lib/components/Checkbox.d.ts +34 -0
- package/dist-lib/components/Chip.d.ts +12 -0
- package/dist-lib/components/ConditionOrderSlot.d.ts +31 -0
- package/dist-lib/components/DateField.d.ts +39 -0
- package/dist-lib/components/DatePicker.d.ts +49 -0
- package/dist-lib/components/Divider.d.ts +12 -0
- package/dist-lib/components/Editor.d.ts +23 -0
- package/dist-lib/components/EditorToolbar.d.ts +12 -0
- package/dist-lib/components/ErrorBoundary.d.ts +30 -0
- package/dist-lib/components/Field.d.ts +32 -0
- package/dist-lib/components/FileUploadButton.d.ts +22 -0
- package/dist-lib/components/FileUploadMenu.d.ts +24 -0
- package/dist-lib/components/FormTemplate.d.ts +33 -0
- package/dist-lib/components/ImageUploadButton.d.ts +14 -0
- package/dist-lib/components/ImageUploadMenu.d.ts +17 -0
- package/dist-lib/components/InlineFieldTrigger.d.ts +18 -0
- package/dist-lib/components/Input.d.ts +28 -0
- package/dist-lib/components/JobPositionTemplate.d.ts +41 -0
- package/dist-lib/components/Label.d.ts +18 -0
- package/dist-lib/components/List.d.ts +46 -0
- package/dist-lib/components/ListEmpty.d.ts +6 -0
- package/dist-lib/components/ListGroup.d.ts +13 -0
- package/dist-lib/components/MarkdownDoc.d.ts +5 -0
- package/dist-lib/components/MergeFieldNode.d.ts +2 -0
- package/dist-lib/components/Modal.d.ts +90 -0
- package/dist-lib/components/NoticeWritingTemplate.d.ts +38 -0
- package/dist-lib/components/Pagination.d.ts +27 -0
- package/dist-lib/components/Popover.d.ts +16 -0
- package/dist-lib/components/PopoverMenu.d.ts +54 -0
- package/dist-lib/components/Radio.d.ts +33 -0
- package/dist-lib/components/ScreeningBuilderTemplate.d.ts +53 -0
- package/dist-lib/components/ScreeningConditionCard.d.ts +56 -0
- package/dist-lib/components/ScreeningFormula.d.ts +17 -0
- package/dist-lib/components/ScreeningIndividualSettingModal.d.ts +10 -0
- package/dist-lib/components/ScrollArea.d.ts +30 -0
- package/dist-lib/components/SearchBar.d.ts +14 -0
- package/dist-lib/components/SegmentControl.d.ts +46 -0
- package/dist-lib/components/SegmentedTabs.d.ts +20 -0
- package/dist-lib/components/Select.d.ts +67 -0
- package/dist-lib/components/SelectGroup.d.ts +18 -0
- package/dist-lib/components/SelectOrInput.d.ts +49 -0
- package/dist-lib/components/SideNavigation.d.ts +33 -0
- package/dist-lib/components/SideNavigationTemplate.d.ts +29 -0
- package/dist-lib/components/Slot.d.ts +16 -0
- package/dist-lib/components/Switch.d.ts +6 -0
- package/dist-lib/components/Table.d.ts +66 -0
- package/dist-lib/components/TableTemplate.d.ts +52 -0
- package/dist-lib/components/Tabs.d.ts +40 -0
- package/dist-lib/components/Tag.d.ts +25 -0
- package/dist-lib/components/TextArea.d.ts +26 -0
- package/dist-lib/components/TimeField.d.ts +15 -0
- package/dist-lib/components/ToolBar.d.ts +5 -0
- package/dist-lib/components/Tooltip.d.ts +25 -0
- package/dist-lib/components/TruncatingText.d.ts +7 -0
- package/dist-lib/components/TwoDepthList.d.ts +41 -0
- package/dist-lib/components/UsageExample.d.ts +16 -0
- package/dist-lib/components/chipStyles.d.ts +11 -0
- package/dist-lib/components/formulaFunctions.d.ts +75 -0
- package/dist-lib/components/modalContext.d.ts +1 -0
- package/dist-lib/components/popoverLayers.d.ts +6 -0
- package/dist-lib/components/tableView.d.ts +17 -0
- package/dist-lib/components/useFocusTrap.d.ts +6 -0
- package/dist-lib/components/useHoverTooltip.d.ts +10 -0
- package/dist-lib/components/useOutsideDismiss.d.ts +9 -0
- package/dist-lib/components/usePanelKeyboard.d.ts +11 -0
- package/dist-lib/components/usePopoverPosition.d.ts +11 -0
- package/dist-lib/editor.d.ts +3 -0
- package/dist-lib/editor.js +2 -0
- package/dist-lib/index.d.ts +68 -0
- package/dist-lib/index.js +4707 -0
- package/dist-lib/index.js.map +1 -0
- package/dist-lib/navContext.d.ts +8 -0
- package/dist-lib/styles.css +1 -0
- package/dist-lib/tailwind-preset.cjs +1023 -0
- package/dist-lib/tailwind-preset.mjs +1000 -0
- package/dist-lib/tokens/border.d.ts +6 -0
- package/dist-lib/tokens/colors/accordionColors.d.ts +3 -0
- package/dist-lib/tokens/colors/builderAreaColors.d.ts +12 -0
- package/dist-lib/tokens/colors/buttonColors.d.ts +37 -0
- package/dist-lib/tokens/colors/calendarColors.d.ts +12 -0
- package/dist-lib/tokens/colors/checkboxColors.d.ts +12 -0
- package/dist-lib/tokens/colors/chipColors.d.ts +82 -0
- package/dist-lib/tokens/colors/conditionCardColors.d.ts +10 -0
- package/dist-lib/tokens/colors/conditionOrderSlotColors.d.ts +15 -0
- package/dist-lib/tokens/colors/dividerColors.d.ts +5 -0
- package/dist-lib/tokens/colors/editorColors.d.ts +30 -0
- package/dist-lib/tokens/colors/formulaColors.d.ts +26 -0
- package/dist-lib/tokens/colors/labelFieldColors.d.ts +6 -0
- package/dist-lib/tokens/colors/listColors.d.ts +20 -0
- package/dist-lib/tokens/colors/modalColors.d.ts +7 -0
- package/dist-lib/tokens/colors/newTagColors.d.ts +6 -0
- package/dist-lib/tokens/colors/radioColors.d.ts +12 -0
- package/dist-lib/tokens/colors/segmentedColors.d.ts +9 -0
- package/dist-lib/tokens/colors/sideNavColors.d.ts +13 -0
- package/dist-lib/tokens/colors/switchColors.d.ts +13 -0
- package/dist-lib/tokens/colors/tabColors.d.ts +9 -0
- package/dist-lib/tokens/colors/tableColors.d.ts +8 -0
- package/dist-lib/tokens/colors/tagColors.d.ts +10 -0
- package/dist-lib/tokens/colors/textFieldColors.d.ts +25 -0
- package/dist-lib/tokens/colors/toolbarColors.d.ts +5 -0
- package/dist-lib/tokens/colors.d.ts +176 -0
- package/dist-lib/tokens/fontIconColors.d.ts +7 -0
- package/dist-lib/tokens/icon.d.ts +5 -0
- package/dist-lib/tokens/index.d.ts +32 -0
- package/dist-lib/tokens/lineHeight.d.ts +11 -0
- package/dist-lib/tokens/radius.d.ts +14 -0
- package/dist-lib/tokens/spacing.d.ts +16 -0
- package/dist-lib/tokens/typography.d.ts +33 -0
- package/dist-lib/tokens-CbcaxhkP.js +583 -0
- package/dist-lib/tokens-CbcaxhkP.js.map +1 -0
- package/dist-lib/tokens.js +2 -0
- package/dist-lib/utils/datetime.d.ts +6 -0
- package/dist-lib/utils/phone.d.ts +1 -0
- package/package.json +163 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type TableRowData = Record<string, unknown> & {
|
|
2
|
+
id?: string | number;
|
|
3
|
+
};
|
|
4
|
+
export interface TableSort {
|
|
5
|
+
key: string;
|
|
6
|
+
dir: 'asc' | 'desc';
|
|
7
|
+
}
|
|
8
|
+
export declare function compareValues(a: unknown, b: unknown): number;
|
|
9
|
+
export declare function applyColumnFilters(rows: TableRowData[], columns: {
|
|
10
|
+
key: string;
|
|
11
|
+
filter?: unknown;
|
|
12
|
+
}[], filters?: Record<string, unknown>): TableRowData[];
|
|
13
|
+
export declare function applySort(rows: TableRowData[], sort?: TableSort | null): TableRowData[];
|
|
14
|
+
export declare function iconCellWidth(count?: number, { buttonSize, gap }?: {
|
|
15
|
+
buttonSize?: number;
|
|
16
|
+
gap?: number;
|
|
17
|
+
}): number;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
export interface UseFocusTrapOptions {
|
|
3
|
+
/** 진입 포커스 대상 — 'container'(기본, 컨테이너 자체) | 'first'(첫 포커스 가능 요소) */
|
|
4
|
+
initialFocus?: 'container' | 'first';
|
|
5
|
+
}
|
|
6
|
+
export declare function useFocusTrap(active: boolean, containerRef: RefObject<HTMLElement | null>, { initialFocus }?: UseFocusTrapOptions): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare function useHoverTooltip(label: ReactNode, { delay }?: {
|
|
3
|
+
delay?: number;
|
|
4
|
+
}): {
|
|
5
|
+
onMouseEnter: (e: {
|
|
6
|
+
currentTarget: HTMLElement;
|
|
7
|
+
}) => void;
|
|
8
|
+
onMouseLeave: () => void;
|
|
9
|
+
tooltip: import('react').ReactPortal | null;
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
interface UseOutsideDismissOptions {
|
|
3
|
+
open: boolean;
|
|
4
|
+
refs: RefObject<HTMLElement | null>[];
|
|
5
|
+
onDismiss: (e: MouseEvent) => void;
|
|
6
|
+
guard?: (e: MouseEvent) => boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function useOutsideDismiss({ open, refs, onDismiss, guard }: UseOutsideDismissOptions): void;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { KeyboardEvent } from 'react';
|
|
2
|
+
interface UsePanelKeyboardOptions {
|
|
3
|
+
complete: boolean;
|
|
4
|
+
onCommit: () => void;
|
|
5
|
+
onSkip?: (() => void) | null;
|
|
6
|
+
}
|
|
7
|
+
export declare function usePanelKeyboard({ complete, onCommit, onSkip }: UsePanelKeyboardOptions): {
|
|
8
|
+
menuRef: import('react').RefObject<HTMLDivElement | null>;
|
|
9
|
+
handleTabKey: (e: KeyboardEvent) => void;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CSSProperties, RefObject } from 'react';
|
|
2
|
+
interface UsePopoverPositionOptions {
|
|
3
|
+
open: boolean;
|
|
4
|
+
anchorRef: RefObject<HTMLElement | null>;
|
|
5
|
+
menuRef: RefObject<HTMLElement | null>;
|
|
6
|
+
placement?: string;
|
|
7
|
+
menuWidth?: number | string;
|
|
8
|
+
deps?: unknown[];
|
|
9
|
+
}
|
|
10
|
+
export declare function usePopoverPosition({ open, anchorRef, menuRef, placement, menuWidth, deps }: UsePopoverPositionOptions): CSSProperties | null;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export * from './components/Accordion';
|
|
2
|
+
export * from './components/Button';
|
|
3
|
+
export * from './components/ButtonGroup';
|
|
4
|
+
export * from './components/Slot';
|
|
5
|
+
export * from './components/CalendarDayButton';
|
|
6
|
+
export * from './components/Checkbox';
|
|
7
|
+
export * from './components/Chip';
|
|
8
|
+
export * from './components/ConditionOrderSlot';
|
|
9
|
+
export * from './components/DateField';
|
|
10
|
+
export * from './components/DatePicker';
|
|
11
|
+
export * from './components/Divider';
|
|
12
|
+
export * from './components/ErrorBoundary';
|
|
13
|
+
export * from './components/Field';
|
|
14
|
+
export * from './components/FileUploadButton';
|
|
15
|
+
export * from './components/FileUploadMenu';
|
|
16
|
+
export * from './components/FormTemplate';
|
|
17
|
+
export * from './components/ImageUploadButton';
|
|
18
|
+
export * from './components/ImageUploadMenu';
|
|
19
|
+
export * from './components/InlineFieldTrigger';
|
|
20
|
+
export * from './components/Input';
|
|
21
|
+
export * from './components/JobPositionTemplate';
|
|
22
|
+
export * from './components/Label';
|
|
23
|
+
export * from './components/List';
|
|
24
|
+
export * from './components/ListEmpty';
|
|
25
|
+
export * from './components/ListGroup';
|
|
26
|
+
export * from './components/Modal';
|
|
27
|
+
export * from './components/NoticeWritingTemplate';
|
|
28
|
+
export * from './components/Pagination';
|
|
29
|
+
export * from './components/Popover';
|
|
30
|
+
export * from './components/PopoverMenu';
|
|
31
|
+
export * from './components/Radio';
|
|
32
|
+
export * from './components/ScreeningBuilderTemplate';
|
|
33
|
+
export * from './components/ScreeningConditionCard';
|
|
34
|
+
export * from './components/ScreeningFormula';
|
|
35
|
+
export * from './components/ScreeningIndividualSettingModal';
|
|
36
|
+
export * from './components/ScrollArea';
|
|
37
|
+
export * from './components/SearchBar';
|
|
38
|
+
export * from './components/SegmentControl';
|
|
39
|
+
export * from './components/SegmentedTabs';
|
|
40
|
+
export * from './components/Select';
|
|
41
|
+
export * from './components/SelectGroup';
|
|
42
|
+
export * from './components/SelectOrInput';
|
|
43
|
+
export * from './components/SideNavigation';
|
|
44
|
+
export * from './components/SideNavigationTemplate';
|
|
45
|
+
export * from './components/Switch';
|
|
46
|
+
export * from './components/Table';
|
|
47
|
+
export * from './components/TableTemplate';
|
|
48
|
+
export * from './components/Tabs';
|
|
49
|
+
export * from './components/Tag';
|
|
50
|
+
export * from './components/TextArea';
|
|
51
|
+
export * from './components/TimeField';
|
|
52
|
+
export * from './components/ToolBar';
|
|
53
|
+
export * from './components/Tooltip';
|
|
54
|
+
export * from './components/TruncatingText';
|
|
55
|
+
export * from './components/TwoDepthList';
|
|
56
|
+
export * from './components/useHoverTooltip';
|
|
57
|
+
export * from './components/chipStyles';
|
|
58
|
+
export * from './components/formulaFunctions';
|
|
59
|
+
export * from './components/modalContext';
|
|
60
|
+
export * from './components/popoverLayers';
|
|
61
|
+
export * from './components/tableView';
|
|
62
|
+
export * from './components/useOutsideDismiss';
|
|
63
|
+
export * from './components/usePanelKeyboard';
|
|
64
|
+
export * from './components/useFocusTrap';
|
|
65
|
+
export * from './components/usePopoverPosition';
|
|
66
|
+
export * from './tokens/index';
|
|
67
|
+
export * from './utils/datetime';
|
|
68
|
+
export * from './utils/phone';
|