@box/blueprint-web 14.5.0 → 14.7.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/dist/lib-esm/combobox/combobox.figma.d.ts +1 -0
- package/dist/lib-esm/radio-tiles/radio-tiles-option.d.ts +1 -1
- package/dist/lib-esm/radio-tiles/radio-tiles-option.js +3 -1
- package/dist/lib-esm/radio-tiles/radio-tiles.d.ts +1 -1
- package/dist/lib-esm/radio-tiles/types.d.ts +1 -0
- package/dist/lib-esm/select/select.js +2 -0
- package/dist/lib-esm/select/types.d.ts +4 -0
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type RadioTilesOptionProps } from './types';
|
|
2
|
-
export declare const RadioTilesOption: <T extends string>({ children, value, label, icon, disabled: disabledProp, className, "aria-label": ariaLabel, }: RadioTilesOptionProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const RadioTilesOption: <T extends string>({ children, value, label, icon, disabled: disabledProp, className, "aria-label": ariaLabel, "data-target-id": dataTargetId, }: RadioTilesOptionProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -15,7 +15,8 @@ const RadioTilesOption = function RadioTilesOption({
|
|
|
15
15
|
icon,
|
|
16
16
|
disabled: disabledProp,
|
|
17
17
|
className,
|
|
18
|
-
'aria-label': ariaLabel
|
|
18
|
+
'aria-label': ariaLabel,
|
|
19
|
+
'data-target-id': dataTargetId
|
|
19
20
|
}) {
|
|
20
21
|
const {
|
|
21
22
|
name,
|
|
@@ -54,6 +55,7 @@ const RadioTilesOption = function RadioTilesOption({
|
|
|
54
55
|
children: jsx("div", {
|
|
55
56
|
className: radioTileClassNames,
|
|
56
57
|
"data-modern": enableModernizedComponents ? 'true' : 'false',
|
|
58
|
+
"data-target-id": dataTargetId,
|
|
57
59
|
children: jsxs("label", {
|
|
58
60
|
className: clsx({
|
|
59
61
|
[styles.iconOnly]: !label,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type RadioTilesProps } from './types';
|
|
2
2
|
export declare const RadioTiles: (<T extends string | null = string>({ children, name, value, variant, columns, disabled, className, error, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, onChange, }: RadioTilesProps<T>) => import("react/jsx-runtime").JSX.Element) & {
|
|
3
|
-
Option: <T extends string>({ children, value, label, icon, disabled: disabledProp, className, "aria-label": ariaLabel, }: import("./types").RadioTilesOptionProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
Option: <T extends string>({ children, value, label, icon, disabled: disabledProp, className, "aria-label": ariaLabel, "data-target-id": dataTargetId, }: import("./types").RadioTilesOptionProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
};
|
|
@@ -229,6 +229,7 @@ const Option = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
229
229
|
text,
|
|
230
230
|
secondaryText,
|
|
231
231
|
leftElement,
|
|
232
|
+
'data-target-id': dataTargetId,
|
|
232
233
|
...itemProps
|
|
233
234
|
} = props;
|
|
234
235
|
const {
|
|
@@ -256,6 +257,7 @@ const Option = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
256
257
|
className: clsx(styles.option, {
|
|
257
258
|
[styles.hasLeftElement]: hasLeftElement
|
|
258
259
|
}),
|
|
260
|
+
"data-target-id": dataTargetId,
|
|
259
261
|
onPointerLeave: onPointerLeave,
|
|
260
262
|
onPointerMove: onPointerMove,
|
|
261
263
|
children: [leftElement && jsx("span", {
|
|
@@ -145,6 +145,10 @@ export interface SelectOptionProps extends React.ComponentPropsWithRef<'div'> {
|
|
|
145
145
|
* When provided, the checkmark indicator moves to the right side.
|
|
146
146
|
*/
|
|
147
147
|
leftElement?: React.ReactNode;
|
|
148
|
+
/**
|
|
149
|
+
* Value for the data-target-id attribute on the option element (e.g. for analytics).
|
|
150
|
+
*/
|
|
151
|
+
'data-target-id'?: string;
|
|
148
152
|
}
|
|
149
153
|
export interface SelectTriggerProps extends Omit<SelectProps, 'children' | 'error' | 'label' | 'subText'> {
|
|
150
154
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@ariakit/react": "0.4.21",
|
|
49
49
|
"@ariakit/react-core": "0.4.21",
|
|
50
|
-
"@box/blueprint-web-assets": "^4.112.
|
|
50
|
+
"@box/blueprint-web-assets": "^4.112.3",
|
|
51
51
|
"@internationalized/date": "^3.12.0",
|
|
52
52
|
"@radix-ui/react-accordion": "1.1.2",
|
|
53
53
|
"@radix-ui/react-checkbox": "1.0.4",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"type-fest": "^3.2.0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@box/storybook-utils": "^0.17.
|
|
80
|
+
"@box/storybook-utils": "^0.17.30",
|
|
81
81
|
"@figma/code-connect": "1.3.12",
|
|
82
82
|
"@types/react": "^18.0.0",
|
|
83
83
|
"@types/react-dom": "^18.0.0",
|