@yeongseoksong/framework 0.1.0 → 1.0.2
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 +406 -0
- package/dist/types/index.d.mts +8 -18
- package/dist/types/index.d.ts +8 -18
- package/dist/types/index.js +0 -409
- package/dist/types/index.mjs +0 -389
- package/dist/ui/index.d.mts +105 -6
- package/dist/ui/index.d.ts +105 -6
- package/dist/ui/index.js +613 -472
- package/dist/ui/index.mjs +559 -442
- package/dist/util/index.d.mts +26 -2
- package/dist/util/index.d.ts +26 -2
- package/dist/util/index.js +23 -4
- package/dist/util/index.mjs +20 -4
- package/package.json +3 -5
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as _mantine_core from '@mantine/core';
|
|
3
|
-
import { MantineSize, TabsProps, TabsListProps, TabsPanelProps, TitleProps, TextProps, ButtonProps, BoxProps, TableProps, ModalProps, ThemeIconProps, ContainerProps, BadgeProps, TextInputProps, PasswordInputProps, TextareaProps, SelectProps, StackProps, StyleProp, MantineColor, SimpleGridProps, CardProps, MantineColorsTuple } from '@mantine/core';
|
|
3
|
+
import { MantineSize, TabsProps, TabsListProps, TabsPanelProps, TitleProps, TextProps, ButtonProps, BoxProps, TableProps, ModalProps, ThemeIconProps, ContainerProps, BadgeProps, TextInputProps, PasswordInputProps, TextareaProps, SelectProps, SkeletonProps, StackProps, StyleProp, MantineColor, SimpleGridProps, CardProps as CardProps$1, MantineColorsTuple } from '@mantine/core';
|
|
4
4
|
import React$1, { ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
5
5
|
import * as _mantine_core_lib_components_Modal_ModalCloseButton from '@mantine/core/lib/components/Modal/ModalCloseButton';
|
|
6
6
|
import * as _mantine_core_lib_components_Modal_ModalBody from '@mantine/core/lib/components/Modal/ModalBody';
|
|
@@ -63,6 +63,54 @@ declare const SdTabs: {
|
|
|
63
63
|
Panel: typeof SdPanel;
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
|
+
declare const SdTabsPills: {
|
|
67
|
+
(props: TabsProps): react_jsx_runtime.JSX.Element;
|
|
68
|
+
List: _mantine_core.MantineComponent<{
|
|
69
|
+
props: TabsListProps;
|
|
70
|
+
ref: HTMLDivElement;
|
|
71
|
+
stylesNames: _mantine_core.TabsListStylesNames;
|
|
72
|
+
compound: true;
|
|
73
|
+
}>;
|
|
74
|
+
Tab: _mantine_core.MantineComponent<{
|
|
75
|
+
props: _mantine_core.TabsTabProps;
|
|
76
|
+
ref: HTMLButtonElement;
|
|
77
|
+
stylesNames: _mantine_core.TabsTabStylesNames;
|
|
78
|
+
compound: true;
|
|
79
|
+
}>;
|
|
80
|
+
Panel: typeof SdPanel;
|
|
81
|
+
};
|
|
82
|
+
declare const SdTabsUnderline: {
|
|
83
|
+
(props: TabsProps): react_jsx_runtime.JSX.Element;
|
|
84
|
+
List: _mantine_core.MantineComponent<{
|
|
85
|
+
props: TabsListProps;
|
|
86
|
+
ref: HTMLDivElement;
|
|
87
|
+
stylesNames: _mantine_core.TabsListStylesNames;
|
|
88
|
+
compound: true;
|
|
89
|
+
}>;
|
|
90
|
+
Tab: _mantine_core.MantineComponent<{
|
|
91
|
+
props: _mantine_core.TabsTabProps;
|
|
92
|
+
ref: HTMLButtonElement;
|
|
93
|
+
stylesNames: _mantine_core.TabsTabStylesNames;
|
|
94
|
+
compound: true;
|
|
95
|
+
}>;
|
|
96
|
+
Panel: typeof SdPanel;
|
|
97
|
+
};
|
|
98
|
+
declare const SdTabsOutline: {
|
|
99
|
+
(props: TabsProps): react_jsx_runtime.JSX.Element;
|
|
100
|
+
List: _mantine_core.MantineComponent<{
|
|
101
|
+
props: TabsListProps;
|
|
102
|
+
ref: HTMLDivElement;
|
|
103
|
+
stylesNames: _mantine_core.TabsListStylesNames;
|
|
104
|
+
compound: true;
|
|
105
|
+
}>;
|
|
106
|
+
Tab: _mantine_core.MantineComponent<{
|
|
107
|
+
props: _mantine_core.TabsTabProps;
|
|
108
|
+
ref: HTMLButtonElement;
|
|
109
|
+
stylesNames: _mantine_core.TabsTabStylesNames;
|
|
110
|
+
compound: true;
|
|
111
|
+
}>;
|
|
112
|
+
Panel: typeof SdPanel;
|
|
113
|
+
};
|
|
66
114
|
|
|
67
115
|
type Props$3 = TitleProps & {
|
|
68
116
|
children?: ReactNode;
|
|
@@ -97,6 +145,8 @@ type Props$1 = ButtonProps & ComponentPropsWithoutRef<"button"> & {
|
|
|
97
145
|
declare const SdButton: {
|
|
98
146
|
/** 주요 액션 — filled primary */
|
|
99
147
|
Primary: ({ children, ...props }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
148
|
+
/** 보조 액션 — white bg + slate text */
|
|
149
|
+
Secondary: ({ children, ...props }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
100
150
|
/** 보조 액션 — outline */
|
|
101
151
|
Outline: ({ children, ...props }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
102
152
|
/** 텍스트 수준 — subtle */
|
|
@@ -108,6 +158,13 @@ declare const SdButton: {
|
|
|
108
158
|
/** 취소 — outline slate + X 아이콘 */
|
|
109
159
|
Cancel: ({ children, ...props }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
110
160
|
};
|
|
161
|
+
declare const SdButtonPrimary: ({ children, ...props }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
162
|
+
declare const SdButtonSecondary: ({ children, ...props }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
163
|
+
declare const SdButtonOutline: ({ children, ...props }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
164
|
+
declare const SdButtonGhost: ({ children, ...props }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
165
|
+
declare const SdButtonWhite: ({ children, ...props }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
166
|
+
declare const SdButtonDelete: ({ children, ...props }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
167
|
+
declare const SdButtonCancel: ({ children, ...props }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
111
168
|
|
|
112
169
|
interface SdQuoteProps extends BoxProps {
|
|
113
170
|
lines: string[];
|
|
@@ -263,6 +320,32 @@ declare const SdInput: {
|
|
|
263
320
|
Select: ({ ...props }: SelectProps) => react_jsx_runtime.JSX.Element;
|
|
264
321
|
};
|
|
265
322
|
|
|
323
|
+
declare function SkeletonText({ width, ...props }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
324
|
+
declare function SkeletonTitle({ width, ...props }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
325
|
+
declare function SkeletonImage({ height, ...props }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
326
|
+
declare function SkeletonAvatar({ size, ...props }: SkeletonProps & {
|
|
327
|
+
size?: number;
|
|
328
|
+
}): react_jsx_runtime.JSX.Element;
|
|
329
|
+
interface CardProps {
|
|
330
|
+
/** Card height (px). Omit to let content determine height. */
|
|
331
|
+
height?: number;
|
|
332
|
+
/** Number of body text lines. Defaults to 3. */
|
|
333
|
+
lines?: number;
|
|
334
|
+
}
|
|
335
|
+
declare function SkeletonCard({ height, lines }: CardProps): react_jsx_runtime.JSX.Element;
|
|
336
|
+
declare const SdSkeleton: {
|
|
337
|
+
Card: typeof SkeletonCard;
|
|
338
|
+
Text: typeof SkeletonText;
|
|
339
|
+
Title: typeof SkeletonTitle;
|
|
340
|
+
Image: typeof SkeletonImage;
|
|
341
|
+
Avatar: typeof SkeletonAvatar;
|
|
342
|
+
};
|
|
343
|
+
declare const SdSkeletonCard: typeof SkeletonCard;
|
|
344
|
+
declare const SdSkeletonText: typeof SkeletonText;
|
|
345
|
+
declare const SdSkeletonTitle: typeof SkeletonTitle;
|
|
346
|
+
declare const SdSkeletonImage: typeof SkeletonImage;
|
|
347
|
+
declare const SdSkeletonAvatar: typeof SkeletonAvatar;
|
|
348
|
+
|
|
266
349
|
type TitleVariant = "Display" | "Section" | "Card" | "Sub";
|
|
267
350
|
type ColorVariant = StyleProp<MantineColor> | undefined;
|
|
268
351
|
interface TextBoxProps extends Omit<StackProps, "title" | "color"> {
|
|
@@ -279,6 +362,10 @@ declare const SdTextBox: {
|
|
|
279
362
|
Card: ({ label, title, description, titleVariant: variantOverride, maxDescWidth, children, color, ...stackProps }: TextBoxProps) => react_jsx_runtime.JSX.Element;
|
|
280
363
|
Sub: ({ label, title, description, titleVariant: variantOverride, maxDescWidth, children, color, ...stackProps }: TextBoxProps) => react_jsx_runtime.JSX.Element;
|
|
281
364
|
};
|
|
365
|
+
declare const SdTextBoxHero: ({ label, title, description, titleVariant: variantOverride, maxDescWidth, children, color, ...stackProps }: TextBoxProps) => react_jsx_runtime.JSX.Element;
|
|
366
|
+
declare const SdTextBoxSection: ({ label, title, description, titleVariant: variantOverride, maxDescWidth, children, color, ...stackProps }: TextBoxProps) => react_jsx_runtime.JSX.Element;
|
|
367
|
+
declare const SdTextBoxCard: ({ label, title, description, titleVariant: variantOverride, maxDescWidth, children, color, ...stackProps }: TextBoxProps) => react_jsx_runtime.JSX.Element;
|
|
368
|
+
declare const SdTextBoxSub: ({ label, title, description, titleVariant: variantOverride, maxDescWidth, children, color, ...stackProps }: TextBoxProps) => react_jsx_runtime.JSX.Element;
|
|
282
369
|
|
|
283
370
|
interface CommonInfo {
|
|
284
371
|
id: number;
|
|
@@ -293,10 +380,17 @@ interface NavItem extends CommonInfo {
|
|
|
293
380
|
highlight?: boolean;
|
|
294
381
|
parentId?: number;
|
|
295
382
|
}
|
|
383
|
+
interface HeroCta {
|
|
384
|
+
label: string;
|
|
385
|
+
href: string;
|
|
386
|
+
variant?: 'primary' | 'secondary' | 'outline' | 'white';
|
|
387
|
+
icon: boolean;
|
|
388
|
+
}
|
|
296
389
|
interface HeroSlide extends CommonInfo {
|
|
297
390
|
image: string;
|
|
298
391
|
title: ReactNode;
|
|
299
392
|
description: string;
|
|
393
|
+
ctas?: HeroCta[];
|
|
300
394
|
}
|
|
301
395
|
interface FeatureItem extends CommonInfo {
|
|
302
396
|
icon?: ReactNode;
|
|
@@ -410,7 +504,7 @@ declare const SdTestimonial: {
|
|
|
410
504
|
Grid: typeof Grid$3;
|
|
411
505
|
};
|
|
412
506
|
|
|
413
|
-
interface SdPricingCardProps extends Omit<CardProps, "children"> {
|
|
507
|
+
interface SdPricingCardProps extends Omit<CardProps$1, "children"> {
|
|
414
508
|
item: PricingItem;
|
|
415
509
|
onSelect?: (item: PricingItem) => void;
|
|
416
510
|
}
|
|
@@ -494,7 +588,7 @@ declare const SdSolution: {
|
|
|
494
588
|
List: typeof List;
|
|
495
589
|
};
|
|
496
590
|
|
|
497
|
-
interface SdSolutionCardItemProps extends Omit<CardProps, "children"> {
|
|
591
|
+
interface SdSolutionCardItemProps extends Omit<CardProps$1, "children"> {
|
|
498
592
|
item: SolutionItem;
|
|
499
593
|
onSelect?: (item: SolutionItem) => void;
|
|
500
594
|
}
|
|
@@ -531,6 +625,8 @@ declare const SdClients: {
|
|
|
531
625
|
/** 무한 수평 스크롤 띠 — 호버 시 일시정지 */
|
|
532
626
|
Marquee: typeof Marquee;
|
|
533
627
|
};
|
|
628
|
+
declare const SdClientsGrid: typeof Grid;
|
|
629
|
+
declare const SdClientsMarquee: typeof Marquee;
|
|
534
630
|
|
|
535
631
|
interface SdMapSingleProps extends Omit<BoxProps, "children"> {
|
|
536
632
|
address: CompanyAddress;
|
|
@@ -548,6 +644,8 @@ declare const SdMap: {
|
|
|
548
644
|
/** 여러 주소 탭 전환 지도 — embbedUrl 있는 항목만 표시 */
|
|
549
645
|
Tabs: typeof Tabs;
|
|
550
646
|
};
|
|
647
|
+
declare const SdMapSingle: typeof Single;
|
|
648
|
+
declare const SdMapTabs: typeof Tabs;
|
|
551
649
|
|
|
552
650
|
interface HeroCarouselProps {
|
|
553
651
|
slides: HeroSlide[];
|
|
@@ -564,10 +662,11 @@ declare function SdHeader({ navItems, loginFlag, children }: HeaderProps): react
|
|
|
564
662
|
|
|
565
663
|
interface SdFooterProps {
|
|
566
664
|
company: CompanyInfo;
|
|
567
|
-
|
|
665
|
+
navItems?: NavItem[];
|
|
568
666
|
policyLinks?: NavItem[];
|
|
667
|
+
description?: string;
|
|
569
668
|
}
|
|
570
|
-
declare function SdFooter({ company,
|
|
669
|
+
declare function SdFooter({ company, navItems, policyLinks, description }: SdFooterProps): react_jsx_runtime.JSX.Element;
|
|
571
670
|
|
|
572
671
|
interface SdFeatureSectionProps extends Omit<BoxProps, 'title'> {
|
|
573
672
|
label?: string;
|
|
@@ -796,4 +895,4 @@ declare const theme: {
|
|
|
796
895
|
} | undefined;
|
|
797
896
|
};
|
|
798
897
|
|
|
799
|
-
export { HeroCarousel, Logo, MainLayout, type NavItem, PageLayout, SdBadge, SdButton, SdClients, SdContainer, SdCta, SdErrorView, SdFaq, SdFeatureSection, SdFeatures, SdFooter, SdHeader, SdInput, SdMap, SdModal, SdNumberIcon, SdPricingCard, SdQuote, SdSolution, SdSolutionCard, SdSteps, SdStepsSection, SdTable, SdTabs, SdTestimonial, SdText, SdTextBox, SdTimeline, SdTimelineSection, SdTitle, theme };
|
|
898
|
+
export { HeroCarousel, Logo, MainLayout, type NavItem, PageLayout, SdBadge, SdButton, SdButtonCancel, SdButtonDelete, SdButtonGhost, SdButtonOutline, SdButtonPrimary, SdButtonSecondary, SdButtonWhite, SdClients, SdClientsGrid, SdClientsMarquee, SdContainer, SdCta, SdErrorView, SdFaq, SdFeatureSection, SdFeatures, SdFooter, SdHeader, SdInput, SdMap, SdMapSingle, SdMapTabs, SdModal, SdNumberIcon, SdPricingCard, SdQuote, SdSkeleton, SdSkeletonAvatar, SdSkeletonCard, SdSkeletonImage, SdSkeletonText, SdSkeletonTitle, SdSolution, SdSolutionCard, SdSteps, SdStepsSection, SdTable, SdTabs, SdTabsOutline, SdTabsPills, SdTabsUnderline, SdTestimonial, SdText, SdTextBox, SdTextBoxCard, SdTextBoxHero, SdTextBoxSection, SdTextBoxSub, SdTimeline, SdTimelineSection, SdTitle, theme };
|