@edu-tosel/design 1.0.164 → 1.0.166

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.
@@ -5,7 +5,7 @@ import { Action, Shelf } from "../../layout";
5
5
  import Card from "./Card.design";
6
6
  import { useEffect, useState } from "react";
7
7
  import { cn } from "../../util";
8
- import useMobile from "../../hook/useResponsive";
8
+ import useResponsive from "../../hook/useResponsive";
9
9
  export default function RollCardDesign({ titles, state, disabled, isFixed, children, }) {
10
10
  const [isOpen, setIsOpen] = state;
11
11
  const [isDisabled, disabledFn] = disabled || [false, () => { }];
@@ -23,10 +23,11 @@ export default function RollCardDesign({ titles, state, disabled, isFixed, child
23
23
  sizes: "h-full",
24
24
  styles: isFixed && "hidden",
25
25
  };
26
- const isMobile = useMobile();
26
+ console.log(isFixed, isOpen);
27
+ const isMobile = useResponsive("md");
27
28
  return (_jsxs(Card, { option: {
28
29
  width: "3xl",
29
- height: !isMobile ? (!isFixed && isOpen ? "2xs" : "4xs") : "2xs",
30
+ height: isMobile ? (!isFixed && isOpen ? "2xs" : "4xs") : "2xs",
30
31
  background: isDisabled || flag ? "bg-green-dark/10" : "bg-white",
31
32
  className: "p-7.5 flex flex-col gap-y-6",
32
33
  }, children: [_jsxs("div", { className: "flex flex-col gap-y-3.5 sm:flex-row justify-between", children: [_jsxs(Shelf.Col, { className: "gap-y-2.5", children: [_jsxs("div", { className: "flex gap-x-2.5 items-center", children: [titles.icon && _jsx("img", { src: titles.icon, alt: "icon" }), _jsx("div", { className: "text-xl leading-none font-pretendard-bold text-green-dark", children: titles.title })] }), _jsx("div", { className: "leading-none", children: titles.subtitle })] }), _jsxs("div", { className: "flex justify-between sm:justify-start gap-3.5 items-center", children: [_jsx(Label, { title: !isDisabled
@@ -25,6 +25,7 @@ type DataFiledTypeText = {
25
25
  type: "text";
26
26
  };
27
27
  interface SelectRollOption {
28
+ id?: number;
28
29
  key: string;
29
30
  value: string;
30
31
  option?: {
@@ -3,7 +3,7 @@ import { useState } from "react";
3
3
  import { cn } from "../../../util";
4
4
  import { useActionStore } from "../../../store";
5
5
  export default function SelectRoll({ item, entry, data, }) {
6
- const { updateItem } = useActionStore();
6
+ const { items, updateItem } = useActionStore();
7
7
  const { options } = data ?? {};
8
8
  const [key, value] = entry;
9
9
  const [isHover, setIsHover] = useState(false);
@@ -1,2 +1,4 @@
1
1
  export default function OfflineExam(): import("react/jsx-runtime").JSX.Element;
2
2
  export declare function TableComponent(): import("react/jsx-runtime").JSX.Element;
3
+ export declare function AnnualTableComponent(): import("react/jsx-runtime").JSX.Element;
4
+ export declare function TimeTableComponent(): import("react/jsx-runtime").JSX.Element;
@@ -7,11 +7,11 @@ import { useResponsive } from "../../../hook";
7
7
  gsap.registerPlugin(ScrollTrigger);
8
8
  export default function OfflineExam() {
9
9
  const isMD = useResponsive("md");
10
- const isXL = useResponsive("xl");
11
10
  const scrollWrapperRef = useRef(null);
12
11
  useEffect(() => {
12
+ //stop scroll action while mobile
13
13
  if (!isMD)
14
- return; // isMD가 true일 때 gsap 실행 방지
14
+ return;
15
15
  const ctx = gsap.context(() => {
16
16
  const scrollWrapper = scrollWrapperRef.current;
17
17
  if (scrollWrapper) {
@@ -56,11 +56,27 @@ export default function OfflineExam() {
56
56
  sizes: "w-full h-fit",
57
57
  textStyles: "font-medium text-gray-medium text-sm md:text-base",
58
58
  };
59
- const grayBox = {
60
- sizes: "w-full h-fit rounded-2xl",
61
- spacings: "p-5 xxs:p-8 md:p-10 my-0 xs:my-10",
62
- backgrounds: "bg-gray-light/50",
63
- textstyles: "font-medium text-gray-dark text-base md:text-lg leading-loose",
59
+ //button styling
60
+ const AdvertButton = {
61
+ displays: "relative overflow-hidden flex justify-center items-center",
62
+ sizes: "h-fit w-full md:w-fit rounded-lg",
63
+ textstyles: "text-lg font-pretendard-medium text-center text-green-dark hover:text-white",
64
+ spacings: "px-3 py-2 md:mt-16 mt-10",
65
+ animations: "group duration-300",
66
+ };
67
+ //before hover gradient
68
+ const buttonBackground1 = {
69
+ displays: "absolute inset-0",
70
+ backgrounds: "bg-green-dark/10",
71
+ };
72
+ //after hover gradient
73
+ const buttonBackground2 = {
74
+ displays: "absolute inset-0",
75
+ backgrounds: "bg-gradient-to-r from-crimson-burgundy to-green-dark",
76
+ animation: "transition-opacity duration-300 opacity-0 group-hover:opacity-100",
77
+ };
78
+ const buttonText = {
79
+ textstyles: "text-lg font-pretendard-medium text-center relative z-10",
64
80
  };
65
81
  const scrollWrapper = {
66
82
  displays: "flex flex-col flex-shrink-0",
@@ -77,23 +93,111 @@ export default function OfflineExam() {
77
93
  };
78
94
  const miniDivider = {
79
95
  sizes: "w-full h-0.5 mt-1",
80
- colors: "bg-gradient-to-r from-crimson-burgundy to-green-dark",
96
+ colors: "bg-gradient-to-r from-crimson-burgundy to-green-dark flex-shrink-0",
81
97
  };
82
- return (_jsx("div", { className: cn(container), children: _jsxs("div", { className: cn(mainWrapper), children: [_jsxs("div", { className: cn(titleWrapper), ref: scrollWrapperRef, children: [_jsx("div", { className: cn(sectionTitle), children: "\uC815\uAE30\uC2DC\uD5D8 \uC548\uB0B4" }), _jsx("div", { className: cn(sectionSubTitle), children: "\uC5F0 4\uD68C, \uC624\uD504\uB77C\uC778\uC73C\uB85C \uAC1C\uCD5C\uB418\uB294 \uD1A0\uC140 \uC815\uAE30\uC2DC\uD5D8\uC785\uB2C8\uB2E4." })] }), _jsxs("div", { className: cn(scrollWrapper), children: [_jsxs("div", { className: cn(miniBox), children: [_jsx("div", { className: cn(miniTitle), children: "\uC2DC\uD5D8\uAD6C\uC131" }), _jsx("div", { className: cn(miniDivider) }), _jsx("div", { className: "h-full w-full mt-5", children: _jsx(TableComponent, {}) })] }), _jsxs("div", { className: cn(miniBox), children: [_jsx("div", { className: cn(miniTitle), children: "\uC2DC\uD5D8\uC9C4\uD589" }), _jsx("div", { className: cn(miniDivider) }), _jsx("div", { className: "h-full w-full mt-5", children: _jsx(TableComponent, {}) })] }), _jsxs("div", { className: cn(miniBox), children: [_jsx("div", { className: cn(miniTitle), children: "\uC2DC\uD5D8\uAD6C\uC131" }), _jsx("div", { className: cn(miniDivider) }), _jsx("div", { className: "h-full w-full mt-5", children: _jsx(TableComponent, {}) })] })] })] }) }));
98
+ return (_jsx("div", { className: cn(container), children: _jsxs("div", { className: cn(mainWrapper), children: [_jsxs("div", { className: cn(titleWrapper), ref: scrollWrapperRef, children: [_jsx("div", { className: cn(sectionTitle), children: "\uC815\uAE30\uC2DC\uD5D8 \uC548\uB0B4" }), _jsx("div", { className: cn(sectionSubTitle), children: "\uC5F0 4\uD68C, \uC624\uD504\uB77C\uC778\uC73C\uB85C \uAC1C\uCD5C\uB418\uB294 \uD1A0\uC140 \uC815\uAE30\uC2DC\uD5D8\uC785\uB2C8\uB2E4." }), isMD && (_jsxs("div", { onClick: () => (window.location.href = `https://olympiad.tosel.co.kr/dashboard`), className: cn(AdvertButton), children: [_jsx("div", { className: cn(buttonBackground1) }), _jsx("div", { className: cn(buttonBackground2) }), _jsx("div", { className: cn(buttonText), children: "\uC9C0\uAE08 \uC811\uC218\uD558\uAE30" })] }))] }), _jsxs("div", { className: cn(scrollWrapper), children: [_jsxs("div", { className: cn(miniBox), children: [_jsx("div", { className: cn(miniTitle), children: "\uC2DC\uD5D8\uAD6C\uC131" }), _jsx("div", { className: cn(miniDivider) }), _jsx("div", { className: "h-full w-full mt-5", children: _jsx(TableComponent, {}) })] }), _jsxs("div", { className: cn(miniBox), children: [_jsx("div", { className: cn(miniTitle), children: "\uC5F0\uAC04 \uC2DC\uD5D8 \uC77C\uC815" }), _jsx("div", { className: cn(miniDivider) }), _jsx("div", { className: "h-full w-full mt-5", children: _jsx(AnnualTableComponent, {}) })] }), _jsxs("div", { className: cn(miniBox), children: [_jsx("div", { className: cn(miniTitle), children: "\uB2F9\uC77C \uC138\uBD80\uC77C\uC815" }), _jsx("div", { className: cn(miniDivider) }), _jsx("div", { className: "h-full w-full mt-5", children: _jsx(TimeTableComponent, {}) }), _jsxs("div", { className: "flex flex-col mt-4", children: [_jsx("div", { className: "text-gray-medium font-medium text-sm", children: "*\uACE0\uC0AC\uC7A5 \uB0B4\uBD80\uC5D0\uB294 \uD559\uBD80\uBAA8\uC758 \uCD9C\uC785\uC774 \uC81C\uD55C\uB429\uB2C8\uB2E4." }), _jsx("div", { className: "text-gray-medium font-medium text-sm", children: "*\uC785\uC2E4\uB9C8\uAC10(13\uC2DC 10\uBD84)\uC2DC\uAC04\uC744 \uC900\uC218\uD574\uC8FC\uC2DC\uAE30 \uBC14\uB78D\uB2C8\uB2E4." })] })] })] }), !isMD && (_jsxs("div", { onClick: () => (window.location.href = `https://olympiad.tosel.co.kr/dashboard`), className: cn(AdvertButton), children: [_jsx("div", { className: cn(buttonBackground1) }), _jsx("div", { className: cn(buttonBackground2) }), _jsx("div", { className: cn(buttonText), children: "\uC9C0\uAE08 \uC811\uC218\uD558\uAE30" })] }))] }) }));
83
99
  }
84
100
  export function TableComponent() {
85
101
  const data = [
86
- { id: 1, level: "Cocon", age: "미취학 아동, 5-7세", info: "S1: 15문항/15분 S2: 15문항/15분", totalScore: "100점" },
87
- { id: 2, level: "Pre-Starter", age: "초등학교 1-2학년", info: "S1: 15문항/15분 S2: 20문항/25분", totalScore: "100점" },
88
- { id: 3, level: "Starter", age: "초등학교 3-4학년", info: "S1: 20문항/15분 S2: 20문항/25분", totalScore: "100점" },
89
- { id: 4, level: "Basic", age: "초등학교 5-6학년", info: "S1: 30문항/20분 S2: 30문항/30분", totalScore: "100점" },
90
- { id: 5, level: "Junior", age: "중학생", info: "S1: 30문항/20 S2: 30문항/30분", totalScore: "100점" },
91
- { id: 6, level: "High Junior", age: "고등학생", info: "S1: 30문항/25 S2: 35문항/35분", totalScore: "100점" },
92
- { id: 7, level: "Advanced", age: "대학생 및 성인", info: "S1: 70문항/45분 S2: 70문항/55분", totalScore: "990점" },
102
+ {
103
+ id: 1,
104
+ level: "Cocon",
105
+ age: "미취학 아동, 5-7세",
106
+ info1: "Section1: 15문항/15분",
107
+ info2: "Section2: 15문항/15분",
108
+ totalScore: "100점",
109
+ },
110
+ {
111
+ id: 2,
112
+ level: "Pre-Starter",
113
+ age: "초등학교 1-2학년",
114
+ info1: "Section1: 15문항/15분",
115
+ info2: "Section2: 20문항/25분",
116
+ totalScore: "100점",
117
+ },
118
+ {
119
+ id: 3,
120
+ level: "Starter",
121
+ age: "초등학교 3-4학년",
122
+ info1: "Section1: 20문항/15분",
123
+ info2: "Section2: 20문항/25분",
124
+ totalScore: "100점",
125
+ },
126
+ {
127
+ id: 4,
128
+ level: "Basic",
129
+ age: "초등학교 5-6학년",
130
+ info1: "Section1: 30문항/20분",
131
+ info2: "Section2: 30문항/30분",
132
+ totalScore: "100점",
133
+ },
134
+ {
135
+ id: 5,
136
+ level: "Junior",
137
+ age: "중학생",
138
+ info1: "Section1: 30문항/20분",
139
+ info2: "Section2: 30문항/30분",
140
+ totalScore: "100점",
141
+ },
142
+ {
143
+ id: 6,
144
+ level: "High Junior",
145
+ age: "고등학생",
146
+ info1: "Section1: 30문항/25분",
147
+ info2: "Section2: 35문항/35분",
148
+ totalScore: "100점",
149
+ },
150
+ {
151
+ id: 7,
152
+ level: "Advanced",
153
+ age: "대학생 및 성인",
154
+ info1: "Section1: 70문항/45분",
155
+ info2: "Section2: 70문항/55분",
156
+ totalScore: "990점",
157
+ },
93
158
  ];
94
- const rowStyle = {
95
- spacings: "p-2",
96
- textStylings: "font-medium text-xs text-gray-medium"
97
- };
98
- return (_jsx("div", { className: "overflow-auto w-full scrollbar-hidden rounded-lg", children: _jsxs("div", { className: "min-w-[640px] w-full", children: [_jsxs("div", { className: "flex bg-gradient-to-r from-green-dark to-crimson-burgundy text-white font-semibold text-xs", children: [_jsx("div", { className: "sticky left-0 bg-green-dark p-2 flex-[1] shadow-main", children: "\uB808\uBCA8" }), _jsx("div", { className: "p-2 flex-[2]", children: "\uCD9C\uC81C\uC218\uC900" }), _jsx("div", { className: "p-2 flex-[3]", children: "\uBB38\uD56D \uC218, \uC2DC\uAC04" }), _jsx("div", { className: "p-2 flex-[1]", children: "\uCD1D\uC810" })] }), data.map((item) => (_jsxs("div", { className: "flex bg-white/60 font-medium text-xs text-gray-medium", children: [_jsx("div", { className: "sticky left-0 bg-white p-2 flex-[1] text-gray-dark", children: item.level }), _jsx("div", { className: "p-2 flex-[2]", children: item.age }), _jsx("div", { className: "p-2 flex-[3]", children: item.info }), _jsx("div", { className: "p-2 flex-[1]", children: item.totalScore })] }, item.id)))] }) }));
159
+ return (_jsx("div", { className: "overflow-auto w-full scrollbar-hidden rounded-lg", children: _jsxs("div", { className: "min-w-[640px] w-full", children: [_jsxs("div", { className: "flex bg-gradient-to-r from-green-dark to-crimson-burgundy text-white font-semibold text-sm", children: [_jsx("div", { className: "sticky left-0 bg-green-dark p-2 flex-[1] shadow-main", children: "\uB808\uBCA8" }), _jsx("div", { className: "p-2 flex-[2]", children: "\uCD9C\uC81C\uC218\uC900" }), _jsx("div", { className: "p-2 flex-[3]", children: "\uBB38\uD56D \uC218, \uC2DC\uAC04" }), _jsx("div", { className: "p-2 flex-[1]", children: "\uCD1D\uC810" })] }), data.map((item) => (_jsxs("div", { className: "flex bg-white/60 font-medium text-sm text-gray-medium ", children: [_jsx("div", { className: "sticky left-0 bg-white/90 p-2 flex-[1] text-gray-dark border-green-dark border-r-1", children: item.level }), _jsx("div", { className: "p-2 flex-[2]", children: item.age }), _jsxs("div", { className: "p-2 flex-[3] flex-col", children: [_jsx("div", { children: item.info1 }), _jsx("div", { children: item.info2 })] }), _jsx("div", { className: "p-2 flex-[1]", children: item.totalScore })] }, item.id)))] }) }));
160
+ }
161
+ export function AnnualTableComponent() {
162
+ const data = [
163
+ {
164
+ examNumber: "86",
165
+ dDay: "24.11.16",
166
+ regStartDay: "24.08.19",
167
+ regEndDay: "24.10.22",
168
+ resultDay: "24.12.05",
169
+ },
170
+ {
171
+ examNumber: "87",
172
+ dDay: "25.02.15",
173
+ regStartDay: "24.11.18",
174
+ regEndDay: "25.01.21",
175
+ resultDay: "24.03.06",
176
+ },
177
+ {
178
+ examNumber: "88",
179
+ dDay: "25.05.17",
180
+ regStartDay: "25.02.17",
181
+ regEndDay: "25.04.22",
182
+ resultDay: "24.06.05",
183
+ },
184
+ {
185
+ examNumber: "89",
186
+ dDay: "25.08.23",
187
+ regStartDay: "25.05.19",
188
+ regEndDay: "25.07.22",
189
+ resultDay: "24.09.04",
190
+ },
191
+ {
192
+ examNumber: "90",
193
+ dDay: "25.11.15",
194
+ regStartDay: "25.08.25",
195
+ regEndDay: "25.10.21",
196
+ resultDay: "24.12.04",
197
+ },
198
+ ];
199
+ return (_jsx("div", { className: "overflow-auto w-full scrollbar-hidden rounded-lg", children: _jsxs("div", { className: "min-w-[480px] w-full", children: [_jsxs("div", { className: "flex bg-gradient-to-r from-green-dark to-crimson-burgundy text-white font-semibold text-sm", children: [_jsx("div", { className: "sticky left-0 bg-green-dark p-2 flex-[1] shadow-main", children: "\uD68C\uCC28" }), _jsx("div", { className: "p-2 flex-[2]", children: "\uC2DC\uD5D8\uC77C\uC790" }), _jsx("div", { className: "p-2 flex-[3]", children: "\uC811\uC218\uAE30\uAC04" }), _jsx("div", { className: "p-2 flex-[2]", children: "\uC131\uC801\uBC1C\uD45C" })] }), data.map((item) => (_jsxs("div", { className: "flex bg-white/60 font-medium text-sm text-gray-medium ", children: [_jsxs("div", { className: "sticky left-0 bg-white/90 p-2 flex-[1] text-gray-dark border-green-dark border-r-1", children: [item.examNumber, "\uD68C"] }), _jsx("div", { className: "p-2 flex-[2] text-green-dark font-bold", children: item.dDay }), _jsxs("div", { className: "p-2 flex-[3] flex-col", children: [item.regStartDay, " ~ ", item.regEndDay] }), _jsx("div", { className: "p-2 flex-[2]", children: item.resultDay })] }, item.examNumber)))] }) }));
200
+ }
201
+ export function TimeTableComponent() {
202
+ return (_jsx("div", { className: "overflow-auto w-full scrollbar-hidden", children: _jsxs("div", { className: "min-w-[600px] w-full", children: [_jsxs("div", { className: "flex text-green-dark font-bold text-xs", children: [_jsx("div", { className: "sticky left-0 rounded-md p-2 flex-[2] text-xs" }), _jsx("div", { className: "p-2 flex-[1]" }), _jsx("div", { className: "p-2 flex-[4]", children: "13:10" }), _jsx("div", { className: "p-2 flex-[1]", children: "13:35" }), _jsx("div", { className: "p-2 flex-[2]", children: "13:40" }), _jsx("div", { className: "p-2 flex-[1]", children: "14:20" })] }), _jsxs("div", { className: "flex bg-white/50 text-gray-dark font-semibold text-xs rounded-md", children: [_jsxs("div", { className: "sticky left-0 bg-white/90 rounded-md p-2 flex-[2]", children: ["Pre-Starter ", _jsx("br", {}), " Starter"] }), _jsx("div", { className: "p-2 flex-[1] border-green-dark border-r-1 border-dashed", children: "\uC785\uC2E4" }), _jsx("div", { className: "p-2 flex-[4] border-green-dark border-r-1 border-dashed", children: "\uC2DC\uD5D8\uC9C0 \uBC30\uBD80" }), _jsx("div", { className: "p-2 flex-[1] border-green-dark border-r-1 border-dashed", children: "\uB300\uAE30" }), _jsx("div", { className: "p-2 flex-[2] border-green-dark border-r-1 border-dashed bg-green-light text-green-dark", children: "\uC2DC\uD5D8\uC9C4\uD589 / 40\uBD84" }), _jsx("div", { className: "p-2 flex-[1]" })] }), _jsxs("div", { className: "flex text-green-dark font-bold text-xs mt-4", children: [_jsx("div", { className: "sticky left-0 rounded-md p-2 flex-[2] text-lg" }), _jsx("div", { className: "p-2 flex-[1]" }), _jsx("div", { className: "p-2 flex-[2]", children: "13:10" }), _jsx("div", { className: "p-2 flex-[1]", children: "13:25" }), _jsx("div", { className: "p-2 flex-[4]", children: "13:30" }), _jsx("div", { className: "p-2 flex-[1]", children: "14:20" })] }), _jsxs("div", { className: "flex bg-white/50 text-gray-dark font-semibold text-xs rounded-md", children: [_jsxs("div", { className: "sticky left-0 bg-white/90 rounded-md p-2 flex-[2]", children: ["Pre-Starter ", _jsx("br", {}), " Starter"] }), _jsx("div", { className: "p-2 flex-[1] border-green-dark border-r-1 border-dashed", children: "\uC785\uC2E4" }), _jsx("div", { className: "p-2 flex-[2] border-green-dark border-r-1 border-dashed", children: "\uC2DC\uD5D8\uC9C0 \uBC30\uBD80" }), _jsx("div", { className: "p-2 flex-[1] border-green-dark border-r-1 border-dashed", children: "\uB300\uAE30" }), _jsx("div", { className: "p-2 flex-[4] border-green-dark border-r-1 border-dashed bg-green-light text-green-dark", children: "\uC2DC\uD5D8\uC9C4\uD589 / 50\uBD84" }), _jsx("div", { className: "p-2 flex-[1] bg" })] }), _jsxs("div", { className: "flex text-green-dark font-bold text-xs mt-4", children: [_jsx("div", { className: "sticky left-0 rounded-md p-2 flex-[2] text-lg" }), _jsx("div", { className: "p-2 flex-[1]" }), _jsx("div", { className: "p-2 flex-[2]", children: "13:10" }), _jsx("div", { className: "p-2 flex-[1]", children: "13:25" }), _jsx("div", { className: "p-2 flex-[4]", children: "13:30" }), _jsx("div", { className: "p-2 flex-[1] text-right", children: "14:30" })] }), _jsxs("div", { className: "flex bg-white/50 text-gray-dark font-semibold text-xs rounded-md", children: [_jsx("div", { className: "sticky left-0 bg-white/90 rounded-md p-2 flex-[2]", children: "High-Junior" }), _jsx("div", { className: "p-2 flex-[1] border-green-dark border-r-1 border-dashed", children: "\uC785\uC2E4" }), _jsx("div", { className: "p-2 flex-[2] border-green-dark border-r-1 border-dashed", children: "\uC2DC\uD5D8\uC9C0 \uBC30\uBD80" }), _jsx("div", { className: "p-2 flex-[1] border-green-dark border-r-1 border-dashed", children: "\uB300\uAE30" }), _jsx("div", { className: "p-2 flex-[4] bg-green-light text-green-dark", children: "\uC2DC\uD5D8\uC9C4\uD589 / 60\uBD84" }), _jsx("div", { className: "p-2 flex-[1] bg-green-light border-green-dark border-r-1 border-dashed" })] })] }) }));
99
203
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edu-tosel/design",
3
- "version": "1.0.164",
3
+ "version": "1.0.166",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.164
1
+ 1.0.166
@@ -13,11 +13,12 @@ export default function SelectHandle({ state, selectOptions: selectOptionsInput,
13
13
  className,
14
14
  };
15
15
  const body = {
16
- positions: "relative",
16
+ positions: "relative ",
17
17
  sizes: "w-102.5 h-10",
18
18
  styles: "rounded-full bg-gray-light p-1.25",
19
19
  };
20
20
  const area = {
21
+ positions: "relative z-10",
21
22
  sizes: `${widthSizes[Math.round(((valueIndex + 1) / length) * 100)]} h-7.5`,
22
23
  displays: "flex justify-end",
23
24
  background: gradient.bg.greenToRed,
@@ -28,7 +29,7 @@ export default function SelectHandle({ state, selectOptions: selectOptionsInput,
28
29
  sizes: "w-5 h-5",
29
30
  styles: "rounded-full bg-white",
30
31
  };
31
- return (_jsx("div", { className: cn(container), children: _jsxs("div", { className: cn(body), children: [_jsx("div", { className: cn(area), children: _jsx("div", { className: cn(handle) }) }), _jsx("div", { className: "absolute flex w-full h-full top-0 left-0", children: selectOptions?.map(({ value }) => (_jsx("button", { onClick: () => {
32
- return state?.[1](value);
33
- }, className: "flex flex-1 h-10 " }, value))) })] }) }));
32
+ return (_jsx("div", { className: cn(container), children: _jsxs("div", { className: cn(body), children: [_jsx("div", { className: cn(area), children: _jsx("div", { className: cn(handle) }) }), _jsx("div", { className: "absolute flex w-full h-full top-0 left-0", children: selectOptions?.map(({ value }) => (_jsxs("div", { className: "relative flex flex-1 items-center", children: [_jsx("button", { onClick: () => {
33
+ return state?.[1](value);
34
+ }, className: "w-full h-10 pr-[12px] relative z-10" }, value), _jsx("div", { className: "absolute z-0 right-[18px] bg-black w-1 h-1 rounded-full" })] }))) })] }) }));
34
35
  }