@swan-io/lake 15.3.1 → 15.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.
Files changed (119) hide show
  1. package/package.json +5 -5
  2. package/src/components/Accordion.d.ts +1 -1
  3. package/src/components/AppOpeningAnimation.d.ts +1 -1
  4. package/src/components/AutoWidthImage.d.ts +1 -1
  5. package/src/components/AutocompleteSearchInput.d.ts +1 -1
  6. package/src/components/AutocompleteSearchInput.js +2 -2
  7. package/src/components/Avatar.js +3 -6
  8. package/src/components/BorderedIcon.d.ts +1 -1
  9. package/src/components/BottomPanel.d.ts +1 -1
  10. package/src/components/Box.d.ts +1 -1
  11. package/src/components/Breadcrumbs.d.ts +2 -2
  12. package/src/components/Breadcrumbs.js +3 -5
  13. package/src/components/BulletList.d.ts +10 -0
  14. package/src/components/BulletList.js +12 -0
  15. package/src/components/Cells.d.ts +6 -6
  16. package/src/components/Cells.js +1 -1
  17. package/src/components/ContextMenu.d.ts +2 -2
  18. package/src/components/ContextMenu.js +1 -1
  19. package/src/components/EmptyView.d.ts +1 -1
  20. package/src/components/EmptyView.js +1 -1
  21. package/src/components/Fill.d.ts +1 -1
  22. package/src/components/FlatList.d.ts +1 -1
  23. package/src/components/FlatList.js +3 -3
  24. package/src/components/FlowPresentation.d.ts +1 -1
  25. package/src/components/FocusTrap.d.ts +1 -1
  26. package/src/components/Form.d.ts +120 -123
  27. package/src/components/FullViewportLayer.d.ts +1 -1
  28. package/src/components/Grid.d.ts +1 -1
  29. package/src/components/Icon.js +1 -1
  30. package/src/components/InputError.d.ts +1 -1
  31. package/src/components/LakeAlert.d.ts +1 -1
  32. package/src/components/LakeAlert.js +2 -2
  33. package/src/components/LakeButton.d.ts +2 -2
  34. package/src/components/LakeButton.js +1 -1
  35. package/src/components/LakeCheckbox.d.ts +2 -2
  36. package/src/components/LakeCheckbox.js +2 -2
  37. package/src/components/LakeCombobox.d.ts +1 -1
  38. package/src/components/LakeCopyButton.d.ts +1 -1
  39. package/src/components/LakeDownloadButton.d.ts +1 -1
  40. package/src/components/LakeHeading.d.ts +1 -1
  41. package/src/components/LakeLabel.d.ts +1 -1
  42. package/src/components/LakeLabel.js +2 -2
  43. package/src/components/LakeRadio.d.ts +1 -1
  44. package/src/components/LakeScrollView.d.ts +1 -1
  45. package/src/components/LakeSelect.d.ts +1 -1
  46. package/src/components/LakeSelect.js +8 -10
  47. package/src/components/LakeSlider.d.ts +1 -1
  48. package/src/components/LakeStepper.d.ts +3 -3
  49. package/src/components/LakeStepper.js +3 -3
  50. package/src/components/LakeTagInput.d.ts +1 -1
  51. package/src/components/LakeText.d.ts +1 -1
  52. package/src/components/LakeTextInput.d.ts +1 -1
  53. package/src/components/LakeTextInput.js +1 -1
  54. package/src/components/LakeTooltip.d.ts +2 -2
  55. package/src/components/LakeTooltip.js +2 -2
  56. package/src/components/Link.d.ts +1 -1
  57. package/src/components/ListRightPanel.d.ts +2 -2
  58. package/src/components/LoadingView.d.ts +1 -1
  59. package/src/components/MultiSelect.d.ts +1 -1
  60. package/src/components/MultiSelect.js +2 -2
  61. package/src/components/PlainListView.d.ts +3 -9
  62. package/src/components/PlainListView.js +1 -1
  63. package/src/components/PopoverContent.d.ts +1 -1
  64. package/src/components/Pressable.js +3 -3
  65. package/src/components/ProgressTracker.d.ts +22 -0
  66. package/src/components/ProgressTracker.js +71 -0
  67. package/src/components/ProjectEnvTag.d.ts +1 -1
  68. package/src/components/QuickActions.d.ts +1 -1
  69. package/src/components/QuickActions.js +6 -9
  70. package/src/components/RadioGroup.d.ts +1 -1
  71. package/src/components/RadioGroup.js +1 -1
  72. package/src/components/ReadOnlyFieldList.d.ts +1 -1
  73. package/src/components/ReadOnlyFieldList.js +1 -1
  74. package/src/components/ResponsiveContainer.d.ts +1 -1
  75. package/src/components/RightPanel.d.ts +1 -1
  76. package/src/components/RightPanel.js +1 -1
  77. package/src/components/ScrollView.d.ts +1 -1
  78. package/src/components/SectionList.d.ts +1 -1
  79. package/src/components/SectionList.js +3 -3
  80. package/src/components/SegmentedControl.d.ts +1 -1
  81. package/src/components/SegmentedControl.js +1 -1
  82. package/src/components/Separator.d.ts +1 -1
  83. package/src/components/SidebarNavigationTracker.d.ts +2 -2
  84. package/src/components/SidebarNavigationTracker.js +2 -1
  85. package/src/components/SmsOpeningAnimation.d.ts +1 -1
  86. package/src/components/SortBottomPanel.d.ts +1 -1
  87. package/src/components/Space.d.ts +1 -1
  88. package/src/components/Stack.d.ts +1 -1
  89. package/src/components/StepDots.d.ts +1 -1
  90. package/src/components/Suspendable.d.ts +1 -1
  91. package/src/components/Suspendable.js +1 -1
  92. package/src/components/Svg.d.ts +10 -10
  93. package/src/components/Svg.js +1 -1
  94. package/src/components/SwanLogo.d.ts +1 -1
  95. package/src/components/Switch.d.ts +1 -1
  96. package/src/components/Switch.js +1 -1
  97. package/src/components/TabView.d.ts +1 -1
  98. package/src/components/TabView.js +4 -4
  99. package/src/components/Tag.d.ts +1 -1
  100. package/src/components/Tag.js +1 -1
  101. package/src/components/Tick.d.ts +1 -1
  102. package/src/components/Tile.d.ts +13 -6
  103. package/src/components/Tile.js +32 -6
  104. package/src/components/TilePlaceholder.d.ts +4 -2
  105. package/src/components/TilePlaceholder.js +3 -3
  106. package/src/components/TimePicker.d.ts +2 -2
  107. package/src/components/Toggle.d.ts +1 -1
  108. package/src/components/Toggle.js +1 -1
  109. package/src/components/TransitionGroupView.d.ts +1 -1
  110. package/src/components/TransitionGroupView.js +1 -1
  111. package/src/components/TransitionView.d.ts +1 -1
  112. package/src/components/VirtualizedList.d.ts +2 -2
  113. package/src/components/VirtualizedList.js +2 -2
  114. package/src/components/WithCurrentColor.d.ts +2 -2
  115. package/src/components/WithPartnerAccentColor.d.ts +1 -1
  116. package/src/hooks/useUpdateEffect.js +1 -2
  117. package/src/utils/highlights.js +2 -1
  118. package/src/utils/string.js +1 -1
  119. package/src/utils/svg.js +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swan-io/lake",
