@swan-io/lake 8.2.2 → 8.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swan-io/lake",
3
- "version": "8.2.2",
3
+ "version": "8.2.3",
4
4
  "engines": {
5
5
  "node": ">=18.0.0",
6
6
  "yarn": "^1.22.0"
@@ -26,32 +26,32 @@
26
26
  ],
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
- "@react-three/drei": "^9.104.1",
30
- "@react-three/fiber": "^8.16.1",
29
+ "@react-three/drei": "^9.105.6",
30
+ "@react-three/fiber": "^8.16.6",
31
31
  "@swan-io/boxed": "^2.3.0",
32
32
  "@swan-io/chicane": "^2.0.0",
33
33
  "@swan-io/graphql-client": "^0.1.3",
34
34
  "@swan-io/use-form": "^2.0.4",
35
- "dayjs": "^1.11.10",
35
+ "dayjs": "^1.11.11",
36
36
  "polished": "^4.3.1",
37
37
  "prism-react-renderer": "^2.3.1",
38
- "react": "^18.2.0",
38
+ "react": "^18.3.1",
39
39
  "react-atomic-state": "^2.0.0",
40
- "react-dom": "^18.2.0",
41
- "react-native-web": "^0.19.10",
40
+ "react-dom": "^18.3.1",
41
+ "react-native-web": "^0.19.11",
42
42
  "rifm": "^0.12.1",
43
43
  "three": "^0.163.0",
44
44
  "ts-dedent": "^2.2.0",
45
- "ts-pattern": "^5.1.0",
45
+ "ts-pattern": "^5.1.1",
46
46
  "uuid": "^9.0.1"
47
47
  },
48
48
  "devDependencies": {
49
- "@types/react": "^18.2.74",
50
- "@types/react-dom": "^18.2.23",
49
+ "@types/react": "^18.3.2",
50
+ "@types/react-dom": "^18.3.0",
51
51
  "@types/react-native": "^0.72.8",
52
52
  "@types/three": "^0.163.0",
53
53
  "@types/uuid": "^9.0.8",
54
54
  "jsdom": "^24.0.0",
55
- "type-fest": "^4.15.0"
55
+ "type-fest": "^4.18.2"
56
56
  }
57
57
  }
@@ -6,61 +6,33 @@ type Justify = "flex-start" | "center" | "flex-end";
6
6
  type SortDirection = "Desc" | "Asc";
7
7
  export declare const SimpleHeaderCell: ({ text, sort, justifyContent, onPress, }: {
8
8
  text: string;
9
- justifyContent?: Justify | undefined;
10
- sort?: SortDirection | undefined;
11
- onPress?: ((direction: SortDirection) => void) | undefined;
9
+ justifyContent?: Justify;
10
+ sort?: SortDirection;
11
+ onPress?: (direction: SortDirection) => void;
12
12
  }) => import("react/jsx-runtime").JSX.Element;
13
13
  export declare const ColorPatchCell: ({ isHovered, alternativeText, color, }: {
14
14
  isHovered: boolean;
15
- alternativeText?: string | undefined;
15
+ alternativeText?: string;
16
16
  color: ColorVariants;
17
17
  }) => import("react/jsx-runtime").JSX.Element | null;
18
18
  export declare const SimpleTitleCell: ({ isHighlighted, text, tooltip, }: {
19
- isHighlighted?: boolean | undefined;
19
+ isHighlighted?: boolean;
20
20
  text: string;
21
- tooltip?: Omit<{
22
- children: ReactNode;
23
- content: ReactNode;
24
- describedBy?: string | undefined;
25
- matchReferenceWidth?: boolean | undefined;
26
- hideArrow?: boolean | undefined;
27
- onHide?: (() => void) | undefined;
28
- onShow?: (() => void) | undefined;
29
- placement?: "left" | "right" | "center" | undefined;
30
- width?: number | undefined;
31
- maxWidth?: number | undefined;
32
- togglableOnFocus?: boolean | undefined;
33
- containerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
34
- disabled?: boolean | undefined;
35
- } & import("react").RefAttributes<import("./LakeTooltip").TooltipRef>, "children"> | undefined;
21
+ tooltip?: Omit<ComponentProps<typeof LakeTooltip>, "children">;
36
22
  }) => import("react/jsx-runtime").JSX.Element;
