@synerise/ds-input 1.7.13 → 1.8.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,18 @@
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.8.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@1.7.14...@synerise/ds-input@1.8.0) (2026-08-11)
7
+
8
+ ### Features
9
+
10
+ - **input:** add 'none' option to InputGroup growItem ([d8b9089](https://github.com/synerise/synerise-design/commit/d8b908923093586f2d8ceb3e85a039217fe10dbb))
11
+
12
+ ## [1.7.14](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@1.7.13...@synerise/ds-input@1.7.14) (2026-07-24)
13
+
14
+ ### Bug Fixes
15
+
16
+ - **input:** square ds-select corners inside a compact InputGroup ([08cb58c](https://github.com/synerise/synerise-design/commit/08cb58cd7977702c1e31b88c6690db6a7362b5a5))
17
+
6
18
  ## [1.7.13](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@1.7.12...@synerise/ds-input@1.7.13) (2026-07-23)
7
19
 
8
20
  **Note:** Version bump only for package @synerise/ds-input
@@ -1,5 +1,5 @@
1
1
  export declare const InputGroupItem: import('styled-components').StyledComponent<"div", any, {}, never>;
2
2
  export declare const InputGroupWrapper: import('styled-components').StyledComponent<"div", any, {
3
3
  compact?: boolean;
4
- $growItem?: "first" | "last";
4
+ $growItem?: "first" | "last" | "none";
5
5
  }, never>;
@@ -3,7 +3,17 @@ const InputGroupItem = /* @__PURE__ */ styled.div.withConfig({
3
3
  displayName: "InputGroupstyles__InputGroupItem",
4
4
  componentId: "sc-1cn2cc5-0"
5
5
  })(["min-width:0;"]);
6
- const CONTROLS = ["input", "textarea", "button", ".ds-input-number", ".ant-select-selector", ".ds-button"];
6
+ const CONTROLS = [
7
+ "input",
8
+ "textarea",
9
+ "button",
10
+ ".ds-input-number",
11
+ ".ds-select",
12
+ // DS-native select trigger box (post-antd rewrite)
13
+ ".ant-select-selector",
14
+ // legacy antd select, still rendered inside ds-table
15
+ ".ds-button"
16
+ ];
7
17
  const controlsUnder = (itemSelector) => CONTROLS.map((control) => `${itemSelector} ${control}`).join(", ");
8
18
  const notLastControls = controlsUnder(`${InputGroupItem}:not(:only-child):not(:last-child)`);
9
19
  const lastControls = controlsUnder(`${InputGroupItem}:not(:only-child):last-child`);
@@ -11,8 +21,9 @@ const InputGroupWrapper = /* @__PURE__ */ styled.div.withConfig({
11
21
  displayName: "InputGroupstyles__InputGroupWrapper",
12
22
  componentId: "sc-1cn2cc5-1"
13
23
  })(["&&&{display:flex;min-width:0;", " ", " .ds-select-container{margin-bottom:0;}", "}"], (props) => props.compact ? "" : "align-items: stretch;", InputGroupItem, (props) => {
24
+ const isNone = props.$growItem === "none";
14
25
  const growChild = props.$growItem === "first" ? "first-child" : "last-child";
15
- return props.compact ? css(["", ":only-child{flex-grow:1;}", ":not(:only-child):not(:last-child){margin-right:-1px;}", ":not(:only-child):", "{flex:auto;}", ":not(:only-child):not(:", ") .ds-input-number{width:90px;}", "{border-top-right-radius:0;border-bottom-right-radius:0;}", "{border-top-left-radius:0;border-bottom-left-radius:0;}"], InputGroupItem, InputGroupItem, InputGroupItem, growChild, InputGroupItem, growChild, notLastControls, lastControls) : css(["", ":", "{flex-grow:1;}", ":not(:last-child){margin-right:12px;}"], InputGroupItem, growChild, InputGroupItem);
26
+ return props.compact ? css(["", ":only-child{flex-grow:1;}", ":not(:only-child):not(:last-child){margin-right:-1px;}", " ", "{border-top-right-radius:0;border-bottom-right-radius:0;}", "{border-top-left-radius:0;border-bottom-left-radius:0;}"], InputGroupItem, InputGroupItem, !isNone && css(["", ":not(:only-child):", "{flex:auto;}", ":not(:only-child):not(:", ") .ds-input-number{width:90px;}"], InputGroupItem, growChild, InputGroupItem, growChild), notLastControls, lastControls) : css(["", " ", ":not(:last-child){margin-right:12px;}"], !isNone && css(["", ":", "{flex-grow:1;}"], InputGroupItem, growChild), InputGroupItem);
16
27
  });
17
28
  export {
18
29
  InputGroupItem,
@@ -13,8 +13,11 @@ export type Props = {
13
13
  * leading control (e.g. a Select) sits left and the input fills the rest. Use
14
14
  * `'first'` for the flipped layout: the leading control stretches while a
15
15
  * fixed-width trailing control (e.g. a ColorPicker) stays compact on the right.
16
+ * Use `'none'` when every control carries its own width and nothing should
17
+ * stretch — the group stays compact and left-aligned (e.g. an icon + name +
18
+ * value + unit row).
16
19
  */
17
- growItem?: 'first' | 'last';
20
+ growItem?: 'first' | 'last' | 'none';
18
21
  /**
19
22
  * @deprecated Use `errorText` (from `FormFieldCommonProps`) instead. This
20
23
  * antd-proprietary array of error strings is kept only for backward
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-input",
3
- "version": "1.7.13",
3
+ "version": "1.8.0",
4
4
  "description": "Input UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -40,10 +40,10 @@
40
40
  "types": "dist/index.d.ts",
41
41
  "dependencies": {
42
42
  "@floating-ui/react": "^0.27.16",
43
- "@synerise/ds-form-field": "^1.3.24",
43
+ "@synerise/ds-form-field": "^1.3.25",
44
44
  "@synerise/ds-icon": "^1.18.5",
45
45
  "@synerise/ds-scrollbar": "^1.5.2",
46
- "@synerise/ds-tooltip": "^1.5.4",
46
+ "@synerise/ds-tooltip": "^1.5.5",
47
47
  "@synerise/ds-utils": "^1.10.2",
48
48
  "classnames": "^2.3.2",
49
49
  "csstype": "^2.6.9",
@@ -59,5 +59,5 @@
59
59
  "styled-components": "^5.3.3",
60
60
  "vitest": "4"
61
61
  },
62
- "gitHead": "d0a43cc43d8528a36f105aceea52ab470edb71d9"
62
+ "gitHead": "6df24ed12cd5f276d8eccde730591807982e3385"
63
63
  }