@box/blueprint-web 6.21.0 → 6.22.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,5 +1,5 @@
1
1
  import type * as RadixPopover from '@radix-ui/react-popover';
2
- import { type FunctionComponent, type PropsWithChildren, type SVGProps } from 'react';
2
+ import { type JSX, type FunctionComponent, type PropsWithChildren, type SVGProps } from 'react';
3
3
  export interface GuidedTooltipContentProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'content'> {
4
4
  /** The preferred alignment against the anchor. May change when collisions occur.
5
5
  * "start" | "center" | "end"
@@ -58,7 +58,7 @@ export interface GuidedTooltipIconProps {
58
58
  /**
59
59
  * SVG Icon element to pass to GuidedTooltip Icon
60
60
  * */
61
- icon: FunctionComponent<PropsWithChildren<SVGProps<SVGSVGElement>>>;
61
+ icon: FunctionComponent<PropsWithChildren<SVGProps<SVGSVGElement>>> | ((props: SVGProps<SVGSVGElement>) => JSX.Element);
62
62
  }
63
63
  export interface GuidedTooltipTitleProps {
64
64
  /** Title content. */
package/lib-esm/index.css CHANGED
@@ -236,7 +236,7 @@
236
236
  transform:rotate(180deg);
237
237
  }
238
238
 
