@swan-io/lake 2.0.0 → 2.0.1

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 (67) hide show
  1. package/package.json +7 -7
  2. package/src/components/AppOpeningAnimation.d.ts +1 -2
  3. package/src/components/AutocompleteSearchInput.d.ts +1 -1
  4. package/src/components/BorderedIcon.d.ts +1 -2
  5. package/src/components/BottomPanel.d.ts +1 -1
  6. package/src/components/Breadcrumbs.d.ts +2 -2
  7. package/src/components/ChoicePicker.d.ts +1 -1
  8. package/src/components/FailureIcon.d.ts +1 -2
  9. package/src/components/FileTile.d.ts +1 -2
  10. package/src/components/Fill.d.ts +1 -2
  11. package/src/components/FilterChooser.d.ts +1 -2
  12. package/src/components/Filters.d.ts +1 -1
  13. package/src/components/FixedListView.d.ts +4 -4
  14. package/src/components/FixedListViewCells.d.ts +16 -12
  15. package/src/components/FixedListViewCells.js +16 -15
  16. package/src/components/Flag.d.ts +1 -2
  17. package/src/components/FlowPresentation.d.ts +1 -2
  18. package/src/components/FullViewportLayer.d.ts +1 -1
  19. package/src/components/Grid.d.ts +1 -1
  20. package/src/components/InputError.d.ts +1 -2
  21. package/src/components/Label.d.ts +1 -1
  22. package/src/components/LakeAlert.d.ts +1 -1
  23. package/src/components/LakeButton.d.ts +1 -1
  24. package/src/components/LakeCheckbox.d.ts +2 -3
  25. package/src/components/LakeCombobox.d.ts +1 -1
  26. package/src/components/LakeCopyButton.d.ts +1 -2
  27. package/src/components/LakeDownloadButton.d.ts +1 -2
  28. package/src/components/LakeLabel.d.ts +1 -1
  29. package/src/components/LakeModal.d.ts +1 -1
  30. package/src/components/LakeRadio.d.ts +1 -2
  31. package/src/components/LakeScrollView.d.ts +1 -1
  32. package/src/components/LakeSearchField.d.ts +1 -2
  33. package/src/components/LakeSelect.d.ts +1 -1
  34. package/src/components/LakeSlider.d.ts +1 -2
  35. package/src/components/LakeStepper.d.ts +2 -3
  36. package/src/components/LakeTooltip.d.ts +1 -1
  37. package/src/components/ListRightPanel.d.ts +1 -1
  38. package/src/components/PlainListView.d.ts +3 -2
  39. package/src/components/PlainListView.js +5 -4
  40. package/src/components/PopoverContent.d.ts +1 -1
  41. package/src/components/ProjectEnvTag.d.ts +1 -2
  42. package/src/components/QuickActions.d.ts +1 -2
  43. package/src/components/RadioGroup.d.ts +1 -2
  44. package/src/components/ReadOnlyFieldList.d.ts +1 -1
  45. package/src/components/ResponsiveContainer.d.ts +1 -1
  46. package/src/components/Separator.d.ts +1 -2
  47. package/src/components/SidebarNavigationTracker.d.ts +2 -3
  48. package/src/components/Slider.d.ts +1 -1
  49. package/src/components/SmsOpeningAnimation.d.ts +1 -2
  50. package/src/components/SortBottomPanel.d.ts +1 -2
  51. package/src/components/Space.d.ts +1 -2
  52. package/src/components/StepDots.d.ts +1 -2
  53. package/src/components/Stepper.d.ts +1 -2
  54. package/src/components/SuccessIcon.d.ts +1 -2
  55. package/src/components/SwanLogo.d.ts +1 -2
  56. package/src/components/TabView.d.ts +1 -2
  57. package/src/components/Tag.d.ts +1 -1
  58. package/src/components/Tile.d.ts +4 -4
  59. package/src/components/TilePlaceholder.d.ts +2 -3
  60. package/src/components/ToastStack.d.ts +1 -2
  61. package/src/components/TransitionGroupView.d.ts +1 -1
  62. package/src/components/TransitionView.d.ts +1 -1
  63. package/src/components/WithCurrentColor.d.ts +1 -1
  64. package/src/components/WithPartnerAccentColor.d.ts +1 -1
  65. package/src/utils/function.d.ts +3 -1
  66. package/src/utils/function.js +5 -6
  67. package/src/utils/types.d.ts +0 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swan-io/lake",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "engines": {
5
5
  "node": ">=14.0.0",
6
6
  "yarn": "^1.20.0"
@@ -40,16 +40,16 @@
40
40
  "react-ux-form": "^1.3.0",
41
41
  "rifm": "^0.12.1",
42
42
  "ts-dedent": "^2.2.0",
43
- "ts-pattern": "^4.2.2",
44
- "urql": "^4.0.0",
43
+ "ts-pattern": "^4.3.0",
44
+ "urql": "^4.0.2",
45
45
  "uuid": "^9.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@types/react": "^18.0.37",
49
- "@types/react-dom": "^18.0.11",
48
+ "@types/react": "^18.2.6",
49
+ "@types/react-dom": "^18.2.4",
50
50
  "@types/react-native": "^0.71.6",
51
51
  "@types/uuid": "^9.0.1",
52
- "jsdom": "^21.1.1",
53
- "type-fest": "^3.8.0"
52
+ "jsdom": "^22.0.0",
53
+ "type-fest": "^3.10.0"
54
54
  }
55
55
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StyleProp, ViewStyle } from "react-native";
3
2
  type Props = {
4
3
  accentColor: string;
@@ -6,5 +5,5 @@ type Props = {
6
5
  playing?: boolean;
7
6
  style?: StyleProp<ViewStyle>;
8
7
  };
9
- export declare const AppOpeningAnimation: ({ accentColor, appLogo, playing, style }: Props) => JSX.Element;
8
+ export declare const AppOpeningAnimation: ({ accentColor, appLogo, playing, style }: Props) => import("react/jsx-runtime").JSX.Element;
10
9
  export {};
@@ -21,5 +21,5 @@ type Props<T> = {
21
21
  onSuggestion: (suggestion: Suggestion<T>) => void;
22
22
  onLoadError?: (error: unknown) => void;
23
23
  };
24
- export declare const AutocompleteSearchInput: <T>({ inputRef, value, onValueChange, disabled, id, placeholder, error, emptyResultText, ListFooterComponent, shouldDisplaySuggestions, loadSuggestions, onSuggestion, onLoadError, }: Props<T>) => JSX.Element;
24
+ export declare const AutocompleteSearchInput: <T>({ inputRef, value, onValueChange, disabled, id, placeholder, error, emptyResultText, ListFooterComponent, shouldDisplaySuggestions, loadSuggestions, onSuggestion, onLoadError, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
25
25
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ColorVariants } from "../constants/design";
3
2
  import { IconName } from "./Icon";
4
3
  import { SpacingValue } from "./Space";
@@ -8,5 +7,5 @@ type Props = {
8
7
  padding?: SpacingValue | 0;
9
8
  color?: ColorVariants;
10
9
  };
11
- export declare const BorderedIcon: ({ name, size, padding, color }: Props) => JSX.Element;
10
+ export declare const BorderedIcon: ({ name, size, padding, color }: Props) => import("react/jsx-runtime").JSX.Element;
12
11
  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) => JSX.Element | null;
8
+ export declare const BottomPanel: ({ visible, onPressClose, children, returnFocus }: Props) => import("react/jsx-runtime").JSX.Element | null;
9
9
  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) => JSX.Element;
