@synerise/ds-typography 0.14.0 → 0.14.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
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
+ ## [0.14.2](https://github.com/synerise/synerise-design/compare/@synerise/ds-typography@0.14.1...@synerise/ds-typography@0.14.2) (2024-01-24)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **typography:** pass antd props to component ([e557767](https://github.com/synerise/synerise-design/commit/e557767b6ab68487a379df438c288e78b32a85f1))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.14.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-typography@0.14.0...@synerise/ds-typography@0.14.1) (2023-12-11)
18
+
19
+ **Note:** Version bump only for package @synerise/ds-typography
20
+
21
+
22
+
23
+
24
+
6
25
  # [0.14.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-typography@0.13.3...@synerise/ds-typography@0.14.0) (2023-12-06)
7
26
 
8
27
 
package/dist/Title.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { Props } from './Title.types';
2
- declare const Title: ({ level, withoutMargin, children, className, ellipsis }: Props) => JSX.Element;
2
+ declare const Title: ({ level, withoutMargin, children, className, ellipsis, ...antdProps }: Props) => JSX.Element;
3
3
  export default Title;
package/dist/Title.js CHANGED
@@ -1,3 +1,9 @@
1
+ var _excluded = ["level", "withoutMargin", "children", "className", "ellipsis"];
2
+
3
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+
5
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
+
1
7
  import * as React from 'react';
2
8
  import classNames from 'classnames';
3
9
  import { H1, H2, H3, H4, H5, H6, H7 } from './CommonElements';
@@ -18,13 +24,15 @@ var Title = function Title(_ref) {
18
24
  withoutMargin = _ref.withoutMargin,
19
25
  children = _ref.children,
20
26
  className = _ref.className,
21
- ellipsis = _ref.ellipsis;
27
+ ellipsis = _ref.ellipsis,
28
+ antdProps = _objectWithoutPropertiesLoose(_ref, _excluded);
29
+
22
30
  var TitleElement = StyledElements[level];
23
31
  var elementClassName = classNames('ds-title', className);
24
- var content = /*#__PURE__*/React.createElement(TitleElement, {
32
+ var content = /*#__PURE__*/React.createElement(TitleElement, _extends({}, antdProps, {
25
33
  className: elementClassName,
26
34
  withoutMargin: Boolean(withoutMargin)
27
- }, children);
35
+ }), children);
28
36
 
29
37
  if (ellipsis === undefined) {
30
38
  return content;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-typography",
3
- "version": "0.14.0",
3
+ "version": "0.14.2",
4
4
  "description": "Typography UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -18,7 +18,7 @@
18
18
  "scripts": {
19
19
  "build": "npm run build:js && npm run build:css && npm run defs",
20
20
  "build:css": "node ../../../scripts/style/less.js",
21
- "build:js": "babel --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
21
+ "build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
22
22
  "build:watch": "npm run build:js -- --watch",
23
23
  "defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
24
24
  "pack:ci": "npm pack --pack-destination ../../portal/storybook-static/static",
@@ -46,5 +46,5 @@
46
46
  "devDependencies": {
47
47
  "enzyme": "3.11.0"
48
48
  },
49
- "gitHead": "b5c243a1f88351e9bc0185d35fc35ea3673dab89"
49
+ "gitHead": "9e7d97fc5f8a9fd938b38e9d1678e050e0478e0e"
50
50
  }