@box/blueprint-web 11.6.0 → 11.7.1

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,7 +1,7 @@
1
1
  import { type BadgeProps } from './types';
2
2
  export interface IconBadgeProps extends BadgeProps {
3
3
  /** The variant of the icon badge. */
4
- variant: 'file-pdf' | 'file-docs' | 'file-sheets' | 'file-image' | 'file-canvas' | 'file-pages' | 'file-keynote' | 'file-boxnote' | 'file-video' | 'folder-external' | 'folder-shared' | 'action-relay' | 'action-mention' | 'action-task' | 'action-taskapproval' | 'action-annotation' | 'action-performed-completed' | 'action-performed-rejected' | 'collaborator-external' | 'collaborator-admin' | 'collaborator-coadmin' | 'content-pin' | 'content-collection' | 'content-offline' | 'content-progress' | 'alert-error';
4
+ variant: 'file-pdf' | 'file-docs' | 'file-sheets' | 'file-image' | 'file-canvas' | 'file-pages' | 'file-keynote' | 'file-boxnote' | 'file-video' | 'folder-external' | 'folder-shared' | 'action-relay' | 'action-mention' | 'action-task' | 'action-taskapproval' | 'action-annotation' | 'action-performed-completed' | 'action-performed-rejected' | 'collaborator-external' | 'collaborator-admin' | 'collaborator-coadmin' | 'content-pin' | 'content-collection' | 'content-offline' | 'content-progress' | 'alert-error' | 'status-pending';
5
5
  }
6
6
  export declare const IconBadgeVariants: Array<IconBadgeProps["variant"]>;
7
7
  export declare const IconBadge: (props: IconBadgeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
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 { 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 } from '@box/blueprint-web-assets/tokens/tokens';
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';
4
5
  import { createElement } from 'react';
5
6
  import { BaseBadge } from './base-badge.js';
6
7
  import styles from './base-badge.module.js';
@@ -139,6 +140,11 @@ const badgeVariantToIconProps = {
139
140
  backgroundColor: SurfaceBadgeErrorSurface,
140
141
  icon: Alert,
141
142
  iconColor: GrayWhite
143
+ },
144
+ 'status-pending': {
145
+ backgroundColor: Yellorange50,
146
+ icon: ClockBadge,
147
+ iconColor: Gray100
142
148
  }
143
149
  };