15
+ export declare const BreadcrumbsRoot: ({ rootLevelCrumbs, children }: Props) => import("react/jsx-runtime").JSX.Element;
16
16
  export declare const useCrumb: (crumb?: Crumb) => void;
17
- export declare const Breadcrumbs: () => JSX.Element;
17
+ export declare const Breadcrumbs: () => import("react/jsx-runtime").JSX.Element;
18
18
  export {};
@@ -7,5 +7,5 @@ type Props<T> = {
7
7
  getId?: (item: T) => unknown;
8
8
  onChange: (value: T) => void;
9
9
  };
10
- export declare const ChoicePicker: <T>({ items, getId, large, renderItem, value, onChange, }: Props<T>) => JSX.Element;
10
+ export declare const ChoicePicker: <T>({ items, getId, large, renderItem, value, onChange, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
11
11
  export {};
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { StyleProp, ViewStyle } from "react-native";
3
2
  type Props = {
4
3
  size: number;
5
4
  style?: StyleProp<ViewStyle>;
6
5
  };
7
- export declare const FailureIcon: ({ size, style }: Props) => JSX.Element;
6
+ export declare const FailureIcon: ({ size, style }: Props) => import("react/jsx-runtime").JSX.Element;
8
7
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type Props = {
3
2
  variant?: "none" | "pending" | "verified" | "refused";
4
3
  name: string;
@@ -7,5 +6,5 @@ type Props = {
7
6
  title?: string;
8
7
  description?: string;
9
8
  };
10
- export declare const FileTile: ({ variant, name, url, onRemove, title, description }: Props) => JSX.Element;
9
+ export declare const FileTile: ({ variant, name, url, onRemove, title, description }: Props) => import("react/jsx-runtime").JSX.Element;
11
10
  export {};
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { SpacingValue } from "./Space";
3
2
  type Props = {
4
3
  minHeight?: SpacingValue;
5
4
  minWidth?: SpacingValue;
6
5
  };
7
- export declare const Fill: ({ minHeight, minWidth }: Props) => JSX.Element;
6
+ export declare const Fill: ({ minHeight, minWidth }: Props) => import("react/jsx-runtime").JSX.Element;
8
7
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare function FilterChooser<FilterName extends string>({ filters, openFilters, label, title, availableFilters, large, onAddFilter, }: {
3
2
  filters: Partial<Record<FilterName, unknown>>;
4
3
  openFilters: FilterName[];
@@ -10,4 +9,4 @@ export declare function FilterChooser<FilterName extends string>({ filters, open
10
9
  }[];
11
10
  large?: boolean;
12
11
  onAddFilter: (filterName: FilterName) => void;
13
- }): JSX.Element;
12
+ }): import("react/jsx-runtime").JSX.Element;
@@ -59,5 +59,5 @@ type FiltersStackProps<Definition extends FiltersDefinition, State extends Filte
59
59
  onChangeOpened: (value: (keyof Definition)[]) => void;
60
60
  onChangeFilters: (value: State) => void;
61
61
  };
62
- export declare const FiltersStack: <T extends FiltersDefinition>({ filters, openedFilters, definition, onChangeOpened, onChangeFilters, }: FiltersStackProps<T, { [K in keyof T]: ExtractFilterValue<T[K]> extends infer T_2 ? { [KeyType_2 in keyof T_2]: ExtractFilterValue<T[K]>[KeyType_2]; } : never; } extends infer T_1 ? { [KeyType_1 in keyof T_1]: { [K in keyof T]: ExtractFilterValue<T[K]> extends infer T_2 ? { [KeyType_2 in keyof T_2]: ExtractFilterValue<T[K]>[KeyType_2]; } : never; }[KeyType_1]; } : never>) => JSX.Element | null;
62
+ export declare const FiltersStack: <T extends FiltersDefinition>({ filters, openedFilters, definition, onChangeOpened, onChangeFilters, }: FiltersStackProps<T, { [K in keyof T]: ExtractFilterValue<T[K]> extends infer T_2 ? { [KeyType_2 in keyof T_2]: ExtractFilterValue<T[K]>[KeyType_2]; } : never; } extends infer T_1 ? { [KeyType_1 in keyof T_1]: { [K in keyof T]: ExtractFilterValue<T[K]> extends infer T_2 ? { [KeyType_2 in keyof T_2]: ExtractFilterValue<T[K]>[KeyType_2]; } : never; }[KeyType_1]; } : never>) => import("react/jsx-runtime").JSX.Element | null;
63
63
  export {};
@@ -82,7 +82,7 @@ export type FixedListViewProps<T, ExtraInfo> = {
82
82
  count: number;
83
83
  };
84
84
  };
