@synerise/ds-factors 2.0.5 → 2.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@
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
+ ## [2.1.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-factors@2.1.0...@synerise/ds-factors@2.1.1) (2026-09-18)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-factors
9
+
10
+
11
+
12
+
13
+
14
+ # [2.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-factors@2.0.5...@synerise/ds-factors@2.1.0) (2026-09-16)
15
+
16
+ ### Features
17
+
18
+ - **list-item:** add content-fitting size="auto" ([e269f0a](https://github.com/Synerise/synerise-design/commit/e269f0a48ca7472f4766a50a957e22d7988c5e13))
19
+
6
20
  ## [2.0.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-factors@2.0.4...@synerise/ds-factors@2.0.5) (2026-09-10)
7
21
 
8
22
  **Note:** Version bump only for package @synerise/ds-factors
@@ -1,9 +1,17 @@
1
1
  import { CSSProperties } from 'react';
2
+ import { ItemSize } from '@synerise/ds-list-item';
2
3
  export declare const LIST_STYLE: CSSProperties;
3
4
  export declare const NO_GROUP_NAME = "NO_GROUP_NAME";
4
- export declare const ITEM_SIZE: {
5
- large: number;
6
- default: number;
5
+ /**
6
+ * Row height estimates. Typed exhaustively over `ItemSize` on purpose: a new size must fail
7
+ * the build here rather than silently yield an undefined row offset. `auto` has no fixed
8
+ * height — 32 is its `min-height` floor.
9
+ *
10
+ * `ParameterDropdown`'s `getItemSize` only ever reads the `default` entry, so this dropdown
11
+ * does not honour a per-item `size` at all — not `large` either. That is a pre-existing gap,
12
+ * not something `auto` introduced.
13
+ */
14
+ export declare const ITEM_SIZE: Record<ItemSize, number> & {
7
15
  title: number;
8
16
  };
9
17
  export declare const DROPDOWN_HEIGHT = 420;
@@ -7,6 +7,7 @@ const NO_GROUP_NAME = "NO_GROUP_NAME";
7
7
  const ITEM_SIZE = {
8
8
  [itemSizes.LARGE]: 50,
9
9
  [itemSizes.DEFAULT]: 32,
10
+ [itemSizes.AUTO]: 32,
10
11
  title: 32
11
12
  };
12
13
  const DROPDOWN_HEIGHT = 420;
@@ -11,7 +11,7 @@ const useGroups = (items, groups, renderEmptyGroups) => {
11
11
  if (renderEmptyGroups) {
12
12
  return groups;
13
13
  }
14
- const groupIds = groups?.map((group) => group.subGroups || group).flat().filter((group, index) => !(group.allowEmpty || index === 0)).map((group) => group.id);
14
+ const groupIds = groups?.flatMap((group) => group.subGroups || group).filter((group, index) => !(group.allowEmpty || index === 0)).map((group) => group.id);
15
15
  const groupsToSkip = groupIds?.filter((groupId) => !items?.find((item) => item.groupId === groupId));
16
16
  const cleanGroups = groups?.map((group) => {
17
17
  if (group.subGroups && group.subGroups.length) {
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { default, FACTOR_TYPE_MAPPING as factorTypes } from './Factors';
2
- export { ALL_FACTOR_TYPES, type FactorType, type DefinedFactorTypes, type FactorsProps, type FactorsTexts, type ParameterValueType, type ParameterItem, type ParameterGroup, type FactorValueComponentProps,
2
+ export { ALL_FACTOR_TYPES, type DefinedFactorTypes, type DynamicKeyValueType, type FactorsProps, type FactorsTexts, type FactorType, type FactorTypeSelectorProps, type FactorValueComponentProps,
3
3
  /**
4
4
  * @deprecated, use FactorValueComponentProps type instead
5
5
  */
6
- type FactorValueComponentProps as InputProps, type FactorValueType, type FactorValueProps, type DynamicKeyValueType, type FormulaValueType, type FactorTypeSelectorProps, type FormulaModalProps, type TextModalProps, type ParameterDropdownProps, type SelectedFactorType, } from './Factors.types';
6
+ type FactorValueComponentProps as InputProps, type FactorValueProps, type FactorValueType, type FormulaModalProps, type FormulaValueType, type ParameterDropdownProps, type ParameterGroup, type ParameterItem, type ParameterValueType, type SelectedFactorType, type TextModalProps, } from './Factors.types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-factors",
3
- "version": "2.0.5",
3
+ "version": "2.1.1",
4
4
  "description": "Factors UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -42,34 +42,34 @@
42
42
  ],
43
43
  "types": "dist/index.d.ts",
44
44
  "dependencies": {
45
- "@synerise/ds-autocomplete": "^2.0.3",
46
- "@synerise/ds-badge": "^2.0.2",
47
- "@synerise/ds-button": "^2.0.2",
48
- "@synerise/ds-button-group": "^2.0.2",
49
- "@synerise/ds-collector": "^2.0.3",
50
- "@synerise/ds-date-picker": "^2.1.0",
51
- "@synerise/ds-date-range-picker": "^2.1.0",
52
- "@synerise/ds-divider": "^2.0.2",
53
- "@synerise/ds-dropdown": "^2.0.3",
54
- "@synerise/ds-empty-states": "^2.0.1",
55
- "@synerise/ds-icon": "^2.1.0",
56
- "@synerise/ds-information-card": "^2.0.5",
57
- "@synerise/ds-inline-alert": "^2.0.1",
58
- "@synerise/ds-inline-edit": "^2.0.3",
59
- "@synerise/ds-input": "^2.0.3",
60
- "@synerise/ds-input-number": "^2.0.3",
61
- "@synerise/ds-list-item": "^2.0.2",
62
- "@synerise/ds-modal": "^2.0.3",
63
- "@synerise/ds-result": "^2.0.2",
64
- "@synerise/ds-scrollbar": "^2.0.1",
65
- "@synerise/ds-search": "^2.0.2",
66
- "@synerise/ds-select": "^2.0.4",
67
- "@synerise/ds-short-cuts": "^2.0.2",
68
- "@synerise/ds-skeleton": "^2.0.2",
69
- "@synerise/ds-tabs": "^2.0.3",
70
- "@synerise/ds-tag": "^2.0.2",
71
- "@synerise/ds-tooltip": "^2.0.2",
72
- "@synerise/ds-utils": "^2.0.0",
45
+ "@synerise/ds-autocomplete": "^2.0.5",
46
+ "@synerise/ds-badge": "^2.0.4",
47
+ "@synerise/ds-button": "^2.0.4",
48
+ "@synerise/ds-button-group": "^2.0.4",
49
+ "@synerise/ds-collector": "^2.0.5",
50
+ "@synerise/ds-date-picker": "^2.1.2",
51
+ "@synerise/ds-date-range-picker": "^2.1.2",
52
+ "@synerise/ds-divider": "^2.0.4",
53
+ "@synerise/ds-dropdown": "^2.1.1",
54
+ "@synerise/ds-empty-states": "^2.0.3",
55
+ "@synerise/ds-icon": "^2.1.2",
56
+ "@synerise/ds-information-card": "^2.0.7",
57
+ "@synerise/ds-inline-alert": "^2.0.3",
58
+ "@synerise/ds-inline-edit": "^2.0.5",
59
+ "@synerise/ds-input": "^2.0.5",
60
+ "@synerise/ds-input-number": "^2.0.5",
61
+ "@synerise/ds-list-item": "^2.1.1",
62
+ "@synerise/ds-modal": "^2.0.5",
63
+ "@synerise/ds-result": "^2.0.4",
64
+ "@synerise/ds-scrollbar": "^2.0.3",
65
+ "@synerise/ds-search": "^2.0.4",
66
+ "@synerise/ds-select": "^2.1.1",
67
+ "@synerise/ds-short-cuts": "^2.0.4",
68
+ "@synerise/ds-skeleton": "^2.0.4",
69
+ "@synerise/ds-tabs": "^2.0.5",
70
+ "@synerise/ds-tag": "^2.0.4",
71
+ "@synerise/ds-tooltip": "^2.0.4",
72
+ "@synerise/ds-utils": "^2.1.1",
73
73
  "lodash.merge": "^4.6.2",
74
74
  "react-window": "^1.8.11",
75
75
  "uuid": "^8.3.2"
@@ -85,5 +85,5 @@
85
85
  "styled-components": "^5.3.3",
86
86
  "vitest": "4"
87
87
  },
88
- "gitHead": "a49acd96b6f71f5617548ae5ce6126cb9b0985dc"
88
+ "gitHead": "b1d905617dfb186b5d80966d63ce55bf29df743d"
89
89
  }