@weing-dev/ui-kit-primitive 0.0.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 +50 -0
- package/eslint.config.js +29 -0
- package/index.html +13 -0
- package/package.json +75 -0
- package/public/static/icon/Add.svg +1 -0
- package/public/static/icon/ApprovalInactive.svg +1 -0
- package/public/static/icon/ArrowRight.svg +5 -0
- package/public/static/icon/Cancle Filled.svg +1 -0
- package/public/static/icon/Cancle.svg +1 -0
- package/public/static/icon/Cart Filled.svg +1 -0
- package/public/static/icon/Cart.svg +1 -0
- package/public/static/icon/Check.svg +1 -0
- package/public/static/icon/CheckBoxRound.svg +3 -0
- package/public/static/icon/Company.svg +1 -0
- package/public/static/icon/DragHandle.svg +1 -0
- package/public/static/icon/Eco.svg +1 -0
- package/public/static/icon/EditSquare.svg +1 -0
- package/public/static/icon/Error Filled.svg +1 -0
- package/public/static/icon/Error.svg +1 -0
- package/public/static/icon/File Upload.svg +1 -0
- package/public/static/icon/FilecheckInactive.svg +1 -0
- package/public/static/icon/Go Before.svg +1 -0
- package/public/static/icon/Go Next.svg +1 -0
- package/public/static/icon/Hamburger Menu.svg +1 -0
- package/public/static/icon/ImagecheckPlay.svg +4 -0
- package/public/static/icon/Kakao Talk.svg +1 -0
- package/public/static/icon/Minus.svg +1 -0
- package/public/static/icon/Naver Blog.svg +1 -0
- package/public/static/icon/Naver.svg +1 -0
- package/public/static/icon/OrderApprove.svg +1 -0
- package/public/static/icon/OrderInactive.svg +1 -0
- package/public/static/icon/OrderPlay.svg +1 -0
- package/public/static/icon/PayApprove.svg +1 -0
- package/public/static/icon/PayInactive.svg +1 -0
- package/public/static/icon/PrintInactive.svg +1 -0
- package/public/static/icon/PrintPlay.svg +1 -0
- package/public/static/icon/Search.svg +1 -0
- package/public/static/icon/ShippingDone.svg +1 -0
- package/public/static/icon/Support Agent.svg +1 -0
- package/public/static/icon/Task.svg +1 -0
- package/public/static/icon/User.svg +1 -0
- package/public/static/icon/Warning Filled.svg +1 -0
- package/public/static/icon/Warning.svg +1 -0
- package/public/static/icon/add_a_photo.svg +3 -0
- package/public/static/icon/attach_file.svg +1 -0
- package/public/static/icon/check_circle.svg +1 -0
- package/public/static/icon/close.svg +1 -0
- package/public/static/icon/download.svg +1 -0
- package/public/static/icon/expand all.svg +1 -0
- package/public/static/icon/expand_less.svg +1 -0
- package/public/static/icon/expand_more.svg +1 -0
- package/public/static/icon/factory.svg +1 -0
- package/public/static/icon/inventory.svg +1 -0
- package/public/static/icon/listAll.svg +1 -0
- package/public/static/icon/local_shipping.svg +1 -0
- package/public/static/icon/logout.svg +1 -0
- package/public/static/icon/menu.svg +1 -0
- package/public/static/icon/mode_edit.svg +4 -0
- package/public/static/icon/more.svg +1 -0
- package/public/static/icon/outward.svg +1 -0
- package/public/static/icon/personcard.svg +1 -0
- package/public/static/icon/product.svg +1 -0
- package/public/static/icon/settings.svg +1 -0
- package/public/static/icon/swap_vert.svg +3 -0
- package/public/static/icon/upload.svg +1 -0
- package/public/static/icon/warning_amber.svg +3 -0
- package/public/static/image/Thumbnail.png +0 -0
- package/public/vite.svg +1 -0
- package/public/weing_logo_final.png +0 -0
- package/scripts/icons/setIcon.cjs +151 -0
- package/scripts/icons/svg-template.cjs +18 -0
- package/scripts/icons/svgo-config.json +9 -0
- package/scripts/icons/svgr-config.json +16 -0
- package/src/@types/color.d.ts +51 -0
- package/src/@types/common.d.ts +6 -0
- package/src/@types/extends/react.extends.d.ts +7 -0
- package/src/@types/quill-image-resize-module-react/index.d.ts +1 -0
- package/src/App.css +0 -0
- package/src/App.tsx +84 -0
- package/src/assets/react.svg +1 -0
- package/src/components/Accordion/Accordion.context.tsx +62 -0
- package/src/components/Accordion/Accordion.module.scss +163 -0
- package/src/components/Accordion/Accordion.tsx +242 -0
- package/src/components/Accordion/README.md +408 -0
- package/src/components/Accordion/images/as_trigger.gif +0 -0
- package/src/components/Accordion/images/closed.png +0 -0
- package/src/components/Accordion/images/open.png +0 -0
- package/src/components/Accordion/images/thumbnail1.png +0 -0
- package/src/components/Accordion/images/thumbnail2.png +0 -0
- package/src/components/Accordion/images/thumbnail3.png +0 -0
- package/src/components/Avatar/Avatar.module.scss +47 -0
- package/src/components/Avatar/Avatar.tsx +230 -0
- package/src/components/Avatar/README.md +333 -0
- package/src/components/Badge/Badge.module.scss +49 -0
- package/src/components/Badge/Badge.tsx +87 -0
- package/src/components/Badge/README.md +223 -0
- package/src/components/BarCode/BarCode.module.scss +0 -0
- package/src/components/BarCode/BarCode.tsx +153 -0
- package/src/components/Breadcrumb/Breadcrumb.module.scss +36 -0
- package/src/components/Breadcrumb/Breadcrumb.tsx +114 -0
- package/src/components/Breadcrumb/README.md +339 -0
- package/src/components/Button/Button.colors.tsx +322 -0
- package/src/components/Button/Button.context.tsx +47 -0
- package/src/components/Button/Button.module.scss +156 -0
- package/src/components/Button/Button.tsx +190 -0
- package/src/components/Button/Button.type.ts +11 -0
- package/src/components/Calendar/Calendar.context.tsx +138 -0
- package/src/components/Calendar/Calendar.module.scss +116 -0
- package/src/components/Calendar/Calendar.tsx +440 -0
- package/src/components/Calendar/dayjs.util.ts +312 -0
- package/src/components/Cascader/Cacader.data.ts +1185 -0
- package/src/components/Cascader/Cascader.context.tsx +61 -0
- package/src/components/Cascader/Cascader.hook.ts +502 -0
- package/src/components/Cascader/Cascader.module.scss +143 -0
- package/src/components/Cascader/Cascader.tsx +281 -0
- package/src/components/Cascader/README.md +735 -0
- package/src/components/Chart/Chart.module.scss +0 -0
- package/src/components/Chart/Chart.tsx +230 -0
- package/src/components/Chart/README.md +85 -0
- package/src/components/Chart/images/barChart.png +0 -0
- package/src/components/Chips/Chips.colors.tsx +185 -0
- package/src/components/Chips/Chips.module.scss +49 -0
- package/src/components/Chips/Chips.tsx +78 -0
- package/src/components/Comment/Comment.module.scss +14 -0
- package/src/components/Comment/Comment.tsx +105 -0
- package/src/components/Dialog/Dialog.module.scss +0 -0
- package/src/components/Dialog/Dialog.tsx +12 -0
- package/src/components/Divider/Divider.module.scss +12 -0
- package/src/components/Divider/Divider.tsx +33 -0
- package/src/components/Editor/Editor.context.tsx +12 -0
- package/src/components/Editor/Editor.module.scss +40 -0
- package/src/components/Editor/Editor.tsx +174 -0
- package/src/components/Form/CheckBox/CheckBox.context.tsx +56 -0
- package/src/components/Form/CheckBox/CheckBox.module.scss +81 -0
- package/src/components/Form/CheckBox/CheckBox.tsx +196 -0
- package/src/components/Form/CheckBox/Checkbox.colors.tsx +42 -0
- package/src/components/Form/Dropdown/Dropdown.colors.tsx +125 -0
- package/src/components/Form/Dropdown/Dropdown.context.tsx +62 -0
- package/src/components/Form/Dropdown/Dropdown.module.scss +133 -0
- package/src/components/Form/Dropdown/Dropdown.tsx +404 -0
- package/src/components/Form/OTPInput/OTPInput.context.tsx +104 -0
- package/src/components/Form/OTPInput/OTPInput.module.scss +22 -0
- package/src/components/Form/OTPInput/OTPInput.tsx +67 -0
- package/src/components/Form/Radio/Radio.colors.tsx +42 -0
- package/src/components/Form/Radio/Radio.context.tsx +40 -0
- package/src/components/Form/Radio/Radio.module.scss +61 -0
- package/src/components/Form/Radio/Radio.tsx +174 -0
- package/src/components/Form/Switch/Switch.colors.tsx +42 -0
- package/src/components/Form/Switch/Switch.context.tsx +50 -0
- package/src/components/Form/Switch/Switch.module.scss +53 -0
- package/src/components/Form/Switch/Switch.tsx +151 -0
- package/src/components/Form/TextArea/TextArea.colors.tsx +76 -0
- package/src/components/Form/TextArea/TextArea.context.tsx +97 -0
- package/src/components/Form/TextArea/TextArea.module.scss +138 -0
- package/src/components/Form/TextArea/TextArea.tsx +246 -0
- package/src/components/Form/TextInput/TextInput.colors.tsx +76 -0
- package/src/components/Form/TextInput/TextInput.context.tsx +106 -0
- package/src/components/Form/TextInput/TextInput.module.scss +160 -0
- package/src/components/Form/TextInput/TextInput.tsx +225 -0
- package/src/components/GlobalStyle/GlobalStyle.tsx +20 -0
- package/src/components/HelperText/HelperText.module.scss +28 -0
- package/src/components/HelperText/HelperText.tsx +130 -0
- package/src/components/Icon/Icon.tsx +29 -0
- package/src/components/Icons/Add.tsx +20 -0
- package/src/components/Icons/AddAPhoto.tsx +21 -0
- package/src/components/Icons/ApprovalInactive.tsx +26 -0
- package/src/components/Icons/ArrowRight.tsx +24 -0
- package/src/components/Icons/AttachFile.tsx +20 -0
- package/src/components/Icons/Cancle.tsx +20 -0
- package/src/components/Icons/CancleFilled.tsx +20 -0
- package/src/components/Icons/Cart.tsx +20 -0
- package/src/components/Icons/CartFilled.tsx +20 -0
- package/src/components/Icons/Check.tsx +20 -0
- package/src/components/Icons/CheckBoxRound.tsx +21 -0
- package/src/components/Icons/CheckCircle.tsx +35 -0
- package/src/components/Icons/Close.tsx +20 -0
- package/src/components/Icons/Company.tsx +20 -0
- package/src/components/Icons/Download.tsx +20 -0
- package/src/components/Icons/DragHandle.tsx +20 -0
- package/src/components/Icons/Eco.tsx +20 -0
- package/src/components/Icons/EditSquare.tsx +20 -0
- package/src/components/Icons/Error.tsx +20 -0
- package/src/components/Icons/ErrorFilled.tsx +20 -0
- package/src/components/Icons/ExpandAll.tsx +20 -0
- package/src/components/Icons/ExpandLess.tsx +20 -0
- package/src/components/Icons/ExpandMore.tsx +20 -0
- package/src/components/Icons/Factory.tsx +20 -0
- package/src/components/Icons/FileUpload.tsx +20 -0
- package/src/components/Icons/FilecheckInactive.tsx +22 -0
- package/src/components/Icons/GoBefore.tsx +20 -0
- package/src/components/Icons/GoNext.tsx +20 -0
- package/src/components/Icons/HamburgerMenu.tsx +20 -0
- package/src/components/Icons/ImagecheckPlay.tsx +27 -0
- package/src/components/Icons/Inventory.tsx +20 -0
- package/src/components/Icons/KakaoTalk.tsx +22 -0
- package/src/components/Icons/ListAll.tsx +20 -0
- package/src/components/Icons/LocalShipping.tsx +20 -0
- package/src/components/Icons/Logout.tsx +20 -0
- package/src/components/Icons/Menu.tsx +20 -0
- package/src/components/Icons/Minus.tsx +18 -0
- package/src/components/Icons/ModeEdit.tsx +25 -0
- package/src/components/Icons/More.tsx +20 -0
- package/src/components/Icons/Naver.tsx +20 -0
- package/src/components/Icons/NaverBlog.tsx +22 -0
- package/src/components/Icons/OrderApprove.tsx +20 -0
- package/src/components/Icons/OrderInactive.tsx +20 -0
- package/src/components/Icons/OrderPlay.tsx +20 -0
- package/src/components/Icons/Outward.tsx +20 -0
- package/src/components/Icons/PayApprove.tsx +24 -0
- package/src/components/Icons/PayInactive.tsx +24 -0
- package/src/components/Icons/Personcard.tsx +20 -0
- package/src/components/Icons/PrintInactive.tsx +24 -0
- package/src/components/Icons/PrintPlay.tsx +24 -0
- package/src/components/Icons/Product.tsx +20 -0
- package/src/components/Icons/Search.tsx +20 -0
- package/src/components/Icons/Settings.tsx +20 -0
- package/src/components/Icons/ShippingDone.tsx +20 -0
- package/src/components/Icons/SupportAgent.tsx +20 -0
- package/src/components/Icons/SwapVert.tsx +21 -0
- package/src/components/Icons/Task.tsx +20 -0
- package/src/components/Icons/Upload.tsx +20 -0
- package/src/components/Icons/User.tsx +20 -0
- package/src/components/Icons/Warning.tsx +20 -0
- package/src/components/Icons/WarningAmber.tsx +21 -0
- package/src/components/Icons/WarningFilled.tsx +20 -0
- package/src/components/Icons/index.ts +62 -0
- package/src/components/LNB/LNB.context.tsx +32 -0
- package/src/components/LNB/LNB.module.scss +99 -0
- package/src/components/LNB/LNB.tsx +190 -0
- package/src/components/LNB/README.md +411 -0
- package/src/components/LNB/makeNavigation.ts +51 -0
- package/src/components/LNB/navigation.d.ts +15 -0
- package/src/components/LNB/navigation.json +211 -0
- package/src/components/Label/Label.colors.tsx +241 -0
- package/src/components/Label/Label.module.scss +31 -0
- package/src/components/Label/Label.tsx +54 -0
- package/src/components/LazyImage/LazyImage.module.scss +6 -0
- package/src/components/LazyImage/LazyImage.tsx +107 -0
- package/src/components/List/List.module.scss +81 -0
- package/src/components/List/List.tsx +91 -0
- package/src/components/List/README.md +87 -0
- package/src/components/MobilePicker/MobilePicker.context.tsx +22 -0
- package/src/components/MobilePicker/MobilePicker.module.scss +57 -0
- package/src/components/MobilePicker/MobilePicker.tsx +336 -0
- package/src/components/MobilePicker/README.md +159 -0
- package/src/components/Modal/Modal.tsx +77 -0
- package/src/components/Modal/README.md +130 -0
- package/src/components/Pagination/Pagination.colors.tsx +85 -0
- package/src/components/Pagination/Pagination.context.tsx +28 -0
- package/src/components/Pagination/Pagination.module.scss +60 -0
- package/src/components/Pagination/Pagination.tsx +234 -0
- package/src/components/Popup/Popup.context.tsx +15 -0
- package/src/components/Popup/Popup.module.scss +53 -0
- package/src/components/Popup/Popup.tsx +116 -0
- package/src/components/Popup/README.md +170 -0
- package/src/components/QRCode/QRCode.module.scss +2 -0
- package/src/components/QRCode/QRCode.tsx +61 -0
- package/src/components/ScrollCalendar/ScrollCalendar.context.tsx +26 -0
- package/src/components/ScrollCalendar/ScrollCalendar.module.scss +42 -0
- package/src/components/ScrollCalendar/ScrollCalendar.tsx +448 -0
- package/src/components/ScrollSpy/README.md +62 -0
- package/src/components/ScrollSpy/ScrollSpy.tsx +130 -0
- package/src/components/Sheet/README.md +92 -0
- package/src/components/Sheet/Sheet.context.tsx +23 -0
- package/src/components/Sheet/Sheet.module.scss +68 -0
- package/src/components/Sheet/Sheet.tsx +146 -0
- package/src/components/Slider/README.md +639 -0
- package/src/components/Slider/Slider.backup.tsx +477 -0
- package/src/components/Slider/Slider.context.tsx +67 -0
- package/src/components/Slider/Slider.module.scss +123 -0
- package/src/components/Slider/Slider.tsx +467 -0
- package/src/components/Stepper/README.md +320 -0
- package/src/components/Stepper/Stepper.context.tsx +49 -0
- package/src/components/Stepper/Stepper.module.scss +163 -0
- package/src/components/Stepper/Stepper.tsx +219 -0
- package/src/components/Tab/Tab.colors.tsx +54 -0
- package/src/components/Tab/Tab.context.tsx +64 -0
- package/src/components/Tab/Tab.module.scss +239 -0
- package/src/components/Tab/Tab.tsx +123 -0
- package/src/components/Tab/cx.ts +6 -0
- package/src/components/Table/README.md +162 -0
- package/src/components/Table/Table.context.tsx +23 -0
- package/src/components/Table/Table.hook.ts +51 -0
- package/src/components/Table/Table.module.scss +83 -0
- package/src/components/Table/Table.tsx +147 -0
- package/src/components/Thumbnail/README.md +302 -0
- package/src/components/Thumbnail/Thumbnail.context.tsx +42 -0
- package/src/components/Thumbnail/Thumbnail.module.scss +149 -0
- package/src/components/Thumbnail/Thumbnail.tsx +391 -0
- package/src/components/TimeInput/README.md +118 -0
- package/src/components/TimeInput/TimeInput.colors.tsx +76 -0
- package/src/components/TimeInput/TimeInput.context.tsx +58 -0
- package/src/components/TimeInput/TimeInput.module.scss +211 -0
- package/src/components/TimeInput/TimeInput.tsx +411 -0
- package/src/components/WeeklyCalendar/WeeklyCalendar.context.tsx +88 -0
- package/src/components/WeeklyCalendar/WeeklyCalendar.module.scss +225 -0
- package/src/components/WeeklyCalendar/WeeklyCalendar.tsx +772 -0
- package/src/components/WeeklyCalendar/dayjs.util.ts +336 -0
- package/src/components/WeeklyCalendar/weeklyCalendar.util.ts +583 -0
- package/src/components/WisywygEditor/Quill/Editor.tsx +148 -0
- package/src/constant/locale.constant.ts +6 -0
- package/src/globals.scss +80 -0
- package/src/hooks/useColorScheme.tsx +48 -0
- package/src/hooks/useElementRect.tsx +128 -0
- package/src/hooks/useIntersectionObserver.tsx +33 -0
- package/src/index.css +17 -0
- package/src/index.ts +187 -0
- package/src/main.tsx +10 -0
- package/src/styles/_fontSize.mixin.scss +57 -0
- package/src/styles/_fontWeight.mixin.scss +15 -0
- package/src/styles/_lineHeight.mixin.scss +57 -0
- package/src/styles/_scrollbar.mixin.scss +49 -0
- package/src/styles/baseColor.ts +297 -0
- package/src/styles/color.ts +272 -0
- package/src/styles/color2.ts +200 -0
- package/src/styles/scrollbar.README.md +72 -0
- package/src/styles/typography.scss +170 -0
- package/src/utils/aws.util.ts +180 -0
- package/src/utils/common.utill.ts +45 -0
- package/src/vite-env.d.ts +1 -0
- package/tsconfig.app.json +24 -0
- package/tsconfig.json +29 -0
- package/tsconfig.node.json +10 -0
- package/tsconfig.node.tsbuildinfo +1 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/vite.config.d.ts +2 -0
- package/vite.config.js +47 -0
- package/vite.config.ts +50 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
$typography-size-map: (
|
|
4
|
+
heading: (
|
|
5
|
+
large: 48px,
|
|
6
|
+
medium: 40px,
|
|
7
|
+
small: 32px,
|
|
8
|
+
),
|
|
9
|
+
title: (
|
|
10
|
+
large: 30px,
|
|
11
|
+
medium: 24px,
|
|
12
|
+
small: 20px,
|
|
13
|
+
),
|
|
14
|
+
body: (
|
|
15
|
+
large: 18px,
|
|
16
|
+
medium: 16px,
|
|
17
|
+
small: 14px,
|
|
18
|
+
),
|
|
19
|
+
caption: (
|
|
20
|
+
large: 14px,
|
|
21
|
+
medium: 12px,
|
|
22
|
+
small: 10px,
|
|
23
|
+
),
|
|
24
|
+
label: (
|
|
25
|
+
large: 16px,
|
|
26
|
+
medium: 14px,
|
|
27
|
+
small: 12px,
|
|
28
|
+
),
|
|
29
|
+
button: (
|
|
30
|
+
large: 16px,
|
|
31
|
+
medium: 14px,
|
|
32
|
+
small: 12px,
|
|
33
|
+
),
|
|
34
|
+
alert: (
|
|
35
|
+
title: 14px,
|
|
36
|
+
content: 14px,
|
|
37
|
+
),
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
@function typography-size($name, $size) {
|
|
41
|
+
// 이름과 크기가 유효한지 확인
|
|
42
|
+
@if map.has-key($typography-size-map, $name) {
|
|
43
|
+
$category-map: map.get($typography-size-map, $name);
|
|
44
|
+
|
|
45
|
+
@if map.has-key($category-map, $size) {
|
|
46
|
+
@return map.get($category-map, $size);
|
|
47
|
+
} @else {
|
|
48
|
+
@error "Invalid size '#{$size}' for '#{$name}'. Available sizes: #{map.keys($category-map)}";
|
|
49
|
+
}
|
|
50
|
+
} @else {
|
|
51
|
+
@error "Invalid name '#{$name}'. Available names: #{map.keys($typography-size-map)}";
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@mixin typography-size($name, $size) {
|
|
56
|
+
font-size: typography-size($name, $size);
|
|
57
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
$typography-font-weight-map: (
|
|
4
|
+
bold: 700,
|
|
5
|
+
medium: 500,
|
|
6
|
+
regular: 400,
|
|
7
|
+
);
|
|
8
|
+
|
|
9
|
+
@function typography-font-weight($name) {
|
|
10
|
+
@return map.get($typography-font-weight-map, $name);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@mixin typography-font-weight($name) {
|
|
14
|
+
font-weight: typography-font-weight($name);
|
|
15
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
$typography-line-height-map: (
|
|
4
|
+
heading: (
|
|
5
|
+
large: 72px,
|
|
6
|
+
medium: 60px,
|
|
7
|
+
small: 48px,
|
|
8
|
+
),
|
|
9
|
+
title: (
|
|
10
|
+
large: 42px,
|
|
11
|
+
medium: 36px,
|
|
12
|
+
small: 30px,
|
|
13
|
+
),
|
|
14
|
+
body: (
|
|
15
|
+
large: 30px,
|
|
16
|
+
medium: 26px,
|
|
17
|
+
small: 24px,
|
|
18
|
+
),
|
|
19
|
+
caption: (
|
|
20
|
+
large: 24px,
|
|
21
|
+
medium: 18px,
|
|
22
|
+
small: 14px,
|
|
23
|
+
),
|
|
24
|
+
label: (
|
|
25
|
+
large: 24px,
|
|
26
|
+
medium: 22px,
|
|
27
|
+
small: 18px,
|
|
28
|
+
),
|
|
29
|
+
button: (
|
|
30
|
+
large: 24px,
|
|
31
|
+
medium: 22px,
|
|
32
|
+
small: 18px,
|
|
33
|
+
),
|
|
34
|
+
alert: (
|
|
35
|
+
title: 24px,
|
|
36
|
+
content: 24px,
|
|
37
|
+
),
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
@function typography-line-height($name, $size) {
|
|
41
|
+
// 이름과 크기가 유효한지 확인
|
|
42
|
+
@if map.has-key($typography-line-height-map, $name) {
|
|
43
|
+
$category-map: map.get($typography-line-height-map, $name);
|
|
44
|
+
|
|
45
|
+
@if map.has-key($category-map, $size) {
|
|
46
|
+
@return map.get($category-map, $size);
|
|
47
|
+
} @else {
|
|
48
|
+
@error "Invalid size '#{$size}' for '#{$name}'. Available sizes: #{map.keys($category-map)}";
|
|
49
|
+
}
|
|
50
|
+
} @else {
|
|
51
|
+
@error "Invalid name '#{$name}'. Available names: #{map.keys($typography-line-height-map)}";
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@mixin typography-line-height($name, $size) {
|
|
56
|
+
line-height: typography-line-height($name, $size);
|
|
57
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@mixin scrollbar($variant: "transparent", $type: "grey", $direction: "vertical") {
|
|
2
|
+
&::-webkit-scrollbar {
|
|
3
|
+
@if $direction == "vertical" {
|
|
4
|
+
width: 12px; // 수직 스크롤바 너비
|
|
5
|
+
height: 0;
|
|
6
|
+
} @else if $direction == "horizontal" {
|
|
7
|
+
height: 16px; // 수평 스크롤바 높이
|
|
8
|
+
width: 0;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&::-webkit-scrollbar-track {
|
|
13
|
+
background: #fbfbfc;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&::-webkit-scrollbar-thumb {
|
|
17
|
+
border-radius: 10px;
|
|
18
|
+
min-height: 60px;
|
|
19
|
+
@if $direction == "vertical" {
|
|
20
|
+
border: 2px solid #fbfbfc;
|
|
21
|
+
} @else if $direction == "horizontal" {
|
|
22
|
+
border: 4px solid #fbfbfc;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@if $variant == "transparent" {
|
|
26
|
+
@if $type == "grey" {
|
|
27
|
+
background: var(--grey16, #919eab29);
|
|
28
|
+
} @else if $type == "primary" {
|
|
29
|
+
background: var(--p16, #00a76f29);
|
|
30
|
+
}
|
|
31
|
+
} @else if $variant == "color" {
|
|
32
|
+
@if $type == "grey" {
|
|
33
|
+
background: var(--greyGrey4, #dfe3e8);
|
|
34
|
+
} @else if $type == "primary" {
|
|
35
|
+
background: var(--pMain, #00a76f);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&::-webkit-scrollbar-button:vertical:start:decrement {
|
|
41
|
+
display: block;
|
|
42
|
+
height: 8px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&::-webkit-scrollbar-button:vertical:end:increment {
|
|
46
|
+
display: block;
|
|
47
|
+
height: 8px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
export const BaseColor = {
|
|
2
|
+
red: {
|
|
3
|
+
Red1: "#fff1f0",
|
|
4
|
+
Red2: "#ffdbd8",
|
|
5
|
+
Red3: "#ffbbbc",
|
|
6
|
+
Red4: "#ff8587",
|
|
7
|
+
Red5: "#ff4d56",
|
|
8
|
+
Red6: "#f5222d",
|
|
9
|
+
Red7: "#d6231d",
|
|
10
|
+
Red8: "#b71d18",
|
|
11
|
+
Red9: "#7a0916",
|
|
12
|
+
Red10: "#5c0011",
|
|
13
|
+
},
|
|
14
|
+
lightGreen: {
|
|
15
|
+
LightGreen1: "#e3ffe2",
|
|
16
|
+
LightGreen2: "#d3fcd2",
|
|
17
|
+
LightGreen3: "#a4f6a2",
|
|
18
|
+
LightGreen4: "#77ed8b",
|
|
19
|
+
LightGreen5: "#32d970",
|
|
20
|
+
LightGreen6: "#1cc95c",
|
|
21
|
+
LightGreen7: "#10a564",
|
|
22
|
+
LightGreen8: "#118d57",
|
|
23
|
+
LightGreen9: "#065e49",
|
|
24
|
+
LightGreen10: "#04503e",
|
|
25
|
+
},
|
|
26
|
+
cyanBlue: {
|
|
27
|
+
CyanBlue1: "#e2fffa",
|
|
28
|
+
CyanBlue2: "#cafdf5",
|
|
29
|
+
CyanBlue3: "#9ff6f6",
|
|
30
|
+
CyanBlue4: "#61f3f3",
|
|
31
|
+
CyanBlue5: "#3bdff2",
|
|
32
|
+
CyanBlue6: "#00b8d9",
|
|
33
|
+
CyanBlue7: "#1c87b6",
|
|
34
|
+
CyanBlue8: "#006c9c",
|
|
35
|
+
CyanBlue9: "#003768",
|
|
36
|
+
CyanBlue10: "#00284c",
|
|
37
|
+
},
|
|
38
|
+
purple: {
|
|
39
|
+
Purple1: "#f9f0ff",
|
|
40
|
+
Purple2: "#efd6ff",
|
|
41
|
+
Purple3: "#d7a8ff",
|
|
42
|
+
Purple4: "#c684ff",
|
|
43
|
+
Purple5: "#a65dff",
|
|
44
|
+
Purple6: "#8e33ff",
|
|
45
|
+
Purple7: "#642ac1",
|
|
46
|
+
Purple8: "#5119b7",
|
|
47
|
+
Purple9: "#27097a",
|
|
48
|
+
Purple10: "#120338",
|
|
49
|
+
},
|
|
50
|
+
gold: {
|
|
51
|
+
Gold1: "#fffbe6",
|
|
52
|
+
Gold2: "#fff5cc",
|
|
53
|
+
Gold3: "#ffe99e",
|
|
54
|
+
Gold4: "#ffd666",
|
|
55
|
+
Gold5: "#ffc53d",
|
|
56
|
+
Gold6: "#ffab00",
|
|
57
|
+
Gold7: "#d48806",
|
|
58
|
+
Gold8: "#b76e00",
|
|
59
|
+
Gold9: "#7a4100",
|
|
60
|
+
Gold10: "#623501",
|
|
61
|
+
},
|
|
62
|
+
blue: {
|
|
63
|
+
Blue1: "#e6f7ff",
|
|
64
|
+
Blue2: "#cde9fd",
|
|
65
|
+
Blue3: "#a1d3f7",
|
|
66
|
+
Blue4: "#6bb1f8",
|
|
67
|
+
Blue5: "#3592f0",
|
|
68
|
+
Blue6: "#0c68e9",
|
|
69
|
+
Blue7: "#075bd1",
|
|
70
|
+
Blue8: "#063ba7",
|
|
71
|
+
Blue9: "#021d6f",
|
|
72
|
+
Blue10: "#001941",
|
|
73
|
+
},
|
|
74
|
+
grey: {
|
|
75
|
+
Grey1: "#fdfeff",
|
|
76
|
+
Grey2: "#f9fafb",
|
|
77
|
+
Grey3: "#f4f6f8",
|
|
78
|
+
Grey4: "#dfe3e8",
|
|
79
|
+
Grey5: "#c4cdd5",
|
|
80
|
+
Grey6: "#919eab",
|
|
81
|
+
Grey7: "#637381",
|
|
82
|
+
Grey8: "#454f5b",
|
|
83
|
+
Grey9: "#1c252e",
|
|
84
|
+
Grey10: "#141a21",
|
|
85
|
+
},
|
|
86
|
+
deepGreen: {
|
|
87
|
+
DeepGreen1: "#ebfff0",
|
|
88
|
+
DeepGreen2: "#c8fad6",
|
|
89
|
+
DeepGreen3: "#92f1ad",
|
|
90
|
+
DeepGreen4: "#5be49b",
|
|
91
|
+
DeepGreen5: "#14c489",
|
|
92
|
+
DeepGreen6: "#00a76f",
|
|
93
|
+
DeepGreen7: "#019362",
|
|
94
|
+
DeepGreen8: "#007867",
|
|
95
|
+
DeepGreen9: "#004b50",
|
|
96
|
+
DeepGreen10: "#00373b",
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
blackBlack: "#000000",
|
|
100
|
+
whiteWhite: "#ffffff",
|
|
101
|
+
} as const;
|
|
102
|
+
|
|
103
|
+
export const SimenticColor = {
|
|
104
|
+
red: {
|
|
105
|
+
Lighter: BaseColor.red.Red2,
|
|
106
|
+
Light: BaseColor.red.Red4,
|
|
107
|
+
Main: BaseColor.red.Red6,
|
|
108
|
+
Dark: BaseColor.red.Red8,
|
|
109
|
+
Darker: BaseColor.red.Red10,
|
|
110
|
+
},
|
|
111
|
+
lightGreen: {
|
|
112
|
+
Lighter: BaseColor.lightGreen.LightGreen2,
|
|
113
|
+
Light: BaseColor.lightGreen.LightGreen4,
|
|
114
|
+
Main: BaseColor.lightGreen.LightGreen6,
|
|
115
|
+
Dark: BaseColor.lightGreen.LightGreen8,
|
|
116
|
+
Darker: BaseColor.lightGreen.LightGreen10,
|
|
117
|
+
},
|
|
118
|
+
cyanBlue: {
|
|
119
|
+
Lighter: BaseColor.cyanBlue.CyanBlue2,
|
|
120
|
+
Light: BaseColor.cyanBlue.CyanBlue4,
|
|
121
|
+
Main: BaseColor.cyanBlue.CyanBlue6,
|
|
122
|
+
Dark: BaseColor.cyanBlue.CyanBlue8,
|
|
123
|
+
Darker: BaseColor.cyanBlue.CyanBlue10,
|
|
124
|
+
},
|
|
125
|
+
purple: {
|
|
126
|
+
Lighter: BaseColor.purple.Purple2,
|
|
127
|
+
Light: BaseColor.purple.Purple4,
|
|
128
|
+
Main: BaseColor.purple.Purple6,
|
|
129
|
+
Dark: BaseColor.purple.Purple8,
|
|
130
|
+
Darker: BaseColor.purple.Purple10,
|
|
131
|
+
},
|
|
132
|
+
gold: {
|
|
133
|
+
Lighter: BaseColor.gold.Gold2,
|
|
134
|
+
Light: BaseColor.gold.Gold4,
|
|
135
|
+
Main: BaseColor.gold.Gold6,
|
|
136
|
+
Dark: BaseColor.gold.Gold8,
|
|
137
|
+
Darker: BaseColor.gold.Gold10,
|
|
138
|
+
},
|
|
139
|
+
blue: {
|
|
140
|
+
Lighter: BaseColor.blue.Blue2,
|
|
141
|
+
Light: BaseColor.blue.Blue4,
|
|
142
|
+
Main: BaseColor.blue.Blue6,
|
|
143
|
+
Dark: BaseColor.blue.Blue8,
|
|
144
|
+
Darker: BaseColor.blue.Blue10,
|
|
145
|
+
},
|
|
146
|
+
deepGreen: {
|
|
147
|
+
Lighter: BaseColor.deepGreen.DeepGreen2,
|
|
148
|
+
Light: BaseColor.deepGreen.DeepGreen4,
|
|
149
|
+
Main: BaseColor.deepGreen.DeepGreen6,
|
|
150
|
+
Dark: BaseColor.deepGreen.DeepGreen8,
|
|
151
|
+
Darker: BaseColor.deepGreen.DeepGreen10,
|
|
152
|
+
},
|
|
153
|
+
whiteMain: BaseColor.whiteWhite,
|
|
154
|
+
blackMain: BaseColor.blackBlack,
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
export const Transparent = {
|
|
158
|
+
red4: "#f5222d0a",
|
|
159
|
+
red8: "#f5222d14",
|
|
160
|
+
red12: "#f5222d1e",
|
|
161
|
+
red16: "#f5222d28",
|
|
162
|
+
red20: "#f5222d33",
|
|
163
|
+
red24: "#f5222d3d",
|
|
164
|
+
red32: "#f5222d51",
|
|
165
|
+
red40: "#f5222d66",
|
|
166
|
+
red48: "#f5222d7a",
|
|
167
|
+
|
|
168
|
+
lightGreen4: "#1cc95c0a",
|
|
169
|
+
lightGreen8: "#1cc95c14",
|
|
170
|
+
lightGreen12: "#1cc95c1e",
|
|
171
|
+
lightGreen16: "#1cc95c28",
|
|
172
|
+
lightGreen20: "#1cc95c33",
|
|
173
|
+
lightGreen24: "#1cc95c3d",
|
|
174
|
+
lightGreen32: "#1cc95c51",
|
|
175
|
+
lightGreen40: "#1cc95c66",
|
|
176
|
+
lightGreen48: "#1cc95c7a",
|
|
177
|
+
|
|
178
|
+
cyanBlue4: "#00b8d90a",
|
|
179
|
+
cyanBlue8: "#00b8d914",
|
|
180
|
+
cyanBlue12: "#00b8d91e",
|
|
181
|
+
cyanBlue16: "#00b8d928",
|
|
182
|
+
cyanBlue20: "#00b8d933",
|
|
183
|
+
cyanBlue24: "#00b8d93d",
|
|
184
|
+
cyanBlue32: "#00b8d951",
|
|
185
|
+
cyanBlue40: "#00b8d966",
|
|
186
|
+
cyanBlue48: "#00b8d97a",
|
|
187
|
+
|
|
188
|
+
purple4: "#8e33ff0a",
|
|
189
|
+
purple8: "#8e33ff14",
|
|
190
|
+
purple12: "#8e33ff1e",
|
|
191
|
+
purple16: "#8e33ff28",
|
|
192
|
+
purple20: "#8e33ff33",
|
|
193
|
+
purple24: "#8e33ff3d",
|
|
194
|
+
purple32: "#8e33ff51",
|
|
195
|
+
purple40: "#8e33ff66",
|
|
196
|
+
purple48: "#8e33ff7a",
|
|
197
|
+
|
|
198
|
+
gold4: "#ffab000a",
|
|
199
|
+
gold8: "#ffab0014",
|
|
200
|
+
gold12: "#ffab001e",
|
|
201
|
+
gold16: "#ffab0028",
|
|
202
|
+
gold20: "#ffab0033",
|
|
203
|
+
gold24: "#ffab003d",
|
|
204
|
+
gold32: "#ffab0051",
|
|
205
|
+
gold40: "#ffab0066",
|
|
206
|
+
gold48: "#ffab007a",
|
|
207
|
+
|
|
208
|
+
blue4: "#0c68e90a",
|
|
209
|
+
blue8: "#0c68e914",
|
|
210
|
+
blue12: "#0c68e91e",
|
|
211
|
+
blue16: "#0c68e928",
|
|
212
|
+
blue20: "#0c68e933",
|
|
213
|
+
blue24: "#0c68e93d",
|
|
214
|
+
blue32: "#0c68e951",
|
|
215
|
+
blue40: "#0c68e966",
|
|
216
|
+
blue48: "#0c68e97a",
|
|
217
|
+
|
|
218
|
+
grey4: "#919eab0a",
|
|
219
|
+
grey8: "#919eab14",
|
|
220
|
+
grey12: "#919eab1e",
|
|
221
|
+
grey16: "#919eab28",
|
|
222
|
+
grey20: "#919eab33",
|
|
223
|
+
grey24: "#919eab3d",
|
|
224
|
+
grey32: "#919eab51",
|
|
225
|
+
grey40: "#919eab66",
|
|
226
|
+
grey48: "#919eab7a",
|
|
227
|
+
grey56: "#919eab8e",
|
|
228
|
+
grey64: "#919eaba3",
|
|
229
|
+
grey72: "#919eabb7",
|
|
230
|
+
grey80: "#919eabcc",
|
|
231
|
+
|
|
232
|
+
black8: "#00000014",
|
|
233
|
+
black12: "#0000001e",
|
|
234
|
+
black16: "#00000028",
|
|
235
|
+
black20: "#00000033",
|
|
236
|
+
black24: "#0000003d",
|
|
237
|
+
black32: "#00000051",
|
|
238
|
+
black40: "#00000066",
|
|
239
|
+
black48: "#0000007a",
|
|
240
|
+
black56: "#0000008e",
|
|
241
|
+
black64: "#000000a3",
|
|
242
|
+
black72: "#000000b7",
|
|
243
|
+
black80: "#000000cc",
|
|
244
|
+
|
|
245
|
+
white8: "#ffffff14",
|
|
246
|
+
white12: "#ffffff1e",
|
|
247
|
+
white16: "#ffffff28",
|
|
248
|
+
white20: "#ffffff33",
|
|
249
|
+
white24: "#ffffff3d",
|
|
250
|
+
white32: "#ffffff51",
|
|
251
|
+
white40: "#ffffff66",
|
|
252
|
+
white48: "#ffffff7a",
|
|
253
|
+
white56: "#ffffff8e",
|
|
254
|
+
white64: "#ffffffa3",
|
|
255
|
+
white72: "#ffffffb7",
|
|
256
|
+
white80: "#ffffffcc",
|
|
257
|
+
|
|
258
|
+
deepGreen4: "#00a76f0a",
|
|
259
|
+
deepGreen8: "#00a76f14",
|
|
260
|
+
deepGreen12: "#00a76f1e",
|
|
261
|
+
deepGreen16: "#00a76f28",
|
|
262
|
+
deepGreen20: "#00a76f33",
|
|
263
|
+
deepGreen24: "#00a76f3d",
|
|
264
|
+
deepGreen32: "#00a76f51",
|
|
265
|
+
deepGreen40: "#00a76f66",
|
|
266
|
+
deepGreen48: "#00a76f7a",
|
|
267
|
+
|
|
268
|
+
primary4: "#00a76f0a",
|
|
269
|
+
primary8: "#00a76f14",
|
|
270
|
+
primary12: "#00a76f1e",
|
|
271
|
+
primary16: "#00a76f28",
|
|
272
|
+
primary20: "#00a76f33",
|
|
273
|
+
primary24: "#00a76f3d",
|
|
274
|
+
primary32: "#00a76f51",
|
|
275
|
+
primary40: "#00a76f66",
|
|
276
|
+
primary48: "#00a76f7a",
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
// const a = {
|
|
280
|
+
// component: {
|
|
281
|
+
// light: {dimmedLight: '#00000033', dimmedDark: '#0000007a'},
|
|
282
|
+
// dark: {dimmedLight: '#00000033', dimmedDark: '#0000007a'},
|
|
283
|
+
// },
|
|
284
|
+
// shadow: {
|
|
285
|
+
// mode1: {
|
|
286
|
+
// dialogColor: '#919eab33',
|
|
287
|
+
// dropdownColor: '#919eab33',
|
|
288
|
+
// z4Color: '#919eab33',
|
|
289
|
+
// z8Color: '#919eab33',
|
|
290
|
+
// z12Color: '#919eab33',
|
|
291
|
+
// z16Color: '#919eab33',
|
|
292
|
+
// z20Color: '#919eab33',
|
|
293
|
+
// z24Color: '#919eab33',
|
|
294
|
+
// cardColor: '#919eab33',
|
|
295
|
+
// },
|
|
296
|
+
// },
|
|
297
|
+
// };
|