@oaknational/oak-components 3.1.0 → 3.1.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.
@@ -4016,7 +4016,7 @@ var OakTagFunctional = function (props) {
4016
4016
  var leadingIcon = !props.isTrailingIcon && icon;
4017
4017
  return (React__default.default.createElement(OakFlex, tslib.__assign({ "$borderRadius": "border-radius-m", "$ph": "spacing-8", "$pv": "spacing-4", "$font": "heading-light-7", "$gap": "spacing-8" }, oakFlexProps),
4018
4018
  leadingIcon,
4019
- React__default.default.createElement(OakLabel, { as: useSpan ? "span" : undefined }, label),
4019
+ React__default.default.createElement(OakBox, { as: useSpan ? "span" : undefined }, label),
4020
4020
  trailingIcon));
4021
4021
  };
4022
4022
 
@@ -1,8 +1,8 @@
1
1
  import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
+ import { OakBox } from '../../layout-and-structure/OakBox/OakBox.js';
3
4
  import { OakFlex } from '../../layout-and-structure/OakFlex/OakFlex.js';
4
5
  import { OakIcon } from '../../images-and-icons/OakIcon/OakIcon.js';
5
- import { OakLabel } from '../../form-elements/OakLabel/OakLabel.js';
6
6
 
7
7
  var OakTagFunctional = function (props) {
8
8
  var label = props.label, useSpan = props.useSpan, oakFlexProps = __rest(props, ["label", "useSpan"]);
@@ -11,7 +11,7 @@ var OakTagFunctional = function (props) {
11
11
  var leadingIcon = !props.isTrailingIcon && icon;
12
12
  return (React.createElement(OakFlex, __assign({ "$borderRadius": "border-radius-m", "$ph": "spacing-8", "$pv": "spacing-4", "$font": "heading-light-7", "$gap": "spacing-8" }, oakFlexProps),
13
13
  leadingIcon,
14
- React.createElement(OakLabel, { as: useSpan ? "span" : undefined }, label),
14
+ React.createElement(OakBox, { as: useSpan ? "span" : undefined }, label),
15
15
  trailingIcon));
16
16
  };
17
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oaknational/oak-components",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "licence": "MIT",
5
5
  "packageManager": "pnpm@11.2.0",
6
6
  "description": "Shared components for Oak applications",