85
- export declare const FixedListView: <T, ExtraInfo>({ data: originalData, mode, keyExtractor, highlightedRowId, rowHeight, rowVerticalSpacing, headerHeight, renderThreshold, stickedToStartColumns: initialStickedToStartColumns, columns: initialColumns, stickedToEndColumns: initialStickedToEndColumns, extraInfo, onEndReached, onEndReachedThresholdPx, getRowLink, renderEmptyList, loading, }: FixedListViewProps<T, ExtraInfo>) => JSX.Element;
85
+ export declare const FixedListView: <T, ExtraInfo>({ data: originalData, mode, keyExtractor, highlightedRowId, rowHeight, rowVerticalSpacing, headerHeight, renderThreshold, stickedToStartColumns: initialStickedToStartColumns, columns: initialColumns, stickedToEndColumns: initialStickedToEndColumns, extraInfo, onEndReached, onEndReachedThresholdPx, getRowLink, renderEmptyList, loading, }: FixedListViewProps<T, ExtraInfo>) => import("react/jsx-runtime").JSX.Element;
86
86
  type PlaceholderProps = {
87
87
  count: number;
88
88
  rowHeight: number;
@@ -91,8 +91,8 @@ type PlaceholderProps = {
91
91
  headerHeight?: number;
92
92
  paddingHorizontal?: number;
93
93
  };
94
- export declare const FixedListViewPlaceholder: ({ count, rowHeight, rowVerticalSpacing, groupHeaderHeight, headerHeight, paddingHorizontal, }: PlaceholderProps) => JSX.Element;
95
- export declare const PlainListViewPlaceholder: ({ count, rowHeight, rowVerticalSpacing, groupHeaderHeight, headerHeight, paddingHorizontal, }: PlaceholderProps) => JSX.Element;
94
+ export declare const FixedListViewPlaceholder: ({ count, rowHeight, rowVerticalSpacing, groupHeaderHeight, headerHeight, paddingHorizontal, }: PlaceholderProps) => import("react/jsx-runtime").JSX.Element;
95
+ export declare const PlainListViewPlaceholder: ({ count, rowHeight, rowVerticalSpacing, groupHeaderHeight, headerHeight, paddingHorizontal, }: PlaceholderProps) => import("react/jsx-runtime").JSX.Element;
96
96
  type EmptyProps = {
97
97
  icon: IconName;
98
98
  borderedIcon?: boolean;
@@ -100,5 +100,5 @@ type EmptyProps = {
100
100
  subtitle?: ReactNode;
101
101
  children?: ReactNode;
102
102
  };
103
- export declare const FixedListViewEmpty: ({ icon, borderedIcon, title, subtitle, children, }: EmptyProps) => JSX.Element;
103
+ export declare const FixedListViewEmpty: ({ icon, borderedIcon, title, subtitle, children, }: EmptyProps) => import("react/jsx-runtime").JSX.Element;
104
104
  export {};
@@ -8,48 +8,52 @@ export declare const SimpleHeaderCell: ({ text, sort, justifyContent, onPress, }
8
8
  justifyContent?: Justify | undefined;
9
9
  sort?: SortDirection | undefined;
10
10
  onPress?: ((direction: SortDirection) => void) | undefined;
11
- }) => JSX.Element;
11
+ }) => import("react/jsx-runtime").JSX.Element;
12
12
  export declare const ColorPatchCell: ({ isHovered, alternativeText, color, }: {
13
13
  isHovered: boolean;
14
14
  alternativeText?: string | undefined;
15
15
  color: ColorVariants;
16
- }) => JSX.Element | null;
16
+ }) => import("react/jsx-runtime").JSX.Element | null;
17
17
  export declare const SimpleTitleCell: ({ isHighlighted, text, }: {
18
18
  isHighlighted?: boolean | undefined;
19
19
  text: string;
20
- }) => JSX.Element;
20
+ }) => import("react/jsx-runtime").JSX.Element;
21
21
  export declare const SimpleRegularTextCell: ({ variant, text, textAlign, }: {
22
22
  variant?: "semibold" | "medium" | "regular" | "light" | "smallSemibold" | "smallMedium" | "smallRegular" | undefined;
23
23
  text: string;
24
24
  textAlign?: "left" | "right" | "center" | undefined;
25
- }) => JSX.Element;
25
+ }) => import("react/jsx-runtime").JSX.Element;
26
26
  export declare const CopyableRegularTextCell: ({ variant, text, copyWording, copiedWording, }: {
27
27
  variant?: "semibold" | "medium" | "regular" | "light" | "smallSemibold" | "smallMedium" | "smallRegular" | undefined;
28
28
  text: string;
29
29
  copyWording: string;
30
30
  copiedWording: string;
31
- }) => JSX.Element;
32
- export declare const BalanceCell: ({ value, currency, formatCurrency, textAlign, }: {
31
+ }) => import("react/jsx-runtime").JSX.Element;
32
+ export declare const BalanceCell: ({ value, currency, originalValue, formatCurrency, textAlign, }: {
33
33
  value: number;
34
34
  currency: string;
35
+ originalValue?: {
36
+ value: number;
37
+ currency: string;
38
+ } | undefined;
35
39
  formatCurrency: (value: number, currency: string) => string;
36
40
  textAlign?: "left" | "right" | "center" | undefined;
37
- }) => JSX.Element;
41
+ }) => import("react/jsx-runtime").JSX.Element;
38
42
  export declare const LinkCell: ({ children, external, onPress, }: {
39
43
  children: ReactNode;
40
44
  onPress: () => void;
41
45
  external?: boolean | undefined;
42
- }) => JSX.Element;
46
+ }) => import("react/jsx-runtime").JSX.Element;
43
47
  export declare const StartAlignedCell: ({ children }: {
44
48
  children: ReactNode;
45
- }) => JSX.Element;
49
+ }) => import("react/jsx-runtime").JSX.Element;
46
50
  export declare const CenteredCell: ({ children }: {
47
51
  children: ReactNode;
48
- }) => JSX.Element;
52
+ }) => import("react/jsx-runtime").JSX.Element;
49
53
  export declare const EndAlignedCell: ({ children }: {
50
54
  children: ReactNode;
51
- }) => JSX.Element;
55
+ }) => import("react/jsx-runtime").JSX.Element;
52
56
  export declare const CellAction: ({ children }: {
53
57
  children: ReactNode;
54
- }) => JSX.Element;
58
+ }) => import("react/jsx-runtime").JSX.Element;
55
59
  export {};
