@box/blueprint-web 17.9.1 → 17.10.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.
@@ -1,6 +1,7 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
- import { Calendar, XMark } from '@box/blueprint-web-assets/icons/Fill';
3
- import { Size4, Gray65 } from '@box/blueprint-web-assets/tokens/tokens';
2
+ import '@box/blueprint-web-assets/icons/Fill';
3
+ import { Calendar, XMark } from '@box/blueprint-web-assets/icons/Medium';
4
+ import { bpSize040, bpGray65 } from '@box/blueprint-web-assets/tokens/tokens';
4
5
  import * as RadixPopover from '@radix-ui/react-popover';
5
6
  import clsx from 'clsx';
6
7
  import { forwardRef, useState, useEffect, useRef, useCallback } from 'react';
@@ -17,11 +18,11 @@ import { useControllableState } from '../utils/useControllableState.js';
17
18
  import { useUniqueId } from '../utils/useUniqueId.js';
18
19
  import styles from './date-picker.module.js';
19
20
 
20
- const XMarkIcon = label => () => jsx(XMark, {
21
+ const XMarkIconModern = label => () => jsx(XMark, {
21
22
  "aria-label": label,
22
- color: Gray65,
23
- height: Size4,
24
- width: Size4
23
+ color: bpGray65,
24
+ height: bpSize040,
25
+ width: bpSize040
25
26
  });
26
27
  const handleSubmitKeyPress = (key, callback) => {
27
28
  const submitKeys = [' ', 'Enter'];
@@ -191,7 +192,7 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
191
192
  "aria-label": clearDatePickerAriaLabel,
192
193
  className: clsx(styles.button, styles.clear),
193
194
  disabled: isDisabled,
194
- icon: XMarkIcon(clearDatePickerAriaLabel),
195
+ icon: XMarkIconModern(clearDatePickerAriaLabel) ,
195
196
  onClick: onClearInputButtonClicked,
196
197
  onKeyDownCapture: onClearButtonKeypress,
197
198
  size: "x-small"
@@ -204,10 +205,10 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
204
205
  onPress: onPressCalendar,
205
206
  children: jsx(Calendar, {
206
207
  "aria-label": openCalendarDropdownAriaLabel,
207
- color: Gray65,
208
- height: Size4,
209
- width: Size4
210
- })
208
+ color: bpGray65,
209
+ height: bpSize040,
210
+ width: bpSize040
211
+ })
211
212
  })]
212
213
  })
213
214
  }), jsx(RadixPopover.Portal, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/blueprint-web",
3
- "version": "17.9.1",
3
+ "version": "17.10.0",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {
@@ -55,7 +55,7 @@
55
55
  "dependencies": {
56
56
  "@ariakit/react": "0.4.21",
57
57
  "@ariakit/react-core": "0.4.21",
58
- "@box/blueprint-web-assets": "^5.10.5",
58
+ "@box/blueprint-web-assets": "^5.10.6",
59
59
  "@internationalized/date": "^3.12.0",
60
60
  "@radix-ui/react-accordion": "1.1.2",
61
61
  "@radix-ui/react-checkbox": "1.0.4",
@@ -86,7 +86,7 @@
86
86
  "devDependencies": {
87
87
  "@box/box-test-client": "^3.2.7",
88
88
  "@box/playwright-utils": "^2.8.5",
89
- "@box/storybook-utils": "^1.2.49",
89
+ "@box/storybook-utils": "^1.2.50",
90
90
  "@figma/code-connect": "1.4.4",
91
91
  "@playwright/test": "1.46.1",
92
92
  "@types/js-yaml": "^4.0.9",