@box/blueprint-web 9.18.0 → 9.18.2

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,6 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
3
  import React__default, { useRef, useState } from 'react';
4
- import { InputChip } from '../input-chip/input-chip.js';
5
4
  import { Tooltip } from '../tooltip/tooltip.js';
6
5
  import styles from './chips-group.module.js';
7
6
 
@@ -56,9 +55,6 @@ const ChipsGroup = props => {
56
55
  if (! /*#__PURE__*/React__default.isValidElement(child)) {
57
56
  throw Error(`Element ${child} is not a valid React element`);
58
57
  }
59
- if (child.type !== InputChip) {
60
- throw Error(`Component of type ${child.type} is not allowed. The ChildGroup component only accepts InputChip as children.`);
61
- }
62
58
  if (!child.props.onDelete) {
63
59
  throw Error(`Input chip must have an onDelete prop.`);
64
60
  }
@@ -69,7 +69,7 @@ export * from './tooltip';
69
69
  export * from './trigger-button';
70
70
  export * from './util-components/focus-trap';
71
71
  export * from './util-components/interactive-icon';
72
- export * from './util-components/labelable/types';
72
+ export * from './util-components/labelable';
73
73
  export * from './util-components/scrollable-container/scrollable-container';
74
74
  export * from './util-components/text-with-info-badge';
75
75
  export * from './utils/composeEventHandlers';
package/lib-esm/index.js CHANGED
@@ -85,6 +85,7 @@ export { Tooltip, TooltipProvider } from './tooltip/tooltip.js';
85
85
  export { TriggerButton } from './trigger-button/trigger-button.js';
86
86
  export { FocusTrap } from './util-components/focus-trap/focus-trap.js';
87
87
  export { InteractiveIcon } from './util-components/interactive-icon/interactive-icon.js';
88
+ export { useLabelable } from './util-components/labelable/useLabelable.js';
88
89
  export { ScrollContext, ScrollableContainer, useScroll, useScrollContext } from './util-components/scrollable-container/scrollable-container.js';
89
90
  export { TextWithInfoBadge } from './util-components/text-with-info-badge/text-with-info-badge.js';
90
91
  export { composeEventHandlers } from './utils/composeEventHandlers.js';
@@ -1,9 +1,9 @@
1
- export declare const TextArea: import("react").ForwardRefExoticComponent<(Omit<import("../..").Labelable & Omit<import("./text-area-autosize/types").TextareaAutosizeProps, "hasError"> & {
1
+ export declare const TextArea: import("react").ForwardRefExoticComponent<(Omit<import("../util-components/labelable").Labelable & Omit<import("./text-area-autosize/types").TextareaAutosizeProps, "hasError"> & {
2
2
  hideLabel?: boolean;
3
3
  disabled?: boolean;
4
4
  required?: boolean;
5
5
  error?: React.ReactNode;
6
- } & Required<Pick<import("./types").Loading, keyof import("./types").Loading>> & Omit<import("./types").Loading, keyof import("./types").Loading>, "ref"> | Omit<import("../..").Labelable & Omit<import("./text-area-autosize/types").TextareaAutosizeProps, "hasError"> & {
6
+ } & Required<Pick<import("./types").Loading, keyof import("./types").Loading>> & Omit<import("./types").Loading, keyof import("./types").Loading>, "ref"> | Omit<import("../util-components/labelable").Labelable & Omit<import("./text-area-autosize/types").TextareaAutosizeProps, "hasError"> & {
7
7
  hideLabel?: boolean;
8
8
  disabled?: boolean;
9
9
  required?: boolean;
@@ -1 +1,2 @@
1
+ export * from './types';
1
2
  export * from './useLabelable';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/blueprint-web",
3
- "version": "9.18.0",
3
+ "version": "9.18.2",
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": "a2056d2f579edc055a85156efe0e93414840445e",
65
+ "gitHead": "f6c507e488017314babe6a6c26be34c2c030af8b",
66
66
  "module": "lib-esm/index.js",
67
67
  "main": "lib-esm/index.js",
68
68
  "types": "lib-esm/index.d.ts",