@box/blueprint-web 9.9.0 → 9.11.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.
|
@@ -148,10 +148,16 @@ function createTheme(colorKey) {
|
|
|
148
148
|
buttonBorderHover: exceedsLightThreshold ? bdlGray80 : hoverHex,
|
|
149
149
|
buttonBorderActive: exceedsLightThreshold ? bdlGray65 : activeHex,
|
|
150
150
|
// ProgressBar overrides
|
|
151
|
-
progressBarBackground:
|
|
151
|
+
progressBarBackground: null,
|
|
152
152
|
// Scroll effect overrides for scrollable themed elements
|
|
153
153
|
scrollShadowRgba
|
|
154
154
|
};
|
|
155
|
+
const isDefaultTheme = colorKeyHex === Color(theme.primary.background).hex();
|
|
156
|
+
// Avoid overriding the default progress bar background color
|
|
157
|
+
// as the calculated value dooes not work well with the default theme
|
|
158
|
+
if (!isDefaultTheme) {
|
|
159
|
+
colorValues.progressBarBackground = exceedsLightThreshold ? bdlGray50 : hoverHex;
|
|
160
|
+
}
|
|
155
161
|
const dynamicTheme = {
|
|
156
162
|
// To avoid a mixture of casing, we force all values to lower
|
|
157
163
|
primary: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { white, bdlGray05, bdlGray10, bdlGray, bdlGray30, black, bdlGray40, bdlGridUnitPx, bdlBoxBlue } from './variables.js';
|
|
1
|
+
import { white, bdlGray05, bdlGray10, bdlGray, bdlGray30, black, bdlGray40, bdlGridUnitPx, bdlBoxBlue, bdlBoxBlue80 } from './variables.js';
|
|
2
2
|
|
|
3
3
|
// Copy of https://github.com/box/box-ui-elements/blob/830bf71bef5720a5e6ba128afa35152112674c17/src/styles/theme.js
|
|
4
4
|
const theme = {
|
|
@@ -34,7 +34,7 @@ const theme = {
|
|
|
34
34
|
buttonBorderHover: '#006ae9',
|
|
35
35
|
buttonForeground: white,
|
|
36
36
|
foreground: white,
|
|
37
|
-
progressBarBackground:
|
|
37
|
+
progressBarBackground: bdlBoxBlue80,
|
|
38
38
|
scrollShadowRgba: 'rgba(0, 0, 0, 0.12)'
|
|
39
39
|
},
|
|
40
40
|
// TODO: Should be the same keys as the default if applicable
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
const white = '#fff'; // white
|
|
4
4
|
const black = '#000'; // black
|
|
5
5
|
const bdlBoxBlue = '#0061d5'; // bdl-box-blue
|
|
6
|
+
const bdlBoxBlue80 = '#3381dd'; // bdl-box-blue-80
|
|
6
7
|
const bdlGray = '#222'; // bdl-gray
|
|
7
8
|
const bdlGray80 = '#4e4e4e'; // bdl-gray-80
|
|
8
9
|
const bdlGray65 = '#6f6f6f'; // bdl-gray-65
|
|
@@ -14,4 +15,4 @@ const bdlGray05 = '#f4f4f4'; // bdl-gray-05
|
|
|
14
15
|
const bdlGridUnitPx = '4'; // bdl-grid-unit-px
|
|
15
16
|
// xlarge-screen
|
|
16
17
|
|
|
17
|
-
export { bdlBoxBlue, bdlGray, bdlGray05, bdlGray10, bdlGray30, bdlGray40, bdlGray50, bdlGray65, bdlGray80, bdlGridUnitPx, black, white };
|
|
18
|
+
export { bdlBoxBlue, bdlBoxBlue80, bdlGray, bdlGray05, bdlGray10, bdlGray30, bdlGray40, bdlGray50, bdlGray65, bdlGray80, bdlGridUnitPx, black, white };
|
package/lib-esm/index.d.ts
CHANGED
|
@@ -75,6 +75,7 @@ export * from './utils/composeEventHandlers';
|
|
|
75
75
|
export * from './utils/isProduction';
|
|
76
76
|
export * from './utils/keyboardUtils';
|
|
77
77
|
export * from './utils/useBreakpoint';
|
|
78
|
+
export * from './utils/useControllableState';
|
|
78
79
|
export * from './utils/useFullTextTooltip';
|
|
79
80
|
export * from './utils/useUniqueId';
|
|
80
81
|
export * from './visually-hidden';
|
package/lib-esm/index.js
CHANGED
|
@@ -90,6 +90,7 @@ export { composeEventHandlers } from './utils/composeEventHandlers.js';
|
|
|
90
90
|
export { isProduction } from './utils/isProduction.js';
|
|
91
91
|
export { isCtrlKeyPressed, isDeleteKeyPressed, keys } from './utils/keyboardUtils.js';
|
|
92
92
|
export { Breakpoint, useBreakpoint } from './utils/useBreakpoint.js';
|
|
93
|
+
export { useControllableState } from './utils/useControllableState.js';
|
|
93
94
|
export { useFullTextTooltip } from './utils/useFullTextTooltip.js';
|
|
94
95
|
export { getUniqueId, useUniqueId } from './utils/useUniqueId.js';
|
|
95
96
|
export { VisuallyHidden } from './visually-hidden/visually-hidden.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.11.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"react-stately": "^3.31.1",
|
|
64
64
|
"tsx": "^4.16.5"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "12ff2908da5de325ae2b5e8124befa5f9cb04a84",
|
|
67
67
|
"module": "lib-esm/index.js",
|
|
68
68
|
"main": "lib-esm/index.js",
|
|
69
69
|
"exports": {
|