@synerise/ds-input 1.7.4 → 1.7.6

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.6](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@1.7.5...@synerise/ds-input@1.7.6) (2026-05-04)
7
+
8
+ ### Bug Fixes
9
+
10
+ - add exports field to all component packages for correct ESM detection ([6eccfde](https://github.com/synerise/synerise-design/commit/6eccfde8f2dd73c59860793231fbd7bcd61813b4))
11
+
12
+ ## [1.7.5](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@1.7.4...@synerise/ds-input@1.7.5) (2026-04-29)
13
+
14
+ **Note:** Version bump only for package @synerise/ds-input
15
+
6
16
  ## [1.7.4](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@1.7.3...@synerise/ds-input@1.7.4) (2026-04-28)
7
17
 
8
18
  **Note:** Version bump only for package @synerise/ds-input
package/dist/Input.d.ts CHANGED
@@ -17,7 +17,7 @@ export declare const Input: React.ForwardRefExoticComponent<{
17
17
  autoResizeProps?: Partial<Pick<import('./AutosizeInput/AutosizeInput.types').AutosizeInputProps, "placeholderIsMinWidth" | "wrapperClassName" | "wrapperStyle" | "extraWidth">>;
18
18
  expandable?: boolean;
19
19
  expandableTooltip?: React.ReactNode;
20
- } & Omit<import('@synerise/ds-form-field').ContentAboveProps, "id" | "rightSide"> & import('@synerise/ds-form-field').ContentBelowProps & import('antd/lib/input').InputProps & React.RefAttributes<HTMLDivElement>>;
20
+ } & Omit<import('@synerise/ds-form-field').ContentAboveProps, "id" | "rightSide"> & import('@synerise/ds-form-field').ContentBelowProps & import('antd').InputProps & React.RefAttributes<HTMLDivElement>>;
21
21
  export declare const RawInput: (props: InputProps) => React.JSX.Element;
22
22
  export { default as InputGroup } from './InputGroup';
23
23
  export { default as InputMultivalue } from './InputMultivalue/InputMultivalue';
@@ -1,5 +1,5 @@
1
+ import { InputProps, InputRef } from 'antd';
1
2
  import { SizeType } from 'antd/es/config-provider/SizeContext';
2
- import { InputProps, InputRef } from 'antd/lib/input';
3
3
  import { TextAreaProps, TextAreaRef } from 'antd/lib/input/TextArea';
4
4
  import { default as React } from 'react';
5
5
  import { FlattenSimpleInterpolation } from 'styled-components';
@@ -1,9 +1,11 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import BaseAntInput from "antd/lib/input";
3
- import TextArea from "antd/lib/input/TextArea";
2
+ import { Input } from "antd";
4
3
  import { forwardRef } from "react";
5
4
  import styled, { css } from "styled-components";
6
5
  import { TextareaWrapper } from "./Textarea/Textarea.styles.js";
6
+ const {
7
+ TextArea
8
+ } = Input;
7
9
  const errorInputStyle = (props) => `
8
10
  &&&, && .ant-input {
9
11
  border-color: ${props.theme.palette["red-600"]};
@@ -69,7 +71,7 @@ const IconWrapper = /* @__PURE__ */ styled.div.withConfig({
69
71
  const AntdInput = /* @__PURE__ */ styled(forwardRef(({
70
72
  error,
71
73
  ...props
72
- }, ref) => /* @__PURE__ */ jsx(BaseAntInput, { autoComplete: "off", ...props, ref }))).withConfig({
74
+ }, ref) => /* @__PURE__ */ jsx(Input, { autoComplete: "off", ...props, ref }))).withConfig({
73
75
  displayName: "Inputstyles__AntdInput",
74
76
  componentId: "sc-dc57an-6"
75
77
  })(["", ";&&&{min-height:", "px;transition:all 0.3s,width 0ms,min-width 0ms,max-width 0ms;grid-area:1 / 1;color:", ";z-index:1;&::placeholder{color:", ";}&::-moz-placeholder{line-height:", ";}.ds-input-prefix{border-top-left-radius:3px;border-bottom-left-radius:3px;}.ds-input-suffix{border-top-right-radius:3px;border-bottom-right-radius:3px;}", "}"], (props) => props.error ? errorInputStyle(props) : "", (props) => props.autoResize ? "16" : "32", (props) => props.disabled ? props.theme.palette["grey-500"] : props.theme.palette["grey-700"], (props) => props.theme.palette["grey-500"], (props) => props.size === "large" ? `2.49` : `1.29`, ({
@@ -1,4 +1,5 @@
1
- import { InputProps as AntdInputProps, TextAreaProps as AntdTextAreaProps } from 'antd/lib/input';
1
+ import { InputProps as AntdInputProps } from 'antd';
2
+ import { TextAreaProps as AntdTextAreaProps } from 'antd/lib/input';
2
3
  import { ForwardRefExoticComponent, MutableRefObject, ReactElement, ReactNode, RefAttributes } from 'react';
3
4
  import { StyledComponent } from 'styled-components';
4
5
  import { FormFieldCommonProps } from '@synerise/ds-form-field';
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import BaseAntInput from "antd/lib/input";
2
+ import { Input } from "antd";
3
3
  import { Children } from "react";
4
4
  import FormField from "@synerise/ds-form-field";
5
5
  import { OuterWrapper, ErrorText } from "./Input.styles.js";
@@ -15,7 +15,7 @@ const InputGroup = ({
15
15
  ...antdInputGroupProps
16
16
  }) => {
17
17
  const childrenArray = Children.toArray(children);
18
- return /* @__PURE__ */ jsx(OuterWrapper, { className: "ds-input-group-outer-wrapper", resetMargin, children: /* @__PURE__ */ jsx(FormField, { label, tooltip, tooltipConfig, description, errorText: errors && errors.map((error) => /* @__PURE__ */ jsx(ErrorText, { children: error }, error)), children: /* @__PURE__ */ jsx(BaseAntInput.Group, { ...antdInputGroupProps, children: /* @__PURE__ */ jsx(InputGroupWrapper, { compact: antdInputGroupProps.compact, children: Children.map(childrenArray, (child, index) => /* @__PURE__ */ jsx(InputGroupItem, { className: `ds-input-group-item ds-input-group-item-${index}`, children: child })) }) }) }) });
18
+ return /* @__PURE__ */ jsx(OuterWrapper, { className: "ds-input-group-outer-wrapper", resetMargin, children: /* @__PURE__ */ jsx(FormField, { label, tooltip, tooltipConfig, description, errorText: errors && errors.map((error) => /* @__PURE__ */ jsx(ErrorText, { children: error }, error)), children: /* @__PURE__ */ jsx(Input.Group, { ...antdInputGroupProps, children: /* @__PURE__ */ jsx(InputGroupWrapper, { compact: antdInputGroupProps.compact, children: Children.map(childrenArray, (child, index) => /* @__PURE__ */ jsx(InputGroupItem, { className: `ds-input-group-item ds-input-group-item-${index}`, children: child })) }) }) }) });
19
19
  };
20
20
  export {
21
21
  InputGroup as default
@@ -1,3 +1,3 @@
1
- import { InputRef } from 'antd/lib/input';
1
+ import { InputRef } from 'antd';
2
2
  import { MutableRefObject } from 'react';
3
3
  export declare const useElementFocus: (ref: MutableRefObject<HTMLInputElement | HTMLTextAreaElement | InputRef | null>) => () => void;
@@ -1,4 +1,4 @@
1
- import { InputRef } from 'antd/lib/input';
1
+ import { InputRef } from 'antd';
2
2
  import { MutableRefObject } from 'react';
3
3
  export declare const useInputAddonHeight: (inputRef: MutableRefObject<InputRef | null>) => {
4
4
  inputAddonHeight: number;
package/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export { Input, RawInput, InputGroup, InputMultivalue } from './Input';
6
6
  export { TextArea, RawTextArea } from './TextArea';
7
7
  export { RawTextArea as DSRawTextArea } from './Textarea/Textarea';
8
8
  export type { TextareaProps } from './TextArea.types';
9
+ export type { RawTextAreaProps } from './Textarea/Textarea.types';
9
10
  export type { InputMultivalueProps } from './InputMultivalue/InputMultivalue.types';
10
11
  export * as InputStyles from './Input.styles';
11
12
  export type { BaseProps, EnhancedProps, InputProps, AutoResizeProp, StyledInput, } from './Input.types';
@@ -1,3 +1,3 @@
1
- import { InputProps as AntdInputProps } from 'antd/lib/input';
1
+ import { InputProps as AntdInputProps } from 'antd';
2
2
  import { TextareaProps } from '../TextArea.types';
3
3
  export declare const getCharCount: (value?: AntdInputProps["value"] | TextareaProps["value"], limit?: number) => number;
package/package.json CHANGED
@@ -1,10 +1,19 @@
1
1
  {
2
2
  "name": "@synerise/ds-input",
3
- "version": "1.7.4",
3
+ "version": "1.7.6",
4
4
  "description": "Input UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
7
7
  "main": "dist/index.js",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js",
12
+ "default": "./dist/index.js"
13
+ },
14
+ "./dist/*.js": "./dist/*.js",
15
+ "./dist/*": "./dist/*.js"
16
+ },
8
17
  "files": [
9
18
  "/dist",
10
19
  "CHANGELOG.md",
@@ -33,11 +42,11 @@
33
42
  "types": "dist/index.d.ts",
34
43
  "dependencies": {
35
44
  "@floating-ui/react": "^0.27.16",
36
- "@synerise/ds-form-field": "^1.3.16",
37
- "@synerise/ds-icon": "^1.17.1",
38
- "@synerise/ds-scrollbar": "^1.3.2",
39
- "@synerise/ds-tooltip": "^1.4.16",
40
- "@synerise/ds-utils": "^1.8.0",
45
+ "@synerise/ds-form-field": "^1.3.18",
46
+ "@synerise/ds-icon": "^1.17.3",
47
+ "@synerise/ds-scrollbar": "^1.3.4",
48
+ "@synerise/ds-tooltip": "^1.4.18",
49
+ "@synerise/ds-utils": "^1.8.1",
41
50
  "classnames": "^2.3.2",
42
51
  "csstype": "^2.6.9",
43
52
  "uuid": "^8.3.2"
@@ -53,5 +62,5 @@
53
62
  "styled-components": "^5.3.3",
54
63
  "vitest": "4"
55
64
  },
56
- "gitHead": "25cf79a6df348141419f397813e4f6a5533deb5f"
65
+ "gitHead": "c5eee882509cbeb4544cb45939620881b829d4d9"
57
66
  }