@jk-core/components 1.1.17 → 1.1.19
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 +73 -73
- package/dist/index.js +1299 -997
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +8 -8
- package/dist/index.umd.cjs.map +1 -1
- package/dist/src/common/Carousel/index.d.ts +15 -0
- package/dist/src/common/RollingBanner/index.d.ts +11 -0
- package/dist/src/index.d.ts +3 -1
- package/dist/src/utils/ts/formatMoney.d.ts +1 -1
- package/package.json +99 -99
- package/src/Calendar/Calendar.module.scss +213 -213
- package/src/Calendar/RangeCalendar.tsx +125 -125
- package/src/Calendar/ScrollCalendar.module.scss +214 -214
- package/src/Calendar/ScrollCalendar.tsx +124 -124
- package/src/Calendar/SingleCalendar.tsx +121 -121
- package/src/Calendar/components/DateLabel/DateLabel.module.scss +89 -89
- package/src/Calendar/components/DateLabel/index.tsx +91 -91
- package/src/Calendar/components/DayTile/DayTile.module.scss +117 -117
- package/src/Calendar/components/DayTile/index.tsx +108 -108
- package/src/Calendar/components/MonthTile/MonthTile.module.scss +59 -59
- package/src/Calendar/components/MonthTile/index.tsx +50 -50
- package/src/Calendar/components/ViewSelector/ViewSelector.module.scss +48 -48
- package/src/Calendar/components/ViewSelector/index.tsx +49 -49
- package/src/Calendar/components/YearTile/YearTile.module.scss +85 -85
- package/src/Calendar/components/YearTile/index.tsx +65 -65
- package/src/Calendar/hooks/useCalendarNav.ts +83 -83
- package/src/Calendar/hooks/useDateSelect.ts +54 -54
- package/src/Calendar/index.scss +189 -189
- package/src/Calendar/index.tsx +66 -66
- package/src/Calendar/type.ts +3 -3
- package/src/Calendar/utils/getWeeksInMonth.ts +45 -45
- package/src/Calendar/utils/isInRange.ts +8 -8
- package/src/Calendar/utils/isSameDay.ts +21 -21
- package/src/assets/arrow.svg +11 -11
- package/src/assets/close.svg +15 -15
- package/src/assets/drop-arrow.svg +3 -3
- package/src/common/Accordion/Accordion.module.scss +53 -53
- package/src/common/Accordion/arrow-down.svg +3 -3
- package/src/common/Accordion/arrow-up.svg +3 -3
- package/src/common/Accordion/index.tsx +54 -54
- package/src/common/Breadcrumbs/Breadcrumbs.module.scss +46 -46
- package/src/common/Breadcrumbs/home.svg +5 -5
- package/src/common/Breadcrumbs/index.tsx +82 -82
- package/src/common/Button/Button.module.scss +127 -127
- package/src/common/Button/index.tsx +60 -60
- package/src/common/Card/Card.module.scss +28 -28
- package/src/common/Card/index.tsx +19 -19
- package/src/common/Carousel/Carousel.module.scss +222 -0
- package/src/common/Carousel/index.tsx +411 -0
- package/src/common/Divider/Divider.module.scss +101 -101
- package/src/common/Divider/index.tsx +24 -24
- package/src/common/DropDown/DropDown.module.scss +135 -135
- package/src/common/DropDown/List.tsx +156 -156
- package/src/common/DropDown/arrow-down.svg +3 -3
- package/src/common/DropDown/index.tsx +108 -108
- package/src/common/DropDown/search.svg +4 -4
- package/src/common/Pagination/Pagination.module.scss +210 -210
- package/src/common/Pagination/arrow-left.svg +11 -11
- package/src/common/Pagination/arrow-right.svg +11 -11
- package/src/common/Pagination/index.tsx +156 -156
- package/src/common/RollingBanner/RollingBanner.module.scss +126 -0
- package/src/common/RollingBanner/index.tsx +140 -0
- package/src/common/SegmentButton/SegmentButton.module.scss +46 -45
- package/src/common/SegmentButton/index.tsx +79 -79
- package/src/common/Skeleton/Skeleton.module.scss +80 -80
- package/src/common/Skeleton/index.tsx +47 -47
- package/src/common/SwitchButton/SwitchButton.module.scss +65 -65
- package/src/common/SwitchButton/index.tsx +57 -57
- package/src/common/Table/Table.module.scss +70 -70
- package/src/common/Table/index.tsx +128 -128
- package/src/index.scss +1 -1
- package/src/index.tsx +24 -22
- package/src/styles/color.scss +346 -346
- package/src/styles/font-face.scss +18 -18
- package/src/styles/font.scss +49 -49
- package/src/styles/mediaQuery.scss +22 -22
- package/src/styles/scrollbar.scss +71 -71
- package/src/svg.d.ts +6 -6
- package/src/utils/styles/mediaQuery.scss +22 -22
- package/src/utils/ts/allowDecimal.ts +4 -4
- package/src/utils/ts/autoHypen.ts +33 -33
- package/src/utils/ts/calculateMax.ts +24 -24
- package/src/utils/ts/checkIsMobilePlatform.ts +15 -15
- package/src/utils/ts/formatFileSize.ts +16 -16
- package/src/utils/ts/formatMoney.ts +16 -16
- package/src/utils/ts/gradientRatio.ts +61 -61
- package/src/utils/ts/kiloToMega.ts +30 -30
- package/src/utils/ts/maskingPhone.ts +8 -8
- package/src/utils/ts/toQueryString.ts +7 -7
- package/src/utils/ts/valueAsNumber.ts +15 -15
- package/src/vite-env.d.ts +2 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface CarouselProps {
|
|
3
|
+
/**
|
|
4
|
+
* 캐러셀에 표시할 슬라이드 요소들입니다.
|
|
5
|
+
* 일반적으로 이미지나 기타 콘텐츠 요소들을 자식으로 전달합니다.
|
|
6
|
+
*/
|
|
7
|
+
children: ReactNode[];
|
|
8
|
+
autoPlay?: boolean;
|
|
9
|
+
autoPlayInterval?: number;
|
|
10
|
+
showIndicators?: boolean;
|
|
11
|
+
showNavigation?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export default function Carousel({ children, autoPlay, autoPlayInterval, showIndicators, showNavigation, className, }: CarouselProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface RollingBannerProps {
|
|
2
|
+
speed?: number;
|
|
3
|
+
reverse?: boolean;
|
|
4
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
5
|
+
gradientColor?: string;
|
|
6
|
+
gradient?: boolean;
|
|
7
|
+
gradientWidth?: number | string;
|
|
8
|
+
direction?: 'row' | 'column';
|
|
9
|
+
}
|
|
10
|
+
export default function RollingBanner({ speed, gradient, gradientColor, gradientWidth, reverse, children, direction }: RollingBannerProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as Breadcrumbs, BreadcrumbsItem } from './common/Breadcrumbs';
|
|
2
2
|
import { default as Button } from './common/Button';
|
|
3
3
|
import { default as Pagination } from './common/Pagination';
|
|
4
|
+
import { default as RollingBanner } from './common/RollingBanner';
|
|
4
5
|
import { default as Skeleton } from './common/Skeleton';
|
|
5
6
|
import { default as SwitchButton } from './common/SwitchButton';
|
|
6
7
|
import { default as Table } from './common/Table';
|
|
@@ -8,7 +9,8 @@ import { default as Calendar } from './Calendar';
|
|
|
8
9
|
import { CalendarRange, CalendarView } from './Calendar/type';
|
|
9
10
|
import { default as Accordion } from './common/Accordion';
|
|
10
11
|
import { default as Card } from './common/Card';
|
|
12
|
+
import { default as Carousel } from './common/Carousel';
|
|
11
13
|
import { default as DropDown } from './common/DropDown';
|
|
12
14
|
import { default as SegmentButton } from './common/SegmentButton';
|
|
13
|
-
export { Calendar, Accordion, Breadcrumbs, Button, Pagination, Skeleton, SwitchButton, Card, DropDown, SegmentButton, BreadcrumbsItem, Table, };
|
|
15
|
+
export { Calendar, Accordion, Breadcrumbs, Button, Pagination, Skeleton, SwitchButton, Card, DropDown, SegmentButton, BreadcrumbsItem, Table, Carousel, RollingBanner, };
|
|
14
16
|
export type { CalendarView, CalendarRange };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const formatMoney: (value?: number) =>
|
|
1
|
+
declare const formatMoney: (value?: number) => (string | number)[] | "- 원";
|
|
2
2
|
export default formatMoney;
|
package/package.json
CHANGED
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@jk-core/components",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"main": "./dist/index.umd.cjs",
|
|
6
|
-
"types": "./dist/index.d.ts",
|
|
7
|
-
"module": "./dist/index.js",
|
|
8
|
-
"license": "MIT",
|
|
9
|
-
"description": "components for jk",
|
|
10
|
-
"author": "KimKyungYun <kky38225221@gmail.com>",
|
|
11
|
-
"homepage": "https://bitbucket.org/jkcore/frontend_library#readme",
|
|
12
|
-
"repository": {
|
|
13
|
-
"type": "git",
|
|
14
|
-
"url": "git+https://KyungYun@bitbucket.org/jkcore/frontend_library.git"
|
|
15
|
-
},
|
|
16
|
-
"publishConfig": {
|
|
17
|
-
"access": "public"
|
|
18
|
-
},
|
|
19
|
-
"bugs": {
|
|
20
|
-
"url": "https://bitbucket.org/jkcore/frontend_library/issues"
|
|
21
|
-
},
|
|
22
|
-
"exports": {
|
|
23
|
-
".": {
|
|
24
|
-
"import": "./dist/index.js",
|
|
25
|
-
"require": "./dist/index.umd.cjs"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"files": [
|
|
29
|
-
"./dist",
|
|
30
|
-
"./src"
|
|
31
|
-
],
|
|
32
|
-
"keywords": [
|
|
33
|
-
"utils",
|
|
34
|
-
"kyungyun",
|
|
35
|
-
"jk",
|
|
36
|
-
"components",
|
|
37
|
-
"calendar"
|
|
38
|
-
],
|
|
39
|
-
"peerDependencies": {
|
|
40
|
-
"react": "^19.1.0"
|
|
41
|
-
},
|
|
42
|
-
"scripts": {
|
|
43
|
-
"build": "yarn clean && vite build",
|
|
44
|
-
"clean:win": "if exist dist rmdir /S /Q dist",
|
|
45
|
-
"clean:unix": "rm -rf dist",
|
|
46
|
-
"clean": "node -e \"require('child_process').execSync(process.platform === 'win32' ? 'npm run clean:win' : 'npm run clean:unix', {stdio: 'inherit'})\"",
|
|
47
|
-
"lint": "yarn lint:eslint && yarn lint:stylelint",
|
|
48
|
-
"lint:fix": "yarn lint:eslint --fix && yarn lint:stylelint --fix",
|
|
49
|
-
"lint:eslint": "eslint src",
|
|
50
|
-
"lint:stylelint": "stylelint \"./src/**/*.scss\" --config ../../.stylelintrc.json"
|
|
51
|
-
},
|
|
52
|
-
"dependencies": {
|
|
53
|
-
"@jk-core/hooks": "^1.0.0",
|
|
54
|
-
"@jk-core/utils": "^1.0.0",
|
|
55
|
-
"react": "^19.0.0",
|
|
56
|
-
"react-dom": "^19.0.0"
|
|
57
|
-
},
|
|
58
|
-
"devDependencies": {
|
|
59
|
-
"@eslint/js": "^9.30.1",
|
|
60
|
-
"@stylistic/eslint-plugin": "^5.1.0",
|
|
61
|
-
"@types/eslint-plugin-jsx-a11y": "^6.10.0",
|
|
62
|
-
"@types/node": "^24.0.10",
|
|
63
|
-
"@types/react": "^19.1.8",
|
|
64
|
-
"@types/react-dom": "^19.1.6",
|
|
65
|
-
"@vitejs/plugin-react": "^4.6.0",
|
|
66
|
-
"code-inspector-plugin": "^0.20.15",
|
|
67
|
-
"eslint": "^9.30.1",
|
|
68
|
-
"eslint-config-airbnb": "^19.0.4",
|
|
69
|
-
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
70
|
-
"eslint-import-resolver-typescript": "^4.4.4",
|
|
71
|
-
"eslint-plugin-import": "^2.32.0",
|
|
72
|
-
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
73
|
-
"eslint-plugin-react": "^7.37.5",
|
|
74
|
-
"eslint-plugin-react-hooks": "^5.2.0",
|
|
75
|
-
"eslint-plugin-react-refresh": "^0.4.20",
|
|
76
|
-
"globals": "^16.3.0",
|
|
77
|
-
"optionator": "^0.9.4",
|
|
78
|
-
"postcss": "^8.5.6",
|
|
79
|
-
"postcss-scss": "^4.0.9",
|
|
80
|
-
"sass": "^1.80.0",
|
|
81
|
-
"sass-loader": "^16.0.2",
|
|
82
|
-
"stylelint": "^16.21.1",
|
|
83
|
-
"stylelint-config-standard": "^38.0.0",
|
|
84
|
-
"stylelint-config-standard-scss": "^15.0.1",
|
|
85
|
-
"stylelint-scss": "^6.12.1",
|
|
86
|
-
"stylelint-selector-bem-pattern": "^4.0.1",
|
|
87
|
-
"tslib": "^2.8.1",
|
|
88
|
-
"typescript": "^5.8.3",
|
|
89
|
-
"typescript-eslint": "^8.36.0",
|
|
90
|
-
"vite": "^7.0.2",
|
|
91
|
-
"vite-plugin-checker": "^0.10.0",
|
|
92
|
-
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
93
|
-
"vite-plugin-css-modules": "^0.0.1",
|
|
94
|
-
"vite-plugin-dts": "^4.5.3",
|
|
95
|
-
"vite-plugin-sass-dts": "^1.3.31",
|
|
96
|
-
"vite-plugin-svgr": "^4.3.0",
|
|
97
|
-
"vite-tsconfig-paths": "^5.1.4"
|
|
98
|
-
}
|
|
99
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@jk-core/components",
|
|
3
|
+
"version": "1.1.19",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.umd.cjs",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"description": "components for jk",
|
|
10
|
+
"author": "KimKyungYun <kky38225221@gmail.com>",
|
|
11
|
+
"homepage": "https://bitbucket.org/jkcore/frontend_library#readme",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://KyungYun@bitbucket.org/jkcore/frontend_library.git"
|
|
15
|
+
},
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://bitbucket.org/jkcore/frontend_library/issues"
|
|
21
|
+
},
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"import": "./dist/index.js",
|
|
25
|
+
"require": "./dist/index.umd.cjs"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"./dist",
|
|
30
|
+
"./src"
|
|
31
|
+
],
|
|
32
|
+
"keywords": [
|
|
33
|
+
"utils",
|
|
34
|
+
"kyungyun",
|
|
35
|
+
"jk",
|
|
36
|
+
"components",
|
|
37
|
+
"calendar"
|
|
38
|
+
],
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"react": "^19.1.0"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "yarn clean && vite build",
|
|
44
|
+
"clean:win": "if exist dist rmdir /S /Q dist",
|
|
45
|
+
"clean:unix": "rm -rf dist",
|
|
46
|
+
"clean": "node -e \"require('child_process').execSync(process.platform === 'win32' ? 'npm run clean:win' : 'npm run clean:unix', {stdio: 'inherit'})\"",
|
|
47
|
+
"lint": "yarn lint:eslint && yarn lint:stylelint",
|
|
48
|
+
"lint:fix": "yarn lint:eslint --fix && yarn lint:stylelint --fix",
|
|
49
|
+
"lint:eslint": "eslint src",
|
|
50
|
+
"lint:stylelint": "stylelint \"./src/**/*.scss\" --config ../../.stylelintrc.json"
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@jk-core/hooks": "^1.0.0",
|
|
54
|
+
"@jk-core/utils": "^1.0.0",
|
|
55
|
+
"react": "^19.0.0",
|
|
56
|
+
"react-dom": "^19.0.0"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@eslint/js": "^9.30.1",
|
|
60
|
+
"@stylistic/eslint-plugin": "^5.1.0",
|
|
61
|
+
"@types/eslint-plugin-jsx-a11y": "^6.10.0",
|
|
62
|
+
"@types/node": "^24.0.10",
|
|
63
|
+
"@types/react": "^19.1.8",
|
|
64
|
+
"@types/react-dom": "^19.1.6",
|
|
65
|
+
"@vitejs/plugin-react": "^4.6.0",
|
|
66
|
+
"code-inspector-plugin": "^0.20.15",
|
|
67
|
+
"eslint": "^9.30.1",
|
|
68
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
69
|
+
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
70
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
71
|
+
"eslint-plugin-import": "^2.32.0",
|
|
72
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
73
|
+
"eslint-plugin-react": "^7.37.5",
|
|
74
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
75
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
76
|
+
"globals": "^16.3.0",
|
|
77
|
+
"optionator": "^0.9.4",
|
|
78
|
+
"postcss": "^8.5.6",
|
|
79
|
+
"postcss-scss": "^4.0.9",
|
|
80
|
+
"sass": "^1.80.0",
|
|
81
|
+
"sass-loader": "^16.0.2",
|
|
82
|
+
"stylelint": "^16.21.1",
|
|
83
|
+
"stylelint-config-standard": "^38.0.0",
|
|
84
|
+
"stylelint-config-standard-scss": "^15.0.1",
|
|
85
|
+
"stylelint-scss": "^6.12.1",
|
|
86
|
+
"stylelint-selector-bem-pattern": "^4.0.1",
|
|
87
|
+
"tslib": "^2.8.1",
|
|
88
|
+
"typescript": "^5.8.3",
|
|
89
|
+
"typescript-eslint": "^8.36.0",
|
|
90
|
+
"vite": "^7.0.2",
|
|
91
|
+
"vite-plugin-checker": "^0.10.0",
|
|
92
|
+
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
93
|
+
"vite-plugin-css-modules": "^0.0.1",
|
|
94
|
+
"vite-plugin-dts": "^4.5.3",
|
|
95
|
+
"vite-plugin-sass-dts": "^1.3.31",
|
|
96
|
+
"vite-plugin-svgr": "^4.3.0",
|
|
97
|
+
"vite-tsconfig-paths": "^5.1.4"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -1,213 +1,213 @@
|
|
|
1
|
-
@use "../styles/mediaQuery.scss" as media;
|
|
2
|
-
|
|
3
|
-
button {
|
|
4
|
-
border: none;
|
|
5
|
-
background-color: transparent;
|
|
6
|
-
user-select: none;
|
|
7
|
-
-webkit-user-select: none;
|
|
8
|
-
-moz-user-select: none;
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.calendar {
|
|
13
|
-
width: 100%;
|
|
14
|
-
min-width: 300px;
|
|
15
|
-
border: 1px solid var(--calendar-G-30);
|
|
16
|
-
border-radius: 10px;
|
|
17
|
-
overflow: hidden;
|
|
18
|
-
color: var(--calendar-G-80);
|
|
19
|
-
background-color: var(--calendar-white);
|
|
20
|
-
|
|
21
|
-
&--range {
|
|
22
|
-
box-sizing: border-box;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&--scroll {
|
|
26
|
-
height: 100%;
|
|
27
|
-
border: none;
|
|
28
|
-
border-radius: 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&__scroll {
|
|
32
|
-
height: 100%;
|
|
33
|
-
flex-shrink: 0;
|
|
34
|
-
display: flex;
|
|
35
|
-
flex-direction: column-reverse;
|
|
36
|
-
box-sizing: border-box;
|
|
37
|
-
gap: 10px;
|
|
38
|
-
overflow-y: scroll;
|
|
39
|
-
|
|
40
|
-
&::-webkit-scrollbar {
|
|
41
|
-
width: 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&--wrapper {
|
|
45
|
-
flex: 1 0;
|
|
46
|
-
width: 100%;
|
|
47
|
-
height: 100%;
|
|
48
|
-
display: flex;
|
|
49
|
-
flex-direction: column;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&--button {
|
|
53
|
-
width: 95%;
|
|
54
|
-
margin: 5px auto;
|
|
55
|
-
display: flex;
|
|
56
|
-
align-items: center;
|
|
57
|
-
justify-content: center;
|
|
58
|
-
border-radius: 10px;
|
|
59
|
-
background-color: var(--calendar-white);
|
|
60
|
-
border: 2px solid var(--calendar-G-50);
|
|
61
|
-
padding: 15px 0;
|
|
62
|
-
transition: 0.2s;
|
|
63
|
-
font-size: 1.2em;
|
|
64
|
-
|
|
65
|
-
&:active {
|
|
66
|
-
scale: 0.98;
|
|
67
|
-
background-color: var(--calendar-G-5);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&__close {
|
|
73
|
-
display: flex;
|
|
74
|
-
justify-content: flex-end;
|
|
75
|
-
align-items: center;
|
|
76
|
-
padding: 7px 10px 7px 0;
|
|
77
|
-
box-sizing: border-box;
|
|
78
|
-
|
|
79
|
-
svg {
|
|
80
|
-
width: 18px;
|
|
81
|
-
height: 18px;
|
|
82
|
-
cursor: pointer;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&__range-tile {
|
|
87
|
-
position: relative;
|
|
88
|
-
width: 100%;
|
|
89
|
-
display: flex;
|
|
90
|
-
gap: 10px;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&__wrapper {
|
|
94
|
-
flex: 1 0;
|
|
95
|
-
width: 100%;
|
|
96
|
-
height: 100%;
|
|
97
|
-
display: flex;
|
|
98
|
-
flex-direction: column;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.view {
|
|
103
|
-
position: relative;
|
|
104
|
-
margin: 0 auto;
|
|
105
|
-
width: 90%;
|
|
106
|
-
display: flex;
|
|
107
|
-
justify-content: space-between;
|
|
108
|
-
align-items: center;
|
|
109
|
-
background-color: #f3f4f8;
|
|
110
|
-
border-radius: 10px;
|
|
111
|
-
|
|
112
|
-
&__block {
|
|
113
|
-
position: absolute;
|
|
114
|
-
background-color: #fff;
|
|
115
|
-
left: 0;
|
|
116
|
-
height: 100%;
|
|
117
|
-
border: 2px solid var(--calendar-G-30);
|
|
118
|
-
width: 33.3%;
|
|
119
|
-
border-radius: 10px;
|
|
120
|
-
transition: 0.3s;
|
|
121
|
-
|
|
122
|
-
&--second {
|
|
123
|
-
left: 33%;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
&--last {
|
|
127
|
-
left: 66.6%;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
&__selector {
|
|
132
|
-
position: relative;
|
|
133
|
-
height: 40px;
|
|
134
|
-
flex: 1 0;
|
|
135
|
-
display: flex;
|
|
136
|
-
align-items: center;
|
|
137
|
-
justify-content: center;
|
|
138
|
-
color: var(--calendar-G-60);
|
|
139
|
-
font-size: 1em;
|
|
140
|
-
font-weight: 400;
|
|
141
|
-
|
|
142
|
-
&--selected {
|
|
143
|
-
color: var(--calendar-G-80);
|
|
144
|
-
font-size: 1em;
|
|
145
|
-
font-weight: 600;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.nav {
|
|
151
|
-
height: 60px;
|
|
152
|
-
display: flex;
|
|
153
|
-
justify-content: space-between;
|
|
154
|
-
align-items: center;
|
|
155
|
-
padding: 0 5px;
|
|
156
|
-
border-bottom: 1px solid var(--calendar-G-30);
|
|
157
|
-
font-size: 1.3em;
|
|
158
|
-
font-weight: 400;
|
|
159
|
-
|
|
160
|
-
&__button {
|
|
161
|
-
display: flex;
|
|
162
|
-
align-items: center;
|
|
163
|
-
justify-content: center;
|
|
164
|
-
width: 40px;
|
|
165
|
-
height: 40px;
|
|
166
|
-
padding: 10px;
|
|
167
|
-
border-radius: 100%;
|
|
168
|
-
|
|
169
|
-
&:hover {
|
|
170
|
-
@include media.pc {
|
|
171
|
-
background-color: var(--calendar-G-10);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
&:active {
|
|
176
|
-
background-color: var(--calendar-G-30);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
&:disabled {
|
|
180
|
-
cursor: not-allowed;
|
|
181
|
-
fill: var(--calendar-G-40);
|
|
182
|
-
background-color: transparent;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
&__label {
|
|
187
|
-
flex: 1 0;
|
|
188
|
-
display: flex;
|
|
189
|
-
align-items: center;
|
|
190
|
-
justify-content: space-around;
|
|
191
|
-
font-size: 1.1em;
|
|
192
|
-
font-weight: 400;
|
|
193
|
-
|
|
194
|
-
&--date {
|
|
195
|
-
display: flex;
|
|
196
|
-
align-items: center;
|
|
197
|
-
justify-content: center;
|
|
198
|
-
border-radius: 5px;
|
|
199
|
-
padding: 5px 10px;
|
|
200
|
-
font-weight: 400;
|
|
201
|
-
font-size: 1em;
|
|
202
|
-
|
|
203
|
-
svg {
|
|
204
|
-
width: 15px;
|
|
205
|
-
height: 15px;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
&--date-selected {
|
|
210
|
-
background-color: var(--calendar-S-10);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
1
|
+
@use "../styles/mediaQuery.scss" as media;
|
|
2
|
+
|
|
3
|
+
button {
|
|
4
|
+
border: none;
|
|
5
|
+
background-color: transparent;
|
|
6
|
+
user-select: none;
|
|
7
|
+
-webkit-user-select: none;
|
|
8
|
+
-moz-user-select: none;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.calendar {
|
|
13
|
+
width: 100%;
|
|
14
|
+
min-width: 300px;
|
|
15
|
+
border: 1px solid var(--calendar-G-30);
|
|
16
|
+
border-radius: 10px;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
color: var(--calendar-G-80);
|
|
19
|
+
background-color: var(--calendar-white);
|
|
20
|
+
|
|
21
|
+
&--range {
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&--scroll {
|
|
26
|
+
height: 100%;
|
|
27
|
+
border: none;
|
|
28
|
+
border-radius: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&__scroll {
|
|
32
|
+
height: 100%;
|
|
33
|
+
flex-shrink: 0;
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column-reverse;
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
gap: 10px;
|
|
38
|
+
overflow-y: scroll;
|
|
39
|
+
|
|
40
|
+
&::-webkit-scrollbar {
|
|
41
|
+
width: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&--wrapper {
|
|
45
|
+
flex: 1 0;
|
|
46
|
+
width: 100%;
|
|
47
|
+
height: 100%;
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&--button {
|
|
53
|
+
width: 95%;
|
|
54
|
+
margin: 5px auto;
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
border-radius: 10px;
|
|
59
|
+
background-color: var(--calendar-white);
|
|
60
|
+
border: 2px solid var(--calendar-G-50);
|
|
61
|
+
padding: 15px 0;
|
|
62
|
+
transition: 0.2s;
|
|
63
|
+
font-size: 1.2em;
|
|
64
|
+
|
|
65
|
+
&:active {
|
|
66
|
+
scale: 0.98;
|
|
67
|
+
background-color: var(--calendar-G-5);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&__close {
|
|
73
|
+
display: flex;
|
|
74
|
+
justify-content: flex-end;
|
|
75
|
+
align-items: center;
|
|
76
|
+
padding: 7px 10px 7px 0;
|
|
77
|
+
box-sizing: border-box;
|
|
78
|
+
|
|
79
|
+
svg {
|
|
80
|
+
width: 18px;
|
|
81
|
+
height: 18px;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&__range-tile {
|
|
87
|
+
position: relative;
|
|
88
|
+
width: 100%;
|
|
89
|
+
display: flex;
|
|
90
|
+
gap: 10px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&__wrapper {
|
|
94
|
+
flex: 1 0;
|
|
95
|
+
width: 100%;
|
|
96
|
+
height: 100%;
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.view {
|
|
103
|
+
position: relative;
|
|
104
|
+
margin: 0 auto;
|
|
105
|
+
width: 90%;
|
|
106
|
+
display: flex;
|
|
107
|
+
justify-content: space-between;
|
|
108
|
+
align-items: center;
|
|
109
|
+
background-color: #f3f4f8;
|
|
110
|
+
border-radius: 10px;
|
|
111
|
+
|
|
112
|
+
&__block {
|
|
113
|
+
position: absolute;
|
|
114
|
+
background-color: #fff;
|
|
115
|
+
left: 0;
|
|
116
|
+
height: 100%;
|
|
117
|
+
border: 2px solid var(--calendar-G-30);
|
|
118
|
+
width: 33.3%;
|
|
119
|
+
border-radius: 10px;
|
|
120
|
+
transition: 0.3s;
|
|
121
|
+
|
|
122
|
+
&--second {
|
|
123
|
+
left: 33%;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&--last {
|
|
127
|
+
left: 66.6%;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&__selector {
|
|
132
|
+
position: relative;
|
|
133
|
+
height: 40px;
|
|
134
|
+
flex: 1 0;
|
|
135
|
+
display: flex;
|
|
136
|
+
align-items: center;
|
|
137
|
+
justify-content: center;
|
|
138
|
+
color: var(--calendar-G-60);
|
|
139
|
+
font-size: 1em;
|
|
140
|
+
font-weight: 400;
|
|
141
|
+
|
|
142
|
+
&--selected {
|
|
143
|
+
color: var(--calendar-G-80);
|
|
144
|
+
font-size: 1em;
|
|
145
|
+
font-weight: 600;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.nav {
|
|
151
|
+
height: 60px;
|
|
152
|
+
display: flex;
|
|
153
|
+
justify-content: space-between;
|
|
154
|
+
align-items: center;
|
|
155
|
+
padding: 0 5px;
|
|
156
|
+
border-bottom: 1px solid var(--calendar-G-30);
|
|
157
|
+
font-size: 1.3em;
|
|
158
|
+
font-weight: 400;
|
|
159
|
+
|
|
160
|
+
&__button {
|
|
161
|
+
display: flex;
|
|
162
|
+
align-items: center;
|
|
163
|
+
justify-content: center;
|
|
164
|
+
width: 40px;
|
|
165
|
+
height: 40px;
|
|
166
|
+
padding: 10px;
|
|
167
|
+
border-radius: 100%;
|
|
168
|
+
|
|
169
|
+
&:hover {
|
|
170
|
+
@include media.pc {
|
|
171
|
+
background-color: var(--calendar-G-10);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&:active {
|
|
176
|
+
background-color: var(--calendar-G-30);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&:disabled {
|
|
180
|
+
cursor: not-allowed;
|
|
181
|
+
fill: var(--calendar-G-40);
|
|
182
|
+
background-color: transparent;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&__label {
|
|
187
|
+
flex: 1 0;
|
|
188
|
+
display: flex;
|
|
189
|
+
align-items: center;
|
|
190
|
+
justify-content: space-around;
|
|
191
|
+
font-size: 1.1em;
|
|
192
|
+
font-weight: 400;
|
|
193
|
+
|
|
194
|
+
&--date {
|
|
195
|
+
display: flex;
|
|
196
|
+
align-items: center;
|
|
197
|
+
justify-content: center;
|
|
198
|
+
border-radius: 5px;
|
|
199
|
+
padding: 5px 10px;
|
|
200
|
+
font-weight: 400;
|
|
201
|
+
font-size: 1em;
|
|
202
|
+
|
|
203
|
+
svg {
|
|
204
|
+
width: 15px;
|
|
205
|
+
height: 15px;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&--date-selected {
|
|
210
|
+
background-color: var(--calendar-S-10);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|