37
23
  export declare const SimpleRegularTextCell: ({ variant, text, textAlign, color, }: {
38
- variant?: "light" | "semibold" | "medium" | "regular" | "smallSemibold" | "smallMedium" | "smallRegular" | undefined;
24
+ variant?: TextVariant;
39
25
  text: string;
40
- textAlign?: "left" | "right" | "center" | undefined;
41
- color?: string | undefined;
26
+ textAlign?: "left" | "center" | "right";
27
+ color?: string;
42
28
  }) => import("react/jsx-runtime").JSX.Element;
43
29
  export declare const CopyableRegularTextCell: ({ variant, text, textToCopy, copyWording, copiedWording, tooltip, }: {
44
- variant?: "light" | "semibold" | "medium" | "regular" | "smallSemibold" | "smallMedium" | "smallRegular" | undefined;
30
+ variant?: TextVariant;
45
31
  text: string;
46
- textToCopy?: string | undefined;
32
+ textToCopy?: string;
47
33
  copyWording: string;
48
34
  copiedWording: string;
49
- tooltip?: Omit<{
50
- children: ReactNode;
51
- content: ReactNode;
52
- describedBy?: string | undefined;
53
- matchReferenceWidth?: boolean | undefined;
54
- hideArrow?: boolean | undefined;
55
- onHide?: (() => void) | undefined;
56
- onShow?: (() => void) | undefined;
57
- placement?: "left" | "right" | "center" | undefined;
58
- width?: number | undefined;
59
- maxWidth?: number | undefined;
60
- togglableOnFocus?: boolean | undefined;
61
- containerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
62
- disabled?: boolean | undefined;
63
- } & import("react").RefAttributes<import("./LakeTooltip").TooltipRef>, "children"> | undefined;
35
+ tooltip?: Omit<ComponentProps<typeof LakeTooltip>, "children">;
64
36
  }) => import("react/jsx-runtime").JSX.Element;
