@synerise/ds-input 1.6.11 → 1.7.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.7.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@1.7.0...@synerise/ds-input@1.7.1) (2026-04-21)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-input
9
+
10
+ # [1.7.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@1.6.11...@synerise/ds-input@1.7.0) (2026-04-10)
11
+
12
+ ### Features
13
+
14
+ - **table-new:** initial commit ([a524cb9](https://github.com/synerise/synerise-design/commit/a524cb9cfa464921edb9531ccf002dcc25a3b105))
15
+
6
16
  ## [1.6.11](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@1.6.10...@synerise/ds-input@1.6.11) (2026-04-01)
7
17
 
8
18
  **Note:** Version bump only for package @synerise/ds-input
@@ -122,7 +122,7 @@ const AutosizeInput = forwardRef(({
122
122
  return /* @__PURE__ */ jsxs("div", { ref: wrapperRef, className: wrapperClassName, style: wrapperStyle, "data-testid": "wrapper", children: [
123
123
  /* @__PURE__ */ jsx("div", { style: sizerStyle, ref: sizerRef, "data-testid": "sizer", children: usedValue }),
124
124
  children,
125
- placeholder ? /* @__PURE__ */ jsx("div", { ref: placeholderSizerRef, style: sizerStyle, "data-testid": "placeholder-sizer", children: placeholder }) : null
125
+ placeholder && /* @__PURE__ */ jsx("div", { ref: placeholderSizerRef, style: sizerStyle, "data-testid": "placeholder-sizer", children: placeholder })
126
126
  ] });
127
127
  });
128
128
  export {
package/dist/Input.js CHANGED
@@ -157,7 +157,7 @@ const Input = forwardRef(({
157
157
  counterLimit,
158
158
  charCount
159
159
  });
160
- const autoSizedComponent = /* @__PURE__ */ jsx(AutosizeWrapper, { ...autoResizeProps, preAutosize, onAutosize, value: antdInputProps.value, autoResize: !!autoResize, children: /* @__PURE__ */ jsx(AntdInput, { autoResize, "data-testid": "input-autosize-input", ...antdInputProps, className: hasErrorMessage || error ? "error" : void 0, addonBefore: !!prefixel && /* @__PURE__ */ jsx(AddonWrapper, { className: "ds-input-prefix", height: inputAddonHeight - VERTICAL_BORDER_OFFSET, children: prefixel }), addonAfter: !!suffixel && /* @__PURE__ */ jsx(AddonWrapper, { className: "ds-input-suffix", height: inputAddonHeight - VERTICAL_BORDER_OFFSET, children: suffixel }), error: hasErrorMessage || error, onChange: handleChange, value: antdInputProps.value, autoComplete: "off", id, ref: inputRef }) });
160
+ const autoSizedComponent = /* @__PURE__ */ jsx(AutosizeWrapper, { ...autoResizeProps, preAutosize, onAutosize, value: antdInputProps.value, autoResize: !!autoResize, placeholder: antdInputProps.placeholder, children: /* @__PURE__ */ jsx(AntdInput, { autoResize, "data-testid": "input-autosize-input", ...antdInputProps, className: hasErrorMessage || error ? "error" : void 0, addonBefore: !!prefixel && /* @__PURE__ */ jsx(AddonWrapper, { className: "ds-input-prefix", height: inputAddonHeight - VERTICAL_BORDER_OFFSET, children: prefixel }), addonAfter: !!suffixel && /* @__PURE__ */ jsx(AddonWrapper, { className: "ds-input-suffix", height: inputAddonHeight - VERTICAL_BORDER_OFFSET, children: suffixel }), error: hasErrorMessage || error, onChange: handleChange, value: antdInputProps.value, autoComplete: "off", id, ref: inputRef }) });
161
161
  return /* @__PURE__ */ jsx(OuterWrapper, { ref: mergedRef, autoResize, className, resetMargin, iconCount, children: /* @__PURE__ */ jsx(FormField, { label, rightSide, id, tooltip, tooltipConfig, description, errorText, children: /* @__PURE__ */ jsxs(InputWrapper, { iconCount, children: [
162
162
  /* @__PURE__ */ jsx(ElementIcons, { handleIconsClick, disabled: antdInputProps.disabled, icon1, icon2, icon1Tooltip, icon2Tooltip, className, type: "input", expandable, overflown, handleExpandIconClick, expandableTooltip }),
163
163
  expandable ? /* @__PURE__ */ jsx(ExpandableWrapper, { onChange: handleTextareaChange, onBlur: handleExpandableTextareaBlur, ref: expandableTextAreaRef, value: antdInputProps.value, expanded, children: autoSizedComponent }) : autoSizedComponent
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-input",
3
- "version": "1.6.11",
3
+ "version": "1.7.1",
4
4
  "description": "Input UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -17,14 +17,11 @@
17
17
  },
18
18
  "scripts": {
19
19
  "build": "vite build",
20
- "build:css": "node ../../../scripts/style/less.js",
21
- "build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
22
20
  "build:watch": "vite build --watch",
23
- "defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
24
21
  "pack:ci": "pnpm pack --pack-destination ../../storybook/storybook-static/static",
25
22
  "prepublish": "pnpm run build",
26
- "test": "jest",
27
- "test:watch": "pnpm run test -- --watchAll",
23
+ "test": "vitest run",
24
+ "test:watch": "vitest",
28
25
  "types": "tsc --noEmit",
29
26
  "check:circular-dependencies": "madge --circular --extensions ts,tsx,js,jsx --ts-config tsconfig.json src/ --exclude '/dist/'",
30
27
  "upgrade:ds": "ncu -f \"@synerise/ds-*\" -u"
@@ -36,11 +33,11 @@
36
33
  "types": "dist/index.d.ts",
37
34
  "dependencies": {
38
35
  "@floating-ui/react": "^0.27.16",
39
- "@synerise/ds-form-field": "^1.3.11",
40
- "@synerise/ds-icon": "^1.15.2",
41
- "@synerise/ds-scrollbar": "^1.2.18",
42
- "@synerise/ds-tooltip": "^1.4.11",
43
- "@synerise/ds-utils": "^1.7.1",
36
+ "@synerise/ds-form-field": "^1.3.13",
37
+ "@synerise/ds-icon": "^1.16.0",
38
+ "@synerise/ds-scrollbar": "^1.2.20",
39
+ "@synerise/ds-tooltip": "^1.4.13",
40
+ "@synerise/ds-utils": "^1.8.0",
44
41
  "classnames": "^2.3.2",
45
42
  "csstype": "^2.6.9",
46
43
  "uuid": "^8.3.2"
@@ -53,7 +50,8 @@
53
50
  "antd": "4.24.16",
54
51
  "react": ">=16.9.0 <= 18.3.1",
55
52
  "react-intl": ">= 3.12.0 <= 6.8",
56
- "styled-components": "^5.3.3"
53
+ "styled-components": "^5.3.3",
54
+ "vitest": "4"
57
55
  },
58
- "gitHead": "c2384982c3533a31eb5e5e0408f8dcecb2b0f399"
56
+ "gitHead": "16b12f75e97d9c416a5cb9ca38864e97ef4f1530"
59
57
  }