3
- "version": "15.3.1",
3
+ "version": "15.4.0",
4
4
  "engines": {
5
5
  "node": ">22.12.0"
6
6
  },
@@ -33,19 +33,19 @@
33
33
  "@swan-io/boxed": "^3.2.1",
34
34
  "@swan-io/chicane": "^3.0.0",
35
35
  "@swan-io/use-form": "^3.1.0",
36
- "dayjs": "^1.11.20",
36
+ "dayjs": "^1.11.21",
37
37
  "polished": "^4.3.1",
38
38
  "rifm": "^0.12.1",
39
39
  "ts-pattern": "^5.9.0",
40
- "uuid": "^14.0.0"
40
+ "uuid": "^14.0.1"
41
41
  },
42
42
  "devDependencies": {
43
- "@types/react": "^19.2.14",
43
+ "@types/react": "^19.2.17",
44
44
  "@types/react-dom": "^19.2.3",
45
45
  "@types/react-native": "^0.72.8",
46
46
  "react": "^19.2.7",
47
47
  "react-dom": "^19.2.7",
48
48
  "react-native-web": "^0.21.2",
49
- "type-fest": "^5.6.0"
49
+ "type-fest": "^5.8.0"
50
50
  }
51
51
  }
@@ -6,5 +6,5 @@ type Props = {
6
6
  style?: ViewProps["style"];
7
7
  contentContainerStyle?: ViewProps["style"];
8
8
  };
9
- export declare const Accordion: ({ children, trigger, style, contentContainerStyle }: Props) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const Accordion: ({ children, trigger, style, contentContainerStyle }: Props) => import("react").JSX.Element;
10
10
  export {};
@@ -5,5 +5,5 @@ type Props = {
5
5
  playing?: boolean;
6
6
  style?: StyleProp<ViewStyle>;
7
7
  };
8
- export declare const AppOpeningAnimation: ({ accentColor, appLogo, playing, style }: Props) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const AppOpeningAnimation: ({ accentColor, appLogo, playing, style }: Props) => import("react").JSX.Element;
9
9
  export {};
@@ -8,5 +8,5 @@ type Props = Except<ImageProps, "source"> & {
8
8
  height: number;
9
9
  sourceUri: string;
10
10
  };
11
- export declare const AutoWidthImage: import("react").MemoExoticComponent<({ ref, ariaLabel, maxWidth, height, sourceUri, onLoadEnd, style, ...props }: Props) => import("react/jsx-runtime").JSX.Element>;
11
+ export declare const AutoWidthImage: import("react").MemoExoticComponent<({ ref, ariaLabel, maxWidth, height, sourceUri, onLoadEnd, style, ...props }: Props) => import("react").JSX.Element>;
12
12
  export {};
@@ -20,5 +20,5 @@ type Props<T> = {
20
20
  onSuggestion: (suggestion: Suggestion<T>) => void;
21
21
  onLoadError?: (error: unknown) => void;
22
22
  };
