@box/blueprint-web 9.16.7 → 9.17.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.
@@ -28,6 +28,7 @@ const useCustomBranding = brandColor => {
28
28
  --surface-nav-surface-brand-hover: ${buieTheme.primary.backgroundHover};
29
29
  --surface-nav-surface-brand: ${buieTheme.primary.background};
30
30
  --surface-nav-surface-brand-foreground: ${buieTheme.primary.foreground};
31
+ --surface-nav-surface-brand-divider: ${buieTheme.primary.dividerBackground};
31
32
 
32
33
  /* Illustrations branding tokens */
33
34
  --surface-illustration-surface-box-neutral: ${isBrandingEnabled ? Gray65 : BoxBlue100};
@@ -22,6 +22,7 @@ declare function createTheme(colorKey: string): {
22
22
  progressBarBackground: string;
23
23
  scrollShadowRgba: string;
24
24
  gridUnitPx: number;
25
+ dividerBackground: string;
25
26
  };
26
27
  primary: {
27
28
  background: string;
@@ -39,6 +40,7 @@ declare function createTheme(colorKey: string): {
39
40
  foreground: string;
40
41
  progressBarBackground: string;
41
42
  scrollShadowRgba: string;
43
+ dividerBackground: string;
42
44
  };
43
45
  modes: {
44
46
  admin: {};
@@ -64,6 +66,7 @@ declare function createTheme(colorKey: string): {
64
66
  buttonBorderActive: any;
65
67
  progressBarBackground: any;
66
68
  scrollShadowRgba: any;
69
+ dividerBackground: any;
67
70
  };
68
71
  };
69
72
  export { createTheme };
@@ -5,7 +5,7 @@ import method from 'lodash/method';
5
5
  import theme from './theme.js';
6
6
  import { white, black, bdlGray10, bdlGray, bdlGray80, bdlGray65, bdlGray50 } from './variables.js';
7
7
 
8
- // This is a copy of https://github.com/box/box-ui-elements/blob/master/src/utils/createTheme.js
8
+ // This is a CUSTOM BLUEPRINT copy of https://github.com/box/box-ui-elements/blob/master/src/utils/createTheme.js
9
9
  // Copied on Mar 5 2023
10
10
  // Latest commit c7e1560 on Mar 20, 2020
11
11
  /* ----------------- Theme ---------------------------*/
@@ -149,10 +149,12 @@ function createTheme(colorKey) {
149
149
  buttonBorder: exceedsLightThreshold ? bdlGray : colorKeyHex,
150
150
  buttonBorderHover: exceedsLightThreshold ? bdlGray80 : hoverHex,
151
151
  buttonBorderActive: exceedsLightThreshold ? bdlGray65 : activeHex,
152
- // ProgressBar overrides
152
+ // ProgressBar overrides - CUSTOM BLUEPRINT value
153
153
  progressBarBackground: null,
154
154
  // Scroll effect overrides for scrollable themed elements
155
- scrollShadowRgba
155
+ scrollShadowRgba,
156
+ // Divider - CUSTOM BLUEPRINT value
157
+ dividerBackground: exceedsLightThreshold ? 'rgba(0, 0, 0, 0.1)' : 'rgba(232, 232, 232, 0.1)'
156
158
  };
157
159
  const isDefaultTheme = colorKeyHex === Color(theme.primary.background).hex();
158
160
  // Avoid overriding the default progress bar background color
@@ -15,6 +15,7 @@ declare const theme: {
15
15
  progressBarBackground: string;
16
16
  scrollShadowRgba: string;
17
17
  gridUnitPx: number;
18
+ dividerBackground: string;
18
19
  };
19
20
  primary: {
20
21
  background: string;
@@ -32,6 +33,7 @@ declare const theme: {
32
33
  foreground: string;
33
34
  progressBarBackground: string;
34
35
  scrollShadowRgba: string;
36
+ dividerBackground: string;
35
37
  };
36
38
  modes: {
37
39
  admin: {};
@@ -17,7 +17,9 @@ const theme = {
17
17
  buttonBorderActive: bdlGray30,
18
18
  progressBarBackground: bdlGray40,
19
19
  scrollShadowRgba: 'rgba(0, 0, 0, 0.12)',
20
- gridUnitPx: parseInt(bdlGridUnitPx, 10) // grid unit in pixels (as number for computations)
20
+ gridUnitPx: parseInt(bdlGridUnitPx, 10),
21
+ // grid unit in pixels (as number for computations)
22
+ dividerBackground: 'rgba(232, 232, 232, 0.1)'
21
23
  },
22
24
  // Primary or brand color
23
25
  primary: {
@@ -35,7 +37,8 @@ const theme = {
35
37
  buttonForeground: white,
36
38
  foreground: white,
37
39
  progressBarBackground: bdlBoxBlue80,
38
- scrollShadowRgba: 'rgba(0, 0, 0, 0.12)'
40
+ scrollShadowRgba: 'rgba(0, 0, 0, 0.12)',
41
+ dividerBackground: 'rgba(232, 232, 232, 0.1)'
39
42
  },
40
43
  // TODO: Should be the same keys as the default if applicable
41
44
  modes: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/blueprint-web",
3
- "version": "9.16.7",
3
+ "version": "9.17.0",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {
@@ -62,7 +62,7 @@
62
62
  "react-stately": "^3.31.1",
63
63
  "tsx": "^4.16.5"
64
64
  },
65
- "gitHead": "503064bcf82c1610fe054c2c92944a74f9ebb5d0",
65
+ "gitHead": "2587fac4d881d68c8831d6e286a67860dc933160",
66
66
  "module": "lib-esm/index.js",
67
67
  "main": "lib-esm/index.js",
68
68
  "types": "lib-esm/index.d.ts",