@coinbase/cds-web 8.56.1 → 8.57.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 +6 -0
- package/dts/controls/SearchInput.d.ts +4 -10
- package/dts/controls/SearchInput.d.ts.map +1 -1
- package/dts/controls/TextInput.d.ts +14 -2
- package/dts/controls/TextInput.d.ts.map +1 -1
- package/dts/dates/DateInput.d.ts +19 -16
- package/dts/dates/DateInput.d.ts.map +1 -1
- package/esm/controls/SearchInput.js +1 -3
- package/esm/controls/TextInput.js +5 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,12 @@ All notable changes to this project will be documented in this file.
|
|
|
8
8
|
|
|
9
9
|
<!-- template-start -->
|
|
10
10
|
|
|
11
|
+
## 8.57.0 (3/24/2026 PST)
|
|
12
|
+
|
|
13
|
+
#### 🚀 Updates
|
|
14
|
+
|
|
15
|
+
- Feat: support focusedBorderWidth on TextInput. [[#537](https://github.com/coinbase/cds/pull/537)]
|
|
16
|
+
|
|
11
17
|
## 8.56.1 (3/24/2026 PST)
|
|
12
18
|
|
|
13
19
|
#### 🐞 Fixes
|
|
@@ -12,9 +12,11 @@ export type SearchInputBaseProps = Pick<
|
|
|
12
12
|
| 'accessibilityHint'
|
|
13
13
|
| 'accessibilityLabel'
|
|
14
14
|
| 'accessibilityLabelledBy'
|
|
15
|
+
| 'bordered'
|
|
15
16
|
| 'compact'
|
|
16
17
|
| 'disabled'
|
|
17
18
|
| 'enableColorSurge'
|
|
19
|
+
| 'focusedBorderWidth'
|
|
18
20
|
| 'helperTextErrorIconAccessibilityLabel'
|
|
19
21
|
| 'placeholder'
|
|
20
22
|
| 'testID'
|
|
@@ -67,11 +69,6 @@ export type SearchInputProps = SearchInputBaseProps &
|
|
|
67
69
|
* Callback fired when pressed/clicked
|
|
68
70
|
*/
|
|
69
71
|
onClick?: React.MouseEventHandler;
|
|
70
|
-
/**
|
|
71
|
-
* Adds border to input
|
|
72
|
-
* @default true
|
|
73
|
-
*/
|
|
74
|
-
bordered?: boolean;
|
|
75
72
|
};
|
|
76
73
|
export declare const SearchInput: React.MemoExoticComponent<
|
|
77
74
|
React.ForwardRefExoticComponent<
|
|
@@ -85,6 +82,8 @@ export declare const SearchInput: React.MemoExoticComponent<
|
|
|
85
82
|
| 'accessibilityLabel'
|
|
86
83
|
| 'accessibilityLabelledBy'
|
|
87
84
|
| 'accessibilityHint'
|
|
85
|
+
| 'bordered'
|
|
86
|
+
| 'focusedBorderWidth'
|
|
88
87
|
| 'enableColorSurge'
|
|
89
88
|
| 'helperTextErrorIconAccessibilityLabel'
|
|
90
89
|
| 'testIDMap'
|
|
@@ -134,11 +133,6 @@ export declare const SearchInput: React.MemoExoticComponent<
|
|
|
134
133
|
* Callback fired when pressed/clicked
|
|
135
134
|
*/
|
|
136
135
|
onClick?: React.MouseEventHandler;
|
|
137
|
-
/**
|
|
138
|
-
* Adds border to input
|
|
139
|
-
* @default true
|
|
140
|
-
*/
|
|
141
|
-
bordered?: boolean;
|
|
142
136
|
} & React.RefAttributes<HTMLInputElement>
|
|
143
137
|
>
|
|
144
138
|
>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../src/controls/SearchInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAE9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAQ3D,OAAO,EAAa,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjE,eAAO,MAAM,MAAM;;;CAGlB,CAAC;AAUF,KAAK,gBAAgB,GAAG,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,GACjE,QAAQ,CAAC,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC,CAAC;AAE5C,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACrC,kBAAkB,EAChB,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K,CAAC,SAAS;IACrB;;OAEG;kCAC2B,MAAM,GAAG,SAAS;IAChD;;OAEG;kCAC2B,MAAM,GAAG,SAAS;;cAKpC,KAAK,CAAC,iBAAiB;kBACnB,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI;IACpC;;OAEG;cACO,KAAK,CAAC,iBAAiB;2CAgGpC,CAAC"}
|
|
@@ -19,10 +19,16 @@ export type TextInputBaseProps = {
|
|
|
19
19
|
* */
|
|
20
20
|
inputNode?: React.ReactElement;
|
|
21
21
|
/**
|
|
22
|
-
* Adds border to input
|
|
22
|
+
* Adds border to input.
|
|
23
|
+
* When set to `false`, focus border styling is disabled by default.
|
|
23
24
|
* @default true
|
|
24
25
|
*/
|
|
25
26
|
bordered?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Additional border width when focused.
|
|
29
|
+
* Set this when `bordered={false}` to opt into a focus border style.
|
|
30
|
+
*/
|
|
31
|
+
focusedBorderWidth?: InputStackBaseProps['focusedBorderWidth'];
|
|
26
32
|
/**
|
|
27
33
|
* Aligns text inside input and helperText
|
|
28
34
|
* @default start
|
|
@@ -91,10 +97,16 @@ export declare const TextInput: React.MemoExoticComponent<
|
|
|
91
97
|
* */
|
|
92
98
|
inputNode?: React.ReactElement;
|
|
93
99
|
/**
|
|
94
|
-
* Adds border to input
|
|
100
|
+
* Adds border to input.
|
|
101
|
+
* When set to `false`, focus border styling is disabled by default.
|
|
95
102
|
* @default true
|
|
96
103
|
*/
|
|
97
104
|
bordered?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Additional border width when focused.
|
|
107
|
+
* Set this when `bordered={false}` to opt into a focus border style.
|
|
108
|
+
*/
|
|
109
|
+
focusedBorderWidth?: InputStackBaseProps['focusedBorderWidth'];
|
|
98
110
|
/**
|
|
99
111
|
* Aligns text inside input and helperText
|
|
100
112
|
* @default start
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../src/controls/TextInput.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CAAC,SAAS;IACrB;;OAEG;gBACS;QACV,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IACD;;;OAGG;4CACqC,MAAM;IAC9C;;;OAGG;gBACS,KAAK,CAAC,SAAS;oZAqS5B,CAAC"}
|
package/dts/dates/DateInput.d.ts
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type DateInputOptions } from '@coinbase/cds-common/dates/useDateInput';
|
|
3
|
-
import { type TextInputProps } from '../controls/TextInput';
|
|
4
|
-
export type
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Omit<TextInputProps, 'inputNode' | 'value' | 'defaultValue'
|
|
3
|
+
import { type TextInputBaseProps, type TextInputProps } from '../controls/TextInput';
|
|
4
|
+
export type DateInputBaseProps = Omit<DateInputOptions, 'intlDateFormat'> &
|
|
5
|
+
Omit<TextInputBaseProps, 'inputNode' | 'value' | 'defaultValue' | 'style'> & {
|
|
6
|
+
/** Date format separator character, e.g. the / in "MM/DD/YYYY". Defaults to forward slash (/). */
|
|
7
|
+
separator?: string;
|
|
8
|
+
};
|
|
9
|
+
export type DateInputProps = DateInputBaseProps &
|
|
10
|
+
Omit<TextInputProps, 'inputNode' | 'value' | 'defaultValue' | 'style'> & {
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
};
|
|
11
14
|
export declare const DateInput: React.MemoExoticComponent<
|
|
12
15
|
React.ForwardRefExoticComponent<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
React.RefAttributes<HTMLInputElement>
|
|
16
|
+
Omit<DateInputOptions, 'intlDateFormat'> &
|
|
17
|
+
Omit<TextInputBaseProps, 'style' | 'defaultValue' | 'value' | 'inputNode'> & {
|
|
18
|
+
/** Date format separator character, e.g. the / in "MM/DD/YYYY". Defaults to forward slash (/). */
|
|
19
|
+
separator?: string;
|
|
20
|
+
} & {
|
|
21
|
+
className?: string;
|
|
22
|
+
style?: React.CSSProperties;
|
|
23
|
+
} & React.RefAttributes<HTMLInputElement>
|
|
21
24
|
>
|
|
22
25
|
>;
|
|
23
26
|
//# sourceMappingURL=DateInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../src/dates/DateInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAE9E,OAAO,EAAE,KAAK,gBAAgB,EAAgB,MAAM,yCAAyC,CAAC;AAG9F,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../src/dates/DateInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAE9E,OAAO,EAAE,KAAK,gBAAgB,EAAgB,MAAM,yCAAyC,CAAC;AAG9F,OAAO,EAAa,KAAK,kBAAkB,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGhG,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,GACvE,IAAI,CAAC,kBAAkB,EAAE,WAAW,GAAG,OAAO,GAAG,cAAc,GAAG,OAAO,CAAC,GAAG;IAC3E,kGAAkG;IAClG,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEJ,MAAM,MAAM,cAAc,GAAG,kBAAkB,GAC7C,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,OAAO,GAAG,cAAc,GAAG,OAAO,CAAC,GAAG;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC;AAEJ,eAAO,MAAM,SAAS;IAVlB,kGAAkG;gBACtF,MAAM;;gBAKN,MAAM;YACV,KAAK,CAAC,aAAa;2CA0G9B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const _excluded = ["onChange", "onClear", "onChangeText", "onSearch", "testID", "value", "compact", "hideStartIcon", "
|
|
1
|
+
const _excluded = ["onChange", "onClear", "onChangeText", "onSearch", "testID", "value", "compact", "hideStartIcon", "hideEndIcon", "startIcon", "end", "startIconAccessibilityLabel", "clearIconAccessibilityLabel"];
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -30,7 +30,6 @@ export const SearchInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Se
|
|
|
30
30
|
value,
|
|
31
31
|
compact,
|
|
32
32
|
hideStartIcon = false,
|
|
33
|
-
bordered = true,
|
|
34
33
|
hideEndIcon,
|
|
35
34
|
startIcon,
|
|
36
35
|
end,
|
|
@@ -61,7 +60,6 @@ export const SearchInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Se
|
|
|
61
60
|
return /*#__PURE__*/_jsx(TextInput, _objectSpread({
|
|
62
61
|
ref: refs,
|
|
63
62
|
borderRadius: 1000,
|
|
64
|
-
bordered: bordered,
|
|
65
63
|
className: cx(baseCss, compact && compactCss),
|
|
66
64
|
end: end !== null && end !== void 0 ? end : !!value && !hideEndIcon && /*#__PURE__*/_jsx(Box, {
|
|
67
65
|
marginEnd: compact ? -0.5 : 0,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const _excluded = ["label", "accessibilityLabel", "helperText", "variant", "testID", "testIDMap", "start", "end", "width", "disabled", "align", "compact", "suffix", "onFocus", "onBlur", "borderRadius", "height", "inputNode", "bordered", "enableColorSurge", "helperTextErrorIconAccessibilityLabel", "labelVariant", "labelNode", "inputBackground"];
|
|
1
|
+
const _excluded = ["label", "accessibilityLabel", "helperText", "variant", "testID", "testIDMap", "start", "end", "width", "disabled", "align", "compact", "suffix", "onFocus", "onBlur", "borderRadius", "height", "inputNode", "bordered", "focusedBorderWidth", "enableColorSurge", "helperTextErrorIconAccessibilityLabel", "labelVariant", "labelNode", "inputBackground"];
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -64,6 +64,7 @@ export const TextInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Text
|
|
|
64
64
|
height,
|
|
65
65
|
inputNode,
|
|
66
66
|
bordered = true,
|
|
67
|
+
focusedBorderWidth,
|
|
67
68
|
enableColorSurge = false,
|
|
68
69
|
helperTextErrorIconAccessibilityLabel = 'error',
|
|
69
70
|
labelVariant = 'outside',
|
|
@@ -151,11 +152,8 @@ export const TextInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Text
|
|
|
151
152
|
value: focused ? focusedVariant : undefined,
|
|
152
153
|
children: /*#__PURE__*/_jsx(InputStack, {
|
|
153
154
|
borderRadius: borderRadius,
|
|
154
|
-
borderWidth: bordered ? 100 : 0
|
|
155
|
-
|
|
156
|
-
// If bordered is false, we want disableFocusedStyle = true
|
|
157
|
-
,
|
|
158
|
-
disableFocusedStyle: !bordered,
|
|
155
|
+
borderWidth: bordered ? 100 : 0,
|
|
156
|
+
disableFocusedStyle: !bordered && typeof focusedBorderWidth === 'undefined',
|
|
159
157
|
disabled: disabled,
|
|
160
158
|
enableColorSurge: enableColorSurge,
|
|
161
159
|
endNode: (suffix !== '' || !!end) && /*#__PURE__*/_jsxs(HStack, {
|
|
@@ -177,6 +175,7 @@ export const TextInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Text
|
|
|
177
175
|
})]
|
|
178
176
|
}),
|
|
179
177
|
focused: focused,
|
|
178
|
+
focusedBorderWidth: focusedBorderWidth,
|
|
180
179
|
height: height,
|
|
181
180
|
helperTextNode: !!helperText && (typeof helperText === 'string' ? /*#__PURE__*/_jsx(HelperText, {
|
|
182
181
|
accessibilityLabel: helperText,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinbase/cds-web",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.57.0",
|
|
4
4
|
"description": "Coinbase Design System - Web",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
"react-dom": "^18.3.1"
|
|
208
208
|
},
|
|
209
209
|
"dependencies": {
|
|
210
|
-
"@coinbase/cds-common": "^8.
|
|
210
|
+
"@coinbase/cds-common": "^8.57.0",
|
|
211
211
|
"@coinbase/cds-icons": "^5.13.0",
|
|
212
212
|
"@coinbase/cds-illustrations": "^4.35.0",
|
|
213
213
|
"@coinbase/cds-lottie-files": "^3.3.4",
|