144
150
  const badgeSizeToIconSize = {
@@ -5764,8 +5764,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
5764
5764
  .bp_radio_tiles_module_radioTiles--14072.bp_radio_tiles_module_compact--14072 > *{
5765
5765
  flex:0 1 calc(100%/var(--columns) - var(--space-2) + var(--space-2)/var(--columns));
5766
5766
  }
5767
-
5768
- .bp_search_module_search--8b0fc{
5767
+ .bp_search_module_search--26492{
5769
5768
  font-family:Lato, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
5770
5769
  font-size:.875rem;
5771
5770
  font-weight:400;
@@ -5778,10 +5777,10 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
5778
5777
  text-transform:none;
5779
5778
  width:100%;
5780
5779
  }
5781
- .bp_search_module_search--8b0fc.bp_search_module_disabled--8b0fc{
5780
+ .bp_search_module_search--26492.bp_search_module_disabled--26492{
5782
5781
  opacity:.3;
5783
5782
  }
5784
- .bp_search_module_search--8b0fc .bp_search_module_searchIcon--8b0fc{
5783
+ .bp_search_module_search--26492 .bp_search_module_searchIcon--26492{
5785
5784
  height:var(--size-4);
5786
5785
  left:var(--space-2);
5787
5786
  pointer-events:none;
@@ -5790,15 +5789,15 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
5790
5789
  transform:translateY(-50%);
5791
5790
  width:var(--size-4);
5792
5791
  }
5793
- .bp_search_module_search--8b0fc .bp_search_module_searchIcon--8b0fc.bp_search_module_global--8b0fc{
5792
+ .bp_search_module_search--26492 .bp_search_module_searchIcon--26492.bp_search_module_global--26492{
5794
5793
  height:var(--size-5);
5795
5794
  left:var(--space-4);
5796
5795
  width:var(--size-5);
5797
5796
  }
5798
- .bp_search_module_search--8b0fc .bp_search_module_searchInput--8b0fc{
5797
+ .bp_search_module_search--26492 .bp_search_module_searchInput--26492{
5799
5798
  -webkit-font-smoothing:auto;
5800
5799
  background-color:var(--surface-search-surface);
5801
- border:var(--border-1) solid #0000;
5800
+ border:var(--border-1) solid var(--border-search-border);
5802
5801
  border-radius:var(--radius-2);
5803
5802
  box-shadow:unset;
5804
5803
  box-sizing:border-box;
@@ -5817,51 +5816,51 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
5817
5816
  transition:border-color .15s ease,background-color .15s ease;
5818
5817
  width:100%;
5819
5818
  }
5820
- .bp_search_module_search--8b0fc .bp_search_module_searchInput--8b0fc.bp_search_module_global--8b0fc{
5819
+ .bp_search_module_search--26492 .bp_search_module_searchInput--26492.bp_search_module_global--26492{
5821
5820
  border-radius:var(--radius-7);
5822
5821
  height:var(--size-12);
5823
5822
  padding-inline:var(--space-12) var(--space-2);
5824
5823
  }
5825
- .bp_search_module_search--8b0fc .bp_search_module_searchInput--8b0fc::-webkit-search-cancel-button,.bp_search_module_search--8b0fc .bp_search_module_searchInput--8b0fc::-webkit-search-decoration,.bp_search_module_search--8b0fc .bp_search_module_searchInput--8b0fc::-webkit-search-results-button,.bp_search_module_search--8b0fc .bp_search_module_searchInput--8b0fc::-webkit-search-results-decoration{
5824
+ .bp_search_module_search--26492 .bp_search_module_searchInput--26492::-webkit-search-cancel-button,.bp_search_module_search--26492 .bp_search_module_searchInput--26492::-webkit-search-decoration,.bp_search_module_search--26492 .bp_search_module_searchInput--26492::-webkit-search-results-button,.bp_search_module_search--26492 .bp_search_module_searchInput--26492::-webkit-search-results-decoration{
5826
5825
  appearance:none;
5827
5826
  }
5828
- .bp_search_module_search--8b0fc .bp_search_module_searchInput--8b0fc:disabled{
5827
+ .bp_search_module_search--26492 .bp_search_module_searchInput--26492:disabled{
5829
5828
  background-color:var(--surface-search-surface);
5830
5829
  border-color:#0000;
5831
5830
  box-shadow:unset;
5832
5831
  color:var(--text-text-on-light);
5833
5832
  }
5834
- .bp_search_module_search--8b0fc .bp_search_module_searchInput--8b0fc:hover{
5833
+ .bp_search_module_search--26492 .bp_search_module_searchInput--26492:hover{
5835
5834
  box-shadow:unset;
5836
5835
  }
5837
- .bp_search_module_search--8b0fc .bp_search_module_searchInput--8b0fc .bp_search_module_firefoxDefaultOpacityFix--8b0fc,.bp_search_module_search--8b0fc .bp_search_module_searchInput--8b0fc .bp_search_module_searchInput--8b0fc::placeholder{
5836
+ .bp_search_module_search--26492 .bp_search_module_searchInput--26492 .bp_search_module_firefoxDefaultOpacityFix--26492,.bp_search_module_search--26492 .bp_search_module_searchInput--26492 .bp_search_module_searchInput--26492::placeholder{
5838
5837
  opacity:1;
5839
5838
  }
5840
- .bp_search_module_search--8b0fc .bp_search_module_searchInput--8b0fc::placeholder{
5839
+ .bp_search_module_search--26492 .bp_search_module_searchInput--26492::placeholder{
5841
5840
  color:var(--text-text-on-light-secondary);
5842
5841
  }
5843
- .bp_search_module_search--8b0fc .bp_search_module_searchInput--8b0fc:not(:placeholder-shown){
5842
+ .bp_search_module_search--26492 .bp_search_module_searchInput--26492:not(:placeholder-shown){
5844
5843
  padding-inline-end:var(--space-8);
5845
5844
  }
5846
- .bp_search_module_search--8b0fc .bp_search_module_searchInput--8b0fc:not(:placeholder-shown).bp_search_module_global--8b0fc{
5845
+ .bp_search_module_search--26492 .bp_search_module_searchInput--26492:not(:placeholder-shown).bp_search_module_global--26492{
5847
5846
  padding-inline-end:calc(var(--size-8)*2 + var(--space-6));
5848
5847
  }
5849
- .bp_search_module_search--8b0fc .bp_search_module_searchInput--8b0fc:not(:placeholder-shown).bp_search_module_global--8b0fc.bp_search_module_withoutActionButton--8b0fc{
5848
+ .bp_search_module_search--26492 .bp_search_module_searchInput--26492:not(:placeholder-shown).bp_search_module_global--26492.bp_search_module_withoutActionButton--26492{
5850
5849
  padding-inline-end:calc(var(--size-8) + var(--space-3));
5851
5850
  }
5852
- .bp_search_module_search--8b0fc .bp_search_module_searchInput--8b0fc:focus-visible{
5851
+ .bp_search_module_search--26492 .bp_search_module_searchInput--26492:focus-visible{
5853
5852
  background-color:var(--surface-search-surface-focused);
5854
- border:var(--border-2) solid #2486fc;
5853
+ border:var(--border-2) solid var(--outline-focus-on-light);
5855
5854
  padding-inline-start:calc(var(--space-8) - var(--border-1));
5856
5855
  }
5857
- .bp_search_module_search--8b0fc .bp_search_module_searchInput--8b0fc:focus-visible.bp_search_module_global--8b0fc{
5856
+ .bp_search_module_search--26492 .bp_search_module_searchInput--26492:focus-visible.bp_search_module_global--26492{
5858
5857
  padding-inline-start:calc(var(--space-12) - var(--border-1));
5859
5858
  }
5860
- .bp_search_module_search--8b0fc .bp_search_module_searchInput--8b0fc:not(:focus-visible):not(:disabled):hover{
5859
+ .bp_search_module_search--26492 .bp_search_module_searchInput--26492:not(:focus-visible):not(:disabled):hover{
5861
5860
  background-color:var(--surface-search-surface-hover);
5862
- border-color:#6f6f6f;
5861
+ border-color:var(--border-search-border-hover);
5863
5862
  }
5864
- .bp_search_module_search--8b0fc .bp_search_module_clearSearchIcon--8b0fc{
5863
+ .bp_search_module_search--26492 .bp_search_module_clearSearchIcon--26492{
5865
5864
  background:var(--surface-cta-surface-icon);
5866
5865
  height:var(--size-4);
5867
5866
  position:absolute;
@@ -5870,31 +5869,31 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
5870
5869
  transform:translateY(-50%);
5871
5870
  width:var(--size-4);
5872
5871
  }
5873
- .bp_search_module_search--8b0fc .bp_search_module_clearSearchIcon--8b0fc.bp_search_module_global--8b0fc{
5872
+ .bp_search_module_search--26492 .bp_search_module_clearSearchIcon--26492.bp_search_module_global--26492{
5874
5873
  height:var(--size-8);
5875
5874
  right:calc(var(--space-12) + var(--space-1));
5876
5875
  width:var(--size-8);
5877
5876
  }
5878
- .bp_search_module_search--8b0fc .bp_search_module_clearSearchIcon--8b0fc.bp_search_module_withoutActionButton--8b0fc{
5877
+ .bp_search_module_search--26492 .bp_search_module_clearSearchIcon--26492.bp_search_module_withoutActionButton--26492{
5879
5878
  right:var(--space-3);
5880
5879
  }
5881
- .bp_search_module_search--8b0fc .bp_search_module_clearSearchIcon--8b0fc *{
5880
+ .bp_search_module_search--26492 .bp_search_module_clearSearchIcon--26492 *{
5882
5881
  fill:var(--icon-cta-icon);
5883
5882
  }
5884
- .bp_search_module_search--8b0fc .bp_search_module_clearSearchIcon--8b0fc:focus-visible{
5883
+ .bp_search_module_search--26492 .bp_search_module_clearSearchIcon--26492:focus-visible{
5885
5884
  background:var(--surface-cta-surface-icon-hover);
5886
5885
  outline:var(--border-2) solid var(--outline-focus-on-light);
5887
5886
  }
5888
- .bp_search_module_search--8b0fc .bp_search_module_clearSearchIcon--8b0fc:focus-visible *{
5887
+ .bp_search_module_search--26492 .bp_search_module_clearSearchIcon--26492:focus-visible *{
5889
5888
  fill:var(--icon-cta-icon-hover);
5890
5889
  }
5891
- .bp_search_module_search--8b0fc .bp_search_module_clearSearchIcon--8b0fc:hover{
5890
+ .bp_search_module_search--26492 .bp_search_module_clearSearchIcon--26492:hover{
5892
5891
  background:var(--surface-cta-surface-icon-hover);
5893
5892
  }
5894
- .bp_search_module_search--8b0fc .bp_search_module_clearSearchIcon--8b0fc:hover *{
5893
+ .bp_search_module_search--26492 .bp_search_module_clearSearchIcon--26492:hover *{
5895
5894
  fill:var(--icon-cta-icon-hover);
5896
5895
  }
5897
- .bp_search_module_search--8b0fc .bp_search_module_actionButton--8b0fc{
5896
+ .bp_search_module_search--26492 .bp_search_module_actionButton--26492{
5898
5897
  position:absolute;
5899
5898
  right:var(--space-4);
5900
5899
  top:50%;
@@ -1,4 +1,4 @@
1
1
  import '../index.css';
2
- var styles = {"search":"bp_search_module_search--8b0fc","disabled":"bp_search_module_disabled--8b0fc","searchIcon":"bp_search_module_searchIcon--8b0fc","global":"bp_search_module_global--8b0fc","searchInput":"bp_search_module_searchInput--8b0fc","firefoxDefaultOpacityFix":"bp_search_module_firefoxDefaultOpacityFix--8b0fc","withoutActionButton":"bp_search_module_withoutActionButton--8b0fc","clearSearchIcon":"bp_search_module_clearSearchIcon--8b0fc","actionButton":"bp_search_module_actionButton--8b0fc"};
2
+ var styles = {"search":"bp_search_module_search--26492","disabled":"bp_search_module_disabled--26492","searchIcon":"bp_search_module_searchIcon--26492","global":"bp_search_module_global--26492","searchInput":"bp_search_module_searchInput--26492","firefoxDefaultOpacityFix":"bp_search_module_firefoxDefaultOpacityFix--26492","withoutActionButton":"bp_search_module_withoutActionButton--26492","clearSearchIcon":"bp_search_module_clearSearchIcon--26492","actionButton":"bp_search_module_actionButton--26492"};
3
3
 
4
4
  export { styles as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/blueprint-web",
3
- "version": "11.6.0",
3
+ "version": "11.7.1",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {