@teamturing/react-kit 2.6.0 → 2.7.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/dist/core/Grid/index.d.ts +1 -1
- package/dist/enigma/EnigmaUI/index.d.ts +19 -2
- package/dist/enigma/View/ChipGroupView/index.d.ts +1 -1
- package/dist/enigma/View/GridView/index.d.ts +6 -0
- package/dist/enigma/View/IconView/index.d.ts +6 -0
- package/dist/enigma/View/index.d.ts +3 -1
- package/dist/enigma/types/index.d.ts +22 -12
- package/dist/enigma/utils/index.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3326 -24
- package/esm/core/Grid/index.js +2 -2
- package/esm/enigma/EnigmaUI/index.js +9 -3
- package/esm/enigma/View/ChipGroupView/index.js +6 -4
- package/esm/enigma/View/GridView/index.js +32 -0
- package/esm/enigma/View/IconView/index.js +18 -0
- package/esm/enigma/View/ImageView/index.js +1 -0
- package/esm/packages/icons/esm/Ai.js +23 -0
- package/esm/packages/icons/esm/AiSad.js +17 -0
- package/esm/packages/icons/esm/AimPoint.js +36 -0
- package/esm/packages/icons/esm/Alarm.js +17 -0
- package/esm/packages/icons/esm/AppleColor.js +18 -0
- package/esm/packages/icons/esm/ArrowDown.js +17 -0
- package/esm/packages/icons/esm/ArrowLeft.js +17 -0
- package/esm/packages/icons/esm/ArrowLeftCircle.js +15 -0
- package/esm/packages/icons/esm/ArrowLeftLimit.js +17 -0
- package/esm/packages/icons/esm/ArrowLeftRight.js +17 -0
- package/esm/packages/icons/esm/ArrowRight.js +17 -0
- package/esm/packages/icons/esm/ArrowRightCircle.js +15 -0
- package/esm/packages/icons/esm/ArrowRightLimit.js +17 -0
- package/esm/packages/icons/esm/ArrowUp.js +17 -0
- package/esm/packages/icons/esm/ArrowUpDown.js +17 -0
- package/esm/packages/icons/esm/ArrowUpLimit.js +17 -0
- package/esm/packages/icons/esm/Barchart.js +15 -0
- package/esm/packages/icons/esm/Bookmark.js +17 -0
- package/esm/packages/icons/esm/Box.js +24 -0
- package/esm/packages/icons/esm/BusColor.js +36 -0
- package/esm/packages/icons/esm/CalendarCheck.js +17 -0
- package/esm/packages/icons/esm/CalendarCheckColor.js +20 -0
- package/esm/packages/icons/esm/CalendarColor.js +36 -0
- package/esm/packages/icons/esm/Camera.js +22 -0
- package/esm/packages/icons/esm/Card.js +17 -0
- package/esm/packages/icons/esm/CardsPercent.js +19 -0
- package/esm/packages/icons/esm/CardsPercentColor.js +23 -0
- package/esm/packages/icons/esm/CaretDown.js +15 -0
- package/esm/packages/icons/esm/CaretLeft.js +15 -0
- package/esm/packages/icons/esm/CaretRight.js +15 -0
- package/esm/packages/icons/esm/CaretUp.js +15 -0
- package/esm/packages/icons/esm/ChatBubble.js +17 -0
- package/esm/packages/icons/esm/ChatBubbleBadgeColor.js +32 -0
- package/esm/packages/icons/esm/ChatBubbleCorrect.js +24 -0
- package/esm/packages/icons/esm/ChatBubbleCorrectColor.js +22 -0
- package/esm/packages/icons/esm/ChatBubbleDots.js +17 -0
- package/esm/packages/icons/esm/ChatBubbleQuestion.js +17 -0
- package/esm/packages/icons/esm/Check.js +15 -0
- package/esm/packages/icons/esm/CheckInCircle.js +17 -0
- package/esm/packages/icons/esm/CheckInCircleColor.js +20 -0
- package/esm/packages/icons/esm/CheckInCircleLine.js +20 -0
- package/esm/packages/icons/esm/ChevronDown.js +17 -0
- package/esm/packages/icons/esm/ChevronLeft.js +17 -0
- package/esm/packages/icons/esm/ChevronRight.js +17 -0
- package/esm/packages/icons/esm/ChevronRightTwo.js +23 -0
- package/esm/packages/icons/esm/ChevronUp.js +17 -0
- package/esm/packages/icons/esm/ChevronUpTwo.js +23 -0
- package/esm/packages/icons/esm/Circles.js +17 -0
- package/esm/packages/icons/esm/Clip.js +14 -0
- package/esm/packages/icons/esm/CloseInCircle.js +17 -0
- package/esm/packages/icons/esm/Coin.js +17 -0
- package/esm/packages/icons/esm/Contact.js +17 -0
- package/esm/packages/icons/esm/Copy.js +22 -0
- package/esm/packages/icons/esm/Correct.js +16 -0
- package/esm/packages/icons/esm/Coupon.js +17 -0
- package/esm/packages/icons/esm/Crown.js +17 -0
- package/esm/packages/icons/esm/Curriculum.js +31 -0
- package/esm/packages/icons/esm/CurriculumColor.js +38 -0
- package/esm/packages/icons/esm/Delete.js +17 -0
- package/esm/packages/icons/esm/Document.js +22 -0
- package/esm/packages/icons/esm/Dots.js +17 -0
- package/esm/packages/icons/esm/Download.js +18 -0
- package/esm/packages/icons/esm/Emoji.js +17 -0
- package/esm/packages/icons/esm/Eng.js +20 -0
- package/esm/packages/icons/esm/Equal.js +17 -0
- package/esm/packages/icons/esm/Eraser.js +17 -0
- package/esm/packages/icons/esm/ExclamationPointInCircle.js +17 -0
- package/esm/packages/icons/esm/EyeOff.js +15 -0
- package/esm/packages/icons/esm/EyeOn.js +22 -0
- package/esm/packages/icons/esm/FaceHappy.js +17 -0
- package/esm/packages/icons/esm/FaceSad.js +17 -0
- package/esm/packages/icons/esm/Facebook.js +15 -0
- package/esm/packages/icons/esm/FacebookColor.js +20 -0
- package/esm/packages/icons/esm/Filter.js +17 -0
- package/esm/packages/icons/esm/Fire.js +15 -0
- package/esm/packages/icons/esm/Frame.js +17 -0
- package/esm/packages/icons/esm/Glasses.js +17 -0
- package/esm/packages/icons/esm/Graph.js +17 -0
- package/esm/packages/icons/esm/Gun.js +15 -0
- package/esm/packages/icons/esm/GunColor.js +18 -0
- package/esm/packages/icons/esm/Hair.js +17 -0
- package/esm/packages/icons/esm/Headphone.js +17 -0
- package/esm/packages/icons/esm/Heart.js +17 -0
- package/esm/packages/icons/esm/Infinite.js +15 -0
- package/esm/packages/icons/esm/InfoInCircle.js +17 -0
- package/esm/packages/icons/esm/Instagram.js +17 -0
- package/esm/packages/icons/esm/KakaoColor.js +20 -0
- package/esm/packages/icons/esm/Kor.js +20 -0
- package/esm/packages/icons/esm/Letter.js +17 -0
- package/esm/packages/icons/esm/LetterCrownColor.js +26 -0
- package/esm/packages/icons/esm/LetterHeartColor.js +26 -0
- package/esm/packages/icons/esm/LineThree.js +17 -0
- package/esm/packages/icons/esm/Link.js +22 -0
- package/esm/packages/icons/esm/Lock.js +17 -0
- package/esm/packages/icons/esm/LockColor.js +32 -0
- package/esm/packages/icons/esm/LogoApple.js +17 -0
- package/esm/packages/icons/esm/LogoColor.js +22 -0
- package/esm/packages/icons/esm/LogoFacebook.js +17 -0
- package/esm/packages/icons/esm/LogoKakao.js +17 -0
- package/esm/packages/icons/esm/LogoNaver.js +15 -0
- package/esm/packages/icons/esm/Maxsize.js +15 -0
- package/esm/packages/icons/esm/Minsize.js +17 -0
- package/esm/packages/icons/esm/Minus.js +17 -0
- package/esm/packages/icons/esm/MinusInCircle.js +17 -0
- package/esm/packages/icons/esm/Moneybag.js +17 -0
- package/esm/packages/icons/esm/MoneybagColor.js +20 -0
- package/esm/packages/icons/esm/More.js +17 -0
- package/esm/packages/icons/esm/MyBubble.js +17 -0
- package/esm/packages/icons/esm/NaverColor.js +18 -0
- package/esm/packages/icons/esm/New.js +22 -0
- package/esm/packages/icons/esm/Note.js +17 -0
- package/esm/packages/icons/esm/NoteColor.js +18 -0
- package/esm/packages/icons/esm/NotePenColor.js +46 -0
- package/esm/packages/icons/esm/NumberFiveFilled.js +17 -0
- package/esm/packages/icons/esm/NumberFiveOutlined.js +20 -0
- package/esm/packages/icons/esm/NumberFourFilled.js +17 -0
- package/esm/packages/icons/esm/NumberFourOutlined.js +20 -0
- package/esm/packages/icons/esm/NumberOneFilled.js +17 -0
- package/esm/packages/icons/esm/NumberOneOutlined.js +20 -0
- package/esm/packages/icons/esm/NumberThreeFilled.js +17 -0
- package/esm/packages/icons/esm/NumberThreeOutlined.js +20 -0
- package/esm/packages/icons/esm/NumberTwoFilled.js +17 -0
- package/esm/packages/icons/esm/NumberTwoOutlined.js +20 -0
- package/esm/packages/icons/esm/Out.js +22 -0
- package/esm/packages/icons/esm/PalmTreeColor.js +41 -0
- package/esm/packages/icons/esm/PaperCheck.js +36 -0
- package/esm/packages/icons/esm/Pause.js +17 -0
- package/esm/packages/icons/esm/Pen.js +17 -0
- package/esm/packages/icons/esm/PercentInCircle.js +22 -0
- package/esm/packages/icons/esm/Picture.js +17 -0
- package/esm/packages/icons/esm/Pin.js +17 -0
- package/esm/packages/icons/esm/PinColorRed.js +26 -0
- package/esm/packages/icons/esm/Play.js +15 -0
- package/esm/packages/icons/esm/Plug.js +33 -0
- package/esm/packages/icons/esm/PlugColor.js +36 -0
- package/esm/packages/icons/esm/Plus.js +17 -0
- package/esm/packages/icons/esm/PlusInCircle.js +17 -0
- package/esm/packages/icons/esm/PointInCircle.js +22 -0
- package/esm/packages/icons/esm/PointInCircleColor.js +27 -0
- package/esm/packages/icons/esm/Present.js +20 -0
- package/esm/packages/icons/esm/PresentColor.js +20 -0
- package/esm/packages/icons/esm/Problem.js +15 -0
- package/esm/packages/icons/esm/Profile.js +17 -0
- package/esm/packages/icons/esm/QuestionMarkInCircle.js +17 -0
- package/esm/packages/icons/esm/QuestionMarkInCircleOutlined.js +20 -0
- package/esm/packages/icons/esm/RaffleColor.js +113 -0
- package/esm/packages/icons/esm/Receipt.js +17 -0
- package/esm/packages/icons/esm/Refresh.js +17 -0
- package/esm/packages/icons/esm/Repeat.js +15 -0
- package/esm/packages/icons/esm/School.js +20 -0
- package/esm/packages/icons/esm/SchoolColor.js +27 -0
- package/esm/packages/icons/esm/Search.js +15 -0
- package/esm/packages/icons/esm/Set.js +20 -0
- package/esm/packages/icons/esm/Setting.js +17 -0
- package/esm/packages/icons/esm/Share.js +22 -0
- package/esm/packages/icons/esm/ShieldCheck.js +15 -0
- package/esm/packages/icons/esm/Siren.js +17 -0
- package/esm/packages/icons/esm/Skipback.js +17 -0
- package/esm/packages/icons/esm/Skipforward.js +17 -0
- package/esm/packages/icons/esm/SoundOff.js +15 -0
- package/esm/packages/icons/esm/SoundOn.js +25 -0
- package/esm/packages/icons/esm/Speaker.js +17 -0
- package/esm/packages/icons/esm/Stackup.js +27 -0
- package/esm/packages/icons/esm/Star.js +17 -0
- package/esm/packages/icons/esm/Store.js +15 -0
- package/esm/packages/icons/esm/Sync.js +17 -0
- package/esm/packages/icons/esm/TestUploadColor.js +26 -0
- package/esm/packages/icons/esm/Thumbdown.js +17 -0
- package/esm/packages/icons/esm/Thumbup.js +17 -0
- package/esm/packages/icons/esm/Thunder.js +17 -0
- package/esm/packages/icons/esm/Ticket.js +17 -0
- package/esm/packages/icons/esm/TicketColor.js +29 -0
- package/esm/packages/icons/esm/Time.js +17 -0
- package/esm/packages/icons/esm/Top.js +17 -0
- package/esm/packages/icons/esm/Trash.js +17 -0
- package/esm/packages/icons/esm/Treasurebox.js +22 -0
- package/esm/packages/icons/esm/Trophy.js +17 -0
- package/esm/packages/icons/esm/Undo.js +17 -0
- package/esm/packages/icons/esm/University.js +26 -0
- package/esm/packages/icons/esm/UserBlocked.js +17 -0
- package/esm/packages/icons/esm/UserCheck.js +17 -0
- package/esm/packages/icons/esm/UserPlus.js +17 -0
- package/esm/packages/icons/esm/UserTwo.js +23 -0
- package/esm/packages/icons/esm/Video.js +17 -0
- package/esm/packages/icons/esm/VideoColor.js +18 -0
- package/esm/packages/icons/esm/VoteColor.js +24 -0
- package/esm/packages/icons/esm/Warning.js +17 -0
- package/esm/packages/icons/esm/Wifi.js +27 -0
- package/esm/packages/icons/esm/WorkbookColor.js +29 -0
- package/esm/packages/icons/esm/Wrong.js +20 -0
- package/esm/packages/icons/esm/Youtube.js +17 -0
- package/esm/packages/icons/esm/index.js +193 -0
- package/package.json +2 -2
|
@@ -22,4 +22,4 @@ declare const _default: import("react").ForwardRefExoticComponent<{
|
|
|
22
22
|
Unit: ({ size, as, children, ...props }: PropsWithChildren<GridUnitProps>) => import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
};
|
|
24
24
|
export default _default;
|
|
25
|
-
export type { Props as GridProps };
|
|
25
|
+
export type { Props as GridProps, GridUnitProps };
|
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { ILayoutContainer, ISection, IViewContainer, Layout, View } from '../types';
|
|
2
3
|
type Props = {
|
|
3
4
|
section: ISection;
|
|
4
5
|
};
|
|
6
|
+
export declare const getLayoutComponent: (layoutContainer: ILayoutContainer) => ComponentType<{
|
|
7
|
+
layout: Layout;
|
|
8
|
+
viewsObject: {
|
|
9
|
+
[k: string]: View;
|
|
10
|
+
};
|
|
11
|
+
viewComponentsObject: {
|
|
12
|
+
[k: string]: ComponentType<any>;
|
|
13
|
+
};
|
|
14
|
+
}>;
|
|
15
|
+
export declare const getViewComponent: (viewContainer: IViewContainer) => ComponentType<any>;
|
|
5
16
|
declare const _default: (({ section: { views, responsiveLayout } }: Props) => import("react/jsx-runtime").JSX.Element) & {
|
|
6
17
|
TextView: ({ view: { text, textProps } }: {
|
|
7
18
|
view: import("../types").TextView;
|
|
@@ -9,8 +20,14 @@ declare const _default: (({ section: { views, responsiveLayout } }: Props) => im
|
|
|
9
20
|
ImageView: ({ view: { ...props } }: {
|
|
10
21
|
view: import("../types").ImageView;
|
|
11
22
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
|
|
23
|
+
IconView: ({ view: { icon, iconProps } }: {
|
|
24
|
+
view: import("../types").IconView;
|
|
25
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
ChipGroupView: ({ view: { chips, chipGroupProps: { size, gapX, gapY }, }, }: {
|
|
13
27
|
view: import("../types").ChipGroupView;
|
|
14
28
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
GridView: ({ view: { units, gridProps } }: {
|
|
30
|
+
view: import("../types").GridView;
|
|
31
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
32
|
};
|
|
16
33
|
export default _default;
|
|
@@ -2,5 +2,5 @@ import { ChipGroupView as ChipGroupViewType } from '../../types';
|
|
|
2
2
|
type Props = {
|
|
3
3
|
view: ChipGroupViewType;
|
|
4
4
|
};
|
|
5
|
-
declare const ChipGroupView: ({ view: { size, gapX, gapY,
|
|
5
|
+
declare const ChipGroupView: ({ view: { chips, chipGroupProps: { size, gapX, gapY }, }, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export default ChipGroupView;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { default as ImageView } from './ImageView';
|
|
2
2
|
export { default as TextView } from './TextView';
|
|
3
|
-
export { default as
|
|
3
|
+
export { default as IconView } from './IconView';
|
|
4
|
+
export { default as ChipGroupView } from './ChipGroupView';
|
|
5
|
+
export { default as GridView } from './GridView';
|
|
@@ -1,28 +1,38 @@
|
|
|
1
|
-
import
|
|
1
|
+
import icons from '@teamturing/icons';
|
|
2
|
+
import { ImgHTMLAttributes } from 'react';
|
|
3
|
+
import { ChipProps, StackProps, TextProps, SpaceProps, GridProps, GridUnitProps, StyledIconProps } from '../..';
|
|
2
4
|
/**
|
|
3
5
|
* View Related Model
|
|
4
6
|
*/
|
|
5
7
|
export type TextView = {
|
|
6
8
|
text: string;
|
|
7
|
-
textProps?: TextProps
|
|
9
|
+
textProps?: Omit<TextProps, 'sx'>;
|
|
8
10
|
};
|
|
9
|
-
export type ImageView =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
height: number;
|
|
11
|
+
export type ImageView = Pick<ImgHTMLAttributes<HTMLImageElement>, 'src' | 'alt' | 'width' | 'height' | 'loading'>;
|
|
12
|
+
export type IconView = {
|
|
13
|
+
icon: keyof typeof icons;
|
|
14
|
+
iconProps: Omit<StyledIconProps, 'sx' | 'icon'>;
|
|
14
15
|
};
|
|
15
16
|
export type ChipGroupView = {
|
|
16
|
-
size: ChipProps['size'];
|
|
17
|
-
gapX: StackProps['gapX'];
|
|
18
|
-
gapY: StackProps['gapY'];
|
|
19
17
|
chips: Array<{
|
|
20
18
|
text: string;
|
|
21
19
|
variant: ChipProps['variant'];
|
|
22
20
|
}>;
|
|
21
|
+
chipGroupProps: {
|
|
22
|
+
size: ChipProps['size'];
|
|
23
|
+
gapX: StackProps['gapX'];
|
|
24
|
+
gapY: StackProps['gapY'];
|
|
25
|
+
};
|
|
23
26
|
};
|
|
24
|
-
export type
|
|
25
|
-
|
|
27
|
+
export type GridView = {
|
|
28
|
+
units: Array<{
|
|
29
|
+
views: IViewContainer[];
|
|
30
|
+
unitProps: Omit<GridUnitProps, 'sx'>;
|
|
31
|
+
}>;
|
|
32
|
+
gridProps: Omit<GridProps, 'sx' | 'as'>;
|
|
33
|
+
};
|
|
34
|
+
export type View = TextView | ImageView | IconView | ChipGroupView | GridView;
|
|
35
|
+
export type ViewComponentType = 'TextView' | 'ImageView' | 'IconView' | 'ChipGroupView' | 'GridView';
|
|
26
36
|
export interface IViewContainer {
|
|
27
37
|
id: string;
|
|
28
38
|
viewComponentType: ViewComponentType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export { default as DialogHandler } from './core/DialogHandler';
|
|
|
11
11
|
export { default as GradientText } from './core/GradientText';
|
|
12
12
|
export type { GradientTextProps } from './core/GradientText';
|
|
13
13
|
export { default as Grid } from './core/Grid';
|
|
14
|
-
export type { GridProps } from './core/Grid';
|
|
14
|
+
export type { GridProps, GridUnitProps } from './core/Grid';
|
|
15
15
|
export { default as IconButton } from './core/IconButton';
|
|
16
16
|
export type { IconButtonProps } from './core/IconButton';
|
|
17
17
|
export { default as IconToggleButton } from './core/IconToggleButton';
|