@box/blueprint-web 12.7.2 → 12.9.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,6 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { PointerChevron, Alert, ClockBadge } from '@box/blueprint-web-assets/icons/Fill';
3
- import { SurfaceStatusSurfaceRed, SurfaceStatusSurfaceLightBlue, GrayWhite, SurfaceBadgeErrorSurface, SurfaceBadgePagesSurface } from '@box/blueprint-web-assets/tokens/tokens';
3
+ import { SurfaceStatusSurfaceRed, SurfaceStatusSurfaceLightBlue, GrayWhite, SurfaceBadgeErrorSurface, Orange100 } from '@box/blueprint-web-assets/tokens/tokens';
4
4
  import * as RadixAccordion from '@radix-ui/react-accordion';
5
5
  import clsx from 'clsx';
6
6
  import { createElement } from 'react';
@@ -19,7 +19,7 @@ const accordionIconVariantToIconProps = {
19
19
  'status-pending': {
20
20
  icon: ClockBadge,
21
21
  iconColor: GrayWhite,
22
- backgroundColor: SurfaceBadgePagesSurface
22
+ backgroundColor: Orange100
23
23
  }
24
24
  };
25
25
  /**
@@ -1,7 +1,6 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
- import { FilePdf, FileDocs, FileSheets, FileImage, FileCanvas, FilePages, FileKeynote, FileBoxNote, FileVideo, FolderExternal, FolderShared, Relay, EllipsisBubble, Task, ApprovalTask, Annotation, Checkmark, XMark, GlobeBadge, Star, Pin, Arrow, CheckmarkUnderline, Loader, Alert } from '@box/blueprint-web-assets/icons/Fill';
3
- import { ClockBadge } from '@box/blueprint-web-assets/icons/Line';
4
- import { SurfaceBadgePdfSurface, GrayWhite, SurfaceBadgeDocsSurface, SurfaceBadgeSheetsSurface, SurfaceBadgeImageSurface, SurfaceBadgeCanvasSurface, SurfaceBadgePagesSurface, SurfaceBadgeKeynoteSurface, SurfaceBadgeBoxnoteSurface, Gray100, SurfaceBadgeVideoSurface, SurfaceBadgeFolderexternalSurface, SurfaceBadgeFoldersharedSurface, SurfaceBadgeRelaySurface, SurfaceBadgeMentionSurface, SurfaceBadgeTaskSurface, SurfaceBadgeTaskapprovalSurface, SurfaceBadgeAnnotationSurface, SurfaceBadgeCompletedSurface, SurfaceBadgeRejectedSurface, SurfaceBadgeExternalSurface, SurfaceBadgeAdminSurface, SurfaceBadgeCoadminSurface, SurfaceBadgePinSurface, Gray80, SurfaceBadgeCollectionSurface, SurfaceBadgeOfflineSurface, SurfaceBadgeProgressSurface, SurfaceBadgeErrorSurface, Yellorange50 } from '@box/blueprint-web-assets/tokens/tokens';
2
+ import { FilePdf, FileDocs, FileSheets, FileImage, FileCanvas, FilePages, FileKeynote, FileBoxNote, FileVideo, FolderExternal, FolderShared, Relay, EllipsisBubble, Task, ApprovalTask, Annotation, Checkmark, XMark, GlobeBadge, Star, Pin, Arrow, CheckmarkUnderline, Loader, Alert, ClockBadge } from '@box/blueprint-web-assets/icons/Fill';
3
+ import { SurfaceBadgePdfSurface, GrayWhite, SurfaceBadgeDocsSurface, SurfaceBadgeSheetsSurface, SurfaceBadgeImageSurface, SurfaceBadgeCanvasSurface, SurfaceBadgePagesSurface, SurfaceBadgeKeynoteSurface, SurfaceBadgeBoxnoteSurface, Gray100, SurfaceBadgeVideoSurface, SurfaceBadgeFolderexternalSurface, SurfaceBadgeFoldersharedSurface, SurfaceBadgeRelaySurface, SurfaceBadgeMentionSurface, SurfaceBadgeTaskSurface, SurfaceBadgeTaskapprovalSurface, SurfaceBadgeAnnotationSurface, SurfaceBadgeCompletedSurface, SurfaceBadgeRejectedSurface, SurfaceBadgeExternalSurface, SurfaceBadgeAdminSurface, SurfaceBadgeCoadminSurface, SurfaceBadgePinSurface, Gray80, SurfaceBadgeCollectionSurface, SurfaceBadgeOfflineSurface, SurfaceBadgeProgressSurface, SurfaceBadgeErrorSurface, Orange100 } from '@box/blueprint-web-assets/tokens/tokens';
5
4
  import clsx from 'clsx';
6
5
  import mapValues from 'lodash/mapValues';
7
6
  import { createElement } from 'react';
@@ -145,9 +144,9 @@ const badgeVariantToIconProps = {
145
144
  iconColor: GrayWhite
146
145
  },
147
146
  'status-pending': {
148
- backgroundColor: Yellorange50,
147
+ backgroundColor: Orange100,
149
148
  icon: ClockBadge,
150
- iconColor: Gray100
149
+ iconColor: GrayWhite
151
150
  }
152
151
  };
153
152
  const badgeSizeToIconSize = {
@@ -2334,6 +2334,9 @@
2334
2334
  .bp_content_card_module_pillGhost--bdcd1{
2335
2335
  margin-inline-end:var(--size-2);
2336
2336
  }
2337
+ .bp_useFullTextTooltip_module_tooltipContent--0a9fb > *{
2338
+ color:var(--text-text-on-dark) !important;
2339
+ }
2337
2340
  .bp_content_field_module_contentFieldWrapper--dabac{
2338
2341
  width:100%;
2339
2342
  }
@@ -1,6 +1,8 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
+ import clsx from 'clsx';
2
3
  import { Fragment } from 'react';
3
4
  import { Tooltip } from '../tooltip/tooltip.js';
5
+ import styles from './useFullTextTooltip.module.js';
4
6
  import { useIsEllipsized } from './useIsEllipsized.js';
5
7
 
6
8
  const useFullTextTooltip = ({
@@ -13,7 +15,9 @@ const useFullTextTooltip = ({
13
15
  const shouldWrapInTooltip = isEllipsized && !skipOverflowCheck;
14
16
  const Wrapper = shouldWrapInTooltip ? props => jsx(Tooltip, {
15
17
  ...props,
16
- content: textValue ?? children
18
+ className: clsx(styles.tooltipContent, props.className),
19
+ content: props.content ?? textValue ?? children,
20
+ variant: "standard"
17
21
  }) : Fragment;
18
22
  return {
19
23
  Wrapper,
@@ -0,0 +1,4 @@
1
+ import '../index.css';
2
+ var styles = {"tooltipContent":"bp_useFullTextTooltip_module_tooltipContent--0a9fb"};
3
+
4
+ export { styles as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/blueprint-web",
3
- "version": "12.7.2",
3
+ "version": "12.9.0",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {