@tonyarbor/components 0.2.0 → 0.4.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/Avatar.d.mts +42 -0
- package/dist/Avatar.d.ts +42 -0
- package/dist/Avatar.js +158 -0
- package/dist/Avatar.js.map +1 -0
- package/dist/Avatar.mjs +7 -0
- package/dist/Avatar.mjs.map +1 -0
- package/dist/Banner.d.mts +59 -0
- package/dist/Banner.d.ts +59 -0
- package/dist/Banner.js +222 -0
- package/dist/Banner.js.map +1 -0
- package/dist/Banner.mjs +7 -0
- package/dist/Banner.mjs.map +1 -0
- package/dist/Breadcrumbs.d.mts +51 -0
- package/dist/Breadcrumbs.d.ts +51 -0
- package/dist/Breadcrumbs.js +276 -0
- package/dist/Breadcrumbs.js.map +1 -0
- package/dist/Breadcrumbs.mjs +7 -0
- package/dist/Breadcrumbs.mjs.map +1 -0
- package/dist/Checkbox.d.mts +4 -0
- package/dist/Checkbox.d.ts +4 -0
- package/dist/Checkbox.js +45 -16
- package/dist/Checkbox.js.map +1 -1
- package/dist/Checkbox.mjs +1 -1
- package/dist/DatePicker.d.mts +68 -0
- package/dist/DatePicker.d.ts +68 -0
- package/dist/DatePicker.js +490 -0
- package/dist/DatePicker.js.map +1 -0
- package/dist/DatePicker.mjs +7 -0
- package/dist/DatePicker.mjs.map +1 -0
- package/dist/Pagination.d.mts +36 -0
- package/dist/Pagination.d.ts +36 -0
- package/dist/Pagination.js +301 -0
- package/dist/Pagination.js.map +1 -0
- package/dist/Pagination.mjs +7 -0
- package/dist/Pagination.mjs.map +1 -0
- package/dist/Radio.js +32 -12
- package/dist/Radio.js.map +1 -1
- package/dist/Radio.mjs +1 -1
- package/dist/SearchGlobal.d.mts +45 -0
- package/dist/SearchGlobal.d.ts +45 -0
- package/dist/SearchGlobal.js +209 -0
- package/dist/SearchGlobal.js.map +1 -0
- package/dist/SearchGlobal.mjs +7 -0
- package/dist/SearchGlobal.mjs.map +1 -0
- package/dist/SearchOnPage.d.mts +45 -0
- package/dist/SearchOnPage.d.ts +45 -0
- package/dist/SearchOnPage.js +171 -0
- package/dist/SearchOnPage.js.map +1 -0
- package/dist/SearchOnPage.mjs +7 -0
- package/dist/SearchOnPage.mjs.map +1 -0
- package/dist/Table.d.mts +80 -0
- package/dist/Table.d.ts +80 -0
- package/dist/Table.js +347 -0
- package/dist/Table.js.map +1 -0
- package/dist/Table.mjs +8 -0
- package/dist/Table.mjs.map +1 -0
- package/dist/TableControls.d.mts +76 -0
- package/dist/TableControls.d.ts +76 -0
- package/dist/TableControls.js +461 -0
- package/dist/TableControls.js.map +1 -0
- package/dist/TableControls.mjs +7 -0
- package/dist/TableControls.mjs.map +1 -0
- package/dist/TableFooterPagination.d.mts +56 -0
- package/dist/TableFooterPagination.d.ts +56 -0
- package/dist/TableFooterPagination.js +499 -0
- package/dist/TableFooterPagination.js.map +1 -0
- package/dist/TableFooterPagination.mjs +7 -0
- package/dist/TableFooterPagination.mjs.map +1 -0
- package/dist/Tabs.d.mts +50 -0
- package/dist/Tabs.d.ts +50 -0
- package/dist/Tabs.js +187 -0
- package/dist/Tabs.js.map +1 -0
- package/dist/Tabs.mjs +7 -0
- package/dist/Tabs.mjs.map +1 -0
- package/dist/TextArea.d.mts +64 -0
- package/dist/TextArea.d.ts +64 -0
- package/dist/TextArea.js +171 -0
- package/dist/TextArea.js.map +1 -0
- package/dist/TextArea.mjs +7 -0
- package/dist/TextArea.mjs.map +1 -0
- package/dist/Toast.d.mts +48 -0
- package/dist/Toast.d.ts +48 -0
- package/dist/Toast.js +169 -0
- package/dist/Toast.js.map +1 -0
- package/dist/Toast.mjs +7 -0
- package/dist/Toast.mjs.map +1 -0
- package/dist/Toggle.d.mts +48 -0
- package/dist/Toggle.d.ts +48 -0
- package/dist/Toggle.js +291 -0
- package/dist/Toggle.js.map +1 -0
- package/dist/Toggle.mjs +7 -0
- package/dist/Toggle.mjs.map +1 -0
- package/dist/Tooltip.d.mts +32 -0
- package/dist/Tooltip.d.ts +32 -0
- package/dist/Tooltip.js +109 -0
- package/dist/Tooltip.js.map +1 -0
- package/dist/Tooltip.mjs +7 -0
- package/dist/Tooltip.mjs.map +1 -0
- package/dist/chunk-52TG3BFX.mjs +463 -0
- package/dist/chunk-52TG3BFX.mjs.map +1 -0
- package/dist/chunk-AI2U34CF.mjs +159 -0
- package/dist/chunk-AI2U34CF.mjs.map +1 -0
- package/dist/chunk-B7RX3TPX.mjs +135 -0
- package/dist/chunk-B7RX3TPX.mjs.map +1 -0
- package/dist/chunk-C25FFMRQ.mjs +255 -0
- package/dist/chunk-C25FFMRQ.mjs.map +1 -0
- package/dist/{chunk-BCYJIUQX.mjs → chunk-CUTYEIFE.mjs} +47 -18
- package/dist/chunk-CUTYEIFE.mjs.map +1 -0
- package/dist/chunk-DULH2KRW.mjs +133 -0
- package/dist/chunk-DULH2KRW.mjs.map +1 -0
- package/dist/chunk-G5NVKF2G.mjs +434 -0
- package/dist/chunk-G5NVKF2G.mjs.map +1 -0
- package/dist/chunk-JSG27ZZS.mjs +122 -0
- package/dist/chunk-JSG27ZZS.mjs.map +1 -0
- package/dist/{chunk-ARBHNHO7.mjs → chunk-M6DVBEEL.mjs} +33 -13
- package/dist/chunk-M6DVBEEL.mjs.map +1 -0
- package/dist/chunk-MBUMR2XJ.mjs +135 -0
- package/dist/chunk-MBUMR2XJ.mjs.map +1 -0
- package/dist/chunk-MNH2TGUX.mjs +73 -0
- package/dist/chunk-MNH2TGUX.mjs.map +1 -0
- package/dist/chunk-RQP6ZGD7.mjs +240 -0
- package/dist/chunk-RQP6ZGD7.mjs.map +1 -0
- package/dist/chunk-RRMG2SSZ.mjs +265 -0
- package/dist/chunk-RRMG2SSZ.mjs.map +1 -0
- package/dist/chunk-U4JXKZZG.mjs +186 -0
- package/dist/chunk-U4JXKZZG.mjs.map +1 -0
- package/dist/chunk-UPBHDBAK.mjs +173 -0
- package/dist/chunk-UPBHDBAK.mjs.map +1 -0
- package/dist/chunk-W55QJIAN.mjs +467 -0
- package/dist/chunk-W55QJIAN.mjs.map +1 -0
- package/dist/chunk-YV4OXFIM.mjs +151 -0
- package/dist/chunk-YV4OXFIM.mjs.map +1 -0
- package/dist/index.d.mts +15 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +3414 -30
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +63 -3
- package/package.json +78 -1
- package/dist/chunk-ARBHNHO7.mjs.map +0 -1
- package/dist/chunk-BCYJIUQX.mjs.map +0 -1
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
// src/Pagination/Pagination.tsx
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { clsx } from "clsx";
|
|
4
|
+
import { ChevronsLeft, ChevronLeft, ChevronRight, ChevronsRight } from "lucide-react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
var containerStyles = {
|
|
7
|
+
display: "flex",
|
|
8
|
+
alignItems: "center",
|
|
9
|
+
gap: "8px",
|
|
10
|
+
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
|
|
11
|
+
};
|
|
12
|
+
var buttonStyles = {
|
|
13
|
+
width: "24px",
|
|
14
|
+
height: "24px",
|
|
15
|
+
borderRadius: "50%",
|
|
16
|
+
border: "none",
|
|
17
|
+
background: "transparent",
|
|
18
|
+
cursor: "pointer",
|
|
19
|
+
display: "flex",
|
|
20
|
+
alignItems: "center",
|
|
21
|
+
justifyContent: "center",
|
|
22
|
+
padding: 0,
|
|
23
|
+
transition: "background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out",
|
|
24
|
+
flexShrink: 0,
|
|
25
|
+
WebkitTapHighlightColor: "transparent",
|
|
26
|
+
outline: "none"
|
|
27
|
+
};
|
|
28
|
+
var buttonDisabledStyles = {
|
|
29
|
+
cursor: "not-allowed",
|
|
30
|
+
opacity: 0.5
|
|
31
|
+
};
|
|
32
|
+
var labelStyles = {
|
|
33
|
+
fontSize: "13px",
|
|
34
|
+
fontWeight: 600,
|
|
35
|
+
lineHeight: "1.5",
|
|
36
|
+
color: "#2f2f2f"
|
|
37
|
+
};
|
|
38
|
+
var inputWrapperStyles = {
|
|
39
|
+
display: "flex",
|
|
40
|
+
alignItems: "center",
|
|
41
|
+
gap: "8px"
|
|
42
|
+
};
|
|
43
|
+
var inputStyles = {
|
|
44
|
+
width: "60px",
|
|
45
|
+
paddingTop: "12px",
|
|
46
|
+
paddingBottom: "12px",
|
|
47
|
+
paddingLeft: "16px",
|
|
48
|
+
paddingRight: "16px",
|
|
49
|
+
fontSize: "13px",
|
|
50
|
+
fontWeight: 400,
|
|
51
|
+
lineHeight: "1.5",
|
|
52
|
+
color: "#2f2f2f",
|
|
53
|
+
backgroundColor: "white",
|
|
54
|
+
border: "1px solid #dfdfdf",
|
|
55
|
+
borderRadius: "8px",
|
|
56
|
+
fontFamily: "inherit",
|
|
57
|
+
textAlign: "center",
|
|
58
|
+
outline: "none"
|
|
59
|
+
};
|
|
60
|
+
var inputFocusStyles = {
|
|
61
|
+
boxShadow: "0px 0px 0px 3px #3cad51"
|
|
62
|
+
};
|
|
63
|
+
var textStyles = {
|
|
64
|
+
fontSize: "13px",
|
|
65
|
+
fontWeight: 400,
|
|
66
|
+
lineHeight: "1.5",
|
|
67
|
+
color: "#2f2f2f"
|
|
68
|
+
};
|
|
69
|
+
var Pagination = React.forwardRef(
|
|
70
|
+
({
|
|
71
|
+
currentPage,
|
|
72
|
+
totalPages,
|
|
73
|
+
onPageChange,
|
|
74
|
+
className,
|
|
75
|
+
style,
|
|
76
|
+
"data-testid": dataTestId
|
|
77
|
+
}, ref) => {
|
|
78
|
+
const [inputValue, setInputValue] = React.useState(currentPage.toString());
|
|
79
|
+
const [focusedButton, setFocusedButton] = React.useState(null);
|
|
80
|
+
const [hoveredButton, setHoveredButton] = React.useState(null);
|
|
81
|
+
const [activeButton, setActiveButton] = React.useState(null);
|
|
82
|
+
const [inputFocused, setInputFocused] = React.useState(false);
|
|
83
|
+
React.useEffect(() => {
|
|
84
|
+
setInputValue(currentPage.toString());
|
|
85
|
+
}, [currentPage]);
|
|
86
|
+
const handleFirstPage = () => {
|
|
87
|
+
if (currentPage !== 1) {
|
|
88
|
+
onPageChange(1);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
const handlePreviousPage = () => {
|
|
92
|
+
if (currentPage > 1) {
|
|
93
|
+
onPageChange(currentPage - 1);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
const handleNextPage = () => {
|
|
97
|
+
if (currentPage < totalPages) {
|
|
98
|
+
onPageChange(currentPage + 1);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
const handleLastPage = () => {
|
|
102
|
+
if (currentPage !== totalPages) {
|
|
103
|
+
onPageChange(totalPages);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
const handleInputChange = (e) => {
|
|
107
|
+
const value = e.target.value;
|
|
108
|
+
if (value === "" || /^\d+$/.test(value)) {
|
|
109
|
+
setInputValue(value);
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
const handleInputBlur = () => {
|
|
113
|
+
setInputFocused(false);
|
|
114
|
+
const pageNumber = parseInt(inputValue, 10);
|
|
115
|
+
if (isNaN(pageNumber) || pageNumber < 1) {
|
|
116
|
+
setInputValue(currentPage.toString());
|
|
117
|
+
} else if (pageNumber > totalPages) {
|
|
118
|
+
setInputValue(totalPages.toString());
|
|
119
|
+
onPageChange(totalPages);
|
|
120
|
+
} else if (pageNumber !== currentPage) {
|
|
121
|
+
onPageChange(pageNumber);
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
const handleInputKeyDown = (e) => {
|
|
125
|
+
if (e.key === "Enter") {
|
|
126
|
+
handleInputBlur();
|
|
127
|
+
e.target.blur();
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
const getButtonStyle = (buttonName, disabled) => {
|
|
131
|
+
if (disabled) {
|
|
132
|
+
return { ...buttonStyles, ...buttonDisabledStyles };
|
|
133
|
+
}
|
|
134
|
+
const isHovered = hoveredButton === buttonName;
|
|
135
|
+
const isFocused = focusedButton === buttonName;
|
|
136
|
+
const isActive = activeButton === buttonName;
|
|
137
|
+
const style2 = {
|
|
138
|
+
...buttonStyles
|
|
139
|
+
};
|
|
140
|
+
if (isHovered && !isFocused && !isActive) {
|
|
141
|
+
style2.backgroundColor = "#efefef";
|
|
142
|
+
}
|
|
143
|
+
if (isActive && !isFocused) {
|
|
144
|
+
style2.backgroundColor = "transparent";
|
|
145
|
+
}
|
|
146
|
+
if (isFocused) {
|
|
147
|
+
style2.boxShadow = "0px 0px 0px 3px #3cad51";
|
|
148
|
+
style2.backgroundColor = "rgba(255, 255, 255, 0.01)";
|
|
149
|
+
}
|
|
150
|
+
return style2;
|
|
151
|
+
};
|
|
152
|
+
const isFirstDisabled = currentPage === 1;
|
|
153
|
+
const isPreviousDisabled = currentPage === 1;
|
|
154
|
+
const isNextDisabled = currentPage === totalPages;
|
|
155
|
+
const isLastDisabled = currentPage === totalPages;
|
|
156
|
+
return /* @__PURE__ */ jsxs(
|
|
157
|
+
"div",
|
|
158
|
+
{
|
|
159
|
+
ref,
|
|
160
|
+
className: clsx("arbor-pagination", className),
|
|
161
|
+
style: { ...containerStyles, ...style },
|
|
162
|
+
"data-testid": dataTestId,
|
|
163
|
+
children: [
|
|
164
|
+
/* @__PURE__ */ jsx(
|
|
165
|
+
"button",
|
|
166
|
+
{
|
|
167
|
+
type: "button",
|
|
168
|
+
onClick: handleFirstPage,
|
|
169
|
+
disabled: isFirstDisabled,
|
|
170
|
+
onMouseEnter: () => setHoveredButton("first"),
|
|
171
|
+
onMouseLeave: () => setHoveredButton(null),
|
|
172
|
+
onMouseDown: () => setActiveButton("first"),
|
|
173
|
+
onMouseUp: () => setActiveButton(null),
|
|
174
|
+
onFocus: () => setFocusedButton("first"),
|
|
175
|
+
onBlur: () => setFocusedButton(null),
|
|
176
|
+
style: getButtonStyle("first", isFirstDisabled),
|
|
177
|
+
"aria-label": "Go to first page",
|
|
178
|
+
children: /* @__PURE__ */ jsx(ChevronsLeft, { size: 16, color: "#2f2f2f" })
|
|
179
|
+
}
|
|
180
|
+
),
|
|
181
|
+
/* @__PURE__ */ jsx(
|
|
182
|
+
"button",
|
|
183
|
+
{
|
|
184
|
+
type: "button",
|
|
185
|
+
onClick: handlePreviousPage,
|
|
186
|
+
disabled: isPreviousDisabled,
|
|
187
|
+
onMouseEnter: () => setHoveredButton("previous"),
|
|
188
|
+
onMouseLeave: () => setHoveredButton(null),
|
|
189
|
+
onMouseDown: () => setActiveButton("previous"),
|
|
190
|
+
onMouseUp: () => setActiveButton(null),
|
|
191
|
+
onFocus: () => setFocusedButton("previous"),
|
|
192
|
+
onBlur: () => setFocusedButton(null),
|
|
193
|
+
style: getButtonStyle("previous", isPreviousDisabled),
|
|
194
|
+
"aria-label": "Go to previous page",
|
|
195
|
+
children: /* @__PURE__ */ jsx(ChevronLeft, { size: 16, color: "#2f2f2f" })
|
|
196
|
+
}
|
|
197
|
+
),
|
|
198
|
+
/* @__PURE__ */ jsxs("div", { style: inputWrapperStyles, children: [
|
|
199
|
+
/* @__PURE__ */ jsx("span", { style: labelStyles, children: "Page" }),
|
|
200
|
+
/* @__PURE__ */ jsx(
|
|
201
|
+
"input",
|
|
202
|
+
{
|
|
203
|
+
type: "text",
|
|
204
|
+
value: inputValue,
|
|
205
|
+
onChange: handleInputChange,
|
|
206
|
+
onBlur: handleInputBlur,
|
|
207
|
+
onFocus: () => setInputFocused(true),
|
|
208
|
+
onKeyDown: handleInputKeyDown,
|
|
209
|
+
style: {
|
|
210
|
+
...inputStyles,
|
|
211
|
+
...inputFocused && inputFocusStyles
|
|
212
|
+
},
|
|
213
|
+
"aria-label": `Page ${currentPage} of ${totalPages}`
|
|
214
|
+
}
|
|
215
|
+
),
|
|
216
|
+
/* @__PURE__ */ jsxs("span", { style: textStyles, children: [
|
|
217
|
+
"of ",
|
|
218
|
+
totalPages
|
|
219
|
+
] })
|
|
220
|
+
] }),
|
|
221
|
+
/* @__PURE__ */ jsx(
|
|
222
|
+
"button",
|
|
223
|
+
{
|
|
224
|
+
type: "button",
|
|
225
|
+
onClick: handleNextPage,
|
|
226
|
+
disabled: isNextDisabled,
|
|
227
|
+
onMouseEnter: () => setHoveredButton("next"),
|
|
228
|
+
onMouseLeave: () => setHoveredButton(null),
|
|
229
|
+
onMouseDown: () => setActiveButton("next"),
|
|
230
|
+
onMouseUp: () => setActiveButton(null),
|
|
231
|
+
onFocus: () => setFocusedButton("next"),
|
|
232
|
+
onBlur: () => setFocusedButton(null),
|
|
233
|
+
style: getButtonStyle("next", isNextDisabled),
|
|
234
|
+
"aria-label": "Go to next page",
|
|
235
|
+
children: /* @__PURE__ */ jsx(ChevronRight, { size: 16, color: "#2f2f2f" })
|
|
236
|
+
}
|
|
237
|
+
),
|
|
238
|
+
/* @__PURE__ */ jsx(
|
|
239
|
+
"button",
|
|
240
|
+
{
|
|
241
|
+
type: "button",
|
|
242
|
+
onClick: handleLastPage,
|
|
243
|
+
disabled: isLastDisabled,
|
|
244
|
+
onMouseEnter: () => setHoveredButton("last"),
|
|
245
|
+
onMouseLeave: () => setHoveredButton(null),
|
|
246
|
+
onMouseDown: () => setActiveButton("last"),
|
|
247
|
+
onMouseUp: () => setActiveButton(null),
|
|
248
|
+
onFocus: () => setFocusedButton("last"),
|
|
249
|
+
onBlur: () => setFocusedButton(null),
|
|
250
|
+
style: getButtonStyle("last", isLastDisabled),
|
|
251
|
+
"aria-label": "Go to last page",
|
|
252
|
+
children: /* @__PURE__ */ jsx(ChevronsRight, { size: 16, color: "#2f2f2f" })
|
|
253
|
+
}
|
|
254
|
+
)
|
|
255
|
+
]
|
|
256
|
+
}
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
);
|
|
260
|
+
Pagination.displayName = "Pagination";
|
|
261
|
+
|
|
262
|
+
export {
|
|
263
|
+
Pagination
|
|
264
|
+
};
|
|
265
|
+
//# sourceMappingURL=chunk-RRMG2SSZ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/Pagination/Pagination.tsx"],"sourcesContent":["import * as React from 'react';\nimport { clsx } from 'clsx';\nimport { ChevronsLeft, ChevronLeft, ChevronRight, ChevronsRight } from 'lucide-react';\n\nexport interface PaginationProps {\n /**\n * Current page number (1-indexed)\n */\n currentPage: number;\n /**\n * Total number of pages\n */\n totalPages: number;\n /**\n * Callback when page changes\n */\n onPageChange: (page: number) => void;\n /**\n * Custom className\n */\n className?: string;\n /**\n * Custom style\n */\n style?: React.CSSProperties;\n /**\n * Test ID for testing\n */\n 'data-testid'?: string;\n}\n\nconst containerStyles: React.CSSProperties = {\n display: 'flex',\n alignItems: 'center',\n gap: '8px',\n fontFamily: \"'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif\",\n};\n\nconst buttonStyles: React.CSSProperties = {\n width: '24px',\n height: '24px',\n borderRadius: '50%',\n border: 'none',\n background: 'transparent',\n cursor: 'pointer',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n padding: 0,\n transition: 'background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out',\n flexShrink: 0,\n WebkitTapHighlightColor: 'transparent',\n outline: 'none',\n};\n\nconst buttonDisabledStyles: React.CSSProperties = {\n cursor: 'not-allowed',\n opacity: 0.5,\n};\n\nconst labelStyles: React.CSSProperties = {\n fontSize: '13px',\n fontWeight: 600,\n lineHeight: '1.5',\n color: '#2f2f2f',\n};\n\nconst inputWrapperStyles: React.CSSProperties = {\n display: 'flex',\n alignItems: 'center',\n gap: '8px',\n};\n\nconst inputStyles: React.CSSProperties = {\n width: '60px',\n paddingTop: '12px',\n paddingBottom: '12px',\n paddingLeft: '16px',\n paddingRight: '16px',\n fontSize: '13px',\n fontWeight: 400,\n lineHeight: '1.5',\n color: '#2f2f2f',\n backgroundColor: 'white',\n border: '1px solid #dfdfdf',\n borderRadius: '8px',\n fontFamily: 'inherit',\n textAlign: 'center',\n outline: 'none',\n};\n\nconst inputFocusStyles: React.CSSProperties = {\n boxShadow: '0px 0px 0px 3px #3cad51',\n};\n\nconst textStyles: React.CSSProperties = {\n fontSize: '13px',\n fontWeight: 400,\n lineHeight: '1.5',\n color: '#2f2f2f',\n};\n\n/**\n * Pagination component - Arbor Design System\n *\n * A pagination control with first/previous/next/last buttons and a page input field.\n */\nexport const Pagination = React.forwardRef<HTMLDivElement, PaginationProps>(\n (\n {\n currentPage,\n totalPages,\n onPageChange,\n className,\n style,\n 'data-testid': dataTestId,\n },\n ref\n ) => {\n const [inputValue, setInputValue] = React.useState(currentPage.toString());\n const [focusedButton, setFocusedButton] = React.useState<string | null>(null);\n const [hoveredButton, setHoveredButton] = React.useState<string | null>(null);\n const [activeButton, setActiveButton] = React.useState<string | null>(null);\n const [inputFocused, setInputFocused] = React.useState(false);\n\n React.useEffect(() => {\n setInputValue(currentPage.toString());\n }, [currentPage]);\n\n const handleFirstPage = () => {\n if (currentPage !== 1) {\n onPageChange(1);\n }\n };\n\n const handlePreviousPage = () => {\n if (currentPage > 1) {\n onPageChange(currentPage - 1);\n }\n };\n\n const handleNextPage = () => {\n if (currentPage < totalPages) {\n onPageChange(currentPage + 1);\n }\n };\n\n const handleLastPage = () => {\n if (currentPage !== totalPages) {\n onPageChange(totalPages);\n }\n };\n\n const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n const value = e.target.value;\n // Allow empty or valid numbers\n if (value === '' || /^\\d+$/.test(value)) {\n setInputValue(value);\n }\n };\n\n const handleInputBlur = () => {\n setInputFocused(false);\n const pageNumber = parseInt(inputValue, 10);\n if (isNaN(pageNumber) || pageNumber < 1) {\n setInputValue(currentPage.toString());\n } else if (pageNumber > totalPages) {\n setInputValue(totalPages.toString());\n onPageChange(totalPages);\n } else if (pageNumber !== currentPage) {\n onPageChange(pageNumber);\n }\n };\n\n const handleInputKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\n if (e.key === 'Enter') {\n handleInputBlur();\n (e.target as HTMLInputElement).blur();\n }\n };\n\n const getButtonStyle = (buttonName: string, disabled: boolean): React.CSSProperties => {\n if (disabled) {\n return { ...buttonStyles, ...buttonDisabledStyles };\n }\n\n const isHovered = hoveredButton === buttonName;\n const isFocused = focusedButton === buttonName;\n const isActive = activeButton === buttonName;\n\n const style: React.CSSProperties = {\n ...buttonStyles,\n };\n\n // Apply hover state (light gray background)\n if (isHovered && !isFocused && !isActive) {\n style.backgroundColor = '#efefef';\n }\n\n // Apply active state (same as hover or transparent)\n if (isActive && !isFocused) {\n style.backgroundColor = 'transparent';\n }\n\n // Apply focus state (green ring, transparent background)\n if (isFocused) {\n style.boxShadow = '0px 0px 0px 3px #3cad51';\n style.backgroundColor = 'rgba(255, 255, 255, 0.01)';\n }\n\n return style;\n };\n\n const isFirstDisabled = currentPage === 1;\n const isPreviousDisabled = currentPage === 1;\n const isNextDisabled = currentPage === totalPages;\n const isLastDisabled = currentPage === totalPages;\n\n return (\n <div\n ref={ref}\n className={clsx('arbor-pagination', className)}\n style={{ ...containerStyles, ...style }}\n data-testid={dataTestId}\n >\n {/* First page button */}\n <button\n type=\"button\"\n onClick={handleFirstPage}\n disabled={isFirstDisabled}\n onMouseEnter={() => setHoveredButton('first')}\n onMouseLeave={() => setHoveredButton(null)}\n onMouseDown={() => setActiveButton('first')}\n onMouseUp={() => setActiveButton(null)}\n onFocus={() => setFocusedButton('first')}\n onBlur={() => setFocusedButton(null)}\n style={getButtonStyle('first', isFirstDisabled)}\n aria-label=\"Go to first page\"\n >\n <ChevronsLeft size={16} color=\"#2f2f2f\" />\n </button>\n\n {/* Previous page button */}\n <button\n type=\"button\"\n onClick={handlePreviousPage}\n disabled={isPreviousDisabled}\n onMouseEnter={() => setHoveredButton('previous')}\n onMouseLeave={() => setHoveredButton(null)}\n onMouseDown={() => setActiveButton('previous')}\n onMouseUp={() => setActiveButton(null)}\n onFocus={() => setFocusedButton('previous')}\n onBlur={() => setFocusedButton(null)}\n style={getButtonStyle('previous', isPreviousDisabled)}\n aria-label=\"Go to previous page\"\n >\n <ChevronLeft size={16} color=\"#2f2f2f\" />\n </button>\n\n {/* Page input */}\n <div style={inputWrapperStyles}>\n <span style={labelStyles}>Page</span>\n <input\n type=\"text\"\n value={inputValue}\n onChange={handleInputChange}\n onBlur={handleInputBlur}\n onFocus={() => setInputFocused(true)}\n onKeyDown={handleInputKeyDown}\n style={{\n ...inputStyles,\n ...(inputFocused && inputFocusStyles),\n }}\n aria-label={`Page ${currentPage} of ${totalPages}`}\n />\n <span style={textStyles}>of {totalPages}</span>\n </div>\n\n {/* Next page button */}\n <button\n type=\"button\"\n onClick={handleNextPage}\n disabled={isNextDisabled}\n onMouseEnter={() => setHoveredButton('next')}\n onMouseLeave={() => setHoveredButton(null)}\n onMouseDown={() => setActiveButton('next')}\n onMouseUp={() => setActiveButton(null)}\n onFocus={() => setFocusedButton('next')}\n onBlur={() => setFocusedButton(null)}\n style={getButtonStyle('next', isNextDisabled)}\n aria-label=\"Go to next page\"\n >\n <ChevronRight size={16} color=\"#2f2f2f\" />\n </button>\n\n {/* Last page button */}\n <button\n type=\"button\"\n onClick={handleLastPage}\n disabled={isLastDisabled}\n onMouseEnter={() => setHoveredButton('last')}\n onMouseLeave={() => setHoveredButton(null)}\n onMouseDown={() => setActiveButton('last')}\n onMouseUp={() => setActiveButton(null)}\n onFocus={() => setFocusedButton('last')}\n onBlur={() => setFocusedButton(null)}\n style={getButtonStyle('last', isLastDisabled)}\n aria-label=\"Go to last page\"\n >\n <ChevronsRight size={16} color=\"#2f2f2f\" />\n </button>\n </div>\n );\n }\n);\n\nPagination.displayName = 'Pagination';\n"],"mappings":";AAAA,YAAY,WAAW;AACvB,SAAS,YAAY;AACrB,SAAS,cAAc,aAAa,cAAc,qBAAqB;AA6O7D,cAoCA,YApCA;AAhNV,IAAM,kBAAuC;AAAA,EAC3C,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,KAAK;AAAA,EACL,YAAY;AACd;AAEA,IAAM,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IAAI,OAAM,WAAU;AAAA;AAAA,UAC1C;AAAA,UAGA;AAAA,YAAC;AAAA;AAAA,cACC,MAAK;AAAA,cACL,SAAS;AAAA,cACT,UAAU;AAAA,cACV,cAAc,MAAM,iBAAiB,MAAM;AAAA,cAC3C,cAAc,MAAM,iBAAiB,IAAI;AAAA,cACzC,aAAa,MAAM,gBAAgB,MAAM;AAAA,cACzC,WAAW,MAAM,gBAAgB,IAAI;AAAA,cACrC,SAAS,MAAM,iBAAiB,MAAM;AAAA,cACtC,QAAQ,MAAM,iBAAiB,IAAI;AAAA,cACnC,OAAO,eAAe,QAAQ,cAAc;AAAA,cAC5C,cAAW;AAAA,cAEX,8BAAC,iBAAc,MAAM,IAAI,OAAM,WAAU;AAAA;AAAA,UAC3C;AAAA;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,WAAW,cAAc;","names":["style"]}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
// src/Banner/Banner.tsx
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { clsx } from "clsx";
|
|
4
|
+
import { AlertCircle, AlertTriangle, Info, X } from "lucide-react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
var containerStyles = {
|
|
7
|
+
display: "flex",
|
|
8
|
+
alignItems: "flex-start",
|
|
9
|
+
padding: "16px",
|
|
10
|
+
borderRadius: "8px",
|
|
11
|
+
border: "1px solid",
|
|
12
|
+
width: "100%",
|
|
13
|
+
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
|
|
14
|
+
};
|
|
15
|
+
var iconContainerStyles = {
|
|
16
|
+
flexShrink: 0,
|
|
17
|
+
width: "24px",
|
|
18
|
+
height: "24px",
|
|
19
|
+
display: "flex",
|
|
20
|
+
alignItems: "center",
|
|
21
|
+
justifyContent: "center"
|
|
22
|
+
};
|
|
23
|
+
var contentContainerStyles = {
|
|
24
|
+
flex: 1,
|
|
25
|
+
display: "flex",
|
|
26
|
+
flexDirection: "column",
|
|
27
|
+
minWidth: 0
|
|
28
|
+
};
|
|
29
|
+
var titleStyles = {
|
|
30
|
+
fontSize: "18px",
|
|
31
|
+
fontWeight: 600,
|
|
32
|
+
lineHeight: "1.25",
|
|
33
|
+
marginBottom: "8px"
|
|
34
|
+
};
|
|
35
|
+
var messageStyles = {
|
|
36
|
+
fontSize: "13px",
|
|
37
|
+
fontWeight: 400,
|
|
38
|
+
lineHeight: "1.5",
|
|
39
|
+
margin: 0
|
|
40
|
+
};
|
|
41
|
+
var actionContainerStyles = {
|
|
42
|
+
display: "flex",
|
|
43
|
+
flexDirection: "column",
|
|
44
|
+
justifyContent: "flex-end",
|
|
45
|
+
alignItems: "flex-end",
|
|
46
|
+
alignSelf: "stretch",
|
|
47
|
+
flexShrink: 0
|
|
48
|
+
};
|
|
49
|
+
var actionButtonStyles = {
|
|
50
|
+
background: "none",
|
|
51
|
+
border: "none",
|
|
52
|
+
padding: 0,
|
|
53
|
+
fontSize: "13px",
|
|
54
|
+
fontWeight: 600,
|
|
55
|
+
lineHeight: "1.5",
|
|
56
|
+
textDecoration: "underline",
|
|
57
|
+
textUnderlinePosition: "from-font",
|
|
58
|
+
cursor: "pointer",
|
|
59
|
+
fontFamily: "inherit"
|
|
60
|
+
};
|
|
61
|
+
var closeButtonStyles = {
|
|
62
|
+
background: "none",
|
|
63
|
+
border: "none",
|
|
64
|
+
padding: "4px",
|
|
65
|
+
cursor: "pointer",
|
|
66
|
+
display: "flex",
|
|
67
|
+
alignItems: "center",
|
|
68
|
+
justifyContent: "center",
|
|
69
|
+
flexShrink: 0,
|
|
70
|
+
marginLeft: "8px"
|
|
71
|
+
};
|
|
72
|
+
var variantConfig = {
|
|
73
|
+
warning: {
|
|
74
|
+
backgroundColor: "#fffaf5",
|
|
75
|
+
borderColor: "#e4720d",
|
|
76
|
+
textColor: "#611f00",
|
|
77
|
+
actionColor: "#a74102",
|
|
78
|
+
icon: AlertTriangle
|
|
79
|
+
},
|
|
80
|
+
destructive: {
|
|
81
|
+
backgroundColor: "#fff5f5",
|
|
82
|
+
borderColor: "#c93232",
|
|
83
|
+
textColor: "#610202",
|
|
84
|
+
actionColor: "#920a0a",
|
|
85
|
+
icon: AlertCircle
|
|
86
|
+
},
|
|
87
|
+
information: {
|
|
88
|
+
backgroundColor: "#f5fbff",
|
|
89
|
+
borderColor: "#2c8bca",
|
|
90
|
+
textColor: "#053a61",
|
|
91
|
+
actionColor: "#024f83",
|
|
92
|
+
icon: Info
|
|
93
|
+
},
|
|
94
|
+
neutral: {
|
|
95
|
+
backgroundColor: "transparent",
|
|
96
|
+
borderColor: "#b3b3b3",
|
|
97
|
+
textColor: "#2f2f2f",
|
|
98
|
+
actionColor: "#2f2f2f",
|
|
99
|
+
icon: Info
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
var Banner = React.forwardRef(
|
|
103
|
+
({
|
|
104
|
+
variant = "information",
|
|
105
|
+
title,
|
|
106
|
+
message,
|
|
107
|
+
icon = true,
|
|
108
|
+
actionLabel,
|
|
109
|
+
onAction,
|
|
110
|
+
onClose,
|
|
111
|
+
className,
|
|
112
|
+
style,
|
|
113
|
+
"data-testid": dataTestId
|
|
114
|
+
}, ref) => {
|
|
115
|
+
const config = variantConfig[variant];
|
|
116
|
+
const DefaultIcon = config.icon;
|
|
117
|
+
const showIcon = icon !== false;
|
|
118
|
+
const iconElement = icon === true || icon === void 0 ? /* @__PURE__ */ jsx(DefaultIcon, { size: 20, strokeWidth: 2 }) : icon;
|
|
119
|
+
const containerStylesCombined = {
|
|
120
|
+
...containerStyles,
|
|
121
|
+
backgroundColor: config.backgroundColor,
|
|
122
|
+
borderColor: config.borderColor,
|
|
123
|
+
color: config.textColor,
|
|
124
|
+
gap: showIcon ? "16px" : "0px",
|
|
125
|
+
...style
|
|
126
|
+
};
|
|
127
|
+
const titleStylesCombined = {
|
|
128
|
+
...titleStyles,
|
|
129
|
+
color: config.textColor
|
|
130
|
+
};
|
|
131
|
+
const messageStylesCombined = {
|
|
132
|
+
...messageStyles,
|
|
133
|
+
color: config.textColor
|
|
134
|
+
};
|
|
135
|
+
const actionButtonStylesCombined = {
|
|
136
|
+
...actionButtonStyles,
|
|
137
|
+
color: config.actionColor
|
|
138
|
+
};
|
|
139
|
+
const closeButtonStylesCombined = {
|
|
140
|
+
...closeButtonStyles,
|
|
141
|
+
color: config.textColor
|
|
142
|
+
};
|
|
143
|
+
return /* @__PURE__ */ jsxs(
|
|
144
|
+
"div",
|
|
145
|
+
{
|
|
146
|
+
ref,
|
|
147
|
+
className: clsx("arbor-banner", `arbor-banner--${variant}`, className),
|
|
148
|
+
style: containerStylesCombined,
|
|
149
|
+
"data-testid": dataTestId,
|
|
150
|
+
role: "alert",
|
|
151
|
+
children: [
|
|
152
|
+
showIcon && /* @__PURE__ */ jsx("div", { style: { ...iconContainerStyles, color: config.textColor }, children: iconElement }),
|
|
153
|
+
/* @__PURE__ */ jsxs("div", { style: contentContainerStyles, children: [
|
|
154
|
+
title && /* @__PURE__ */ jsx("div", { style: titleStylesCombined, children: title }),
|
|
155
|
+
/* @__PURE__ */ jsx("p", { style: messageStylesCombined, children: message })
|
|
156
|
+
] }),
|
|
157
|
+
actionLabel && onAction && /* @__PURE__ */ jsx("div", { style: actionContainerStyles, children: /* @__PURE__ */ jsx(
|
|
158
|
+
"button",
|
|
159
|
+
{
|
|
160
|
+
type: "button",
|
|
161
|
+
onClick: onAction,
|
|
162
|
+
style: actionButtonStylesCombined,
|
|
163
|
+
children: actionLabel
|
|
164
|
+
}
|
|
165
|
+
) }),
|
|
166
|
+
onClose && /* @__PURE__ */ jsx(
|
|
167
|
+
"button",
|
|
168
|
+
{
|
|
169
|
+
type: "button",
|
|
170
|
+
onClick: onClose,
|
|
171
|
+
style: closeButtonStylesCombined,
|
|
172
|
+
"aria-label": "Close banner",
|
|
173
|
+
children: /* @__PURE__ */ jsx(X, { size: 20 })
|
|
174
|
+
}
|
|
175
|
+
)
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
);
|
|
181
|
+
Banner.displayName = "Banner";
|
|
182
|
+
|
|
183
|
+
export {
|
|
184
|
+
Banner
|
|
185
|
+
};
|
|
186
|
+
//# sourceMappingURL=chunk-U4JXKZZG.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/Banner/Banner.tsx"],"sourcesContent":["import * as React from 'react';\nimport { clsx } from 'clsx';\nimport { AlertCircle, AlertTriangle, Info, X } from 'lucide-react';\n\nexport type BannerVariant = 'warning' | 'destructive' | 'information' | 'neutral';\n\nexport interface BannerProps {\n /**\n * Banner variant - determines color scheme\n */\n variant?: BannerVariant;\n /**\n * Optional title text\n */\n title?: string;\n /**\n * Main message/description text\n */\n message: string;\n /**\n * Optional icon (pass false to hide default icon, or pass custom ReactNode)\n */\n icon?: React.ReactNode | boolean;\n /**\n * Optional action button label\n */\n actionLabel?: string;\n /**\n * Action button click handler\n */\n onAction?: () => void;\n /**\n * Optional close button\n */\n onClose?: () => void;\n /**\n * Custom className\n */\n className?: string;\n /**\n * Custom style\n */\n style?: React.CSSProperties;\n /**\n * Test ID for testing\n */\n 'data-testid'?: string;\n}\n\nconst containerStyles: React.CSSProperties = {\n display: 'flex',\n alignItems: 'flex-start',\n padding: '16px',\n borderRadius: '8px',\n border: '1px solid',\n width: '100%',\n fontFamily: \"'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif\",\n};\n\nconst iconContainerStyles: React.CSSProperties = {\n flexShrink: 0,\n width: '24px',\n height: '24px',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n};\n\nconst contentContainerStyles: React.CSSProperties = {\n flex: 1,\n display: 'flex',\n flexDirection: 'column',\n minWidth: 0,\n};\n\nconst titleStyles: React.CSSProperties = {\n fontSize: '18px',\n fontWeight: 600,\n lineHeight: '1.25',\n marginBottom: '8px',\n};\n\nconst messageStyles: React.CSSProperties = {\n fontSize: '13px',\n fontWeight: 400,\n lineHeight: '1.5',\n margin: 0,\n};\n\nconst actionContainerStyles: React.CSSProperties = {\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'flex-end',\n alignItems: 'flex-end',\n alignSelf: 'stretch',\n flexShrink: 0,\n};\n\nconst actionButtonStyles: React.CSSProperties = {\n background: 'none',\n border: 'none',\n padding: 0,\n fontSize: '13px',\n fontWeight: 600,\n lineHeight: '1.5',\n textDecoration: 'underline',\n textUnderlinePosition: 'from-font',\n cursor: 'pointer',\n fontFamily: 'inherit',\n};\n\nconst closeButtonStyles: React.CSSProperties = {\n background: 'none',\n border: 'none',\n padding: '4px',\n cursor: 'pointer',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexShrink: 0,\n marginLeft: '8px',\n};\n\nconst variantConfig = {\n warning: {\n backgroundColor: '#fffaf5',\n borderColor: '#e4720d',\n textColor: '#611f00',\n actionColor: '#a74102',\n icon: AlertTriangle,\n },\n destructive: {\n backgroundColor: '#fff5f5',\n borderColor: '#c93232',\n textColor: '#610202',\n actionColor: '#920a0a',\n icon: AlertCircle,\n },\n information: {\n backgroundColor: '#f5fbff',\n borderColor: '#2c8bca',\n textColor: '#053a61',\n actionColor: '#024f83',\n icon: Info,\n },\n neutral: {\n backgroundColor: 'transparent',\n borderColor: '#b3b3b3',\n textColor: '#2f2f2f',\n actionColor: '#2f2f2f',\n icon: Info,\n },\n};\n\n/**\n * Banner component - Arbor Design System\n *\n * Informational banners with 4 variants (warning, destructive, information, neutral)\n * and optional title, icon, and action button.\n *\n * IMPORTANT: Banners are always displayed inline with page content (not overlays).\n * They flow with the document layout and push other content down.\n *\n * For overlay notifications in the top-right corner, use the Toast component instead.\n */\nexport const Banner = React.forwardRef<HTMLDivElement, BannerProps>(\n (\n {\n variant = 'information',\n title,\n message,\n icon = true,\n actionLabel,\n onAction,\n onClose,\n className,\n style,\n 'data-testid': dataTestId,\n },\n ref\n ) => {\n const config = variantConfig[variant];\n const DefaultIcon = config.icon;\n\n // Determine what icon to show\n const showIcon = icon !== false;\n const iconElement =\n icon === true || icon === undefined ? (\n <DefaultIcon size={20} strokeWidth={2} />\n ) : (\n icon\n );\n\n const containerStylesCombined: React.CSSProperties = {\n ...containerStyles,\n backgroundColor: config.backgroundColor,\n borderColor: config.borderColor,\n color: config.textColor,\n gap: showIcon ? '16px' : '0px',\n ...style,\n };\n\n const titleStylesCombined: React.CSSProperties = {\n ...titleStyles,\n color: config.textColor,\n };\n\n const messageStylesCombined: React.CSSProperties = {\n ...messageStyles,\n color: config.textColor,\n };\n\n const actionButtonStylesCombined: React.CSSProperties = {\n ...actionButtonStyles,\n color: config.actionColor,\n };\n\n const closeButtonStylesCombined: React.CSSProperties = {\n ...closeButtonStyles,\n color: config.textColor,\n };\n\n return (\n <div\n ref={ref}\n className={clsx('arbor-banner', `arbor-banner--${variant}`, className)}\n style={containerStylesCombined}\n data-testid={dataTestId}\n role=\"alert\"\n >\n {showIcon && (\n <div style={{ ...iconContainerStyles, color: config.textColor }}>\n {iconElement}\n </div>\n )}\n\n <div style={contentContainerStyles}>\n {title && <div style={titleStylesCombined}>{title}</div>}\n <p style={messageStylesCombined}>{message}</p>\n </div>\n\n {actionLabel && onAction && (\n <div style={actionContainerStyles}>\n <button\n type=\"button\"\n onClick={onAction}\n style={actionButtonStylesCombined}\n >\n {actionLabel}\n </button>\n </div>\n )}\n\n {onClose && (\n <button\n type=\"button\"\n onClick={onClose}\n style={closeButtonStylesCombined}\n aria-label=\"Close banner\"\n >\n <X size={20} />\n </button>\n )}\n </div>\n );\n }\n);\n\nBanner.displayName = 'Banner';\n"],"mappings":";AAAA,YAAY,WAAW;AACvB,SAAS,YAAY;AACrB,SAAS,aAAa,eAAe,MAAM,SAAS;AA0L5C,cAgDA,YAhDA;AA3IR,IAAM,kBAAuC;AAAA,EAC3C,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,OAAO;AAAA,EACP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O,EAAE,GAAG,qBAAqB,OAAO,OAAO,UAAU,GAC3D,uBACH;AAAA,UAGF,qBAAC,SAAI,OAAO,wBACT;AAAA,qBAAS,oBAAC,SAAI,OAAO,qBAAsB,iBAAM;AAAA,YAClD,oBAAC,OAAE,OAAO,uBAAwB,mBAAQ;AAAA,aAC5C;AAAA,UAEC,eAAe,YACd,oBAAC,SAAI,OAAO,uBACV;AAAA,YAAC;AAAA;AAAA,cACC,MAAK;AAAA,cACL,SAAS;AAAA,cACT,OAAO;AAAA,cAEN;AAAA;AAAA,UACH,GACF;AAAA,UAGD,WACC;AAAA,YAAC;AAAA;AAAA,cACC,MAAK;AAAA,cACL,SAAS;AAAA,cACT,OAAO;AAAA,cACP,cAAW;AAAA,cAEX,8BAAC,KAAE,MAAM,IAAI;AAAA;AAAA,UACf;AAAA;AAAA;AAAA,IAEJ;AAAA,EAEJ;AACF;AAEA,OAAO,cAAc;","names":[]}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
// src/SearchGlobal/SearchGlobal.tsx
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Search, X } from "lucide-react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
var SearchGlobal = React.forwardRef(
|
|
6
|
+
({
|
|
7
|
+
value = "",
|
|
8
|
+
onChange,
|
|
9
|
+
onSubmit,
|
|
10
|
+
onClear,
|
|
11
|
+
placeholder = "Search",
|
|
12
|
+
className,
|
|
13
|
+
style,
|
|
14
|
+
"data-testid": dataTestId
|
|
15
|
+
}, ref) => {
|
|
16
|
+
const [isFocused, setIsFocused] = React.useState(false);
|
|
17
|
+
const [isHovered, setIsHovered] = React.useState(false);
|
|
18
|
+
const inputRef = React.useRef(null);
|
|
19
|
+
React.useImperativeHandle(ref, () => inputRef.current);
|
|
20
|
+
const handleFocus = () => {
|
|
21
|
+
setIsFocused(true);
|
|
22
|
+
};
|
|
23
|
+
const handleBlur = () => {
|
|
24
|
+
setIsFocused(false);
|
|
25
|
+
};
|
|
26
|
+
const handleChange = (e) => {
|
|
27
|
+
onChange?.(e.target.value);
|
|
28
|
+
};
|
|
29
|
+
const handleKeyDown = (e) => {
|
|
30
|
+
if (e.key === "Enter") {
|
|
31
|
+
onSubmit?.(value);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const handleClear = () => {
|
|
35
|
+
onChange?.("");
|
|
36
|
+
onClear?.();
|
|
37
|
+
inputRef.current?.focus();
|
|
38
|
+
};
|
|
39
|
+
const containerStyles = {
|
|
40
|
+
position: "relative",
|
|
41
|
+
width: isFocused ? "300px" : "160px",
|
|
42
|
+
height: "32px",
|
|
43
|
+
backgroundColor: isFocused ? "#ffffff" : isHovered ? "#efefef" : "#f8f8f8",
|
|
44
|
+
borderRadius: "16px",
|
|
45
|
+
padding: "8px 16px",
|
|
46
|
+
display: "flex",
|
|
47
|
+
alignItems: "center",
|
|
48
|
+
gap: isFocused ? "8px" : "8px",
|
|
49
|
+
cursor: "text",
|
|
50
|
+
transition: "all 0.2s ease-in-out",
|
|
51
|
+
boxSizing: "border-box",
|
|
52
|
+
border: isFocused ? "1px solid #efefef" : "none",
|
|
53
|
+
boxShadow: isFocused ? "0px 0px 0px 3px #3cad51" : "none",
|
|
54
|
+
marginLeft: isFocused ? "-140px" : "0",
|
|
55
|
+
// Expand to the left
|
|
56
|
+
...style
|
|
57
|
+
};
|
|
58
|
+
const iconContainerStyles = {
|
|
59
|
+
display: "flex",
|
|
60
|
+
alignItems: "center",
|
|
61
|
+
justifyContent: "center",
|
|
62
|
+
flexShrink: 0,
|
|
63
|
+
padding: "2px"
|
|
64
|
+
};
|
|
65
|
+
const inputStyles = {
|
|
66
|
+
border: "none",
|
|
67
|
+
outline: "none",
|
|
68
|
+
backgroundColor: "transparent",
|
|
69
|
+
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
|
|
70
|
+
fontSize: "13px",
|
|
71
|
+
fontWeight: 400,
|
|
72
|
+
color: "#2f2f2f",
|
|
73
|
+
lineHeight: "1.5",
|
|
74
|
+
flex: 1,
|
|
75
|
+
width: "100%",
|
|
76
|
+
minWidth: 0
|
|
77
|
+
};
|
|
78
|
+
const keyboardShortcutStyles = {
|
|
79
|
+
display: "flex",
|
|
80
|
+
alignItems: "center",
|
|
81
|
+
gap: "0px",
|
|
82
|
+
flexShrink: 0
|
|
83
|
+
};
|
|
84
|
+
const keyStyles = {
|
|
85
|
+
border: "1px solid #2f2f2f",
|
|
86
|
+
borderRadius: "5px",
|
|
87
|
+
padding: "0px 3px",
|
|
88
|
+
height: "16px",
|
|
89
|
+
display: "flex",
|
|
90
|
+
alignItems: "center",
|
|
91
|
+
justifyContent: "center",
|
|
92
|
+
fontFamily: "'Work Sans', sans-serif",
|
|
93
|
+
fontSize: "8px",
|
|
94
|
+
fontWeight: 400,
|
|
95
|
+
color: "#2f2f2f",
|
|
96
|
+
letterSpacing: "-0.08px",
|
|
97
|
+
lineHeight: "1.5",
|
|
98
|
+
minWidth: "16px"
|
|
99
|
+
};
|
|
100
|
+
const plusStyles = {
|
|
101
|
+
fontFamily: "'Work Sans', sans-serif",
|
|
102
|
+
fontSize: "8px",
|
|
103
|
+
fontWeight: 400,
|
|
104
|
+
color: "#2f2f2f",
|
|
105
|
+
letterSpacing: "-0.08px",
|
|
106
|
+
lineHeight: "1.5",
|
|
107
|
+
padding: "0 2px"
|
|
108
|
+
};
|
|
109
|
+
const clearButtonStyles = {
|
|
110
|
+
display: "flex",
|
|
111
|
+
alignItems: "center",
|
|
112
|
+
justifyContent: "center",
|
|
113
|
+
flexShrink: 0,
|
|
114
|
+
width: "16px",
|
|
115
|
+
height: "16px",
|
|
116
|
+
cursor: "pointer",
|
|
117
|
+
border: "none",
|
|
118
|
+
background: "none",
|
|
119
|
+
padding: 0
|
|
120
|
+
};
|
|
121
|
+
const showKeyboardShortcut = isHovered && !isFocused;
|
|
122
|
+
const showClearButton = isFocused;
|
|
123
|
+
return /* @__PURE__ */ jsxs(
|
|
124
|
+
"div",
|
|
125
|
+
{
|
|
126
|
+
className,
|
|
127
|
+
style: containerStyles,
|
|
128
|
+
onMouseEnter: () => setIsHovered(true),
|
|
129
|
+
onMouseLeave: () => setIsHovered(false),
|
|
130
|
+
onClick: () => inputRef.current?.focus(),
|
|
131
|
+
"data-testid": dataTestId,
|
|
132
|
+
children: [
|
|
133
|
+
/* @__PURE__ */ jsx("div", { style: iconContainerStyles, children: /* @__PURE__ */ jsx(Search, { size: 12, color: "#2f2f2f", strokeWidth: 2 }) }),
|
|
134
|
+
/* @__PURE__ */ jsx(
|
|
135
|
+
"input",
|
|
136
|
+
{
|
|
137
|
+
ref: inputRef,
|
|
138
|
+
type: "text",
|
|
139
|
+
value,
|
|
140
|
+
onChange: handleChange,
|
|
141
|
+
onFocus: handleFocus,
|
|
142
|
+
onBlur: handleBlur,
|
|
143
|
+
onKeyDown: handleKeyDown,
|
|
144
|
+
placeholder: isFocused ? "" : placeholder,
|
|
145
|
+
style: inputStyles
|
|
146
|
+
}
|
|
147
|
+
),
|
|
148
|
+
showKeyboardShortcut && /* @__PURE__ */ jsxs("div", { style: keyboardShortcutStyles, children: [
|
|
149
|
+
/* @__PURE__ */ jsx("div", { style: keyStyles, children: "\u2318" }),
|
|
150
|
+
/* @__PURE__ */ jsx("span", { style: plusStyles, children: "+" }),
|
|
151
|
+
/* @__PURE__ */ jsx("div", { style: keyStyles, children: "K" })
|
|
152
|
+
] }),
|
|
153
|
+
showClearButton && /* @__PURE__ */ jsx(
|
|
154
|
+
"button",
|
|
155
|
+
{
|
|
156
|
+
type: "button",
|
|
157
|
+
onClick: handleClear,
|
|
158
|
+
style: clearButtonStyles,
|
|
159
|
+
"aria-label": "Clear search",
|
|
160
|
+
children: /* @__PURE__ */ jsx(X, { size: 13.333, color: "#2f2f2f", strokeWidth: 2 })
|
|
161
|
+
}
|
|
162
|
+
)
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
);
|
|
168
|
+
SearchGlobal.displayName = "SearchGlobal";
|
|
169
|
+
|
|
170
|
+
export {
|
|
171
|
+
SearchGlobal
|
|
172
|
+
};
|
|
173
|
+
//# sourceMappingURL=chunk-UPBHDBAK.mjs.map
|