@scripso-homepad/ui 0.4.23 → 0.4.25
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/{chunk-KJYQA5OY.js → chunk-N73KHOZ4.js} +13 -13
- package/dist/chunk-N73KHOZ4.js.map +1 -0
- package/dist/index.cjs +35 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -9
- package/dist/index.d.ts +11 -9
- package/dist/index.js +32 -14
- package/dist/index.js.map +1 -1
- package/dist/web/index.cjs +38 -78
- package/dist/web/index.cjs.map +1 -1
- package/dist/web/index.css +9 -30
- package/dist/web/index.css.map +1 -1
- package/dist/web/index.d.cts +1 -3
- package/dist/web/index.d.ts +1 -3
- package/dist/web/index.js +38 -78
- package/dist/web/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CountryCodeSelector.tsx +3 -1
- package/src/components/Input.tsx +2 -2
- package/src/components/PhoneInput.tsx +23 -9
- package/src/components/Select.tsx +9 -1
- package/src/theme/tokens.ts +8 -8
- package/src/web/components/Modal.tsx +2 -1
- package/src/web/components/Table.stories.tsx +2 -2
- package/src/web/components/drawer-scroll.css +11 -2
- package/src/web/components/sonner-toast.css +1 -1
- package/src/web/components/table/TablePrimitives.tsx +3 -15
- package/src/web/components/table/TableScrollArea.tsx +1 -12
- package/src/web/components/table/constants.ts +0 -8
- package/src/web/components/table/index.ts +0 -3
- package/src/web/components/table-scroll.css +0 -27
- package/src/web/layout/BuildingSelect.tsx +46 -6
- package/dist/chunk-KJYQA5OY.js.map +0 -1
- package/src/web/components/table/use-horizontal-scroll-state.ts +0 -72
package/package.json
CHANGED
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
type Country,
|
|
19
19
|
} from "../data/countries";
|
|
20
20
|
import { ChevronDownIcon } from "../icons/ChevronDownIcon";
|
|
21
|
+
import { INPUT_HEIGHT } from "../theme/input";
|
|
21
22
|
import { colors, fontSize, fontWeight, radii, spacing, fonts } from "../theme/tokens";
|
|
22
23
|
import {
|
|
23
24
|
COUNTRY_DROPDOWN_SCROLL_CLASS,
|
|
@@ -31,7 +32,8 @@ const DROPDOWN_HEIGHT = 186;
|
|
|
31
32
|
const DROPDOWN_PADDING = 8;
|
|
32
33
|
const OPTION_GAP = 10;
|
|
33
34
|
const OPTION_HEIGHT = 35;
|
|
34
|
-
|
|
35
|
+
/** Match shared text-field height (`INPUT_HEIGHT`) so PhoneInput columns align. */
|
|
36
|
+
const TRIGGER_HEIGHT = INPUT_HEIGHT;
|
|
35
37
|
const CHEVRON_SIZE = 16;
|
|
36
38
|
|
|
37
39
|
export interface CountryCodeSelectorProps {
|
package/src/components/Input.tsx
CHANGED
|
@@ -280,8 +280,8 @@ const styles = StyleSheet.create({
|
|
|
280
280
|
gap: spacing.sm,
|
|
281
281
|
},
|
|
282
282
|
iconSlot: {
|
|
283
|
-
|
|
284
|
-
|
|
283
|
+
minWidth: INPUT_ICON_SIZE,
|
|
284
|
+
minHeight: INPUT_ICON_SIZE,
|
|
285
285
|
alignItems: "center",
|
|
286
286
|
justifyContent: "center",
|
|
287
287
|
flexShrink: 0,
|
|
@@ -17,11 +17,21 @@ import {
|
|
|
17
17
|
getInputFieldStyles,
|
|
18
18
|
inputFieldMetrics,
|
|
19
19
|
INPUT_ICON_GAP,
|
|
20
|
+
INPUT_OUTLINE_WIDTH,
|
|
20
21
|
resolveInputVisualState,
|
|
21
22
|
} from "../theme/input";
|
|
22
|
-
import { colors, spacing } from "../theme/tokens";
|
|
23
|
+
import { colors, radii, spacing } from "../theme/tokens";
|
|
23
24
|
import { useApplyWebClassName } from "../utils/useApplyWebClassName";
|
|
24
25
|
|
|
26
|
+
/** Keep country trigger outer box equal to the phone field (transparent focus ring). */
|
|
27
|
+
const countryOutlineSlot = {
|
|
28
|
+
borderRadius: radii.lg + INPUT_OUTLINE_WIDTH,
|
|
29
|
+
borderWidth: INPUT_OUTLINE_WIDTH,
|
|
30
|
+
borderColor: colors.transparent,
|
|
31
|
+
padding: 0,
|
|
32
|
+
backgroundColor: colors.transparent,
|
|
33
|
+
} as const;
|
|
34
|
+
|
|
25
35
|
export interface PhoneInputProps extends Omit<TextInputProps, "style"> {
|
|
26
36
|
label?: string;
|
|
27
37
|
countryCode?: string;
|
|
@@ -109,12 +119,14 @@ export function PhoneInput({
|
|
|
109
119
|
</Label>
|
|
110
120
|
) : null}
|
|
111
121
|
<View style={styles.row}>
|
|
112
|
-
<
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
122
|
+
<View style={[countryOutlineSlot, styles.countryOutline]}>
|
|
123
|
+
<CountryCodeSelector
|
|
124
|
+
value={countryCode}
|
|
125
|
+
onValueChange={onCountryCodeChange}
|
|
126
|
+
disabled={isDisabled}
|
|
127
|
+
style={styles.countrySelector}
|
|
128
|
+
/>
|
|
129
|
+
</View>
|
|
118
130
|
<View style={[phoneFieldStyles.outline, styles.phoneOutline]}>
|
|
119
131
|
<View
|
|
120
132
|
style={[
|
|
@@ -161,12 +173,14 @@ const styles = StyleSheet.create({
|
|
|
161
173
|
},
|
|
162
174
|
row: {
|
|
163
175
|
flexDirection: "row",
|
|
164
|
-
alignItems: "
|
|
176
|
+
alignItems: "center",
|
|
165
177
|
gap: INPUT_ICON_GAP,
|
|
166
178
|
},
|
|
179
|
+
countryOutline: {
|
|
180
|
+
flexShrink: 0,
|
|
181
|
+
},
|
|
167
182
|
countrySelector: {
|
|
168
183
|
flexShrink: 0,
|
|
169
|
-
alignSelf: "flex-start",
|
|
170
184
|
},
|
|
171
185
|
phoneOutline: {
|
|
172
186
|
flex: 1,
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
Text,
|
|
21
21
|
View,
|
|
22
22
|
type StyleProp,
|
|
23
|
+
type TextStyle,
|
|
23
24
|
type ViewStyle,
|
|
24
25
|
} from "react-native";
|
|
25
26
|
import { ChevronDownIcon } from "../icons/ChevronDownIcon";
|
|
@@ -210,6 +211,8 @@ interface SelectBaseProps {
|
|
|
210
211
|
fieldClassName?: string;
|
|
211
212
|
menuClassName?: string;
|
|
212
213
|
labelClassName?: string;
|
|
214
|
+
/** Styles merged into the field label. */
|
|
215
|
+
labelStyles?: StyleProp<TextStyle>;
|
|
213
216
|
errorClassName?: string;
|
|
214
217
|
hintClassName?: string;
|
|
215
218
|
/** Shorter option rows for compact filter-style dropdowns. */
|
|
@@ -268,6 +271,7 @@ export function Select({
|
|
|
268
271
|
fieldClassName,
|
|
269
272
|
menuClassName,
|
|
270
273
|
labelClassName,
|
|
274
|
+
labelStyles,
|
|
271
275
|
errorClassName,
|
|
272
276
|
hintClassName,
|
|
273
277
|
compact = false,
|
|
@@ -434,7 +438,11 @@ export function Select({
|
|
|
434
438
|
return (
|
|
435
439
|
<View ref={wrapperRef} style={[styles.wrapper, containerStyle]}>
|
|
436
440
|
{label ? (
|
|
437
|
-
<Label
|
|
441
|
+
<Label
|
|
442
|
+
disabled={isEffectivelyDisabled}
|
|
443
|
+
style={[styles.label, labelStyles]}
|
|
444
|
+
className={labelClassName}
|
|
445
|
+
>
|
|
438
446
|
{label}
|
|
439
447
|
</Label>
|
|
440
448
|
) : null}
|
package/src/theme/tokens.ts
CHANGED
|
@@ -271,16 +271,16 @@ export const buttonTypography = {
|
|
|
271
271
|
export const shadows = {
|
|
272
272
|
card: {
|
|
273
273
|
shadowColor: colors.navy,
|
|
274
|
-
shadowOffset: { width: 0, height:
|
|
275
|
-
shadowOpacity: 0.
|
|
276
|
-
shadowRadius:
|
|
277
|
-
elevation:
|
|
274
|
+
shadowOffset: { width: 0, height: 1 },
|
|
275
|
+
shadowOpacity: 0.06,
|
|
276
|
+
shadowRadius: 4,
|
|
277
|
+
elevation: 1,
|
|
278
278
|
},
|
|
279
279
|
cardLg: {
|
|
280
280
|
shadowColor: colors.navy,
|
|
281
|
-
shadowOffset: { width: 0, height:
|
|
282
|
-
shadowOpacity: 0.
|
|
283
|
-
shadowRadius:
|
|
284
|
-
elevation:
|
|
281
|
+
shadowOffset: { width: 0, height: 2 },
|
|
282
|
+
shadowOpacity: 0.08,
|
|
283
|
+
shadowRadius: 6,
|
|
284
|
+
elevation: 2,
|
|
285
285
|
},
|
|
286
286
|
} as const;
|
|
@@ -3,6 +3,7 @@ import { createPortal } from 'react-dom';
|
|
|
3
3
|
|
|
4
4
|
import { Button } from '../../components/Button';
|
|
5
5
|
import { cn } from '../utils/cn';
|
|
6
|
+
import './drawer-scroll.css';
|
|
6
7
|
|
|
7
8
|
export type ModalFooterAlign = 'left' | 'center' | 'right';
|
|
8
9
|
export type ModalFooterLayout = 'inline' | 'split';
|
|
@@ -146,7 +147,7 @@ export function Modal({
|
|
|
146
147
|
</div>
|
|
147
148
|
</header>
|
|
148
149
|
|
|
149
|
-
<div className={cn('min-h-0 min-w-0 flex-1 overflow-y-auto', contentClassName)}>{children}</div>
|
|
150
|
+
<div className={cn('drawer-scroll-area min-h-0 min-w-0 flex-1 overflow-y-auto', contentClassName)}>{children}</div>
|
|
150
151
|
|
|
151
152
|
<footer
|
|
152
153
|
className={cn(
|
|
@@ -187,7 +187,7 @@ function RequestsTableStory() {
|
|
|
187
187
|
<TableHead>Հեռախոսահամար</TableHead>
|
|
188
188
|
<TableHead>Հայտի Ամսաթիվ</TableHead>
|
|
189
189
|
<TableHead>Կարգավիճակ</TableHead>
|
|
190
|
-
<TableHead
|
|
190
|
+
<TableHead className="w-px p-0" aria-hidden />
|
|
191
191
|
</TableRow>
|
|
192
192
|
</TableHeader>
|
|
193
193
|
<TableBody>
|
|
@@ -375,7 +375,7 @@ function LargeScrollableTableStory() {
|
|
|
375
375
|
<TableHead className="min-w-40">Ընդամենը ամսական</TableHead>
|
|
376
376
|
<TableHead className="min-w-40">Վճարման կարգավիճակ</TableHead>
|
|
377
377
|
<TableHead className="min-w-32">Կարգավիճակ</TableHead>
|
|
378
|
-
<TableHead
|
|
378
|
+
<TableHead className="w-px p-0" aria-hidden />
|
|
379
379
|
</TableRow>
|
|
380
380
|
</TableHeader>
|
|
381
381
|
<TableBody>
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
.drawer-scroll-area {
|
|
2
2
|
scrollbar-color: var(--color-storm-gray-200, #d5d9dd) transparent;
|
|
3
|
-
scrollbar-width
|
|
3
|
+
/* Chrome 121+ ignores ::-webkit-scrollbar width when scrollbar-width is set. */
|
|
4
|
+
scrollbar-width: unset;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/* Firefox has no ::-webkit-scrollbar; thin is the slimmest standard option. */
|
|
8
|
+
@supports not selector(::-webkit-scrollbar) {
|
|
9
|
+
.drawer-scroll-area {
|
|
10
|
+
scrollbar-width: thin;
|
|
11
|
+
}
|
|
4
12
|
}
|
|
5
13
|
|
|
6
14
|
.drawer-scroll-area::-webkit-scrollbar {
|
|
7
|
-
width:
|
|
15
|
+
width: 3px;
|
|
16
|
+
height: 3px;
|
|
8
17
|
-webkit-appearance: none;
|
|
9
18
|
appearance: none;
|
|
10
19
|
}
|
|
@@ -13,8 +13,6 @@ import {
|
|
|
13
13
|
tableHeadSortButtonAlignClasses,
|
|
14
14
|
tableHeaderClassName,
|
|
15
15
|
tableRowDisabledCellClassName,
|
|
16
|
-
tableStickyRightHeadClassName,
|
|
17
|
-
tableStickyRightShadowClassName,
|
|
18
16
|
type TableCellVariant,
|
|
19
17
|
} from './constants';
|
|
20
18
|
import { TableRowDisabledProvider, useTableRowDisabled } from './table-row-context';
|
|
@@ -82,8 +80,6 @@ export function TableRow({ className, disabled = false, ...props }: TableRowProp
|
|
|
82
80
|
|
|
83
81
|
export type TableHeadProps = ThHTMLAttributes<HTMLTableCellElement> & {
|
|
84
82
|
align?: keyof typeof tableAlignClasses;
|
|
85
|
-
/** Pins the column to the right edge during horizontal scroll (e.g. actions menu). */
|
|
86
|
-
stickyRight?: boolean;
|
|
87
83
|
/** Enables sort UI and click handler for this column header. */
|
|
88
84
|
sortable?: boolean;
|
|
89
85
|
/** Active sort direction for this column. Omit or `null` when unsorted. */
|
|
@@ -111,7 +107,6 @@ function resolveAriaSort(
|
|
|
111
107
|
export function TableHead({
|
|
112
108
|
className,
|
|
113
109
|
align = 'left',
|
|
114
|
-
stickyRight = false,
|
|
115
110
|
sortable = false,
|
|
116
111
|
sortDirection = null,
|
|
117
112
|
onSort,
|
|
@@ -142,11 +137,6 @@ export function TableHead({
|
|
|
142
137
|
'sticky top-0 z-10',
|
|
143
138
|
tableHeadPaddingClassName,
|
|
144
139
|
tableHeaderClassName,
|
|
145
|
-
stickyRight && [
|
|
146
|
-
'sticky right-0 z-20',
|
|
147
|
-
tableStickyRightHeadClassName,
|
|
148
|
-
tableStickyRightShadowClassName,
|
|
149
|
-
],
|
|
150
140
|
!isSortable && tableAlignClasses[align],
|
|
151
141
|
className,
|
|
152
142
|
)}
|
|
@@ -203,17 +193,15 @@ export function TableActionsCell({ className, children, ...props }: TableActions
|
|
|
203
193
|
return (
|
|
204
194
|
<td
|
|
205
195
|
className={cn(
|
|
206
|
-
'
|
|
196
|
+
'whitespace-nowrap',
|
|
207
197
|
tableCellPaddingClassName,
|
|
208
198
|
tableBodyClassName,
|
|
209
|
-
|
|
210
|
-
// Keep an opaque sticky background so scrolled cells never bleed through.
|
|
211
|
-
disabled && 'bg-white [&>*]:opacity-70',
|
|
199
|
+
disabled && tableRowDisabledCellClassName,
|
|
212
200
|
className,
|
|
213
201
|
)}
|
|
214
202
|
{...props}
|
|
215
203
|
>
|
|
216
|
-
<div className="
|
|
204
|
+
<div className="flex items-center justify-end gap-2">{children}</div>
|
|
217
205
|
</td>
|
|
218
206
|
);
|
|
219
207
|
}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
import { cn } from '../../utils/cn';
|
|
4
|
-
import {
|
|
5
|
-
resolveTableMinWidth,
|
|
6
|
-
resolveTableSize,
|
|
7
|
-
tableScrollAtEndClassName,
|
|
8
|
-
tableScrollHasOverflowClassName,
|
|
9
|
-
} from './constants';
|
|
10
|
-
import { useHorizontalScrollState } from './use-horizontal-scroll-state';
|
|
4
|
+
import { resolveTableMinWidth, resolveTableSize } from './constants';
|
|
11
5
|
|
|
12
6
|
export type TableScrollAreaProps = {
|
|
13
7
|
children: ReactNode;
|
|
@@ -26,15 +20,10 @@ export function TableScrollArea({
|
|
|
26
20
|
height,
|
|
27
21
|
fillHeight = false,
|
|
28
22
|
}: TableScrollAreaProps) {
|
|
29
|
-
const { scrollRef, scrollState } = useHorizontalScrollState();
|
|
30
|
-
|
|
31
23
|
return (
|
|
32
24
|
<div
|
|
33
|
-
ref={scrollRef}
|
|
34
25
|
className={cn(
|
|
35
26
|
'table-scroll-area w-full overflow-auto',
|
|
36
|
-
scrollState.hasOverflow && tableScrollHasOverflowClassName,
|
|
37
|
-
scrollState.atEnd && tableScrollAtEndClassName,
|
|
38
27
|
fillHeight && 'min-h-0 flex-1',
|
|
39
28
|
className,
|
|
40
29
|
)}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
export const tableBorderClassName = 'border-storm-gray-50';
|
|
2
2
|
|
|
3
|
-
export const tableStickyRightShadowClassName = 'table-sticky-right-shadow';
|
|
4
|
-
|
|
5
|
-
export const tableStickyRightHeadClassName = 'table-sticky-right-head';
|
|
6
|
-
|
|
7
|
-
export const tableScrollAtEndClassName = 'table-scroll-at-end';
|
|
8
|
-
|
|
9
|
-
export const tableScrollHasOverflowClassName = 'table-scroll-has-overflow';
|
|
10
|
-
|
|
11
3
|
export const tableRowDisabledCellClassName = 'bg-[#ECEEF0]/30 [&>*]:opacity-70';
|
|
12
4
|
|
|
13
5
|
export const DEFAULT_TABLE_BODY_MIN_HEIGHT = 320;
|
|
@@ -11,10 +11,7 @@ export {
|
|
|
11
11
|
tableFooterShellClassName,
|
|
12
12
|
tableHeadPaddingClassName,
|
|
13
13
|
tableRowDisabledCellClassName,
|
|
14
|
-
tableScrollAtEndClassName,
|
|
15
|
-
tableScrollHasOverflowClassName,
|
|
16
14
|
tableShellClassName,
|
|
17
|
-
tableStickyRightShadowClassName,
|
|
18
15
|
} from './constants';
|
|
19
16
|
export type { TableCellVariant } from './constants';
|
|
20
17
|
|
|
@@ -52,30 +52,3 @@
|
|
|
52
52
|
.table-scroll-area::-webkit-scrollbar-corner {
|
|
53
53
|
background: transparent;
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
.table-sticky-right-shadow::before {
|
|
57
|
-
content: '';
|
|
58
|
-
position: absolute;
|
|
59
|
-
top: 0;
|
|
60
|
-
bottom: 0;
|
|
61
|
-
left: 0;
|
|
62
|
-
z-index: 0;
|
|
63
|
-
width: 12px;
|
|
64
|
-
transform: translateX(-100%);
|
|
65
|
-
background: linear-gradient(90deg, rgba(21, 26, 30, 0) 0%, rgba(21, 26, 30, 0.08) 100%);
|
|
66
|
-
pointer-events: none;
|
|
67
|
-
opacity: 0;
|
|
68
|
-
transition: opacity 150ms ease;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.table-scroll-has-overflow:not(.table-scroll-at-end) .table-sticky-right-shadow::before {
|
|
72
|
-
opacity: 1;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.table-sticky-right-head {
|
|
76
|
-
background-color: var(--color-storm-gray-0, #fbfcfc);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.table-scroll-has-overflow:not(.table-scroll-at-end) .table-sticky-right-head {
|
|
80
|
-
background-color: #fff;
|
|
81
|
-
}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { ChevronsUpDown } from 'lucide-react';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
useCallback,
|
|
4
|
+
useId,
|
|
5
|
+
useLayoutEffect,
|
|
6
|
+
useRef,
|
|
7
|
+
useState,
|
|
8
|
+
type KeyboardEvent,
|
|
9
|
+
type ReactNode,
|
|
10
|
+
} from 'react';
|
|
3
11
|
|
|
4
12
|
import { BuildingIcon } from '../icons/BuildingIcon';
|
|
5
13
|
import { useOnClickOutside } from '../hooks/useOnClickOutside';
|
|
@@ -18,6 +26,31 @@ export type BuildingSelectProps = {
|
|
|
18
26
|
chevronIcon?: ReactNode;
|
|
19
27
|
};
|
|
20
28
|
|
|
29
|
+
function useTruncatedTitle(text: string) {
|
|
30
|
+
const ref = useRef<HTMLSpanElement>(null);
|
|
31
|
+
const [isTruncated, setIsTruncated] = useState(false);
|
|
32
|
+
|
|
33
|
+
useLayoutEffect(() => {
|
|
34
|
+
const element = ref.current;
|
|
35
|
+
|
|
36
|
+
if (!element) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const update = () => {
|
|
41
|
+
setIsTruncated(element.scrollWidth > element.clientWidth + 1);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
update();
|
|
45
|
+
const observer = new ResizeObserver(update);
|
|
46
|
+
observer.observe(element);
|
|
47
|
+
|
|
48
|
+
return () => observer.disconnect();
|
|
49
|
+
}, [text]);
|
|
50
|
+
|
|
51
|
+
return { ref, title: isTruncated ? text : undefined };
|
|
52
|
+
}
|
|
53
|
+
|
|
21
54
|
export function BuildingSelect({
|
|
22
55
|
options,
|
|
23
56
|
value,
|
|
@@ -37,6 +70,7 @@ export function BuildingSelect({
|
|
|
37
70
|
const selectedOption = options.find((option) => option.value === value);
|
|
38
71
|
const displayLabel = selectedOption?.label ?? labels.selectBuilding;
|
|
39
72
|
const selectableOptions = options.filter((option) => !option.disabled);
|
|
73
|
+
const { ref: labelRef, title: truncatedTitle } = useTruncatedTitle(displayLabel);
|
|
40
74
|
|
|
41
75
|
const closeMenu = useCallback(() => {
|
|
42
76
|
setOpen(false);
|
|
@@ -123,7 +157,7 @@ export function BuildingSelect({
|
|
|
123
157
|
};
|
|
124
158
|
|
|
125
159
|
return (
|
|
126
|
-
<div ref={rootRef} className={cn('relative w-
|
|
160
|
+
<div ref={rootRef} className={cn('relative w-72', className)}>
|
|
127
161
|
<button
|
|
128
162
|
type="button"
|
|
129
163
|
disabled={disabled}
|
|
@@ -131,17 +165,21 @@ export function BuildingSelect({
|
|
|
131
165
|
aria-expanded={open}
|
|
132
166
|
aria-controls={listboxId}
|
|
133
167
|
aria-label={labels.selectBuilding}
|
|
168
|
+
title={truncatedTitle}
|
|
134
169
|
onClick={() => (open ? closeMenu() : openMenu())}
|
|
135
170
|
onKeyDown={handleTriggerKeyDown}
|
|
136
171
|
className={cn(
|
|
137
|
-
'flex h-11 w-full items-center gap-3 rounded-xl border border-storm-gray-50 bg-white
|
|
172
|
+
'flex h-11 w-full items-center gap-3 rounded-xl border border-storm-gray-50 bg-white px-3.5 py-3 text-left transition-colors',
|
|
138
173
|
!disabled && 'cursor-pointer hover:bg-storm-gray-50/60',
|
|
139
174
|
open && 'bg-storm-gray-50/60',
|
|
140
175
|
disabled && 'cursor-not-allowed opacity-60',
|
|
141
176
|
)}
|
|
142
177
|
>
|
|
143
|
-
{buildingIcon ?? <BuildingIcon className="shrink-0 text-navy" />}
|
|
144
|
-
<span
|
|
178
|
+
{buildingIcon ?? <BuildingIcon className="size-5 shrink-0 text-navy" />}
|
|
179
|
+
<span
|
|
180
|
+
ref={labelRef}
|
|
181
|
+
className="min-w-0 flex-1 truncate typography-14 font-medium text-slate-blue"
|
|
182
|
+
>
|
|
145
183
|
{displayLabel}
|
|
146
184
|
</span>
|
|
147
185
|
{chevronIcon ?? (
|
|
@@ -196,7 +234,9 @@ export function BuildingSelect({
|
|
|
196
234
|
option.disabled && 'cursor-not-allowed opacity-50',
|
|
197
235
|
)}
|
|
198
236
|
>
|
|
199
|
-
<span className="truncate"
|
|
237
|
+
<span className="min-w-0 truncate" title={option.label}>
|
|
238
|
+
{option.label}
|
|
239
|
+
</span>
|
|
200
240
|
</button>
|
|
201
241
|
</li>
|
|
202
242
|
);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/tokens.ts","../src/icons/arrowUpRightPath.ts","../src/icons/ArrowUpRightIcon.tsx","../src/utils/useApplyWebClassName.ts","../src/components/Button.tsx","../src/components/Label.tsx","../src/icons/eyeIconPaths.ts","../src/icons/EyeIcon.tsx","../src/icons/EyeOffIcon.tsx","../src/theme/input.ts","../src/components/Input.tsx"],"names":["Platform","jsx","useRef","jsxs","Text","styles","StyleSheet","Svg","Path","View"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAM,SAAA,GAAY;AAAA,EACvB,GAAA,EAAK,SAAA;AAAA,EACL,KAAA,EAAO,SAAA;AAAA,EACP,GAAA,EAAK,SAAA;AAAA,EACL,KAAA,EAAO,SAAA;AAAA,EACP,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,SAAA;AAAA,EACL,KAAA,EAAO;AACT;AAKO,IAAM,IAAA,GAAO;AAAA,EAClB,GAAA,EAAK,SAAA;AAAA,EACL,KAAA,EAAO,SAAA;AAAA,EACP,GAAA,EAAK,SAAA;AAAA,EACL,KAAA,EAAO,SAAA;AAAA,EACP,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,SAAA;AAAA,EACL,KAAA,EAAO;AACT;AAKO,IAAM,OAAA,GAAU;AAAA,EACrB,GAAA,EAAK,SAAA;AAAA,EACL,KAAA,EAAO,SAAA;AAAA,EACP,GAAA,EAAK,SAAA;AAAA,EACL,KAAA,EAAO,SAAA;AAAA,EACP,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,SA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AAA,IACZ,cAAA,EAAgB;AAAA,GAClB;AAAA,EACA,KAAA,EAAO;AAAA,IACL,QAAA,EAAU,EAAA;AAAA,IACV,UAAA,EAAY,EAAA;AAAA,IACZ,OAAO,MAAA,CAAO;AAAA,GAChB;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,QAAA,EAAU,EAAA;AAAA,IACV,UAAA,EAAY,EAAA;AAAA,IACZ,OAAO,MAAA,CAAO;AAAA;AAElB,CAAC,CAAA","file":"chunk-KJYQA5OY.js","sourcesContent":["/**\n * HomePad design tokens — aligned with the Figma design system\n * (navy / storm gray / slate-blue palette from HomePad brand).\n */\n\n/** Storm Gray scale — Figma steps 0 → 8.5 */\nexport const stormGray = {\n \"0\": \"#fbfcfc\",\n \"0.5\": \"#eceef0\",\n \"1\": \"#dadde0\",\n \"1.5\": \"#c7cdd1\",\n \"2\": \"#b5bcc1\",\n \"3\": \"#8f9aa3\",\n \"4\": \"#6a7984\",\n \"5\": \"#455765\",\n \"6\": \"#374651\",\n \"7\": \"#29343d\",\n \"8\": \"#1c2328\",\n \"8.5\": \"#151a1e\",\n} as const;\n\nexport type StormGrayStep = keyof typeof stormGray;\n\n/** Navy scale — Figma steps 0 → 8.5 */\nexport const navy = {\n \"0\": \"#f6fafe\",\n \"0.5\": \"#dee5eb\",\n \"1\": \"#c6d0d8\",\n \"1.5\": \"#afbac5\",\n \"2\": \"#97a5b2\",\n \"3\": \"#677b8c\",\n \"4\": \"#385066\",\n \"5\": \"#082640\",\n \"6\": \"#061e33\",\n \"7\": \"#051726\",\n \"8\": \"#030f1a\",\n \"8.5\": \"#020b13\",\n} as const;\n\nexport type NavyStep = keyof typeof navy;\n\n/** Ruby Red scale — Figma steps 0 → 8.5 */\nexport const rubyRed = {\n \"0\": \"#fff5f6\",\n \"0.5\": \"#f7dddf\",\n \"1\": \"#efc4c8\",\n \"1.5\": \"#e7acb1\",\n \"2\": \"#df939a\",\n \"3\": \"#ce626d\",\n \"4\": \"#be313f\",\n \"5\": \"#ae0011\",\n \"6\": \"#8b000e\",\n \"7\": \"#68000a\",\n \"8\": \"#460007\",\n \"8.5\": \"#340005\",\n} as const;\n\nexport type RubyRedStep = keyof typeof rubyRed;\n\n/** Emerald Green scale — Figma steps 0 → 8.5 */\nexport const emeraldGreen = {\n \"0\": \"#f0fbf5\",\n \"0.5\": \"#dcf2e5\",\n \"1\": \"#c8e8d5\",\n \"1.5\": \"#b4dfc5\",\n \"2\": \"#a0d5b5\",\n \"3\": \"#77c394\",\n \"4\": \"#4fb074\",\n \"5\": \"#279d54\",\n \"6\": \"#1f7e43\",\n \"7\": \"#175e32\",\n \"8\": \"#103f22\",\n \"8.5\": \"#0c2f19\",\n} as const;\n\nexport type EmeraldGreenStep = keyof typeof emeraldGreen;\n\n/** Figma brand palette — primary swatch per color family */\nexport const brand = {\n slateBlue: \"#182e3c\",\n stormGray: stormGray[\"5\"],\n navy: navy[\"5\"],\n rubyRed: rubyRed[\"5\"],\n emeraldGreen: emeraldGreen[\"5\"],\n} as const;\n\nexport const colors = {\n // Brand colors\n slateBlue: brand.slateBlue,\n\n // Emerald Green — Figma scale + brand swatch\n emeraldGreen0: emeraldGreen[\"0\"],\n emeraldGreen50: emeraldGreen[\"0.5\"],\n emeraldGreen100: emeraldGreen[\"1\"],\n emeraldGreen150: emeraldGreen[\"1.5\"],\n emeraldGreen200: emeraldGreen[\"2\"],\n emeraldGreen300: emeraldGreen[\"3\"],\n emeraldGreen400: emeraldGreen[\"4\"],\n emeraldGreen500: emeraldGreen[\"5\"],\n emeraldGreen600: emeraldGreen[\"6\"],\n emeraldGreen700: emeraldGreen[\"7\"],\n emeraldGreen800: emeraldGreen[\"8\"],\n emeraldGreen850: emeraldGreen[\"8.5\"],\n\n /** Primary brand emerald green — Figma Emerald Green 5 */\n emeraldGreen: brand.emeraldGreen,\n\n // Ruby Red — Figma scale + brand swatch\n rubyRed0: rubyRed[\"0\"],\n rubyRed50: rubyRed[\"0.5\"],\n rubyRed100: rubyRed[\"1\"],\n rubyRed150: rubyRed[\"1.5\"],\n rubyRed200: rubyRed[\"2\"],\n rubyRed300: rubyRed[\"3\"],\n rubyRed400: rubyRed[\"4\"],\n rubyRed500: rubyRed[\"5\"],\n rubyRed600: rubyRed[\"6\"],\n rubyRed700: rubyRed[\"7\"],\n rubyRed800: rubyRed[\"8\"],\n rubyRed850: rubyRed[\"8.5\"],\n\n /** Primary brand ruby red — Figma Ruby Red 5 */\n rubyRed: brand.rubyRed,\n\n // Navy — Figma scale + brand swatch\n navy0: navy[\"0\"],\n navy50: navy[\"0.5\"],\n navy100: navy[\"1\"],\n navy150: navy[\"1.5\"],\n navy200: navy[\"2\"],\n navy300: navy[\"3\"],\n navy400: navy[\"4\"],\n navy500: navy[\"5\"],\n navy600: navy[\"6\"],\n navy700: navy[\"7\"],\n navy800: navy[\"8\"],\n navy850: navy[\"8.5\"],\n\n /** Primary brand navy — Figma Navy 5 */\n navy: brand.navy,\n\n // Storm Gray — Figma scale + brand swatch\n stormGray0: stormGray[\"0\"],\n stormGray50: stormGray[\"0.5\"],\n stormGray100: stormGray[\"1\"],\n stormGray150: stormGray[\"1.5\"],\n stormGray200: stormGray[\"2\"],\n stormGray300: stormGray[\"3\"],\n stormGray400: stormGray[\"4\"],\n stormGray500: stormGray[\"5\"],\n /** Figma brand swatch \"Storm Gray\" — same as `stormGray500` */\n stormGrayBrand: brand.stormGray,\n stormGray600: stormGray[\"6\"],\n stormGray700: stormGray[\"7\"],\n stormGray800: stormGray[\"8\"],\n stormGray850: stormGray[\"8.5\"],\n\n /** @deprecated Use `stormGray0` */\n storm0: stormGray[\"0\"],\n /** @deprecated Use `stormGray50` */\n storm50: stormGray[\"0.5\"],\n /** @deprecated Use `stormGray200` */\n storm200: stormGray[\"2\"],\n /** @deprecated Use `stormGray300` */\n storm300: stormGray[\"3\"],\n /** @deprecated Use `stormGray500` */\n storm500: stormGray[\"5\"],\n /** @deprecated Use `stormGray700` */\n storm700: stormGray[\"7\"],\n /** @deprecated Use `stormGray850` */\n storm900: stormGray[\"8.5\"],\n\n countrySelectorSelectedBg: `${stormGray[\"0.5\"]}99`,\n\n white: \"#ffffff\",\n error: \"#dc2626\",\n errorDark: \"#b3261e\",\n errorLight: \"#fee2e2\",\n /** @deprecated Use `rubyRed` */\n inputError: brand.rubyRed,\n inputOutlineFocus: navy[\"0.5\"],\n inputOutlineError: rubyRed[\"0.5\"],\n warning: \"#92400e\",\n warningBg: \"#fef3c7\",\n success: \"#28a745\",\n successMuted: \"#9fd4a8\",\n /** @deprecated Use `emeraldGreen` */\n green: brand.emeraldGreen,\n transparent: \"transparent\",\n} as const;\n\nexport const radii = {\n sm: 8,\n md: 12,\n lg: 16,\n xl: 20,\n full: 9999,\n} as const;\n\nexport const spacing = {\n xs: 4,\n sm: 8,\n md: 12,\n lg: 16,\n xl: 24,\n xxl: 32,\n} as const;\n\nexport const fontSize = {\n xs: 11,\n sm: 12,\n md: 14,\n base: 16,\n lg: 18,\n xl: 24,\n xxl: 32,\n} as const;\n\n/**\n * Canonical Homepad type scale (matches `.typography-*` in `src/web/styles/typography.css`).\n * font-size / line-height pairs:\n * 12/16 · 14/19 · 18/24 · 20/27 · 24/25 · 32/34\n */\nexport const typographyScale = {\n 12: { fontSize: 12, lineHeight: 16 },\n 14: { fontSize: 14, lineHeight: 19 },\n 18: { fontSize: 18, lineHeight: 24 },\n 20: { fontSize: 20, lineHeight: 27 },\n 24: { fontSize: 24, lineHeight: 25 },\n 32: { fontSize: 32, lineHeight: 34 },\n} as const;\n\nexport const fontWeight = {\n regular: \"400\" as const,\n medium: \"500\" as const,\n semibold: \"600\" as const,\n bold: \"700\" as const,\n};\n\nexport const fonts = {\n sans: \"Noto Sans Armenian\",\n} as const;\n\n/** Input label typography — Medium, typography-12 scale. */\nexport const labelTypography = {\n fontFamily: fonts.sans,\n fontSize: typographyScale[12].fontSize,\n fontWeight: fontWeight.medium,\n lineHeight: typographyScale[12].lineHeight,\n letterSpacing: 0,\n} as const;\n\n/** Button label typography — SemiBold. */\nexport const buttonTypography = {\n lg: {\n fontFamily: fonts.sans,\n fontSize: typographyScale[14].fontSize,\n fontWeight: fontWeight.semibold,\n lineHeight: typographyScale[14].lineHeight,\n letterSpacing: 0,\n },\n sm: {\n fontFamily: fonts.sans,\n fontSize: typographyScale[12].fontSize,\n fontWeight: fontWeight.semibold,\n lineHeight: typographyScale[12].lineHeight,\n letterSpacing: 0,\n },\n} as const;\n\nexport const shadows = {\n card: {\n shadowColor: colors.navy,\n shadowOffset: { width: 0, height: 4 },\n shadowOpacity: 0.05,\n shadowRadius: 20,\n elevation: 2,\n },\n cardLg: {\n shadowColor: colors.navy,\n shadowOffset: { width: 0, height: 4 },\n shadowOpacity: 0.1,\n shadowRadius: 20,\n elevation: 4,\n },\n} as const;\n","export const ARROW_UP_RIGHT_PATH =\n \"M14.1667 14.1668V5.8335H5.83333M14.1667 5.8335L5.83333 14.1668\";\n","import Svg, { Path } from \"react-native-svg\";\nimport { ARROW_UP_RIGHT_PATH } from \"./arrowUpRightPath\";\n\nexport { ARROW_UP_RIGHT_PATH } from \"./arrowUpRightPath\";\n\ninterface ArrowUpRightIconProps {\n size?: number;\n color?: string;\n strokeWidth?: number;\n}\n\n/** Native — react-native-svg (peer dependency). */\nexport function ArrowUpRightIcon({\n size = 20,\n color = \"#082640\",\n strokeWidth = 2,\n}: ArrowUpRightIconProps) {\n return (\n <Svg width={size} height={size} viewBox=\"0 0 20 20\" fill=\"none\">\n <Path\n d={ARROW_UP_RIGHT_PATH}\n stroke={color}\n strokeWidth={strokeWidth}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </Svg>\n );\n}\n","import { useLayoutEffect } from \"react\";\nimport { Platform } from \"react-native\";\n\ninterface ClassListElement {\n classList: {\n add: (...classes: string[]) => void;\n remove: (...classes: string[]) => void;\n };\n}\n\nfunction hasClassList(node: unknown): node is ClassListElement {\n return (\n typeof node === \"object\" &&\n node !== null &&\n \"classList\" in node &&\n typeof (node as ClassListElement).classList?.add === \"function\"\n );\n}\n\nfunction resolveWebElement(ref: React.RefObject<unknown>): ClassListElement | null {\n const node = ref.current;\n if (!node) return null;\n\n if (hasClassList(node)) return node;\n\n const host = node as {\n _touchableNode?: unknown;\n getScrollableNode?: () => unknown;\n };\n\n if (hasClassList(host._touchableNode)) return host._touchableNode;\n\n if (typeof host.getScrollableNode === \"function\") {\n const scrollNode = host.getScrollableNode();\n if (hasClassList(scrollNode)) return scrollNode;\n }\n\n return null;\n}\n\n/**\n * Applies CSS class names to the underlying DOM node on web.\n * Keeps TouchableOpacity/Text as the render path so default RN styles stay intact.\n *\n * Retries via rAF when the host node is not ready yet — otherwise classes like\n * `h-13` / `w-full` would only land after a later re-render (e.g. typing in a form),\n * which visibly changes button size.\n */\nexport function useApplyWebClassName(\n ref: React.RefObject<unknown>,\n className?: string,\n enabled = true,\n): void {\n useLayoutEffect(() => {\n if (!enabled || Platform.OS !== \"web\" || !className?.trim()) return;\n\n let cancelled = false;\n let rafId = 0;\n let appliedElement: ClassListElement | null = null;\n const classes = className.trim().split(/\\s+/);\n\n const apply = () => {\n if (cancelled) return;\n\n const element = resolveWebElement(ref);\n if (!element) {\n rafId = requestAnimationFrame(apply);\n return;\n }\n\n appliedElement = element;\n element.classList.add(...classes);\n };\n\n apply();\n\n return () => {\n cancelled = true;\n if (rafId) cancelAnimationFrame(rafId);\n appliedElement?.classList.remove(...classes);\n };\n }, [ref, className, enabled]);\n}\n","import { useRef, type ComponentRef, type ReactNode } from \"react\";\nimport {\n Platform,\n StyleSheet,\n Text,\n TouchableOpacity,\n View,\n type GestureResponderEvent,\n type StyleProp,\n type TextStyle,\n type ViewStyle,\n} from \"react-native\";\nimport { ArrowUpRightIcon } from \"../icons/ArrowUpRightIcon\";\nimport { colors, buttonTypography } from \"../theme/tokens\";\nimport { useApplyWebClassName } from \"../utils/useApplyWebClassName\";\n\nexport type ButtonVariant = \"white\" | \"primary\" | \"green\" | \"gray\";\nexport type ButtonSize = \"lg\" | \"sm\";\n\nexport interface ButtonProps {\n title?: string;\n children?: ReactNode;\n onPress: (event: GestureResponderEvent) => void;\n disabled?: boolean;\n variant?: ButtonVariant;\n size?: ButtonSize;\n showIcon?: boolean;\n /** Custom icon inside the badge. Defaults to `ArrowUpRightIcon` when `showIcon` is true. */\n icon?: ReactNode;\n style?: StyleProp<ViewStyle>;\n textStyle?: StyleProp<TextStyle>;\n className?: string;\n textClassName?: string;\n}\n\ntype VariantStyleSet = {\n backgroundColor: string;\n textColor: string;\n iconBadgeBackgroundColor: string;\n iconColor: string;\n};\n\nconst variantConfig: Record<ButtonVariant, VariantStyleSet> = {\n white: {\n backgroundColor: colors.white,\n textColor: colors.slateBlue,\n iconBadgeBackgroundColor: colors.stormGray150,\n iconColor: colors.navy,\n },\n primary: {\n backgroundColor: colors.navy,\n textColor: colors.stormGray0,\n iconBadgeBackgroundColor: colors.white,\n iconColor: colors.navy,\n },\n green: {\n backgroundColor: colors.green,\n textColor: colors.stormGray0,\n iconBadgeBackgroundColor: colors.white,\n iconColor: colors.green,\n },\n gray: {\n backgroundColor: colors.stormGray50,\n textColor: colors.slateBlue,\n iconBadgeBackgroundColor: colors.stormGray150,\n iconColor: colors.navy,\n },\n};\n\nconst sizeConfig = {\n lg: {\n /** Matches Tailwind `h-13` so size stays stable before web classNames attach. */\n minHeight: 52,\n borderRadius: 16,\n paddingTop: 8,\n paddingRight: 8,\n paddingBottom: 8,\n paddingLeft: 24,\n paddingHorizontalCentered: 24,\n text: buttonTypography.lg,\n iconContainerSize: 36,\n iconContainerRadius: 12,\n iconContainerPadding: 8,\n iconSize: 20,\n },\n sm: {\n minHeight: 40,\n borderRadius: 12,\n paddingTop: 8,\n paddingRight: 8,\n paddingBottom: 8,\n paddingLeft: 16,\n paddingHorizontalCentered: 16,\n text: buttonTypography.sm,\n iconContainerSize: 32,\n iconContainerRadius: 8,\n iconContainerPadding: 8,\n iconSize: 16,\n },\n} as const;\n\nexport function Button({\n title,\n children,\n onPress,\n disabled = false,\n variant = \"primary\",\n size = \"lg\",\n showIcon = false,\n icon,\n style,\n textStyle,\n className,\n textClassName,\n}: ButtonProps) {\n const containerRef = useRef<ComponentRef<typeof TouchableOpacity>>(null);\n const textRef = useRef<ComponentRef<typeof Text>>(null);\n const preset = variantConfig[variant];\n const metrics = sizeConfig[size];\n\n const label = typeof children !== \"undefined\" ? children : title;\n const hasCustomChildren = typeof children !== \"undefined\";\n const customIcon =\n icon != null && typeof icon !== \"boolean\" ? icon : undefined;\n const hasIcon = showIcon || icon === true || customIcon != null;\n const resolvedContainerClassName = [\n Platform.OS === \"web\" ? \"max-md:px-4!\" : \"\",\n className,\n ]\n .filter(Boolean)\n .join(\" \");\n\n useApplyWebClassName(containerRef, resolvedContainerClassName || undefined);\n useApplyWebClassName(textRef, textClassName);\n\n const iconNode =\n customIcon ?? (\n <ArrowUpRightIcon size={metrics.iconSize} color={preset.iconColor} />\n );\n\n const containerStyle = [\n styles.base,\n {\n minHeight: metrics.minHeight,\n borderRadius: metrics.borderRadius,\n backgroundColor: preset.backgroundColor,\n paddingTop: metrics.paddingTop,\n paddingBottom: metrics.paddingBottom,\n paddingLeft: hasIcon ? metrics.paddingLeft : metrics.paddingHorizontalCentered,\n paddingRight: hasIcon ? metrics.paddingRight : metrics.paddingHorizontalCentered,\n },\n hasIcon ? styles.withIcon : styles.centered,\n disabled && styles.disabled,\n style,\n ];\n\n const labelStyle = [\n styles.label,\n metrics.text,\n { color: preset.textColor },\n Platform.OS === \"android\" ? styles.labelAndroid : null,\n !hasIcon && styles.labelCentered,\n hasIcon && styles.labelWithIcon,\n textStyle,\n ];\n\n return (\n <TouchableOpacity\n ref={containerRef}\n style={containerStyle}\n onPress={onPress}\n disabled={disabled}\n activeOpacity={0.7}\n accessibilityRole=\"button\"\n accessibilityState={{ disabled }}\n >\n {hasCustomChildren ? (\n children\n ) : (\n <Text ref={textRef} style={labelStyle}>\n {label}\n </Text>\n )}\n\n {hasIcon ? (\n <View\n style={[\n styles.iconContainer,\n {\n width: metrics.iconContainerSize,\n height: metrics.iconContainerSize,\n borderRadius: metrics.iconContainerRadius,\n padding: metrics.iconContainerPadding,\n backgroundColor: preset.iconBadgeBackgroundColor,\n },\n ]}\n >\n {iconNode}\n </View>\n ) : null}\n </TouchableOpacity>\n );\n}\n\nconst styles = StyleSheet.create({\n base: {\n flexDirection: \"row\",\n alignItems: \"center\",\n borderWidth: 0,\n },\n centered: {\n justifyContent: \"center\",\n },\n withIcon: {\n justifyContent: \"space-between\",\n gap: 24,\n },\n disabled: {\n opacity: 0.6,\n },\n label: {},\n labelAndroid: {\n includeFontPadding: false,\n },\n labelCentered: {\n textAlign: \"center\",\n },\n labelWithIcon: {\n flex: 1,\n flexShrink: 1,\n },\n iconContainer: {\n alignItems: \"center\",\n justifyContent: \"center\",\n flexShrink: 0,\n },\n});\n","import { useRef, type ComponentRef, type ReactNode } from \"react\";\nimport {\n StyleSheet,\n Text,\n type StyleProp,\n type TextProps,\n type TextStyle,\n} from \"react-native\";\nimport { colors, labelTypography } from \"../theme/tokens\";\nimport { useApplyWebClassName } from \"../utils/useApplyWebClassName\";\n\nexport interface LabelProps extends TextProps {\n children: ReactNode;\n /** Render as a required field indicator. */\n required?: boolean;\n disabled?: boolean;\n style?: StyleProp<TextStyle>;\n className?: string;\n}\n\nexport function Label({\n children,\n required = false,\n disabled = false,\n style,\n className,\n ...props\n}: LabelProps) {\n const ref = useRef<ComponentRef<typeof Text>>(null);\n useApplyWebClassName(ref, className);\n\n return (\n <Text\n ref={ref}\n style={[styles.label, disabled && styles.labelDisabled, style]}\n accessibilityRole=\"text\"\n {...props}\n >\n {children}\n {required ? <Text style={styles.required}> *</Text> : null}\n </Text>\n );\n}\n\nconst styles = StyleSheet.create({\n label: {\n ...labelTypography,\n color: colors.slateBlue,\n },\n labelDisabled: {\n color: colors.stormGray400,\n },\n required: {\n color: colors.inputError,\n },\n});\n","export const EYE_OPEN_OUTLINE_PATH =\n \"M1.71835 10.2898C1.6489 10.1027 1.6489 9.89691 1.71835 9.70981C2.39476 8.06969 3.54294 6.66735 5.01732 5.68056C6.4917 4.69378 8.22588 4.16699 10 4.16699C11.7741 4.16699 13.5083 4.69378 14.9827 5.68056C16.4571 6.66735 17.6053 8.06969 18.2817 9.70981C18.3511 9.89691 18.3511 10.1027 18.2817 10.2898C17.6053 11.9299 16.4571 13.3323 14.9827 14.3191C13.5083 15.3058 11.7741 15.8326 10 15.8326C8.22588 15.8326 6.4917 15.3058 5.01732 14.3191C3.54294 13.3323 2.39476 11.9299 1.71835 10.2898Z\";\n\nexport const EYE_OPEN_PUPIL_PATH =\n \"M10 12.4998C11.3807 12.4998 12.5 11.3805 12.5 9.99981C12.5 8.6191 11.3807 7.49981 10 7.49981C8.6193 7.49981 7.50001 8.6191 7.50001 9.99981C7.50001 11.3805 8.6193 12.4998 10 12.4998Z\";\n\nexport const EYE_OFF_PATH =\n \"M10.733 5.076C13.0624 4.7984 15.4186 5.29082 17.4419 6.47805C19.4651 7.66528 21.0442 9.48208 21.938 11.651C22.0213 11.8755 22.0213 12.1225 21.938 12.347C21.5705 13.238 21.0848 14.0755 20.494 14.837M14.084 14.158C13.5182 14.7045 12.7604 15.0069 11.9738 15C11.1872 14.9932 10.4348 14.6777 9.87854 14.1215C9.32232 13.5652 9.00681 12.8128 8.99998 12.0262C8.99314 11.2396 9.29553 10.4818 9.842 9.916M17.479 17.499C16.1525 18.2848 14.6725 18.776 13.1394 18.9394C11.6063 19.1028 10.056 18.9345 8.59363 18.4459C7.13131 17.9573 5.79119 17.1599 4.66421 16.1077C3.53723 15.0556 2.64975 13.7734 2.062 12.348C1.97866 12.1235 1.97866 11.8765 2.062 11.652C2.94863 9.50186 4.50867 7.69725 6.508 6.509M2 2L22 22\";\n","import Svg, { Path } from \"react-native-svg\";\nimport { EYE_OPEN_OUTLINE_PATH, EYE_OPEN_PUPIL_PATH } from \"./eyeIconPaths\";\n\nexport { EYE_OPEN_OUTLINE_PATH, EYE_OPEN_PUPIL_PATH } from \"./eyeIconPaths\";\n\ninterface EyeIconProps {\n size?: number;\n color?: string;\n strokeWidth?: number;\n}\n\n/** Native — open eye (password hidden). */\nexport function EyeIcon({\n size = 20,\n color = \"#c7cdd1\",\n strokeWidth = 2,\n}: EyeIconProps) {\n return (\n <Svg width={size} height={size} viewBox=\"0 0 20 20\" fill=\"none\">\n <Path\n d={EYE_OPEN_OUTLINE_PATH}\n stroke={color}\n strokeWidth={strokeWidth}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <Path\n d={EYE_OPEN_PUPIL_PATH}\n stroke={color}\n strokeWidth={strokeWidth}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </Svg>\n );\n}\n","import Svg, { Path } from \"react-native-svg\";\nimport { EYE_OFF_PATH } from \"./eyeIconPaths\";\n\nexport { EYE_OFF_PATH } from \"./eyeIconPaths\";\n\ninterface EyeOffIconProps {\n size?: number;\n color?: string;\n strokeWidth?: number;\n}\n\n/** Native — slashed eye (password visible). */\nexport function EyeOffIcon({\n size = 20,\n color = \"#c7cdd1\",\n strokeWidth = 2,\n}: EyeOffIconProps) {\n return (\n <Svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\">\n <Path\n d={EYE_OFF_PATH}\n stroke={color}\n strokeWidth={strokeWidth}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </Svg>\n );\n}\n","import { Platform, StyleSheet, type TextStyle, type ViewStyle } from \"react-native\";\nimport { colors, fonts, fontSize, fontWeight, radii } from \"./tokens\";\n\nexport const INPUT_HEIGHT = 56;\nexport const INPUT_ICON_SIZE = 20;\nexport const INPUT_ICON_GAP = 10;\nexport const INPUT_OUTLINE_WIDTH = 2;\n/** Natural text metrics; avoid a tighter lineHeight that clips Armenian glyphs. */\nexport const INPUT_TEXT_LINE_HEIGHT = 20;\nexport const INPUT_WEB_VERTICAL_PADDING = 14;\nexport const INPUT_VERTICAL_PADDING = 14;\nexport const INPUT_HORIZONTAL_PADDING = 16;\n/** Default outer height for multiline fields (padding included). */\nexport const INPUT_MULTILINE_MIN_HEIGHT = 120;\nexport const INPUT_MULTILINE_INNER_MIN_HEIGHT =\n INPUT_MULTILINE_MIN_HEIGHT - INPUT_VERTICAL_PADDING * 2;\n\nexport type InputVisualState =\n | \"default\"\n | \"focused\"\n | \"error\"\n | \"disabled\";\n\nexport interface InputStateFlags {\n focused?: boolean;\n error?: boolean;\n disabled?: boolean;\n}\n\nexport function resolveInputVisualState({\n focused = false,\n error = false,\n disabled = false,\n}: InputStateFlags): InputVisualState {\n if (disabled) return \"disabled\";\n if (error) return \"error\";\n if (focused) return \"focused\";\n return \"default\";\n}\n\ninterface FieldStyleSet {\n container: ViewStyle;\n outline: ViewStyle;\n text: TextStyle;\n placeholder: string;\n icon: string;\n}\n\nfunction createOutlineStyle(ringColor: string): ViewStyle {\n return {\n borderRadius: radii.lg + INPUT_OUTLINE_WIDTH,\n borderWidth: INPUT_OUTLINE_WIDTH,\n borderColor: ringColor,\n padding: 0,\n backgroundColor: colors.transparent,\n width: \"100%\",\n alignSelf: \"stretch\",\n };\n}\n\nconst defaultOutline: ViewStyle = {\n borderRadius: radii.lg + INPUT_OUTLINE_WIDTH,\n borderWidth: INPUT_OUTLINE_WIDTH,\n borderColor: colors.transparent,\n padding: 0,\n backgroundColor: colors.transparent,\n width: \"100%\",\n alignSelf: \"stretch\",\n};\n\nexport function getInputFieldStyles(state: InputVisualState): FieldStyleSet {\n const containerBase: ViewStyle = {\n borderRadius: radii.lg,\n };\n\n switch (state) {\n case \"disabled\":\n return {\n outline: defaultOutline,\n container: {\n ...containerBase,\n borderWidth: 1,\n borderColor: colors.stormGray50,\n backgroundColor: colors.stormGray50,\n },\n text: { color: colors.stormGray300 },\n placeholder: colors.stormGray300,\n icon: colors.stormGray150,\n };\n case \"error\":\n return {\n outline: createOutlineStyle(colors.inputOutlineError),\n container: {\n ...containerBase,\n borderWidth: 1,\n borderColor: colors.inputError,\n backgroundColor: colors.white,\n },\n text: { color: colors.inputError },\n placeholder: colors.stormGray200,\n icon: colors.inputError,\n };\n case \"focused\":\n return {\n outline: createOutlineStyle(colors.inputOutlineFocus),\n container: {\n ...containerBase,\n borderWidth: 1,\n borderColor: colors.navy,\n backgroundColor: colors.white,\n },\n text: { color: colors.slateBlue },\n placeholder: colors.stormGray200,\n icon: colors.navy,\n };\n default:\n return {\n outline: defaultOutline,\n container: {\n ...containerBase,\n borderWidth: 1,\n borderColor: colors.stormGray50,\n backgroundColor: colors.white,\n },\n text: { color: colors.slateBlue },\n placeholder: colors.stormGray200,\n icon: colors.stormGray150,\n };\n }\n}\n\nexport const inputFieldMetrics = StyleSheet.create({\n containerBase: {\n flexDirection: \"row\",\n borderRadius: radii.lg,\n paddingHorizontal: INPUT_HORIZONTAL_PADDING,\n paddingVertical: INPUT_VERTICAL_PADDING,\n gap: INPUT_ICON_GAP,\n ...(Platform.OS === \"web\"\n ? ({\n boxSizing: \"border-box\",\n paddingVertical: INPUT_WEB_VERTICAL_PADDING,\n paddingHorizontal: INPUT_HORIZONTAL_PADDING,\n } as ViewStyle)\n : null),\n },\n container: {\n alignItems: \"center\",\n height: INPUT_HEIGHT,\n // Do not clip glyph ascenders on single-line fields (Armenian / tall fonts).\n overflow: \"visible\",\n },\n /**\n * Column layout + explicit minHeight so the TextInput hit target matches the\n * visible box on Android release builds (row + flexGrow:0 collapsed taps).\n */\n containerMultiline: {\n flexDirection: \"column\",\n alignItems: \"stretch\",\n justifyContent: \"flex-start\",\n minHeight: INPUT_MULTILINE_MIN_HEIGHT,\n overflow: \"hidden\",\n },\n input: {\n flex: 1,\n minWidth: 0,\n width: \"100%\",\n fontFamily: fonts.sans,\n fontSize: fontSize.md,\n fontWeight: fontWeight.medium,\n paddingVertical: 0,\n paddingHorizontal: 0,\n margin: 0,\n borderWidth: 0,\n backgroundColor: colors.transparent,\n // Leave lineHeight unset so platform font metrics keep placeholder tops visible.\n ...(Platform.OS === \"web\"\n ? ({\n alignSelf: \"center\",\n outlineStyle: \"none\",\n lineHeight: INPUT_TEXT_LINE_HEIGHT,\n } as TextStyle)\n : {\n alignSelf: \"stretch\",\n }),\n },\n /** Single-line: avoid Android lineHeight jump between placeholder and typed text. */\n inputSingleLine: {\n ...(Platform.OS === \"android\"\n ? ({ textAlignVertical: \"center\", includeFontPadding: false } as TextStyle)\n : null),\n },\n /**\n * Fill the column container so the whole field is tappable in release APKs.\n * `textAlignVertical: \"top\"` keeps typed text (and Android placeholder) at the top.\n */\n inputMultiline: {\n flexGrow: 1,\n flexShrink: 1,\n flexBasis: \"auto\",\n width: \"100%\",\n minHeight: INPUT_MULTILINE_INNER_MIN_HEIGHT,\n alignSelf: \"stretch\",\n textAlignVertical: \"top\",\n ...(Platform.OS === \"android\"\n ? ({ includeFontPadding: false } as TextStyle)\n : null),\n },\n});\n","import {\n cloneElement,\n isValidElement,\n useRef,\n useState,\n type ComponentRef,\n type ReactNode,\n} from \"react\";\nimport {\n Pressable,\n StyleSheet,\n Text,\n TextInput,\n View,\n type NativeSyntheticEvent,\n type StyleProp,\n type TextInputFocusEventData,\n type TextInputProps,\n type TextStyle,\n type ViewStyle,\n} from \"react-native\";\nimport { EyeIcon } from \"../icons/EyeIcon\";\nimport { EyeOffIcon } from \"../icons/EyeOffIcon\";\nimport {\n getInputFieldStyles,\n inputFieldMetrics,\n INPUT_ICON_SIZE,\n resolveInputVisualState,\n} from \"../theme/input\";\nimport { colors, spacing } from \"../theme/tokens\";\nimport { useApplyWebClassName } from \"../utils/useApplyWebClassName\";\nimport { Label } from \"./Label\";\n\ntype InputIconProps = {\n size?: number;\n color?: string;\n};\n\nfunction renderInputIcon(icon: ReactNode, color: string) {\n if (!icon) return null;\n\n if (isValidElement<InputIconProps>(icon)) {\n return cloneElement(icon, {\n size: icon.props.size ?? INPUT_ICON_SIZE,\n color: icon.props.color ?? color,\n });\n }\n\n return icon;\n}\n\nexport interface InputProps extends TextInputProps {\n /** Optional field label rendered above the input. */\n label?: string;\n leftIcon?: ReactNode;\n rightIcon?: ReactNode;\n /** Validation or helper error message. Shown instead of `hint` when set. */\n error?: string;\n /** Applies error field styling without showing a message (use with a form-level error). */\n invalid?: boolean;\n /** Helper text shown below the input when there is no error. */\n hint?: string;\n containerStyle?: StyleProp<ViewStyle>;\n style?: StyleProp<TextStyle>;\n className?: string;\n /** CSS classes for the bordered field container (web). */\n fieldClassName?: string;\n /** Styles merged into the bordered field container. */\n fieldStyle?: StyleProp<ViewStyle>;\n labelClassName?: string;\n /** Styles merged into the field label. */\n labelStyles?: StyleProp<TextStyle>;\n inputClassName?: string;\n errorClassName?: string;\n hintClassName?: string;\n /** When `secureTextEntry` is set, show a toggleable eye icon. Pass `false` to disable. */\n showPasswordToggle?: boolean;\n}\n\nconst INTEGER_KEYBOARD_TYPES = new Set([\n \"numeric\",\n \"number-pad\",\n \"phone-pad\",\n]);\n\n/** Strip non-digits for integer pads; keep one decimal separator for decimal-pad. */\nfunction sanitizeNumericInput(\n value: string,\n keyboardType: TextInputProps[\"keyboardType\"],\n): string {\n if (keyboardType === \"decimal-pad\") {\n const normalized = value.replace(/,/g, \".\").replace(/[^\\d.]/g, \"\");\n const separatorIndex = normalized.indexOf(\".\");\n\n if (separatorIndex === -1) {\n return normalized;\n }\n\n return (\n normalized.slice(0, separatorIndex + 1) +\n normalized.slice(separatorIndex + 1).replace(/\\./g, \"\")\n );\n }\n\n if (keyboardType && INTEGER_KEYBOARD_TYPES.has(keyboardType)) {\n return value.replace(/\\D/g, \"\");\n }\n\n return value;\n}\n\nexport function Input({\n label,\n leftIcon,\n rightIcon,\n error,\n invalid,\n hint,\n containerStyle,\n style,\n className,\n fieldClassName,\n fieldStyle,\n labelClassName,\n labelStyles,\n inputClassName,\n errorClassName,\n hintClassName,\n editable = true,\n secureTextEntry,\n showPasswordToggle,\n onFocus,\n onBlur,\n onChangeText,\n keyboardType,\n multiline,\n textAlign = \"left\",\n textAlignVertical,\n ...props\n}: InputProps) {\n const wrapperRef = useRef<ComponentRef<typeof View>>(null);\n const fieldRef = useRef<ComponentRef<typeof View>>(null);\n const inputRef = useRef<ComponentRef<typeof TextInput>>(null);\n const helperRef = useRef<ComponentRef<typeof Text>>(null);\n const [focused, setFocused] = useState(false);\n const [passwordVisible, setPasswordVisible] = useState(false);\n\n useApplyWebClassName(wrapperRef, className);\n useApplyWebClassName(fieldRef, fieldClassName);\n useApplyWebClassName(inputRef, inputClassName);\n useApplyWebClassName(helperRef, error ? errorClassName : hintClassName);\n\n const isDisabled = editable === false;\n const hasError = Boolean(error) || Boolean(invalid);\n const passwordToggleEnabled =\n secureTextEntry === true && showPasswordToggle !== false && rightIcon == null;\n const effectiveSecureTextEntry = passwordToggleEnabled\n ? !passwordVisible\n : secureTextEntry;\n // Keep placeholder and typed text on the same vertical line (esp. Android).\n const resolvedTextAlignVertical =\n textAlignVertical ?? (multiline ? \"top\" : \"center\");\n const visualState = resolveInputVisualState({\n focused,\n error: hasError,\n disabled: isDisabled,\n });\n const fieldStyles = getInputFieldStyles(visualState);\n const iconColor = fieldStyles.icon;\n\n function handleFocus(event: NativeSyntheticEvent<TextInputFocusEventData>) {\n setFocused(true);\n onFocus?.(event);\n }\n\n function handleBlur(event: NativeSyntheticEvent<TextInputFocusEventData>) {\n setFocused(false);\n onBlur?.(event);\n }\n\n function handleChangeText(value: string) {\n onChangeText?.(sanitizeNumericInput(value, keyboardType));\n }\n\n const helperMessage = error ?? hint;\n\n function togglePasswordVisibility() {\n if (!isDisabled) {\n setPasswordVisible((visible) => !visible);\n }\n }\n\n const trailingIcon = passwordToggleEnabled ? (\n <Pressable\n onPress={togglePasswordVisibility}\n disabled={isDisabled}\n accessibilityRole=\"button\"\n accessibilityLabel={passwordVisible ? \"Hide password\" : \"Show password\"}\n hitSlop={8}\n style={styles.iconPressable}\n >\n {renderInputIcon(\n passwordVisible ? <EyeOffIcon /> : <EyeIcon />,\n iconColor,\n )}\n </Pressable>\n ) : rightIcon ? (\n renderInputIcon(rightIcon, iconColor)\n ) : null;\n\n return (\n <View ref={wrapperRef} style={[styles.wrapper, containerStyle]}>\n {label ? (\n <Label\n disabled={isDisabled}\n className={labelClassName}\n style={labelStyles}\n >\n {label}\n </Label>\n ) : null}\n <View style={fieldStyles.outline}>\n <View\n ref={fieldRef}\n style={[\n inputFieldMetrics.containerBase,\n multiline\n ? inputFieldMetrics.containerMultiline\n : inputFieldMetrics.container,\n fieldStyles.container,\n fieldStyle,\n ]}\n >\n {leftIcon ? (\n <View style={styles.iconSlot}>{renderInputIcon(leftIcon, iconColor)}</View>\n ) : null}\n <TextInput\n ref={inputRef}\n style={[\n inputFieldMetrics.input,\n multiline\n ? inputFieldMetrics.inputMultiline\n : inputFieldMetrics.inputSingleLine,\n fieldStyles.text,\n style,\n ]}\n placeholderTextColor={fieldStyles.placeholder}\n editable={editable}\n keyboardType={keyboardType}\n multiline={multiline}\n scrollEnabled={multiline ? true : undefined}\n secureTextEntry={effectiveSecureTextEntry}\n textAlign={textAlign}\n textAlignVertical={resolvedTextAlignVertical}\n underlineColorAndroid=\"transparent\"\n onFocus={handleFocus}\n onBlur={handleBlur}\n accessibilityState={{ disabled: isDisabled }}\n {...props}\n onChangeText={handleChangeText}\n />\n {trailingIcon ? (\n <View style={styles.iconSlot}>{trailingIcon}</View>\n ) : null}\n </View>\n </View>\n {helperMessage ? (\n <Text ref={helperRef} style={error ? styles.error : styles.hint}>\n {helperMessage}\n </Text>\n ) : null}\n </View>\n );\n}\n\nconst styles = StyleSheet.create({\n wrapper: {\n width: \"100%\",\n minWidth: 0,\n gap: spacing.sm,\n },\n iconSlot: {\n width: INPUT_ICON_SIZE,\n height: INPUT_ICON_SIZE,\n alignItems: \"center\",\n justifyContent: \"center\",\n flexShrink: 0,\n },\n iconPressable: {\n width: INPUT_ICON_SIZE,\n height: INPUT_ICON_SIZE,\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n error: {\n fontSize: 12,\n lineHeight: 16,\n color: colors.inputError,\n },\n hint: {\n fontSize: 12,\n lineHeight: 16,\n color: colors.stormGray300,\n },\n});\n"]}
|