@useblu/ocean-react 1.47.0 → 1.48.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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.48.0](https://github.com/ocean-ds/ocean-web/compare/v1.47.1...v1.48.0) (2023-07-31)
7
+
8
+ ### Features
9
+
10
+ - remove unused margin an add condicional render in input label ([#1079](https://github.com/ocean-ds/ocean-web/issues/1079)) ([561d8a7](https://github.com/ocean-ds/ocean-web/commit/561d8a73f8699848d0e2f0679a618471bcb088f7))
11
+
6
12
  # [1.47.0](https://github.com/ocean-ds/ocean-web/compare/v1.46.3...v1.47.0) (2023-06-27)
7
13
 
8
14
  ### Features
@@ -1 +1 @@
1
- {"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../src/FormControl/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,oBAAY,gBAAgB,GAAG;IAI7B,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;IAI7B,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAOjC,cAAc,CAAC,EAAE,MAAM,CAAC;IAIxB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAIhB,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAoD3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../src/FormControl/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,oBAAY,gBAAgB,GAAG;IAI7B,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;IAI7B,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAOjC,cAAc,CAAC,EAAE,MAAM,CAAC;IAIxB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAIhB,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAmD3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
package/index.es.js CHANGED
@@ -5003,11 +5003,11 @@ var FormControl = function (_a) {
5003
5003
  typeof labelProp === 'string' ? (e.createElement(FormLabel, { htmlFor: htmlFor, disabled: disabled }, labelProp)) : (labelProp);
5004
5004
  }
5005
5005
  return (e.createElement("div", { className: "ods-form-control__root" },
5006
- e.createElement("div", { className: "ods-form-control__header" },
5007
- e.createElement("div", { className: "ods-form-control__label" }, label),
5008
- tooltipMessage ? (e.createElement("div", { "aria-label": tooltipMessage, className: "ods-form-control__icon ods-tooltip", "data-tooltip-pos": "up-left" },
5006
+ (labelProp || tooltipMessage) && (e.createElement("div", { className: "ods-form-control__header" },
5007
+ labelProp && e.createElement("div", { className: "ods-form-control__label" }, label),
5008
+ tooltipMessage && (e.createElement("div", { "aria-label": tooltipMessage, className: "ods-form-control__icon ods-tooltip", "data-tooltip-pos": "up-left" },
5009
5009
  e.createElement(Er, { size: 16, color: "#B6B9CC" }),
5010
- ' ')) : (e.createElement(e.Fragment, null))),
5010
+ ' ')))),
5011
5011
  e.createElement("div", { className: classNames('ods-form-control__element') }, children),
5012
5012
  helperText && (e.createElement("p", { className: classNames('ods-form-control__helper-text', error && 'ods-form-control__helper-text--error', disabled && 'ods-form-control__helper-text--disabled') }, helperText))));
5013
5013
  };