@coinbase/cds-mobile 8.13.5 → 8.14.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/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,18 @@ All notable changes to this project will be documented in this file.
|
|
|
8
8
|
|
|
9
9
|
<!-- template-start -->
|
|
10
10
|
|
|
11
|
+
## 8.14.0 ((10/6/2025, 02:57 PM PST))
|
|
12
|
+
|
|
13
|
+
This is an artificial version bump with no new change.
|
|
14
|
+
|
|
15
|
+
## 8.13.7 (10/6/2025 PST)
|
|
16
|
+
|
|
17
|
+
This is an artificial version bump with no new change.
|
|
18
|
+
|
|
19
|
+
## 8.13.6 ((10/3/2025, 01:54 PM PST))
|
|
20
|
+
|
|
21
|
+
This is an artificial version bump with no new change.
|
|
22
|
+
|
|
11
23
|
## 8.13.5 (10/3/2025 PST)
|
|
12
24
|
|
|
13
25
|
#### 🐞 Fixes
|
|
@@ -2,7 +2,7 @@ const _excluded = ["label"],
|
|
|
2
2
|
_excluded2 = ["label"];
|
|
3
3
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
4
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
|
-
import React, { useCallback, useState } from 'react';
|
|
5
|
+
import React, { useCallback, useMemo, useState } from 'react';
|
|
6
6
|
import { sampleTabs } from '@coinbase/cds-common/internal/data/tabs';
|
|
7
7
|
import { gutter } from '@coinbase/cds-common/tokens/sizing';
|
|
8
8
|
import sample from 'lodash/sample';
|
|
@@ -62,10 +62,18 @@ const TabNavigationScreen = () => {
|
|
|
62
62
|
const [currentTabThree, setCurrentTabThree] = useState();
|
|
63
63
|
const [currentTabFour, setCurrentTabFour] = useState();
|
|
64
64
|
const [currentTabFive, setCurrentTabFive] = useState(enumTabs[0].id);
|
|
65
|
+
const [currentTabSix, setCurrentTabSix] = useState();
|
|
66
|
+
const [dotCount, setDotCount] = useState(0);
|
|
67
|
+
const tabsWithDot = useMemo(() => sampleTabs.map(tab => _extends({}, tab, {
|
|
68
|
+
count: dotCount
|
|
69
|
+
})), [dotCount]);
|
|
65
70
|
const randomizeCurrentTabOne = useCallback(() => {
|
|
66
71
|
const randomTabItem = sample(sampleTabs);
|
|
67
72
|
setCurrentTabOne(randomTabItem == null ? void 0 : randomTabItem.id);
|
|
68
73
|
}, []);
|
|
74
|
+
const randomizeDotCount = useCallback(() => {
|
|
75
|
+
setDotCount(Number(dotCount ? 0 : sample([2, 14, 99, 100])));
|
|
76
|
+
}, [dotCount]);
|
|
69
77
|
return /*#__PURE__*/_jsxs(ExampleScreen, {
|
|
70
78
|
children: [/*#__PURE__*/_jsxs(Example, {
|
|
71
79
|
overflow: "visible",
|
|
@@ -128,6 +136,18 @@ const TabNavigationScreen = () => {
|
|
|
128
136
|
tabs: someCustomTabs,
|
|
129
137
|
value: currentTabFour
|
|
130
138
|
})
|
|
139
|
+
}), /*#__PURE__*/_jsxs(Example, {
|
|
140
|
+
overflow: "visible",
|
|
141
|
+
padding: gutter,
|
|
142
|
+
title: "Tab Navigation with dot count change",
|
|
143
|
+
children: [/*#__PURE__*/_jsx(TabNavigation, {
|
|
144
|
+
onChange: setCurrentTabSix,
|
|
145
|
+
tabs: tabsWithDot,
|
|
146
|
+
value: currentTabSix
|
|
147
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
148
|
+
onPress: randomizeDotCount,
|
|
149
|
+
children: "Randomize dot count"
|
|
150
|
+
})]
|
|
131
151
|
}), /*#__PURE__*/_jsxs(Example, {
|
|
132
152
|
overflow: "visible",
|
|
133
153
|
padding: gutter,
|
|
@@ -426,6 +426,27 @@ const ProgressBarScreen = () => {
|
|
|
426
426
|
}), /*#__PURE__*/_jsx(Example, {
|
|
427
427
|
title: "CustomStyles",
|
|
428
428
|
children: /*#__PURE__*/_jsx(CustomStyles, {})
|
|
429
|
+
}), /*#__PURE__*/_jsx(Example, {
|
|
430
|
+
title: "Thin",
|
|
431
|
+
children: /*#__PURE__*/_jsx(ProgressContainerWithButtons, {
|
|
432
|
+
children: _ref7 => {
|
|
433
|
+
let {
|
|
434
|
+
calculateProgress
|
|
435
|
+
} = _ref7;
|
|
436
|
+
return /*#__PURE__*/_jsxs(HStack, {
|
|
437
|
+
gap: 2,
|
|
438
|
+
children: [/*#__PURE__*/_jsx(ProgressCircle, {
|
|
439
|
+
progress: calculateProgress(0),
|
|
440
|
+
size: 100,
|
|
441
|
+
weight: "thin"
|
|
442
|
+
}), /*#__PURE__*/_jsx(ProgressCircle, {
|
|
443
|
+
progress: calculateProgress(0.2),
|
|
444
|
+
size: 100,
|
|
445
|
+
weight: "thin"
|
|
446
|
+
})]
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
})
|
|
429
450
|
})]
|
|
430
451
|
});
|
|
431
452
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinbase/cds-mobile",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.14.0",
|
|
4
4
|
"description": "Coinbase Design System - Mobile",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -150,11 +150,11 @@
|
|
|
150
150
|
"react-native-svg": "^14.1.0"
|
|
151
151
|
},
|
|
152
152
|
"dependencies": {
|
|
153
|
-
"@coinbase/cds-common": "^8.
|
|
154
|
-
"@coinbase/cds-icons": "^5.4.
|
|
155
|
-
"@coinbase/cds-illustrations": "^4.23.
|
|
156
|
-
"@coinbase/cds-lottie-files": "^3.3.
|
|
157
|
-
"@coinbase/cds-utils": "^2.3.
|
|
153
|
+
"@coinbase/cds-common": "^8.14.0",
|
|
154
|
+
"@coinbase/cds-icons": "^5.4.2",
|
|
155
|
+
"@coinbase/cds-illustrations": "^4.23.1",
|
|
156
|
+
"@coinbase/cds-lottie-files": "^3.3.2",
|
|
157
|
+
"@coinbase/cds-utils": "^2.3.3",
|
|
158
158
|
"@floating-ui/react-native": "^0.10.5",
|
|
159
159
|
"@react-spring/native": "^9.7.4",
|
|
160
160
|
"lodash": "^4.17.21",
|