@swan-io/lake 13.11.2 → 13.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swan-io/lake",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.12.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">22.12.0"
|
|
6
6
|
},
|
|
@@ -28,20 +28,20 @@
|
|
|
28
28
|
"@swan-io/boxed": "^3.2.1",
|
|
29
29
|
"@swan-io/chicane": "^3.0.0",
|
|
30
30
|
"@swan-io/use-form": "^3.1.0",
|
|
31
|
-
"dayjs": "^1.11.
|
|
31
|
+
"dayjs": "^1.11.20",
|
|
32
32
|
"polished": "^4.3.1",
|
|
33
33
|
"prism-react-renderer": "^2.4.1",
|
|
34
|
-
"react": "^19.2.
|
|
35
|
-
"react-dom": "^19.2.
|
|
34
|
+
"react": "^19.2.6",
|
|
35
|
+
"react-dom": "^19.2.6",
|
|
36
36
|
"react-native-web": "^0.21.2",
|
|
37
37
|
"rifm": "^0.12.1",
|
|
38
38
|
"ts-pattern": "^5.9.0",
|
|
39
|
-
"uuid": "^
|
|
39
|
+
"uuid": "^14.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@types/react": "^19.2.
|
|
42
|
+
"@types/react": "^19.2.14",
|
|
43
43
|
"@types/react-dom": "^19.2.3",
|
|
44
44
|
"@types/react-native": "^0.72.8",
|
|
45
|
-
"type-fest": "^5.
|
|
45
|
+
"type-fest": "^5.6.0"
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { createContext, useCallback, useContext, useEffect, useMemo, useReducer, useRef, useState, } from "react";
|
|
2
|
+
import { createContext, useCallback, useContext, useEffect, useId, useMemo, useReducer, useRef, useState, } from "react";
|
|
3
3
|
import { Pressable, StyleSheet, Text, View, } from "react-native";
|
|
4
4
|
import { P, match } from "ts-pattern";
|
|
5
5
|
import { v4 as uuid } from "uuid";
|
|
@@ -138,7 +138,7 @@ const useBreadcrumbs = () => {
|
|
|
138
138
|
};
|
|
139
139
|
export const useCrumb = (crumb) => {
|
|
140
140
|
const [, , setValue, currentIndex] = useContext(BreadcrumbsContext);
|
|
141
|
-
const
|
|
141
|
+
const id = useId();
|
|
142
142
|
const initialCrumb = useRef(crumb);
|
|
143
143
|
const [index] = useState(() => ++currentIndex.current);
|
|
144
144
|
useEffect(() => {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback,
|
|
2
|
+
import { useCallback, useId, useRef } from "react";
|
|
3
3
|
import { StyleSheet, View, unstable_createElement, } from "react-native";
|
|
4
4
|
import { match } from "ts-pattern";
|
|
5
|
-
import { v4 as uuid } from "uuid";
|
|
6
5
|
import { commonStyles } from "../constants/commonStyles";
|
|
7
6
|
import { colors, fonts, spacings, texts } from "../constants/design";
|
|
8
7
|
import { isNotNullish } from "../utils/nullish";
|
|
@@ -28,7 +27,7 @@ const Label = (props) => {
|
|
|
28
27
|
};
|
|
29
28
|
const defaultLabelType = "formSmall";
|
|
30
29
|
export const LakeLabel = ({ label, optionalLabel, description, extra, readOnly = false, color = "current", readOnlyColor = colors[color].primary, type = defaultLabelType, help, render, actions, style, }) => {
|
|
31
|
-
const
|
|
30
|
+
const id = useId();
|
|
32
31
|
const containerRef = useRef(null);
|
|
33
32
|
const onClick = useCallback((event) => {
|
|
34
33
|
event.preventDefault();
|