@synerise/ds-input 1.7.14 → 1.8.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,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.8.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@1.8.0...@synerise/ds-input@1.8.1) (2026-08-14)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-input
9
+
10
+ # [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)
11
+
12
+ ### Features
13
+
14
+ - **input:** add 'none' option to InputGroup growItem ([d8b9089](https://github.com/synerise/synerise-design/commit/d8b908923093586f2d8ceb3e85a039217fe10dbb))
15
+
6
16
  ## [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)
7
17
 
8
18
  ### Bug Fixes
@@ -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>;
@@ -21,8 +21,9 @@ const InputGroupWrapper = /* @__PURE__ */ styled.div.withConfig({
21
21
  displayName: "InputGroupstyles__InputGroupWrapper",
22
22
  componentId: "sc-1cn2cc5-1"
23
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";
24
25
  const growChild = props.$growItem === "first" ? "first-child" : "last-child";
25
- 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);
26
27
  });
27
28
  export {
28
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/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ export type { TextareaProps } from './TextArea.types';
9
9
  export type { RawTextAreaProps } from './Textarea/Textarea.types';
10
10
  export type { InputMultivalueProps } from './InputMultivalue/InputMultivalue.types';
11
11
  export * as InputStyles from './Input.styles';
12
- export type { BaseProps, EnhancedProps, InputProps, AutoResizeProp, StyledInput, } from './Input.types';
12
+ export type { BaseProps, EnhancedProps, InputProps, InputSize, AutoResizeProp, StyledInput, } from './Input.types';
13
13
  export { default as AutosizeInput } from './AutosizeInput/AutosizeInput';
14
14
  export type { AutosizeInputProps } from './AutosizeInput/AutosizeInput.types';
15
15
  export { useAutosizeWidth, SIZER_STYLE, } from './AutosizeInput/useAutosizeWidth';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-input",
3
- "version": "1.7.14",
3
+ "version": "1.8.1",
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": "018414e0d7ffd102a07f8aa35fa2e2d3d4ed19e2"
62
+ "gitHead": "fbaec1b62812804ecab17db27553c2071c7bad49"
63
63
  }