@box/blueprint-web 17.14.2 → 17.15.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.
@@ -24,7 +24,6 @@ const Link = /*#__PURE__*/forwardRef((props, forwardedRef) => {
24
24
  }, styles[variant], {
25
25
  [styles.hasIcon]: isExternal
26
26
  }]),
27
- "data-modern": 'true' ,
28
27
  children: [children, isExternal && jsx(ArrowUpRightSquareAlt, {
29
28
  "aria-hidden": true,
30
29
  className: styles.icon
@@ -1,4 +1,4 @@
1
1
  import '../../index.css';
2
- var styles = {"link":"bp_link_module_link--aa435","inheritFont":"bp_link_module_inheritFont--aa435","standalone":"bp_link_module_standalone--aa435","hasIcon":"bp_link_module_hasIcon--aa435","icon":"bp_link_module_icon--aa435"};
2
+ var styles = {"link":"bp_link_module_link--05bf1","inheritFont":"bp_link_module_inheritFont--05bf1","standalone":"bp_link_module_standalone--05bf1","hasIcon":"bp_link_module_hasIcon--05bf1","icon":"bp_link_module_icon--05bf1"};
3
3
 
4
4
  export { styles as default };
@@ -18,12 +18,10 @@ const TabList = /*#__PURE__*/forwardRef(function TabList(props, ref) {
18
18
  }
19
19
  return jsx("div", {
20
20
  className: clsx(styles.tabsListContainer, containerClassname),
21
- "data-modern": 'true' ,
22
21
  children: jsx(TabList$1, {
23
22
  ...rest,
24
23
  ref: ref,
25
24
  className: clsx(variant === 'contentSwitcher' ? styles.contentSwitchTabList : styles.tabList, className),
26
- "data-modern": 'true' ,
27
25
  store: tab
28
26
  })
29
27
  });
@@ -1,4 +1,4 @@
1
1
  import '../../index.css';
2
- var styles = {"hiddenWidthSetter":"bp_tabs_module_hiddenWidthSetter--d80e8","contentSwitchTabList":"bp_tabs_module_contentSwitchTabList--d80e8","contentSwitchTab":"bp_tabs_module_contentSwitchTab--d80e8","tabsListContainer":"bp_tabs_module_tabsListContainer--d80e8","tab":"bp_tabs_module_tab--d80e8","tabList":"bp_tabs_module_tabList--d80e8","tabSeparator":"bp_tabs_module_tabSeparator--d80e8"};
2
+ var styles = {"hiddenWidthSetter":"bp_tabs_module_hiddenWidthSetter--22ec8","contentSwitchTabList":"bp_tabs_module_contentSwitchTabList--22ec8","contentSwitchTab":"bp_tabs_module_contentSwitchTab--22ec8","tabsListContainer":"bp_tabs_module_tabsListContainer--22ec8","tabList":"bp_tabs_module_tabList--22ec8","tabSeparator":"bp_tabs_module_tabSeparator--22ec8","tab":"bp_tabs_module_tab--22ec8"};
3
3
 
4
4
  export { styles as default };
@@ -16,13 +16,14 @@ const useLabelable = (label, inputId, isRequired = false) => {
16
16
  elementType = 'label',
17
17
  ...rest
18
18
  } = props;
19
+ const classNames = clsx(rest.className, {
20
+ [styles.required]: isRequired
21
+ });
19
22
  const labelProps = {
20
23
  ...rest,
21
24
  htmlFor: inputId,
22
25
  ref,
23
- className: clsx(rest.className, {
24
- [styles.required]: isRequired
25
- })
26
+ className: classNames
26
27
  };
27
28
  if (!label) {
28
29
  return null;
@@ -48,6 +49,7 @@ const useLabelable = (label, inputId, isRequired = false) => {
48
49
  }) : jsx(Role.span, {
49
50
  ...rest,
50
51
  ref: ref,
52
+ className: classNames,
51
53
  children: label
52
54
  });
53
55
  }
@@ -60,6 +62,7 @@ const useLabelable = (label, inputId, isRequired = false) => {
60
62
  }) : jsx(Role.span, {
61
63
  ...rest,
62
64
  ref: ref,
65
+ className: classNames,
63
66
  // @ts-expect-error: Otherwise we have a conflict of HTMLAttributes and our Blueprint components props.
64
67
  render: hideLabel ? jsx(VisuallyHidden, {
65
68
  render: label
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/blueprint-web",
3
- "version": "17.14.2",
3
+ "version": "17.15.1",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {
@@ -55,7 +55,7 @@
55
55
  "dependencies": {
56
56
  "@ariakit/react": "0.4.21",
57
57
  "@ariakit/react-core": "0.4.21",
58
- "@box/blueprint-web-assets": "^5.10.21",
58
+ "@box/blueprint-web-assets": "^5.10.23",
59
59
  "@internationalized/date": "^3.12.0",
60
60
  "@radix-ui/react-accordion": "1.1.2",
61
61
  "@radix-ui/react-checkbox": "1.0.4",
@@ -86,7 +86,7 @@
86
86
  "devDependencies": {
87
87
  "@box/box-test-client": "^3.2.7",
88
88
  "@box/playwright-utils": "^2.8.5",
89
- "@box/storybook-utils": "^1.2.65",
89
+ "@box/storybook-utils": "^1.2.67",
90
90
  "@figma/code-connect": "1.4.4",
91
91
  "@playwright/test": "1.46.1",
92
92
  "@types/js-yaml": "^4.0.9",