65
37
  export declare const BalanceCell: ({ value, currency, originalValue, formatCurrency, textAlign, variant, }: {
66
38
  value: number;
@@ -68,32 +40,18 @@ export declare const BalanceCell: ({ value, currency, originalValue, formatCurre
68
40
  originalValue?: {
69
41
  value: number;
70
42
  currency: string;
71
- } | undefined;
43
+ };
72
44
  formatCurrency: (value: number, currency: string) => string;
73
- textAlign?: "left" | "right" | "center" | undefined;
74
- variant?: "light" | "semibold" | "medium" | "regular" | "smallSemibold" | "smallMedium" | "smallRegular" | undefined;
45
+ textAlign?: "left" | "center" | "right";
46
+ variant?: TextVariant;
75
47
  }) => import("react/jsx-runtime").JSX.Element;
76
48
  export declare const LinkCell: ({ children, external, onPress, variant, tooltip, buttonPosition, }: {
77
49
  children: ReactNode;
78
50
  onPress: () => void;
79
- external?: boolean | undefined;
80
- variant?: "light" | "semibold" | "medium" | "regular" | "smallSemibold" | "smallMedium" | "smallRegular" | undefined;
81
- tooltip?: Omit<{
82
- children: ReactNode;
83
- content: ReactNode;
84
- describedBy?: string | undefined;
85
- matchReferenceWidth?: boolean | undefined;
86
- hideArrow?: boolean | undefined;
87
- onHide?: (() => void) | undefined;
88
- onShow?: (() => void) | undefined;
89
- placement?: "left" | "right" | "center" | undefined;
90
- width?: number | undefined;
91
- maxWidth?: number | undefined;
92
- togglableOnFocus?: boolean | undefined;
93
- containerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
94
- disabled?: boolean | undefined;
95
- } & import("react").RefAttributes<import("./LakeTooltip").TooltipRef>, "children"> | undefined;
96
- buttonPosition?: "end" | "start" | undefined;
51
+ external?: boolean;
52
+ variant?: TextVariant;
53
+ tooltip?: Omit<ComponentProps<typeof LakeTooltip>, "children">;
54
+ buttonPosition?: "start" | "end";
97
55
  }) => import("react/jsx-runtime").JSX.Element;
98
56
  export declare const StartAlignedCell: ({ children }: {
99
57
  children: ReactNode;
@@ -130,12 +130,12 @@ export declare const Link: import("react").MemoExoticComponent<import("react").F
130
130
  disabled?: boolean | undefined;
131
131
  download?: boolean | undefined;
132
132
  target?: NonNullable<HrefAttrs>["target"];
133
- style?: import("react-native").StyleProp<import("react-native").TextStyle> | ((state: PressableStateCallbackType & {
133
+ style?: TextProps["style"] | ((state: PressableStateCallbackType & {
134
134
  active: boolean;
135
135
  }) => TextProps["style"]);
136
136
  ariaCurrentValue?: "page" | "location" | undefined;
137
137
  onPress?: ((e: React.MouseEvent<HTMLAnchorElement>) => void) | undefined;
138
- children?: import("react").ReactNode | ((state: PressableStateCallbackType & {
138
+ children?: TextProps["children"] | ((state: PressableStateCallbackType & {
139
139
  active: boolean;
140
140
  }) => TextProps["children"]);
141
141
  } & import("react").RefAttributes<Text>>>;
@@ -22,8 +22,8 @@ type Props = {
22
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
- flexGrow?: number | undefined;
26
- fitToBottom?: boolean | undefined;
25
+ flexGrow?: number;
26
+ fitToBottom?: boolean;
27
27
  }) => import("react/jsx-runtime").JSX.Element;
28
28
  type TileGridProps = {
29
29
  breakpoint?: number;
@@ -1,5 +1,5 @@
1
1
  export declare const TilePlaceholder: () => import("react/jsx-runtime").JSX.Element;
2
2
  export declare const TileGridPlaceholder: ({ numberOfItems, withTabs, }: {
3
- numberOfItems?: number | undefined;
4
- withTabs?: boolean | undefined;
3
+ numberOfItems?: number;
4
+ withTabs?: boolean;
5
5
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  export declare const useBodyClassName: (className: string, { enabled }?: {
2
- enabled?: boolean | undefined;
2
+ enabled?: boolean;
3
3
  }) => void;
@@ -2,6 +2,6 @@ export declare const useResponsive: (breakpoint?: number) => {
2
2
  desktop: boolean;
3
3
  media: <T>(values: {
4
4
  mobile: T;
5
- desktop?: T | undefined;
5
+ desktop?: T;
6
6
  }) => T;
7
7
  };
@@ -8,4 +8,4 @@ export declare const deriveUnion: <T extends PropertyKey>(object: Record<T, true
8
8
  is: (value: unknown) => value is T;
9
9
  P: import("ts-pattern/dist/types/Pattern").GuardP<unknown, T>;
10
10
  };
11
- export declare const memoize: <Input extends unknown[], Output>(func: (...input: Input) => Output, getCacheKey: (...input: Input) => string) => (...input: Input) => Output;
11
+ export declare const memoize: <Input extends unknown[], Output>(func: (...input: Input) => Output, getCacheKey: (...input: Input) => string) => ((...input: Input) => Output);
@@ -13,7 +13,7 @@ export declare const clampValue: (min: number, max: number) => (value: number) =
13
13
  * This function is similar to `Animated.interpolate` except this one can be used with numbers
14
14
  * Whereas `Animated.interpolate` works only with animated values and return a listener, not a single value
15
15
  */
16
- export declare const interpolate: <T extends InterpolateTuple>({ inputRange: input, outputRange: output, clamp, }: InterpolateParams<T>) => (value: number) => number;
16
+ export declare const interpolate: <T extends InterpolateTuple>({ inputRange: input, outputRange: output, clamp, }: InterpolateParams<T>) => ((value: number) => number);
17
17
  type ElasticParams = {
18
18
  elasticLength?: number;
19
19
  elasticStrength?: number;