23
- export declare const AutocompleteSearchInput: <T>({ inputRef, value, onValueChange, disabled, id, placeholder, error, emptyResult, ListFooterComponent, shouldDisplaySuggestions, loadSuggestions, onSuggestion, onLoadError, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
23
+ export declare const AutocompleteSearchInput: <T>({ inputRef, value, onValueChange, disabled, id, placeholder, error, emptyResult, ListFooterComponent, shouldDisplaySuggestions, loadSuggestions, onSuggestion, onLoadError, }: Props<T>) => import("react").JSX.Element;
24
24
  export {};
@@ -1,8 +1,8 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { AsyncData, Result } from "@swan-io/boxed";
3
3
  import { useRef, useState } from "react";
4
4
  import { StyleSheet } from "react-native";
5
- import { P, match } from "ts-pattern";
5
+ import { match, P } from "ts-pattern";
6
6
  import { colors } from "../constants/design";
7
7
  import { LakeCombobox } from "./LakeCombobox";
8
8
  import { LakeText } from "./LakeText";
@@ -27,14 +27,11 @@ const initialsToVariant = (initials) => {
27
27
  };
28
28
  export const Avatar = memo(({ user, size }) => {
29
29
  const initials = match(user)
30
- .with(P.nonNullable, user => {
31
- var _a, _b, _c, _d, _e;
32
- return ((_b = (_a = user.firstName) === null || _a === void 0 ? void 0 : _a.charAt(0)) !== null && _b !== void 0 ? _b : "") +
33
- ((_e = (_d = ((_c = user.preferredLastName) !== null && _c !== void 0 ? _c : user.lastName)) === null || _d === void 0 ? void 0 : _d.charAt(0)) !== null && _e !== void 0 ? _e : "");
34
- })
30
+ .with(P.nonNullable, user => { var _a, _b; var _c, _d, _e; return ((_c = (_a = user.firstName) === null || _a === void 0 ? void 0 : _a.charAt(0)) !== null && _c !== void 0 ? _c : "") +
31
+ ((_e = (_b = ((_d = user.preferredLastName) !== null && _d !== void 0 ? _d : user.lastName)) === null || _b === void 0 ? void 0 : _b.charAt(0)) !== null && _e !== void 0 ? _e : ""); })
35
32
  .otherwise(() => "");
36
33
  const variant = initialsToVariant(initials);
37
- return (_jsx(View, { role: "img", style: [
34
+ return (_jsx(View, { role: "img", "aria-label": initials !== "" ? initials : "avatar", style: [
38
35
  commonStyles.center,
39
36
  styles.container,
40
37
  {
@@ -10,5 +10,5 @@ type Props = {
10
10
  size?: number;
11
11
  style?: ViewProps["style"];
12
12
  };
13
- export declare const BorderedIcon: ({ name, borderRadius, color, padding, size, style, }: Props) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const BorderedIcon: ({ name, borderRadius, color, padding, size, style, }: Props) => import("react").JSX.Element;
14
14
  export {};
@@ -5,5 +5,5 @@ type Props = {
5
5
  children: ReactNode;
6
6
  returnFocus?: boolean;
7
7
  };
8
- export declare const BottomPanel: ({ visible, onPressClose, children, returnFocus }: Props) => import("react/jsx-runtime").JSX.Element | null;
8
+ export declare const BottomPanel: ({ visible, onPressClose, children, returnFocus }: Props) => import("react").JSX.Element | null;
9
9
  export {};
@@ -68,5 +68,5 @@ export type BoxProps = ViewProps & {
68
68
  shrink?: number;
69
69
  style?: StyleProp<ViewStyle>;
70
70
  };
71
- export declare const Box: ({ ref, alignItems, direction, justifyContent, wrap, grow, shrink, style, ...props }: BoxProps) => import("react/jsx-runtime").JSX.Element;
71
+ export declare const Box: ({ ref, alignItems, direction, justifyContent, wrap, grow, shrink, style, ...props }: BoxProps) => import("react").JSX.Element;
72
72
  export {};
@@ -12,7 +12,7 @@ type Props = {
12
12
  rootLevelCrumbs?: readonly Crumb[];
13
13
  children: ReactNode;
14
14
  };
15
- export declare const BreadcrumbsRoot: ({ rootLevelCrumbs, children }: Props) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const BreadcrumbsRoot: ({ rootLevelCrumbs, children }: Props) => import("react").JSX.Element;
16
16
  export declare const useCrumb: (crumb?: Crumb) => void;
17
- export declare const Breadcrumbs: () => import("react/jsx-runtime").JSX.Element;
17
+ export declare const Breadcrumbs: () => import("react").JSX.Element;
18
18
  export {};
@@ -1,7 +1,7 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { createContext, useCallback, useContext, useEffect, useId, useMemo, useReducer, useRef, useState, } from "react";
3
3
  import { Pressable, StyleSheet, Text, View, } from "react-native";
4
- import { P, match } from "ts-pattern";
4
+ import { match, P } from "ts-pattern";
5
5
  import { v4 as uuid } from "uuid";
6
6
  import { animations, backgroundColor, colors, gray75, radii, shadows, spacings, texts, } from "../constants/design";
7
7
  import { useHover } from "../hooks/useHover";
@@ -127,9 +127,7 @@ export const BreadcrumbsRoot = ({ rootLevelCrumbs = emptyCrumbArray, children })
127
127
  setRootCrumbs(rootLevelCrumbs.map(crumb => ({ id: uuid(), crumb, isRootCrumb: true })));
128
128
  }, [rootLevelCrumbs]);
129
129
  const orderedCrumbs = useMemo(() => [...crumbs].sort((a, b) => { var _a, _b; return (((_a = b.index) !== null && _a !== void 0 ? _a : -1) > ((_b = a.index) !== null && _b !== void 0 ? _b : -1) ? -1 : 1); }), [crumbs]);
130
- // biome-ignore lint/correctness/useExhaustiveDependencies(setCrumbs):
131
- // biome-ignore lint/correctness/useExhaustiveDependencies(currentIndexRef):
132
- const value = useMemo(() => [rootCrumbs, orderedCrumbs, setCrumbs, currentIndexRef], [rootCrumbs, orderedCrumbs, setCrumbs, currentIndexRef]);
130
+ const value = useMemo(() => [rootCrumbs, orderedCrumbs, setCrumbs, currentIndexRef], [rootCrumbs, orderedCrumbs]);
133
131
  return _jsx(BreadcrumbsContext.Provider, { value: value, children: children });
134
132
  };
135
133
  const useBreadcrumbs = () => {
@@ -0,0 +1,10 @@
1
+ import { StyleProp, ViewStyle } from "react-native";
2
+ import { TextVariant } from "./LakeText";
3
+ type Props = {
4
+ items: string[];
5
+ color?: string;
6
+ variant?: TextVariant;
7
+ style?: StyleProp<ViewStyle>;
8
+ };
9
+ export declare const BulletList: ({ items, color, variant, style, }: Props) => import("react").JSX.Element;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { StyleSheet, View } from "react-native";
3
+ import { colors } from "../constants/design";
4
+ import { Box } from "./Box";
5
+ import { LakeText } from "./LakeText";
6
+ import { Space } from "./Space";
7
+ const styles = StyleSheet.create({
8
+ itemText: {
9
+ flex: 1,
10
+ },
11
+ });
12
+ export const BulletList = ({ items, color = colors.gray[700], variant = "regular", style, }) => (_jsx(View, { role: "list", style: style, children: items.map((item, index) => (_jsxs(Box, { role: "listitem", direction: "row", children: [_jsx(LakeText, { "aria-hidden": true, color: color, variant: variant, children: "\u2022" }), _jsx(Space, { width: 8 }), _jsx(LakeText, { color: color, variant: variant, style: styles.itemText, children: item })] }, index))) }));
@@ -23,14 +23,14 @@ type CellProps = {
23
23
  style?: StyleProp<ViewStyle>;
24
24
  contentContainerStyle?: StyleProp<ViewStyle>;
25
25
  };
26
- export declare const Cell: ({ children, align, direction, fadeOn, style, contentContainerStyle, }: CellProps) => import("react/jsx-runtime").JSX.Element;
26
+ export declare const Cell: ({ children, align, direction, fadeOn, style, contentContainerStyle, }: CellProps) => import("react").JSX.Element;
27
27
  type HeaderCellProps = {
28
28
  align?: Align;
29
29
  sort?: SortDirection;
30
30
  text: string;
31
31
  onPress?: (direction: SortDirection) => void;
32
32
  };
33
- export declare const HeaderCell: ({ align, sort, text, onPress }: HeaderCellProps) => import("react/jsx-runtime").JSX.Element;
33
+ export declare const HeaderCell: ({ align, sort, text, onPress }: HeaderCellProps) => import("react").JSX.Element;
34
34
  type TextCellProps = {
35
35
  align?: Align;
36
36
  color?: string;
@@ -38,7 +38,7 @@ type TextCellProps = {
38
38
  tooltip?: TooltipProp;
39
39
  variant?: TextVariant;
40
40
  };
41
- export declare const TextCell: ({ align, color, text, tooltip, variant, }: TextCellProps) => import("react/jsx-runtime").JSX.Element;
41
+ export declare const TextCell: ({ align, color, text, tooltip, variant, }: TextCellProps) => import("react").JSX.Element;
42
42
  type CopyableTextCellProps = {
43
43
  copiedWording: string;
44
44
  copyWording: string;
@@ -47,7 +47,7 @@ type CopyableTextCellProps = {
47
47
  tooltip?: TooltipProp;
48
48
  variant?: TextVariant;
49
49
  };
50
- export declare const CopyableTextCell: ({ copiedWording, copyWording, text, textToCopy, tooltip, variant, }: CopyableTextCellProps) => import("react/jsx-runtime").JSX.Element;
50
+ export declare const CopyableTextCell: ({ copiedWording, copyWording, text, textToCopy, tooltip, variant, }: CopyableTextCellProps) => import("react").JSX.Element;
51
51
  type BalanceCellProps = {
52
52
  align?: Align;
53
53
  currency: string;
@@ -59,7 +59,7 @@ type BalanceCellProps = {
59
59
  value: number;
60
60
  variant?: TextVariant;
61
61
  };
62
- export declare const BalanceCell: ({ align, currency, formatCurrency, originalValue, value, variant, }: BalanceCellProps) => import("react/jsx-runtime").JSX.Element;
62
+ export declare const BalanceCell: ({ align, currency, formatCurrency, originalValue, value, variant, }: BalanceCellProps) => import("react").JSX.Element;
63
63
  type LinkCellProps = {
64
64
  buttonPosition?: "start" | "end";
65
65
  children: ReactNode;
@@ -69,5 +69,5 @@ type LinkCellProps = {
69
69
  tooltip?: TooltipProp;
70
70
  variant?: TextVariant;
71
71
  };
72
- export declare const LinkCell: ({ buttonPosition, children, external, fadeOn, onPress, tooltip, variant, }: LinkCellProps) => import("react/jsx-runtime").JSX.Element;
72
+ export declare const LinkCell: ({ buttonPosition, children, external, fadeOn, onPress, tooltip, variant, }: LinkCellProps) => import("react").JSX.Element;
73
73
  export {};
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useCallback, useState } from "react";
3
3
  import { StyleSheet, View } from "react-native";
4
4
  import { match } from "ts-pattern";
@@ -6,11 +6,11 @@ type ContextMenuProps = {
6
6
  withPill?: boolean;
7
7
  verticalPlacement?: VerticalPlacement;
8
8
  };
9
- export declare const ContextMenu: ({ children, ariaLabel, withPill, verticalPlacement, }: ContextMenuProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const ContextMenu: ({ children, ariaLabel, withPill, verticalPlacement, }: ContextMenuProps) => import("react").JSX.Element;
10
10
  type ContextMenuItemProps = {
11
11
  children: string;
12
12
  withPill?: boolean;
13
13
  onPress: () => void;
14
14
  };
15
- export declare const ContextMenuItem: ({ children, withPill, onPress }: ContextMenuItemProps) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const ContextMenuItem: ({ children, withPill, onPress }: ContextMenuItemProps) => import("react").JSX.Element;
16
16
  export {};
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { createContext, useContext, useRef } from "react";
3
3
  import { StyleSheet, View } from "react-native";
4
4
  import { colors, spacings } from "../constants/design";
@@ -9,5 +9,5 @@ type Props = {
9
9
  subtitle?: ReactNode;
10
10
  children?: ReactNode;
11
11
  };
12
- export declare const EmptyView: ({ icon, borderedIcon, borderedIconPadding, title, subtitle, children, }: Props) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const EmptyView: ({ icon, borderedIcon, borderedIconPadding, title, subtitle, children, }: Props) => import("react").JSX.Element;
13
13
  export {};
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { StyleSheet, View } from "react-native";
3
3
  import { colors } from "../constants/design";
4
4
  import { BorderedIcon } from "./BorderedIcon";
@@ -3,5 +3,5 @@ type Props = {
3
3
  minHeight?: SpacingValue;
4
4
  minWidth?: SpacingValue;
5
5
  };
6
- export declare const Fill: ({ minHeight, minWidth }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const Fill: ({ minHeight, minWidth }: Props) => import("react").JSX.Element;
7
7
  export {};
@@ -26,5 +26,5 @@ type Props<T> = {
26
26
  showsScrollIndicators?: boolean;
27
27
  style?: StyleProp<ViewStyle>;
28
28
  };
29
- export declare const FlatList: <T>({ ref, ItemSeparatorComponent, ListEmptyComponent, ListFooterComponent, ListHeaderComponent, contentContainerStyle, data, horizontal, keyExtractor, onEndReached, onEndReachedThresholdPx, onKeyDown, onScroll, renderItem, role, scrollEventThrottle, showsScrollIndicators, style, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
29
+ export declare const FlatList: <T>({ ref, ItemSeparatorComponent, ListEmptyComponent, ListFooterComponent, ListHeaderComponent, contentContainerStyle, data, horizontal, keyExtractor, onEndReached, onEndReachedThresholdPx, onKeyDown, onScroll, renderItem, role, scrollEventThrottle, showsScrollIndicators, style, }: Props<T>) => import("react").JSX.Element;
30
30
  export {};
@@ -1,4 +1,4 @@
1
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Fragment, useEffect, useRef } from "react";
3
3
  import { StyleSheet, View } from "react-native";
4
4
  import { ScrollView } from "./ScrollView";
@@ -15,8 +15,8 @@ export const FlatList = ({ ref, ItemSeparatorComponent, ListEmptyComponent, List
15
15
  const scrollTrackerStyle = horizontal
16
16
  ? { top: 0, width: onEndReachedThresholdPx }
17
17
  : { left: 0, height: onEndReachedThresholdPx };
18
- // biome-ignore lint/correctness/useExhaustiveDependencies(onEndReached):
19
- // biome-ignore lint/correctness/useExhaustiveDependencies(data.length):
18
+ // biome-ignore lint/correctness/useExhaustiveDependencies(onEndReached): re-create an observer only on list length change
19
+ // biome-ignore lint/correctness/useExhaustiveDependencies(data.length): re-create an observer only on list length change
20
20
  useEffect(() => {
21
21
  const element = scrollTrackerRef.current;
22
22
  if (element != null) {
@@ -8,5 +8,5 @@ type Props = {
8
8
  steps: FlowStep[];
9
9
  mode: "desktop" | "mobile";
10
10
  };
11
- export declare const FlowPresentation: ({ steps, mode }: Props) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const FlowPresentation: ({ steps, mode }: Props) => import("react").JSX.Element;
12
12
  export {};
@@ -13,5 +13,5 @@ type Props = {
13
13
  returnFocus: boolean;
14
14
  style?: StyleProp<ViewStyle>;
15
15
  };
16
- export declare const FocusTrap: ({ ref, children, focusLock, onClickOutside, onEscapeKey, returnFocus, style, autoFocus, }: Props) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const FocusTrap: ({ ref, children, focusLock, onClickOutside, onEscapeKey, returnFocus, style, autoFocus, }: Props) => import("react").JSX.Element;
17
17
  export {};
@@ -8,10 +8,91 @@ type Props = Except<ViewProps, "role"> & {
8
8
  onSubmit?: (event: React.FormEvent<HTMLElement>) => void;
9
9
  };
10
10
  export declare const Form: import("react").MemoExoticComponent<({ ref, style, onReset, onSubmit, ...props }: Props) => import("react").ReactElement<{
11
+ onPointerEnter?: ((event: import("react-native").PointerEvent) => void) | undefined;
12
+ onPointerEnterCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
13
+ onPointerLeave?: ((event: import("react-native").PointerEvent) => void) | undefined;
14
+ onPointerLeaveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
15
+ onPointerMove?: ((event: import("react-native").PointerEvent) => void) | undefined;
16
+ onPointerMoveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
17
+ onPointerCancel?: ((event: import("react-native").PointerEvent) => void) | undefined;
18
+ onPointerCancelCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
19
+ onPointerDown?: ((event: import("react-native").PointerEvent) => void) | undefined;
20
+ onPointerDownCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
21
+ onPointerUp?: ((event: import("react-native").PointerEvent) => void) | undefined;
22
+ onPointerUpCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
23
+ onStartShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
24
+ onMoveShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
25
+ onResponderEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
26
+ onResponderGrant?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
27
+ onResponderReject?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
28
+ onResponderMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
29
+ onResponderRelease?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
30
+ onResponderStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
31
+ onResponderTerminationRequest?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
32
+ onResponderTerminate?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
33
+ onStartShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
34
+ onMoveShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
35
+ onTouchStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
36
+ onTouchMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
37
+ onTouchEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
38
+ onTouchCancel?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
39
+ onTouchEndCapture?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
40
+ accessible?: boolean | undefined;
41
+ accessibilityActions?: readonly import("react-native").AccessibilityActionInfo[] | undefined;
42
+ accessibilityLabel?: string | undefined;
43
+ "aria-label"?: string | undefined;
44
+ accessibilityRole?: import("react-native").AccessibilityRole | undefined;
45
+ accessibilityState?: import("react-native").AccessibilityState | undefined;
46
+ "aria-busy"?: boolean | undefined;
47
+ "aria-checked"?: boolean | "mixed" | undefined;
48
+ "aria-disabled"?: boolean | undefined;
49
+ "aria-expanded"?: boolean | undefined;
50
+ "aria-selected"?: boolean | undefined;
51
+ "aria-labelledby"?: string | undefined;
52
+ accessibilityHint?: string | undefined;
53
+ accessibilityValue?: import("react-native").AccessibilityValue | undefined;
54
+ "aria-valuemax"?: import("react-native").AccessibilityValue["max"] | undefined;
55
+ "aria-valuemin"?: import("react-native").AccessibilityValue["min"] | undefined;
56
+ "aria-valuenow"?: import("react-native").AccessibilityValue["now"] | undefined;
57
+ "aria-valuetext"?: import("react-native").AccessibilityValue["text"] | undefined;
58
+ onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => void) | undefined;
59
+ importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined;
60
+ "aria-hidden"?: boolean | undefined;
61
+ "aria-live"?: ("polite" | "assertive" | "off") | undefined;
62
+ "aria-modal"?: boolean | undefined;
63
+ accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
64
+ accessibilityLabelledBy?: string | string[] | undefined;
65
+ accessibilityElementsHidden?: boolean | undefined;
66
+ accessibilityViewIsModal?: boolean | undefined;
67
+ onAccessibilityEscape?: (() => void) | undefined;
68
+ onAccessibilityTap?: (() => void) | undefined;
69
+ onMagicTap?: (() => void) | undefined;
70
+ accessibilityIgnoresInvertColors?: boolean | undefined;
71
+ accessibilityLanguage?: string | undefined;
72
+ isTVSelectable?: boolean | undefined;
73
+ hasTVPreferredFocus?: boolean | undefined;
74
+ tvParallaxProperties?: import("react-native").TVParallaxProperties | undefined;
75
+ tvParallaxShiftDistanceX?: number | undefined;
76
+ tvParallaxShiftDistanceY?: number | undefined;
77
+ tvParallaxTiltAngle?: number | undefined;
78
+ tvParallaxMagnification?: number | undefined;
79
+ shouldRasterizeIOS?: boolean | undefined;
80
+ collapsable?: boolean | undefined;
81
+ needsOffscreenAlphaCompositing?: boolean | undefined;
82
+ renderToHardwareTextureAndroid?: boolean | undefined;
83
+ focusable?: boolean | undefined;
84
+ children?: ReactNode;
85
+ hitSlop?: import("react-native").Insets | undefined;
86
+ id?: string | undefined;
87
+ onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined;
88
+ pointerEvents?: "box-none" | "none" | "box-only" | "auto" | undefined;
89
+ removeClippedSubviews?: boolean | undefined;
90
+ testID?: string | undefined;
91
+ nativeID?: string | undefined;
11
92
  ref: Ref<View> | undefined;
12
93
  onReset: (event: React.FormEvent<HTMLElement>) => void;
13
94
  onSubmit: (event: React.FormEvent<HTMLElement>) => void;
14
- style: (import("react-native").StyleProp<import("react-native").ViewStyle> | {
95
+ style: ({
15
96
  readonly alignItems: "stretch";
16
97
  readonly backgroundColor: "transparent";
17
98
  readonly borderColor: "black";
@@ -30,127 +111,43 @@ export declare const Form: import("react").MemoExoticComponent<({ ref, style, on
30
111
  readonly position: "relative";
31
112
  readonly textDecoration: "none";
32
113
  readonly zIndex: 0;
33
- })[];
34
- children?: ReactNode;
35
- hitSlop?: import("react-native").Insets | undefined;
36
- id?: string | undefined | undefined;
37
- onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined | undefined;
38
- pointerEvents?: "box-none" | "none" | "box-only" | "auto" | undefined | undefined;
39
- removeClippedSubviews?: boolean | undefined | undefined;
40
- testID?: string | undefined | undefined;
41
- nativeID?: string | undefined | undefined;
42
- onKeyDown?: ((event: NativeSyntheticEvent<React.KeyboardEvent>) => void) | undefined;
43
- onKeyDownCapture?: ((event: NativeSyntheticEvent<React.KeyboardEvent>) => void) | undefined;
44
- onKeyUp?: ((event: NativeSyntheticEvent<React.KeyboardEvent>) => void) | undefined;
45
- onKeyUpCapture?: ((event: NativeSyntheticEvent<React.KeyboardEvent>) => void) | undefined;
46
- onScroll?: ((event: NativeSyntheticEvent<React.UIEvent>) => void) | undefined;
47
- collapsable?: boolean | undefined | undefined;
48
- needsOffscreenAlphaCompositing?: boolean | undefined | undefined;
49
- renderToHardwareTextureAndroid?: boolean | undefined | undefined;
50
- focusable?: boolean | undefined | undefined;
51
- shouldRasterizeIOS?: boolean | undefined | undefined;
52
- isTVSelectable?: boolean | undefined | undefined;
53
- hasTVPreferredFocus?: boolean | undefined | undefined;
54
- tvParallaxProperties?: import("react-native").TVParallaxProperties | undefined;
55
- tvParallaxShiftDistanceX?: number | undefined | undefined;
56
- tvParallaxShiftDistanceY?: number | undefined | undefined;
57
- tvParallaxTiltAngle?: number | undefined | undefined;
58
- tvParallaxMagnification?: number | undefined | undefined;
59
- onStartShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined | undefined;
60
- onMoveShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined | undefined;
61
- onResponderEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
62
- onResponderGrant?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
63
- onResponderReject?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
64
- onResponderMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
65
- onResponderRelease?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
66
- onResponderStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
67
- onResponderTerminationRequest?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined | undefined;
68
- onResponderTerminate?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
69
- onStartShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined | undefined;
70
- onMoveShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined | undefined;
71
- onTouchStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
72
- onTouchMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
73
- onTouchEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
74
- onTouchCancel?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
75
- onTouchEndCapture?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
76
- onPointerEnter?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
77
- onPointerEnterCapture?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
78
- onPointerLeave?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
79
- onPointerLeaveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
80
- onPointerMove?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
81
- onPointerMoveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
82
- onPointerCancel?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
83
- onPointerCancelCapture?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
84
- onPointerDown?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
85
- onPointerDownCapture?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
86
- onPointerUp?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
87
- onPointerUpCapture?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
88
- accessible?: boolean | undefined | undefined;
89
- accessibilityActions?: readonly Readonly<{
90
- name: import("react-native").AccessibilityActionName | string;
91
- label?: string | undefined;
92
- }>[] | undefined;
93
- accessibilityLabel?: string | undefined | undefined;
94
- "aria-label"?: string | undefined | undefined;
95
- accessibilityRole?: import("react-native").AccessibilityRole | undefined;
96
- accessibilityState?: import("react-native").AccessibilityState | undefined;
97
- "aria-busy"?: boolean | undefined | undefined;
98
- "aria-checked"?: boolean | "mixed" | undefined | undefined;
99
- "aria-disabled"?: boolean | undefined | undefined;
100
- "aria-expanded"?: boolean | undefined | undefined;
101
- "aria-selected"?: boolean | undefined | undefined;
102
- "aria-labelledby"?: string | undefined | undefined;
103
- accessibilityHint?: string | undefined | undefined;
104
- accessibilityValue?: import("react-native").AccessibilityValue | undefined;
105
- "aria-valuemax"?: number | undefined;
106
- "aria-valuemin"?: number | undefined;
107
- "aria-valuenow"?: number | undefined;
108
- "aria-valuetext"?: string | undefined;
109
- onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => void) | undefined | undefined;
110
- importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined | undefined;
111
- "aria-hidden"?: boolean | undefined | undefined;
112
- "aria-live"?: ("polite" | "assertive" | "off") | undefined | undefined;
113
- "aria-modal"?: boolean | undefined | undefined;
114
- accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined | undefined;
115
- accessibilityLabelledBy?: string | string[] | undefined | undefined;
116
- accessibilityElementsHidden?: boolean | undefined | undefined;
117
- accessibilityViewIsModal?: boolean | undefined | undefined;
118
- onAccessibilityEscape?: (() => void) | undefined | undefined;
119
- onAccessibilityTap?: (() => void) | undefined | undefined;
120
- onMagicTap?: (() => void) | undefined | undefined;
121
- accessibilityIgnoresInvertColors?: boolean | undefined | undefined;
122
- accessibilityLanguage?: string | undefined | undefined;
123
- tabIndex?: 0 | -1 | undefined;
124
- "aria-activedescendant"?: string | undefined;
125
- "aria-atomic"?: boolean | undefined;
126
- "aria-autocomplete"?: string | undefined;
127
- "aria-colcount"?: number | undefined;
128
- "aria-colindex"?: number | undefined;
129
- "aria-colspan"?: number | undefined;
130
- "aria-controls"?: string | undefined;
131
- "aria-current"?: boolean | "page" | "step" | "location" | "date" | "time" | undefined;
132
- "aria-describedby"?: string | undefined;
133
- "aria-details"?: string | undefined;
134
- "aria-errormessage"?: string | undefined;
135
- "aria-flowto"?: string | undefined;
136
- "aria-haspopup"?: string | undefined;
137
- "aria-invalid"?: boolean | undefined;
138
- "aria-keyshortcuts"?: string | undefined;
139
- "aria-level"?: number | undefined;
140
- "aria-multiline"?: boolean | undefined;
141
- "aria-multiselectable"?: boolean | undefined;
142
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
143
- "aria-owns"?: string | undefined;
144
- "aria-placeholder"?: string | undefined;
145
- "aria-posinset"?: number | undefined;
146
- "aria-pressed"?: boolean | undefined;
147
- "aria-readonly"?: boolean | undefined;
148
- "aria-required"?: boolean | undefined;
149
- "aria-roledescription"?: string | undefined;
150
- "aria-rowcount"?: number | undefined;
151
- "aria-rowindex"?: number | undefined;
152
- "aria-rowspan"?: number | undefined;
153
- "aria-setsize"?: number | undefined;
154
- "aria-sort"?: "ascending" | "descending" | "none" | "other" | undefined;
114
+ } | import("react-native").StyleProp<import("react-native").ViewStyle>)[];
115
+ tabIndex?: 0 | -1;
116
+ "aria-activedescendant"?: string;
117
+ "aria-atomic"?: boolean;
118
+ "aria-autocomplete"?: string;
119
+ "aria-colcount"?: number;
120
+ "aria-colindex"?: number;
121
+ "aria-colspan"?: number;
122
+ "aria-controls"?: string;
123
+ "aria-current"?: boolean | "page" | "step" | "location" | "date" | "time";
124
+ "aria-describedby"?: string;
125
+ "aria-details"?: string;
126
+ "aria-errormessage"?: string;
127
+ "aria-flowto"?: string;
128
+ "aria-haspopup"?: string;
129
+ "aria-invalid"?: boolean;
130
+ "aria-keyshortcuts"?: string;
131
+ "aria-level"?: number;
132
+ "aria-multiline"?: boolean;
133
+ "aria-multiselectable"?: boolean;
134
+ "aria-orientation"?: "horizontal" | "vertical";
135
+ "aria-owns"?: string;
136
+ "aria-placeholder"?: string;
137
+ "aria-posinset"?: number;
138
+ "aria-pressed"?: boolean;
139
+ "aria-readonly"?: boolean;
140
+ "aria-required"?: boolean;
141
+ "aria-roledescription"?: string;
142
+ "aria-rowcount"?: number;
143
+ "aria-rowindex"?: number;
144
+ "aria-rowspan"?: number;
145
+ "aria-setsize"?: number;
146
+ "aria-sort"?: "ascending" | "descending" | "none" | "other";
147
+ onKeyDown?: (event: NativeSyntheticEvent<React.KeyboardEvent>) => void;
148
+ onKeyDownCapture?: (event: NativeSyntheticEvent<React.KeyboardEvent>) => void;
149
+ onKeyUp?: (event: NativeSyntheticEvent<React.KeyboardEvent>) => void;
150
+ onKeyUpCapture?: (event: NativeSyntheticEvent<React.KeyboardEvent>) => void;
151
+ onScroll?: (event: NativeSyntheticEvent<React.UIEvent>) => void;
155
152
  }, string | import("react").JSXElementConstructor<any>>>;
156
153
  export {};
@@ -3,5 +3,5 @@ type Props = {
3
3
  visible: boolean;
4
4
  children: ReactNode;
5
5
  };
6
- export declare const FullViewportLayer: ({ visible, children }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const FullViewportLayer: ({ visible, children }: Props) => import("react").JSX.Element;
7
7
  export {};
@@ -9,5 +9,5 @@ type Props = {
9
9
  style?: StyleProp<ViewStyle>;
10
10
  verticalSpace?: SpacingValue;
11
11
  };
12
- export declare const Grid: ({ children, horizontalSpace, itemWrapperStyle, numColumns, style, verticalSpace, }: Props) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const Grid: ({ children, horizontalSpace, itemWrapperStyle, numColumns, style, verticalSpace, }: Props) => import("react").JSX.Element;
13
13
  export {};