239
- .bp_loading_indicator_module_crawler--f1f3a{
239
+ .bp_loading_indicator_module_crawler--9cdc7{
240
240
  left:0;
241
241
  margin:0 auto;
242
242
  position:absolute;
@@ -244,35 +244,44 @@
244
244
  white-space:nowrap;
245
245
  width:.625rem;
246
246
  }
247
- .bp_loading_indicator_module_crawler--f1f3a .bp_loading_indicator_module_segment--f1f3a{
247
+ .bp_loading_indicator_module_crawler--9cdc7 .bp_loading_indicator_module_segment--9cdc7{
248
248
  border-radius:.375rem;
249
249
  display:inline-block;
250
250
  height:.625rem;
251
251
  width:.125rem;
252
252
  }
253
- .bp_loading_indicator_module_crawler--f1f3a.bp_loading_indicator_module_default--f1f3a .bp_loading_indicator_module_segment--f1f3a{
254
- animation:bp_loading_indicator_module_segment-transform--f1f3a .66s ease-in-out infinite,bp_loading_indicator_module_segment-default--f1f3a .66s ease-in-out infinite;
253
+ .bp_loading_indicator_module_crawler--9cdc7.bp_loading_indicator_module_small--9cdc7{
254
+ transform:scale(.7);
255
255
  }
256
- .bp_loading_indicator_module_crawler--f1f3a.bp_loading_indicator_module_dark--f1f3a .bp_loading_indicator_module_segment--f1f3a{
257
- animation:bp_loading_indicator_module_segment-transform--f1f3a .66s ease-in-out infinite,bp_loading_indicator_module_segment-dark--f1f3a .66s ease-in-out infinite;
256
+ .bp_loading_indicator_module_crawler--9cdc7.bp_loading_indicator_module_large--9cdc7{
257
+ transform:scale(1.5);
258
258
  }
259
- .bp_loading_indicator_module_crawler--f1f3a.bp_loading_indicator_module_light--f1f3a .bp_loading_indicator_module_segment--f1f3a{
260
- animation:bp_loading_indicator_module_segment-transform--f1f3a .66s ease-in-out infinite,bp_loading_indicator_module_segment-light--f1f3a .66s ease-in-out infinite;
259
+ .bp_loading_indicator_module_crawler--9cdc7.bp_loading_indicator_module_x-large--9cdc7{
260
+ transform:scale(2);
261
+ }
262
+ .bp_loading_indicator_module_crawler--9cdc7.bp_loading_indicator_module_default--9cdc7 .bp_loading_indicator_module_segment--9cdc7{
263
+ animation:bp_loading_indicator_module_segment-transform--9cdc7 .66s ease-in-out infinite,bp_loading_indicator_module_segment-default--9cdc7 .66s ease-in-out infinite;
264
+ }
265
+ .bp_loading_indicator_module_crawler--9cdc7.bp_loading_indicator_module_dark--9cdc7 .bp_loading_indicator_module_segment--9cdc7{
266
+ animation:bp_loading_indicator_module_segment-transform--9cdc7 .66s ease-in-out infinite,bp_loading_indicator_module_segment-dark--9cdc7 .66s ease-in-out infinite;
267
+ }
268
+ .bp_loading_indicator_module_crawler--9cdc7.bp_loading_indicator_module_light--9cdc7 .bp_loading_indicator_module_segment--9cdc7{
269
+ animation:bp_loading_indicator_module_segment-transform--9cdc7 .66s ease-in-out infinite,bp_loading_indicator_module_segment-light--9cdc7 .66s ease-in-out infinite;
261
270
  background-color:var(--gray-white);
262
271
  }
263
272
 
264
- .bp_loading_indicator_module_crawler--f1f3a .bp_loading_indicator_module_segment--f1f3a:nth-child(2){
273
+ .bp_loading_indicator_module_crawler--9cdc7 .bp_loading_indicator_module_segment--9cdc7:nth-child(2){
265
274
  animation-delay:.1s;
266
275
  margin-left:.125rem;
267
276
  }
268
277
 
269
- .bp_loading_indicator_module_crawler--f1f3a .bp_loading_indicator_module_segment--f1f3a:last-child{
278
+ .bp_loading_indicator_module_crawler--9cdc7 .bp_loading_indicator_module_segment--9cdc7:last-child{
270
279
  animation-delay:.2s;
271
280
  left:.5rem;
272
281
  margin-left:.125rem;
273
282
  }
274
283
 
275
- @keyframes bp_loading_indicator_module_segment-transform--f1f3a{
284
+ @keyframes bp_loading_indicator_module_segment-transform--9cdc7{
276
285
  0%,100%,80%{
277
286
  transform:scaleY(1.2);
278
287
  }
@@ -280,7 +289,7 @@
280
289
  transform:scaleY(1.6);
281
290
  }
282
291
  }
283
- @keyframes bp_loading_indicator_module_segment-dark--f1f3a{
292
+ @keyframes bp_loading_indicator_module_segment-dark--9cdc7{
284
293
  0%,100%,80%{
285
294
  background-color:var(--gray-30);
286
295
  }
@@ -288,7 +297,7 @@
288
297
  background-color:var(--gray-black);
289
298
  }
290
299
  }
291
- @keyframes bp_loading_indicator_module_segment-default--f1f3a{
300
+ @keyframes bp_loading_indicator_module_segment-default--9cdc7{
292
301
  0%,100%,80%{
293
302
  background-color:var(--box-blue-30);
294
303
  }
@@ -296,7 +305,7 @@
296
305
  background-color:var(--box-blue-100);
297
306
  }
298
307
  }
299
- @keyframes bp_loading_indicator_module_segment-light--f1f3a{
308
+ @keyframes bp_loading_indicator_module_segment-light--9cdc7{
300
309
  0%,100%,80%{
301
310
  opacity:.3;
302
311
  }
@@ -9,6 +9,8 @@ export interface LoadingIndicatorProps extends HTMLAttributes<HTMLDivElement> {
9
9
  * Default value is 'polite'.
10
10
  */
11
11
  'aria-live'?: 'assertive' | 'polite';
12
+ /** The size of the indicator. Defaults to medium */
13
+ size?: 'small' | 'medium' | 'large' | 'x-large';
12
14
  /** The color scheme of the indicator */
13
15
  variant?: 'default' | 'dark' | 'light';
14
16
  }
@@ -7,6 +7,7 @@ function LoadingIndicator(props) {
7
7
  'aria-label': ariaLabel,
8
8
  'aria-live': ariaLive = 'polite',
9
9
  variant = 'default',
10
+ size = 'medium',
10
11
  className = '',
11
12
  ...rest
12
13
  } = props;
@@ -14,7 +15,7 @@ function LoadingIndicator(props) {
14
15
  ...rest,
15
16
  "aria-label": ariaLabel,
16
17
  "aria-live": ariaLive,
17
- className: clsx(styles.crawler, styles[variant], className),
18
+ className: clsx(styles.crawler, styles[variant], styles[size], className),
18
19
  role: "status",
19
20
  children: [jsx("div", {
20
21
  className: styles.segment
@@ -1,4 +1,4 @@
1
1
  import '../index.css';
2
- var styles = {"crawler":"bp_loading_indicator_module_crawler--f1f3a","segment":"bp_loading_indicator_module_segment--f1f3a","default":"bp_loading_indicator_module_default--f1f3a","segment-transform":"bp_loading_indicator_module_segment-transform--f1f3a","segment-default":"bp_loading_indicator_module_segment-default--f1f3a","dark":"bp_loading_indicator_module_dark--f1f3a","segment-dark":"bp_loading_indicator_module_segment-dark--f1f3a","light":"bp_loading_indicator_module_light--f1f3a","segment-light":"bp_loading_indicator_module_segment-light--f1f3a"};
2
+ var styles = {"crawler":"bp_loading_indicator_module_crawler--9cdc7","segment":"bp_loading_indicator_module_segment--9cdc7","small":"bp_loading_indicator_module_small--9cdc7","large":"bp_loading_indicator_module_large--9cdc7","x-large":"bp_loading_indicator_module_x-large--9cdc7","default":"bp_loading_indicator_module_default--9cdc7","segment-transform":"bp_loading_indicator_module_segment-transform--9cdc7","segment-default":"bp_loading_indicator_module_segment-default--9cdc7","dark":"bp_loading_indicator_module_dark--9cdc7","segment-dark":"bp_loading_indicator_module_segment-dark--9cdc7","light":"bp_loading_indicator_module_light--9cdc7","segment-light":"bp_loading_indicator_module_segment-light--9cdc7"};
3
3
 
4
4
  export { styles as default };
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { type FocusTrapProps } from './types';
2
3
  export declare const FocusTrap: ({ containerRef, children, customInitialFocus }: FocusTrapProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare function sleep(ms: number): Promise<unknown>;
2
3
  export declare const docsDisabledNotice: {
3
4
  docs: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/blueprint-web",
3
- "version": "6.21.0",
3
+ "version": "6.22.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -57,7 +57,7 @@
57
57
  "devDependencies": {
58
58
  "@box/storybook-utils": "^0.0.3"
59
59
  },
60
- "gitHead": "20f5ffc9fb504ac6ec544abc9835846fa850e5c0",
60
+ "gitHead": "68bf69aae4808a58a628166dd1150a9684367916",
61
61
  "module": "lib-esm/index.js",
62
62
  "main": "lib-esm/index.js",
63
63
  "exports": {