@ndla/primitives 0.0.23 → 1.0.0-alpha.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.
package/es/Label.js CHANGED
@@ -42,12 +42,20 @@ export const Legend = /*#__PURE__*/forwardRef((_ref, ref) => {
42
42
  ref: ref
43
43
  });
44
44
  });
45
- export const FieldsetLegend = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/_jsx(Fieldset.Legend, {
46
- asChild: true,
47
- ...props,
48
- ref: ref,
49
- children: /*#__PURE__*/_jsx(Legend, {})
50
- }));
45
+ export const FieldsetLegend = /*#__PURE__*/forwardRef((_ref2, ref) => {
46
+ let {
47
+ children,
48
+ ...props
49
+ } = _ref2;
50
+ return /*#__PURE__*/_jsx(Fieldset.Legend, {
51
+ asChild: true,
52
+ ...props,
53
+ ref: ref,
54
+ children: /*#__PURE__*/_jsx(Legend, {
55
+ children: children
56
+ })
57
+ });
58
+ });
51
59
  const StyledLabel = styled(ark.label, {
52
60
  base: {
53
61
  display: "inline-block",
@@ -58,7 +66,7 @@ const StyledLabel = styled(ark.label, {
58
66
  }, {
59
67
  baseComponent: true
60
68
  });
61
- export const Label = /*#__PURE__*/forwardRef((_ref2, ref) => {
69
+ export const Label = /*#__PURE__*/forwardRef((_ref3, ref) => {
62
70
  let {
63
71
  textStyle = "label.medium",
64
72
  fontWeight = "bold",
@@ -66,7 +74,7 @@ export const Label = /*#__PURE__*/forwardRef((_ref2, ref) => {
66
74
  srOnly,
67
75
  color,
68
76
  ...rest
69
- } = _ref2;
77
+ } = _ref3;
70
78
  return /*#__PURE__*/_jsx(StyledLabel, {
71
79
  css: css.raw({
72
80
  textStyle,
package/lib/Label.js CHANGED
@@ -48,12 +48,20 @@ const Legend = exports.Legend = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref)
48
48
  ref: ref
49
49
  });
50
50
  });
51
- const FieldsetLegend = exports.FieldsetLegend = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.Fieldset.Legend, {
52
- asChild: true,
53
- ...props,
54
- ref: ref,
55
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Legend, {})
56
- }));
51
+ const FieldsetLegend = exports.FieldsetLegend = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) => {
52
+ let {
53
+ children,
54
+ ...props
55
+ } = _ref2;
56
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.Fieldset.Legend, {
57
+ asChild: true,
58
+ ...props,
59
+ ref: ref,
60
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Legend, {
61
+ children: children
62
+ })
63
+ });
64
+ });
57
65
  const StyledLabel = (0, _jsx2.styled)(_react2.ark.label, {
58
66
  base: {
59
67
  display: "inline-block",
@@ -64,7 +72,7 @@ const StyledLabel = (0, _jsx2.styled)(_react2.ark.label, {
64
72
  }, {
65
73
  baseComponent: true
66
74
  });
67
- const Label = exports.Label = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) => {
75
+ const Label = exports.Label = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
68
76
  let {
69
77
  textStyle = "label.medium",
70
78
  fontWeight = "bold",
@@ -72,7 +80,7 @@ const Label = exports.Label = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =
72
80
  srOnly,
73
81
  color,
74
82
  ...rest
75
- } = _ref2;
83
+ } = _ref3;
76
84
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledLabel, {
77
85
  css: _css.css.raw({
78
86
  textStyle,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/primitives",
3
- "version": "0.0.23",
3
+ "version": "1.0.0-alpha.0",
4
4
  "description": "Primitive components for NDLA.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -43,5 +43,5 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "35713120e2a004be81a62f17e29af74707b21dc4"
46
+ "gitHead": "3e0d75a9fd5cca419ac16f3933be6d905fe405c9"
47
47
  }