@synerise/ds-estimation 1.4.8 → 1.4.10

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,16 @@
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.4.10](https://github.com/Synerise/synerise-design/compare/@synerise/ds-estimation@1.4.9...@synerise/ds-estimation@1.4.10) (2026-03-20)
7
+
8
+ ### Bug Fixes
9
+
10
+ - panel regressions ([c88aad5](https://github.com/Synerise/synerise-design/commit/c88aad5c4584a172c41c50dd8d64e5f86784de65))
11
+
12
+ ## [1.4.9](https://github.com/Synerise/synerise-design/compare/@synerise/ds-estimation@1.4.8...@synerise/ds-estimation@1.4.9) (2026-03-09)
13
+
14
+ **Note:** Version bump only for package @synerise/ds-estimation
15
+
6
16
  ## [1.4.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-estimation@1.4.7...@synerise/ds-estimation@1.4.8) (2026-02-26)
7
17
 
8
18
  **Note:** Version bump only for package @synerise/ds-estimation
package/README.md CHANGED
@@ -25,16 +25,17 @@ import Estimation from '@synerise/ds-estimation'
25
25
  <iframe src="/storybook-static/iframe.html?id=components-estimation--default"></iframe>
26
26
 
27
27
  ## API
28
- | Property | Description | Type | Default | |
29
- |-------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------|---------|---|
30
- | value | Main estimation value | `ReactNode` | - | |
31
- | label | Label above the field field | `ReactNode` | - | |
32
- | tooltip | Label tooltip content | `ReactNode` | - | |
33
- | tooltipConfig | Configuration for tooltip, see ds-tooltip | `TooltipConfig` | - | |
34
- | total | Top right corner value (number or formatted content). | `number` | - | |
35
- | isLoading | Renders loading state (skeletons). Can be boolean or object with `total` and `progressBar` flags in order to render skeletons in place of those components | `boolean \ { total?: boolean; progressBar?: boolean }` | - | |
36
- | errorMessage | Renders an inline alert in footer with this message | `ReactNode` | - | |
37
- | footerButtons | Custom buttons to render in footer right side | `ReactNode` | - | |
38
- | texts | Translations to overwrite DS defaults (`calculated`, `loading`) | `Partial<EstimationTexts>` | - | |
39
- | calculatedDate | Renders "calculated date" as relative (if recent) or absolute date using FormattedDate. Alternatively provide any ReactNode to render as calculated date | `Date \ ReactNode` | - | |
40
- | progressBarValues | Render multivalue progressbar. Provide label for each entry to render a legend below multivalue bar | `EstimationProgressValue[]` | - | |
28
+
29
+ | Property | Description | Type | Default |
30
+ |-------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------|---------|
31
+ | value | Main estimation value | `ReactNode` | - |
32
+ | label | Label above the field | `ReactNode` | - |
33
+ | tooltip | Label tooltip content | `ReactNode` | - |
34
+ | tooltipConfig | Configuration for tooltip, see ds-tooltip | `TooltipConfig` | - |
35
+ | total | Top right corner value (preformatted content) | `ReactNode` | - |
36
+ | isLoading | Renders loading state. `true` = full skeleton; object with `total`/`progressBar` flags for granular control | `boolean \| { total?: boolean; progressBar?: boolean }` | - |
37
+ | errorMessage | Renders an inline alert in footer with this message | `ReactNode` | - |
38
+ | footerButtons | Custom buttons to render in footer right side | `ReactNode` | - |
39
+ | texts | Translations to overwrite DS defaults (`calculated`, `loading`) | `Partial<EstimationTexts>` | - |
40
+ | calculatedDate | `Date` → rendered as relative time; any other `ReactNode` → rendered as-is | `Date \| ReactNode` | - |
41
+ | progressBarValues | Render multivalue progressbar. Provide `label` for each entry to render a colour-dot legend below the bar | `EstimationProgressValue[]` | - |
@@ -1,9 +1,8 @@
1
1
  var _excluded = ["value", "tooltip", "tooltipConfig", "label", "total", "footerButtons", "isLoading", "progressBarValues", "errorMessage", "texts", "calculatedDate"];
2
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
2
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
3
  import React from 'react';
5
- import { FormFieldLabel } from '@synerise/ds-form-field';
6
4
  import InlineAlert from '@synerise/ds-inline-alert';
5
+ import Panel from '@synerise/ds-panel';
7
6
  import * as S from './Estimation.styles';
8
7
  import { EstimationCalculatedDate } from './components/EstimationCalculated';
9
8
  import { EstimationProgressBar } from './components/EstimationProgressBar';
@@ -35,16 +34,13 @@ var Estimation = function Estimation(_ref) {
35
34
  var showProgressBarSkeleton = loadingParts == null ? void 0 : loadingParts.progressBar;
36
35
  var shouldRenderTotal = total !== undefined && (!isLoading || showTotalSkeleton);
37
36
  var shouldRenderFooterLeftSide = Boolean(isLoading || errorMessage || calculatedDate);
38
- return /*#__PURE__*/React.createElement(S.EstimationWrapper, _extends({
39
- isLoading: !!isLoading
40
- }, rest), label && /*#__PURE__*/React.createElement(FormFieldLabel, {
37
+ return /*#__PURE__*/React.createElement(S.EstimationWrapper, rest, /*#__PURE__*/React.createElement(Panel, {
38
+ p: 16,
39
+ pb: 12,
41
40
  label: label,
42
41
  tooltip: tooltip,
43
42
  tooltipConfig: tooltipConfig
44
- }), /*#__PURE__*/React.createElement(S.EstimationContent, {
45
- p: 16,
46
- pb: 12
47
- }, /*#__PURE__*/React.createElement(S.EstimationHead, null, /*#__PURE__*/React.createElement(S.EstimationLeftSide, null, isLoading ? /*#__PURE__*/React.createElement(S.Skeleton, {
43
+ }, /*#__PURE__*/React.createElement(S.EstimationInner, null, /*#__PURE__*/React.createElement(S.EstimationHead, null, /*#__PURE__*/React.createElement(S.EstimationLeftSide, null, isLoading ? /*#__PURE__*/React.createElement(S.Skeleton, {
48
44
  numberOfSkeletons: 1,
49
45
  size: "L",
50
46
  width: "L",
@@ -62,6 +58,6 @@ var Estimation = function Estimation(_ref) {
62
58
  dashed: true
63
59
  }), /*#__PURE__*/React.createElement(S.EstimationFooter, {
64
60
  "data-testid": "estimation-footer"
65
- }, /*#__PURE__*/React.createElement(S.EstimationCalculated, null, footerLeftSide), footerButtons && /*#__PURE__*/React.createElement(S.EstimationRightSide, null, footerButtons)))));
61
+ }, /*#__PURE__*/React.createElement(S.EstimationCalculated, null, footerLeftSide), footerButtons && /*#__PURE__*/React.createElement(S.EstimationRightSide, null, footerButtons))))));
66
62
  };
67
63
  export default Estimation;
@@ -3,11 +3,9 @@ export declare const Skeleton: import("styled-components").StyledComponent<({ si
3
3
  }, never>;
4
4
  export declare const EstimationDivider: import("styled-components").StyledComponent<(props: import("@synerise/ds-divider").DividerProps) => React.JSX.Element, any, {}, never>;
5
5
  export declare const EstimationTitle: import("styled-components").StyledComponent<({ level, withoutMargin, children, className, ellipsis, ...antdProps }: import("@synerise/ds-typography/dist/Title.types").Props) => React.JSX.Element, any, {}, never>;
6
- export declare const EstimationWrapper: import("styled-components").StyledComponent<"div", any, {
7
- isLoading?: boolean;
8
- }, never>;
6
+ export declare const EstimationWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
9
7
  export declare const Bold: import("styled-components").StyledComponent<"span", any, {}, never>;
10
- export declare const EstimationContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("@synerise/ds-panel").PanelProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
8
+ export declare const EstimationInner: import("styled-components").StyledComponent<"div", any, {}, never>;
11
9
  export declare const EstimationHead: import("styled-components").StyledComponent<"div", any, {}, never>;
12
10
  export declare const EstimationBody: import("styled-components").StyledComponent<"div", any, {}, never>;
13
11
  export declare const EstimationFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,6 +1,5 @@
1
1
  import styled, { css } from 'styled-components';
2
2
  import Divider from '@synerise/ds-divider';
3
- import Panel from '@synerise/ds-panel';
4
3
  import DSSkeleton from '@synerise/ds-skeleton';
5
4
  import { Title } from '@synerise/ds-typography';
6
5
  var splitStyles = css(["display:flex;align-items:center;justify-content:space-between;"]);
@@ -21,13 +20,13 @@ export var EstimationTitle = styled(Title).withConfig({
21
20
  export var EstimationWrapper = styled.div.withConfig({
22
21
  displayName: "Estimationstyles__EstimationWrapper",
23
22
  componentId: "sc-scc0bk-3"
24
- })(["display:flex;flex-direction:column;gap:8px;"]);
23
+ })([""]);
25
24
  export var Bold = styled.span.withConfig({
26
25
  displayName: "Estimationstyles__Bold",
27
26
  componentId: "sc-scc0bk-4"
28
27
  })(["font-weight:500;"]);
29
- export var EstimationContent = styled(Panel).withConfig({
30
- displayName: "Estimationstyles__EstimationContent",
28
+ export var EstimationInner = styled.div.withConfig({
29
+ displayName: "Estimationstyles__EstimationInner",
31
30
  componentId: "sc-scc0bk-5"
32
31
  })(["display:flex;flex-direction:column;gap:4px;"]);
33
32
  export var EstimationHead = styled.div.withConfig({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-estimation",
3
- "version": "1.4.8",
3
+ "version": "1.4.10",
4
4
  "description": "Estimation UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -35,14 +35,14 @@
35
35
  ],
36
36
  "types": "dist/index.d.ts",
37
37
  "dependencies": {
38
- "@synerise/ds-divider": "^1.2.17",
39
- "@synerise/ds-form-field": "^1.3.7",
40
- "@synerise/ds-inline-alert": "^1.1.13",
41
- "@synerise/ds-panel": "^1.2.1",
42
- "@synerise/ds-progress-bar": "^1.1.39",
43
- "@synerise/ds-skeleton": "^1.0.42",
44
- "@synerise/ds-typography": "^1.1.10",
45
- "@synerise/ds-utils": "^1.6.0"
38
+ "@synerise/ds-divider": "^1.3.1",
39
+ "@synerise/ds-form-field": "^1.3.9",
40
+ "@synerise/ds-inline-alert": "^1.1.14",
41
+ "@synerise/ds-panel": "^1.2.2",
42
+ "@synerise/ds-progress-bar": "^1.2.0",
43
+ "@synerise/ds-skeleton": "^1.0.44",
44
+ "@synerise/ds-typography": "^1.1.12",
45
+ "@synerise/ds-utils": "^1.7.0"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@synerise/ds-core": "*",
@@ -50,5 +50,5 @@
50
50
  "react-intl": ">=3.12.0 <= 6.8",
51
51
  "styled-components": "^5.3.3"
52
52
  },
53
- "gitHead": "4ffbd56e9bf6277c4507efeaf000b66b9bb09781"
53
+ "gitHead": "8efc031fa688c0b87c7b3915bae93546bb63bcac"
54
54
  }