@@ -18,14 +18,15 @@ const styles = StyleSheet.create({
18
18
  flexDirection: "row",
19
19
  alignItems: "center",
20
20
  },
21
+ balanceCellContainer: {
22
+ width: "100%",
23
+ },
21
24
  cell: {
22
25
  display: "flex",
23
26
  paddingHorizontal: spacings[16],
24
27
  flexGrow: 1,
25
28
  flexDirection: "row",
26
29
  alignItems: "center",
27
- width: 1,
28
- alignSelf: "stretch",
29
30
  },
30
31
  icon: {
31
32
  alignSelf: "stretch",
@@ -123,19 +124,19 @@ export const CopyableRegularTextCell = ({ variant = "regular", text, copyWording
123
124
  return (_jsxs(View, { style: styles.cell, children: [_jsx(LakeTooltip, { placement: "top", onHide: () => setVisibleState("copy"), togglableOnFocus: true, content: visibleState === "copy" ? copyWording : copiedWording, containerStyle: styles.iconContainer, children: _jsx(Pressable, { role: "button", "aria-label": copyWording, onPress: onPress, style: ({ hovered }) => [styles.icon, hovered && styles.underline], children: ({ hovered }) => (_jsx(Icon, { name: hovered ? "copy-filled" : "copy-regular", color: "currentColor", size: 14 })) }) }), _jsx(Space, { width: 4 }), _jsx(LakeText, { color: colors.gray[900], style: styles.regularText, variant: variant, children: text })] }));
124
125
  };
125
126
  // TODO: handle `+` sign properly
126
- export const BalanceCell = ({ value, currency, formatCurrency, textAlign = "right", }) => {
127
- return (_jsx(View, { style: styles.cell, children: _jsxs(LakeText, { align: textAlign, color: colors.gray[900], variant: "medium", style: [
128
- styles.mediumText,
129
- {
130
- justifyContent: match(textAlign)
131
- .with("left", () => "flex-start")
132
- .with("center", () => "center")
133
- .with("right", () => "flex-end")
134
- .exhaustive(),
135
- },
136
- value > 0 && { color: colors.positive.primary },
137
- value < 0 && { color: colors.negative.primary },
138
- ], children: [value > 0 && "+", formatCurrency(value, currency)] }) }));
127
+ export const BalanceCell = ({ value, currency, originalValue, formatCurrency, textAlign = "right", }) => {
128
+ return (_jsxs(View, { style: styles.balanceCellContainer, children: [_jsx(View, { style: styles.cell, children: _jsxs(LakeText, { align: textAlign, color: colors.gray[900], variant: "medium", style: [
129
+ styles.mediumText,
130
+ {
131
+ justifyContent: match(textAlign)
132
+ .with("left", () => "flex-start")
133
+ .with("center", () => "center")
134
+ .with("right", () => "flex-end")
135
+ .exhaustive(),
136
+ },
137
+ value > 0 && { color: colors.positive.primary },
138
+ value < 0 && { color: colors.negative.primary },
139
+ ], children: [value > 0 && "+", formatCurrency(value, currency)] }) }), isNotNullish(originalValue) && originalValue.currency !== currency && (_jsx(View, { style: styles.cell, children: _jsxs(LakeText, { style: styles.mediumText, align: textAlign, color: colors.gray[500], variant: "smallRegular", children: [originalValue.value > 0 && "+", formatCurrency(originalValue.value, originalValue.currency)] }) }))] }));
139
140
  };
140
141
  export const LinkCell = ({ children, external = false, onPress, }) => {
141
142
  return (_jsxs(View, { style: styles.cell, children: [_jsx(Pressable, { style: ({ hovered }) => [styles.icon, hovered && styles.underline], onPress: event => {
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { CountryCCA3 } from "@swan-io/shared-business/src/constants/countries";
3
2
  type Props = {
4
3
  icon: CountryCCA3;
5
4
  width: number;
6
5
  };
7
- export declare const Flag: ({ icon, width }: Props) => JSX.Element;
6
+ export declare const Flag: ({ icon, width }: Props) => import("react/jsx-runtime").JSX.Element;
8
7
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IconName } from "./Icon";
3
2
  export type FlowStep = {
4
3
  label: string;
@@ -8,5 +7,5 @@ type Props = {
8
7
  steps: FlowStep[];
9
8
  mode: "desktop" | "mobile";
10
9
  };
11
- export declare const FlowPresentation: ({ steps, mode }: Props) => JSX.Element;
10
+ export declare const FlowPresentation: ({ steps, mode }: Props) => import("react/jsx-runtime").JSX.Element;
12
11
  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) => JSX.Element;
6
+ export declare const FullViewportLayer: ({ visible, children }: Props) => import("react/jsx-runtime").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) => JSX.Element;
12
+ export declare const Grid: ({ children, horizontalSpace, itemWrapperStyle, numColumns, style, verticalSpace, }: Props) => import("react/jsx-runtime").JSX.Element;
13
13
  export {};
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { StyleProp, TextStyle } from "react-native";
3
2
  type Props = {
4
3
  message?: string;
5
4
  style?: StyleProp<TextStyle>;
6
5
  };
7
- export declare const InputError: ({ message, style }: Props) => JSX.Element;
6
+ export declare const InputError: ({ message, style }: Props) => import("react/jsx-runtime").JSX.Element;
8
7
  export {};
@@ -6,5 +6,5 @@ type Props = Except<TextProps, "role"> & {
6
6
  htmlFor?: string;
7
7
  id?: string;
8
8
  };
9
- export declare const Label: ({ htmlFor, id, style, ...props }: Props) => JSX.Element;
9
+ export declare const Label: ({ htmlFor, id, style, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
10
10
  export {};
@@ -10,5 +10,5 @@ type Props = {
10
10
  subtitle?: string;
11
11
  style?: StyleProp<ViewStyle>;
12
12
  };
13
- export declare const LakeAlert: ({ anchored, variant, title, subtitle, children, style, callToAction, }: Props) => JSX.Element;
13
+ export declare const LakeAlert: ({ anchored, variant, title, subtitle, children, style, callToAction, }: Props) => import("react/jsx-runtime").JSX.Element;
14
14
  export {};
@@ -32,5 +32,5 @@ type GroupProps = {
32
32
  justifyContent?: ViewStyle["justifyContent"];
33
33
  paddingBottom?: 0 | Spacings;
34
34
  };
35
- export declare const LakeButtonGroup: ({ children, justifyContent, paddingBottom, }: GroupProps) => JSX.Element;
35
+ export declare const LakeButtonGroup: ({ children, justifyContent, paddingBottom, }: GroupProps) => import("react/jsx-runtime").JSX.Element;
36
36
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ColorVariants } from "../constants/design";
3
2
  export type CheckboxProps = {
4
3
  value: boolean | "mixed";
@@ -6,11 +5,11 @@ export type CheckboxProps = {
6
5
  disabled?: boolean;
7
6
  isError?: boolean;
8
7
  };
9
- export declare const LakeCheckbox: ({ value, color, disabled, isError, }: CheckboxProps) => JSX.Element;
8
+ export declare const LakeCheckbox: ({ value, color, disabled, isError, }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
10
9
  export type LabelledCheckboxProps = CheckboxProps & {
11
10
  onValueChange: (value: boolean) => void;
12
11
  label: string;
13
12
  disabled?: boolean;
14
13
  isError?: boolean;
15
14
  };
16
- export declare const LakeLabelledCheckbox: ({ value, color, label, onValueChange, disabled, isError, }: LabelledCheckboxProps) => JSX.Element;
15
+ export declare const LakeLabelledCheckbox: ({ value, color, label, onValueChange, disabled, isError, }: LabelledCheckboxProps) => import("react/jsx-runtime").JSX.Element;
@@ -22,7 +22,7 @@ export type LakeComboboxRef = {
22
22
  close: () => void;
23
23
  open: () => void;
24
24
  };
25
- declare const LakeComboboxWithRef: <I>({ inputRef, value, items, ListFooterComponent, onValueChange, onSelectItem, renderItem, keyExtractor, icon, placeholder, disabled, emptyResultText, readOnly, id, error, }: LakeComboboxProps<I>, externalRef: ForwardedRef<LakeComboboxRef>) => JSX.Element;
25
+ declare const LakeComboboxWithRef: <I>({ inputRef, value, items, ListFooterComponent, onValueChange, onSelectItem, renderItem, keyExtractor, icon, placeholder, disabled, emptyResultText, readOnly, id, error, }: LakeComboboxProps<I>, externalRef: ForwardedRef<LakeComboboxRef>) => import("react/jsx-runtime").JSX.Element;
26
26
  export declare const LakeCombobox: <I>(props: LakeComboboxProps<I> & {
27
27
  ref?: RefObject<LakeComboboxRef> | undefined;
28
28
  }) => ReturnType<typeof LakeComboboxWithRef>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type Props = {
3
2
  valueToCopy: string;
4
3
  copyText: string;
@@ -6,5 +5,5 @@ type Props = {
6
5
  size?: number;
7
6
  };
8
7
  export declare const copyButtondefaultSize = 21;
9
- export declare const LakeCopyButton: ({ valueToCopy, size, copyText, copiedText, }: Props) => JSX.Element;
8
+ export declare const LakeCopyButton: ({ valueToCopy, size, copyText, copiedText, }: Props) => import("react/jsx-runtime").JSX.Element;
10
9
  export {};
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  type Props = {
3
2
  url: string;
4
3
  filename: string;
5
4
  onError: () => void;
6
5
  };
7
- export declare const LakeDownloadButton: ({ url, filename }: Props) => JSX.Element;
6
+ export declare const LakeDownloadButton: ({ url, filename }: Props) => import("react/jsx-runtime").JSX.Element;
8
7
  export {};
@@ -15,5 +15,5 @@ type Props = {
15
15
  readOnly?: boolean;
16
16
  style?: StyleProp<ViewStyle>;
17
17
  };
18
- export declare const LakeLabel: ({ label, optionalLabel, extra, readOnly, color, readOnlyColor, type, help, render, actions, style, }: Props) => JSX.Element;
18
+ export declare const LakeLabel: ({ label, optionalLabel, extra, readOnly, color, readOnlyColor, type, help, render, actions, style, }: Props) => import("react/jsx-runtime").JSX.Element;
19
19
  export {};
@@ -11,4 +11,4 @@ export type LakeModalProps = {
11
11
  maxWidth?: number;
12
12
  onPressClose?: () => void;
13
13
  };
14
- export declare const LakeModal: ({ visible, icon, title, color, children, maxWidth, onPressClose, }: LakeModalProps) => JSX.Element | null;
14
+ export declare const LakeModal: ({ visible, icon, title, color, children, maxWidth, onPressClose, }: LakeModalProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  import { ColorVariants } from "../constants/design";
3
2
  type Props = {
4
3
  value: boolean;
5
4
  disabled?: boolean;
6
5
  color?: ColorVariants;
7
6
  };
8
- export declare const LakeRadio: ({ value, disabled, color }: Props) => JSX.Element;
7
+ export declare const LakeRadio: ({ value, disabled, color }: Props) => import("react/jsx-runtime").JSX.Element;
9
8
  export {};
@@ -6,5 +6,5 @@ type Props = {
6
6
  contentContainerStyle?: ViewProps["style"];
7
7
  horizontalSafeArea?: number;
8
8
  };
9
- export declare const LakeScrollView: ({ children, horizontalSafeArea, style, contentContainerStyle, }: Props) => JSX.Element;
9
+ export declare const LakeScrollView: ({ children, horizontalSafeArea, style, contentContainerStyle, }: Props) => import("react/jsx-runtime").JSX.Element;
10
10
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type Props = {
3
2
  initialValue: string;
4
3
  placeholder: string;
@@ -6,5 +5,5 @@ type Props = {
6
5
  debounceDuration?: number;
7
6
  maxWidth?: number;
8
7
  };
9
- export declare const LakeSearchField: ({ initialValue, placeholder, onChangeText, debounceDuration, maxWidth, }: Props) => JSX.Element;
8
+ export declare const LakeSearchField: ({ initialValue, placeholder, onChangeText, debounceDuration, maxWidth, }: Props) => import("react/jsx-runtime").JSX.Element;
10
9
  export {};
@@ -27,4 +27,4 @@ export type SelectProps<V> = {
27
27
  readOnly?: boolean;
28
28
  style?: StyleProp<ViewStyle>;
29
29
  };
30
- export declare function LakeSelect<V>({ title, items, valueStyle, size, color, disabled, mode, placeholder, readOnly, id, matchReferenceWidth, value, error, hideErrors, icon, onValueChange, PopoverFooter, style, }: SelectProps<V>): JSX.Element;
30
+ export declare function LakeSelect<V>({ title, items, valueStyle, size, color, disabled, mode, placeholder, readOnly, id, matchReferenceWidth, value, error, hideErrors, icon, onValueChange, PopoverFooter, style, }: SelectProps<V>): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type SliderProps = {
3
2
  label: string;
4
3
  value: number;
@@ -9,4 +8,4 @@ export type SliderProps = {
9
8
  onChange: (value: number) => void;
10
9
  };
11
10
  export declare const sliderBreakpoint: number;
12
- export declare const LakeSlider: ({ label, value, min, max, step, unit, onChange }: SliderProps) => JSX.Element;
11
+ export declare const LakeSlider: ({ label, value, min, max, step, unit, onChange }: SliderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StyleProp, ViewStyle } from "react-native";
3
2
  export type Step = {
4
3
  id: string;
@@ -16,6 +15,6 @@ type Props = {
16
15
  activeStepId: string;
17
16
  style?: StyleProp<ViewStyle>;
18
17
  };
19
- export declare const LakeStepper: ({ steps, activeStepId, style }: Props) => JSX.Element;
20
- export declare const MobileStepTitle: ({ steps, activeStepId }: Props) => JSX.Element | null;
18
+ export declare const LakeStepper: ({ steps, activeStepId, style }: Props) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const MobileStepTitle: ({ steps, activeStepId }: Props) => import("react/jsx-runtime").JSX.Element | null;
21
20
  export {};
@@ -20,5 +20,5 @@ type TooltipRef = {
20
20
  export declare const LakeTooltip: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<TooltipRef>>>;
21
21
  export declare const InformationTooltip: ({ text }: {
22
22
  text: string;
23
- }) => JSX.Element;
23
+ }) => import("react/jsx-runtime").JSX.Element;
24
24
  export {};
@@ -5,7 +5,7 @@ export declare const ListRightPanelContent: ({ children, large, style, }: {
5
5
  children: React.ReactNode;
6
6
  large: boolean;
7
7
  style?: StyleProp<ViewStyle>;
8
- }) => JSX.Element;
8
+ }) => import("react/jsx-runtime").JSX.Element;
9
9
  type Props<T> = {
10
10
  items: T[];
11
11
  keyExtractor: (item: T) => string;
@@ -1,5 +1,5 @@
1
1
  import { ReactElement, ReactNode } from "react";
2
- import { PressableStateCallbackType } from "react-native";
2
+ import { PressableStateCallbackType, ViewStyle } from "react-native";
3
3
  import { ColumnCellConfig, ColumnTitleConfig, LinkConfig } from "./FixedListView";
4
4
  export type ColumnConfig<T, ExtraInfo> = {
5
5
  id: string;
@@ -20,6 +20,7 @@ type Props<T, ExtraInfo> = {
20
20
  smallColumns?: ColumnConfig<T, ExtraInfo>[];
21
21
  onEndReached?: () => void;
22
22
  onEndReachedThresholdPx?: number;
23
+ rowStyle?: (item: T, large: boolean) => ViewStyle | null | undefined;
23
24
  getRowLink?: (config: LinkConfig<T, ExtraInfo>) => ReactElement<{
24
25
  children: (state: PressableStateCallbackType) => React.ReactNode;
25
26
  }>;
@@ -35,5 +36,5 @@ type Props<T, ExtraInfo> = {
35
36
  withoutScroll?: boolean;
36
37
  stickyOffset?: number;
37
38
  };
38
- export declare const PlainListView: <T, ExtraInfo>({ data: originalData, keyExtractor, rowHeight, groupHeaderHeight, headerHeight, columns, smallColumns, extraInfo, onEndReached, onEndReachedThresholdPx, getRowLink, activeRowId, renderEmptyList, onActiveRowChange, groupBy, loading, breakpoint, withoutScroll, stickyOffset, }: Props<T, ExtraInfo>) => JSX.Element;
39
+ export declare const PlainListView: <T, ExtraInfo>({ data: originalData, keyExtractor, rowHeight, groupHeaderHeight, headerHeight, columns, smallColumns, extraInfo, onEndReached, onEndReachedThresholdPx, rowStyle, getRowLink, activeRowId, renderEmptyList, onActiveRowChange, groupBy, loading, breakpoint, withoutScroll, stickyOffset, }: Props<T, ExtraInfo>) => import("react/jsx-runtime").JSX.Element;
39
40
  export {};
@@ -84,7 +84,7 @@ const styles = StyleSheet.create({
84
84
  });
85
85
  const ONE = 1;
86
86
  const ZERO = 0;
87
- const Row = ({ id, item, index, rowHeight, columns, extraInfo, isActive, isHovered, large, onMouseEnter, onMouseLeave, }) => {
87
+ const Row = ({ id, item, index, rowHeight, columns, extraInfo, isActive, isHovered, large, style, onMouseEnter, onMouseLeave, }) => {
88
88
  const containerRef = useRef(null);
89
89
  useHover(containerRef, {
90
90
  onHoverStart: () => onMouseEnter(id),
@@ -94,6 +94,7 @@ const Row = ({ id, item, index, rowHeight, columns, extraInfo, isActive, isHover
94
94
  styles.segment,
95
95
  large && styles.segmentLarge,
96
96
  styles.row,
97
+ style?.(item, large),
97
98
  isActive && styles.activeRow,
98
99
  isHovered && styles.hoveredRow,
99
100
  { minHeight: rowHeight },
@@ -105,7 +106,7 @@ const Row = ({ id, item, index, rowHeight, columns, extraInfo, isActive, isHover
105
106
  },
106
107
  ], id: columnId, children: renderCell({ columnId, item, index, extraInfo, isHovered }) }, columnId))) }));
107
108
  };
108
- export const PlainListView = ({ data: originalData, keyExtractor, rowHeight, groupHeaderHeight, headerHeight, columns, smallColumns = columns, extraInfo, onEndReached, onEndReachedThresholdPx = 200, getRowLink, activeRowId, renderEmptyList, onActiveRowChange, groupBy, loading, breakpoint = breakpoints.large, withoutScroll = false, stickyOffset = 0, }) => {
109
+ export const PlainListView = ({ data: originalData, keyExtractor, rowHeight, groupHeaderHeight, headerHeight, columns, smallColumns = columns, extraInfo, onEndReached, onEndReachedThresholdPx = 200, rowStyle, getRowLink, activeRowId, renderEmptyList, onActiveRowChange, groupBy, loading, breakpoint = breakpoints.large, withoutScroll = false, stickyOffset = 0, }) => {
109
110
  const viewId = useId();
110
111
  const scrollTrackerRef = useRef(null);
111
112
  const groups = useMemo(() => {
@@ -164,7 +165,7 @@ export const PlainListView = ({ data: originalData, keyExtractor, rowHeight, gro
164
165
  ] })), [isLoading, loading?.count, rowHeight, totalHeight, withoutScroll]);
165
166
  return (_jsx(ResponsiveContainer, { style: withoutScroll ? (isEmpty ? commonStyles.fill : undefined) : styles.root, breakpoint: breakpoint, children: ({ large }) => {
166
167
  const displayColumns = large ? columns : smallColumns;
167
- return (_jsxs(_Fragment, { children: [large ? (_jsx(View, { style: [styles.segment, large && styles.segmentLarge], children: displayColumns.map(({ id, width, title, renderTitle }) => {
168
+ return (_jsxs(_Fragment, { children: [!isEmpty && large ? (_jsx(View, { style: [styles.segment, large && styles.segmentLarge], children: displayColumns.map(({ id, width, title, renderTitle }) => {
168
169
  const columnId = `${viewId}_${id}`;
169
170
  return (_jsx(View, { style: [
170
171
  styles.segmentHeaderCell,
@@ -193,7 +194,7 @@ export const PlainListView = ({ data: originalData, keyExtractor, rowHeight, gro
193
194
  style: { ...styles.rowLink, ...wrapper.props.style },
194
195
  key: index,
195
196
  ref: isActive ? activeItemRef : null,
196
- children: (_jsx(Row, { id: key, rowHeight: rowHeight, columns: displayColumns, item: item, index: index, extraInfo: extraInfo, isActive: isActive, isHovered: isHovered, large: large, onMouseEnter: setHoveredRow, onMouseLeave: removeHoveredRow })),
197
+ children: (_jsx(Row, { id: key, rowHeight: rowHeight, columns: displayColumns, item: item, index: index, extraInfo: extraInfo, isActive: isActive, isHovered: isHovered, large: large, style: rowStyle, onMouseEnter: setHoveredRow, onMouseLeave: removeHoveredRow })),
197
198
  });
198
199
  })] }, groupName));
199
200
  }), _jsx(View, { children: _jsx(View, { "aria-busy": isLoading, style: styles.loadingPlaceholder, children: isLoading ? (_jsx(PlainListViewPlaceholder, { count: loading.count, rowHeight: rowHeight, rowVerticalSpacing: 0, paddingHorizontal: 0 })) : null }) }), isEmpty && isNotNullish(renderEmptyList) && !isLoading ? (_jsx(View, { style: styles.emptyListContainer, children: renderEmptyList() })) : null, _jsx(View, { style: [styles.scrollTracker, { height: onEndReachedThresholdPx }], ref: scrollTrackerRef })] })),
@@ -4,5 +4,5 @@ type Props = {
4
4
  children: ReactNode;
5
5
  style?: StyleProp<ViewStyle>;
6
6
  };
7
- export declare const PopoverContent: ({ style, children }: Props) => JSX.Element;
7
+ export declare const PopoverContent: ({ style, children }: Props) => import("react/jsx-runtime").JSX.Element;
8
8
  export {};
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  type Props = {
3
2
  projectEnv: "Live" | "Sandbox";
4
3
  iconOnly?: boolean;
5
4
  };
6
- export declare const ProjectEnvTag: (props: Props) => JSX.Element;
5
+ export declare const ProjectEnvTag: (props: Props) => import("react/jsx-runtime").JSX.Element;
7
6
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IconName } from "./Icon";
3
2
  export type QuickAction = {
4
3
  icon: IconName;
@@ -11,5 +10,5 @@ export type QuickAction = {
11
10
  type Props = {
12
11
  actions: QuickAction[];
13
12
  };
14
- export declare const QuickActions: ({ actions }: Props) => JSX.Element;
13
+ export declare const QuickActions: ({ actions }: Props) => import("react/jsx-runtime").JSX.Element;
15
14
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ColorVariants } from "../constants/design";
3
2
  export type RadioGroupItem<V> = {
4
3
  name: string;
@@ -13,4 +12,4 @@ export type RadioGroupProps<V> = {
13
12
  value?: V;
14
13
  onValueChange: (value: V) => void;
15
14
  };
16
- export declare function RadioGroup<V>({ items, direction, color, disabled, value, onValueChange, }: RadioGroupProps<V>): JSX.Element;
15
+ export declare function RadioGroup<V>({ items, direction, color, disabled, value, onValueChange, }: RadioGroupProps<V>): import("react/jsx-runtime").JSX.Element;
@@ -2,5 +2,5 @@ import { ReactNode } from "react";
2
2
  type Props = {
3
3
  children: ReactNode;
4
4
  };
5
- export declare const ReadOnlyFieldList: ({ children }: Props) => JSX.Element;
5
+ export declare const ReadOnlyFieldList: ({ children }: Props) => import("react/jsx-runtime").JSX.Element;
6
6
  export {};
@@ -9,5 +9,5 @@ type Props = {
9
9
  style?: ViewProps["style"];
10
10
  breakpoint?: number;
11
11
  };
12
- export declare const ResponsiveContainer: ({ children, style, breakpoint }: Props) => JSX.Element;
12
+ export declare const ResponsiveContainer: ({ children, style, breakpoint }: Props) => import("react/jsx-runtime").JSX.Element;
13
13
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StyleProp, ViewStyle } from "react-native";
3
2
  import { SpacingValue } from "./Space";
4
3
  type Props = {
@@ -6,5 +5,5 @@ type Props = {
6
5
  space?: SpacingValue;
7
6
  style?: StyleProp<ViewStyle>;
8
7
  };
9
- export declare const Separator: ({ horizontal, space, style }: Props) => JSX.Element;
8
+ export declare const Separator: ({ horizontal, space, style }: Props) => import("react/jsx-runtime").JSX.Element;
10
9
  export {};
@@ -1,13 +1,12 @@
1
- /// <reference types="react" />
2
1
  import { ScrollViewProps } from "react-native";
3
2
  type Props = {
4
3
  style?: ScrollViewProps["style"];
5
4
  contentContainerStyle?: ScrollViewProps["style"];
6
5
  children: ScrollViewProps["children"];
7
6
  };
8
- export declare const SidebarNavigationTracker: ({ style, contentContainerStyle, children }: Props) => JSX.Element;
7
+ export declare const SidebarNavigationTracker: ({ style, contentContainerStyle, children }: Props) => import("react/jsx-runtime").JSX.Element;
9
8
  type MarkerProps = {
10
9
  color: string;
11
10
  };
12
- export declare const SidebarNavigationTrackerActiveMarker: ({ color }: MarkerProps) => JSX.Element;
11
+ export declare const SidebarNavigationTrackerActiveMarker: ({ color }: MarkerProps) => import("react/jsx-runtime").JSX.Element;
13
12
  export {};
@@ -7,5 +7,5 @@ type Props = {
7
7
  disabled?: boolean;
8
8
  onValueChange?: (value: number) => void;
9
9
  };
10
- export declare const Slider: import("react").MemoExoticComponent<({ value, step, minimum, maximum, disabled, onValueChange }: Props) => JSX.Element>;
10
+ export declare const Slider: import("react").MemoExoticComponent<({ value, step, minimum, maximum, disabled, onValueChange }: Props) => import("react/jsx-runtime").JSX.Element>;
11
11
  export {};
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { StyleProp, ViewStyle } from "react-native";
3
2
  type Props = {
4
3
  playing?: boolean;
5
4
  style?: StyleProp<ViewStyle>;
6
5
  };
7
- export declare const SmsOpeningAnimation: ({ playing, style }: Props) => JSX.Element;
6
+ export declare const SmsOpeningAnimation: ({ playing, style }: Props) => import("react/jsx-runtime").JSX.Element;
8
7
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type SortDirection = "Asc" | "Desc";
3
2
  export type SortField<T> = {
4
3
  name: T;
@@ -17,5 +16,5 @@ type Props<T extends string> = {
17
16
  onChange: (value: SortValue<T>) => void;
18
17
  onClose: () => void;
19
18
  };
20
- export declare const SortBottomPanel: <T extends string>({ visible, title, value, fields, onChange, onClose, }: Props<T>) => JSX.Element;
19
+ export declare const SortBottomPanel: <T extends string>({ visible, title, value, fields, onChange, onClose, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
21
20
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const spacingValues: readonly [4, 8, 12, 16, 20, 24, 32, 40, 48, 72, 96];
3
2
  export type SpacingValue = (typeof spacingValues)[number];
4
3
  type Props = {
@@ -6,5 +5,5 @@ type Props = {
6
5
  width?: SpacingValue;
7
6
  flexGrow?: number;
8
7
  };
9
- export declare const Space: ({ height, width, flexGrow }: Props) => JSX.Element;
8
+ export declare const Space: ({ height, width, flexGrow }: Props) => import("react/jsx-runtime").JSX.Element;
10
9
  export {};
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  type Props<T extends string> = {
3
2
  steps: T[];
4
3
  currentStep: T;
5
4
  };
6
- export declare const StepDots: <T extends string>({ steps, currentStep }: Props<T>) => JSX.Element;
5
+ export declare const StepDots: <T extends string>({ steps, currentStep }: Props<T>) => import("react/jsx-runtime").JSX.Element;
7
6
  export {};
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  type Props = {
3
2
  steps: {
4
3
  label: string;
5
4
  }[];
6
5
  activeStep: number;
7
6
  };
8
- export declare const Stepper: ({ steps, activeStep }: Props) => JSX.Element;
7
+ export declare const Stepper: ({ steps, activeStep }: Props) => import("react/jsx-runtime").JSX.Element;
9
8
  export {};
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { StyleProp, ViewStyle } from "react-native";
3
2
  type Props = {
4
3
  size: number;
5
4
  style?: StyleProp<ViewStyle>;
6
5
  };
7
- export declare const SuccessIcon: ({ size, style }: Props) => JSX.Element;
6
+ export declare const SuccessIcon: ({ size, style }: Props) => import("react/jsx-runtime").JSX.Element;
8
7
  export {};
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { StyleProp, ViewStyle } from "react-native";
3
2
  type Props = {
4
3
  color?: string;
5
4
  style?: StyleProp<ViewStyle>;
6
5
  };
7
- export declare const SwanLogo: ({ color, style }: Props) => JSX.Element;
6
+ export declare const SwanLogo: ({ color, style }: Props) => import("react/jsx-runtime").JSX.Element;
8
7
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IconName } from "./Icon";
3
2
  import { SpacingValue } from "./Space";
4
3
  export declare const tabsViewHeight: number;
@@ -16,5 +15,5 @@ type Props = {
16
15
  padding?: SpacingValue;
17
16
  sticky?: boolean;
18
17
  };
19
- export declare const TabView: ({ tabs, otherLabel, hideIfSingleItem, sticky, padding, }: Props) => JSX.Element | null;
18
+ export declare const TabView: ({ tabs, otherLabel, hideIfSingleItem, sticky, padding, }: Props) => import("react/jsx-runtime").JSX.Element | null;
20
19
  export {};
@@ -13,5 +13,5 @@ type Props = {
13
13
  style?: StyleProp<ViewStyle>;
14
14
  ariaLabel?: string;
15
15
  };
16
- export declare const Tag: ({ children, label, color, size, icon, iconSize, ariaLabel, onPressRemove, style, }: Props) => JSX.Element;
16
+ export declare const Tag: ({ children, label, color, size, icon, iconSize, ariaLabel, onPressRemove, style, }: Props) => import("react/jsx-runtime").JSX.Element;
17
17
  export {};
@@ -19,16 +19,16 @@ type Props = {
19
19
  selected?: boolean;
20
20
  style?: StyleProp<ViewStyle>;
21
21
  };
22
- export declare const Tile: ({ icon, title, description, headerEnd, footer, flexBasis, children, numberOfLines, paddingVertical, paddingHorizontal, hovered, flexGrow, flexShrink, disabled, selected, style, }: Props) => JSX.Element;
22
+ export declare const Tile: ({ icon, title, description, headerEnd, footer, flexBasis, children, numberOfLines, paddingVertical, paddingHorizontal, hovered, flexGrow, flexShrink, disabled, selected, style, }: Props) => import("react/jsx-runtime").JSX.Element;
23
23
  export declare const TileFullWidthContent: ({ children, flexGrow, fitToBottom, }: {
24
24
  children: ReactNode;
25
25
  flexGrow?: number | undefined;
26
26
  fitToBottom?: boolean | undefined;
27
- }) => JSX.Element;
27
+ }) => import("react/jsx-runtime").JSX.Element;
28
28
  type TileGridProps = {
29
29
  breakpoint?: number;
30
30
  children: ReactNode;
31
31
  };
32
- export declare const TileGrid: ({ children, breakpoint }: TileGridProps) => JSX.Element;
33
- export declare const TileRows: ({ children, breakpoint }: TileGridProps) => JSX.Element;
32
+ export declare const TileGrid: ({ children, breakpoint }: TileGridProps) => import("react/jsx-runtime").JSX.Element;
33
+ export declare const TileRows: ({ children, breakpoint }: TileGridProps) => import("react/jsx-runtime").JSX.Element;
34
34
  export {};
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
- export declare const TilePlaceholder: () => JSX.Element;
1
+ export declare const TilePlaceholder: () => import("react/jsx-runtime").JSX.Element;
3
2
  export declare const TileGridPlaceholder: ({ numberOfItems, withTabs, }: {
4
3
  numberOfItems?: number | undefined;
5
4
  withTabs?: boolean | undefined;
6
- }) => JSX.Element;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
- export declare const ToastStack: () => JSX.Element | null;
1
+ export declare const ToastStack: () => import("react/jsx-runtime").JSX.Element | null;
@@ -7,5 +7,5 @@ type Props = {
7
7
  childStyle?: StyleProp<ViewStyle>;
8
8
  children: ReactNode;
9
9
  };
10
- export declare const TransitionGroupView: ({ children, enter, leave, style, childStyle }: Props) => JSX.Element;
10
+ export declare const TransitionGroupView: ({ children, enter, leave, style, childStyle }: Props) => import("react/jsx-runtime").JSX.Element;
11
11
  export {};
@@ -7,5 +7,5 @@ type Props = {
7
7
  children: ReactNode | null;
8
8
  onLeave?: () => void;
9
9
  };
10
- export declare const TransitionView: ({ enter, leave, style, children, onLeave }: Props) => JSX.Element | null;
10
+ export declare const TransitionView: ({ enter, leave, style, children, onLeave }: Props) => import("react/jsx-runtime").JSX.Element | null;
11
11
  export {};
@@ -8,5 +8,5 @@ type Props = {
8
8
  };
9
9
  export declare const CurrentColorContext: import("react").Context<"gray" | "live" | "sandbox" | "positive" | "warning" | "negative" | "current" | "partner" | "swan" | "shakespear" | "darkPink" | "sunglow" | "mediumSladeBlue" | undefined>;
10
10
  export declare const useCurrentColor: (containerRef: MutableRefObject<HTMLElement | null>, variant: ColorVariants | undefined) => void;
11
- export declare const WithCurrentColor: ({ variant, style, children }: Props) => JSX.Element;
11
+ export declare const WithCurrentColor: ({ variant, style, children }: Props) => import("react/jsx-runtime").JSX.Element;
12
12
  export {};
@@ -4,5 +4,5 @@ type Props = {
4
4
  children: ReactNode;
5
5
  scoped?: boolean;
6
6
  };
7
- export declare const WithPartnerAccentColor: ({ color, scoped, children }: Props) => JSX.Element;
7
+ export declare const WithPartnerAccentColor: ({ color, scoped, children }: Props) => import("react/jsx-runtime").JSX.Element;
8
8
  export {};
@@ -1,4 +1,6 @@
1
- export declare const stubTrue: () => true;
2
1
  export declare const identity: <T>(value: T) => T;
3
2
  export declare const noop: () => void;
3
+ export declare const stubFalse: () => false;
4
+ export declare const stubTrue: () => true;
5
+ export declare const unionToArray: <T extends PropertyKey>(object: Record<T, true>) => T[];
4
6
  export declare const memoize: <Input extends unknown[], Output>(func: (...input: Input) => Output, getCacheKey: (...input: Input) => string) => (...input: Input) => Output;
@@ -1,10 +1,9 @@
1
- export const stubTrue = () => {
2
- return true;
3
- };
4
- export const identity = (value) => {
5
- return value;
6
- };
1
+ import { Dict } from "@swan-io/boxed";
2
+ export const identity = (value) => value;
7
3
  export const noop = () => { };
4
+ export const stubFalse = () => false;
5
+ export const stubTrue = () => true;
6
+ export const unionToArray = (object) => Dict.keys(object);
8
7
  export const memoize = (func, getCacheKey) => {
9
8
  const cache = new Map();
10
9
  return (...input) => {
@@ -6,8 +6,3 @@ export type GetNode<T extends {
6
6
  node: unknown;
7
7
  }[];
8
8
  }> = GetEdge<T>["node"];
9
- type Contravariant<T> = T extends unknown ? (_: T) => void : never;
10
- type InferContravariant<T> = [T] extends [(_: infer I) => void] ? I : never;
11
- type PickOne<T> = InferContravariant<InferContravariant<Contravariant<Contravariant<T>>>>;
12
- export type UnionToTuple<T> = PickOne<T> extends infer U ? Exclude<T, U> extends never ? [T] : [...UnionToTuple<Exclude<T, U>>, U] : never;
13
- export {};