@synerise/ds-autocomplete 1.2.34 → 1.2.35

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,10 @@
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.2.35](https://github.com/Synerise/synerise-design/compare/@synerise/ds-autocomplete@1.2.34...@synerise/ds-autocomplete@1.2.35) (2026-03-24)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-autocomplete
9
+
6
10
  ## [1.2.34](https://github.com/Synerise/synerise-design/compare/@synerise/ds-autocomplete@1.2.33...@synerise/ds-autocomplete@1.2.34) (2026-03-20)
7
11
 
8
12
  **Note:** Version bump only for package @synerise/ds-autocomplete
@@ -1,3 +1,8 @@
1
- export var ICON_WIDTH = 24;
2
- export var ICON_GAP = 4;
3
- export var ICON_OFFSET = 8;
1
+ const ICON_WIDTH = 24;
2
+ const ICON_GAP = 4;
3
+ const ICON_OFFSET = 8;
4
+ export {
5
+ ICON_GAP,
6
+ ICON_OFFSET,
7
+ ICON_WIDTH
8
+ };
@@ -1,7 +1,6 @@
1
- import AntdAutoComplete from 'antd/lib/auto-complete';
2
- import { type FC } from 'react';
3
- import { type AutocompleteProps } from './Autocomplete.types';
4
- import './style/index.less';
1
+ import { default as AntdAutoComplete } from 'antd/lib/auto-complete';
2
+ import { FC } from 'react';
3
+ import { AutocompleteProps } from './Autocomplete.types';
5
4
  declare const Autocomplete: FC<AutocompleteProps> & {
6
5
  Option: typeof AntdAutoComplete.Option;
7
6
  };
@@ -1,121 +1,92 @@
1
- var _excluded = ["className", "label", "description", "errorText", "disabled", "error", "handleInputRef", "getPopupContainer", "autoResize", "readOnly", "tooltip", "tooltipConfig", "icon1", "icon1Tooltip", "icon2", "icon2Tooltip"];
2
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
- import AntdAutoComplete from 'antd/lib/auto-complete';
5
- import React, { useCallback, useEffect, useMemo, useRef } from 'react';
6
- import FormField from '@synerise/ds-form-field';
7
- import { AutosizeWrapper } from '@synerise/ds-input';
8
- import Tooltip from '@synerise/ds-tooltip';
9
- import { useResizeObserver } from '@synerise/ds-utils';
10
- import * as S from './Autocomplete.styles';
1
+ import { jsx, Fragment, jsxs } from "react/jsx-runtime";
2
+ import AntdAutoComplete from "antd/lib/auto-complete";
3
+ import { useRef, useEffect, useCallback, useMemo } from "react";
4
+ import FormField from "@synerise/ds-form-field";
5
+ import { AutosizeWrapper } from "@synerise/ds-input";
6
+ import Tooltip from "@synerise/ds-tooltip";
7
+ import { useResizeObserver } from "@synerise/ds-utils";
8
+ import { IconWrapper, AutocompleteWrapper, ComponentWrapper } from "./Autocomplete.styles.js";
9
+ import { getIconsWidth } from "./utils/getIconsWidth.js";
11
10
  import "./style/index.css";
12
- import { getIconsWidth } from './utils/getIconsWidth';
13
- var AUTOSIZE_EXTRA_WIDTH = 27;
14
- var Autocomplete = function Autocomplete(_ref) {
15
- var className = _ref.className,
16
- label = _ref.label,
17
- description = _ref.description,
18
- errorText = _ref.errorText,
19
- disabled = _ref.disabled,
20
- error = _ref.error,
21
- handleInputRef = _ref.handleInputRef,
22
- getPopupContainer = _ref.getPopupContainer,
23
- autoResize = _ref.autoResize,
24
- readOnly = _ref.readOnly,
25
- tooltip = _ref.tooltip,
26
- tooltipConfig = _ref.tooltipConfig,
27
- icon1 = _ref.icon1,
28
- icon1Tooltip = _ref.icon1Tooltip,
29
- icon2 = _ref.icon2,
30
- icon2Tooltip = _ref.icon2Tooltip,
31
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
32
- var scrollLeftRef = useRef(0);
33
- var antSelectRef = useRef(null);
34
- var inputRef = useRef(null);
35
- var autosizeRef = useRef(null);
36
- var autocompleteInputRef = useRef(null);
37
- var elementRef = useRef(null);
38
- useEffect(function () {
11
+ const AUTOSIZE_EXTRA_WIDTH = 27;
12
+ const Autocomplete = ({
13
+ className,
14
+ label,
15
+ description,
16
+ errorText,
17
+ disabled,
18
+ error,
19
+ handleInputRef,
20
+ getPopupContainer,
21
+ autoResize,
22
+ readOnly,
23
+ tooltip,
24
+ tooltipConfig,
25
+ icon1,
26
+ icon1Tooltip,
27
+ icon2,
28
+ icon2Tooltip,
29
+ ...rest
30
+ }) => {
31
+ const scrollLeftRef = useRef(0);
32
+ const antSelectRef = useRef(null);
33
+ const inputRef = useRef(null);
34
+ const autosizeRef = useRef(null);
35
+ const autocompleteInputRef = useRef(null);
36
+ const elementRef = useRef(null);
37
+ useEffect(() => {
39
38
  handleInputRef && handleInputRef(antSelectRef);
40
39
  }, [antSelectRef, handleInputRef]);
41
- useEffect(function () {
40
+ useEffect(() => {
42
41
  if (autosizeRef.current) {
43
42
  autocompleteInputRef.current = autosizeRef.current.inputWrapperRef.current;
44
43
  inputRef.current = autosizeRef.current.inputRef.current;
45
44
  }
46
45
  }, []);
47
- var getParentNode = function getParentNode(triggerNode) {
46
+ const getParentNode = (triggerNode) => {
48
47
  return triggerNode.parentNode;
49
48
  };
50
- var stretchToFit = autoResize && autoResize !== true && Boolean(autoResize.stretchToFit);
51
- var placeholderString = typeof rest.placeholder === 'string' ? rest.placeholder : undefined;
52
- var handlePreAutosize = useCallback(function () {
53
- var _inputRef$current;
54
- scrollLeftRef.current = ((_inputRef$current = inputRef.current) == null ? void 0 : _inputRef$current.scrollLeft) || 0;
55
- autocompleteInputRef.current && autocompleteInputRef.current.style.removeProperty('max-width');
49
+ const stretchToFit = autoResize && autoResize !== true && Boolean(autoResize.stretchToFit);
50
+ const placeholderString = typeof rest.placeholder === "string" ? rest.placeholder : void 0;
51
+ const handlePreAutosize = useCallback(() => {
52
+ scrollLeftRef.current = inputRef.current?.scrollLeft || 0;
53
+ autocompleteInputRef.current && autocompleteInputRef.current.style.removeProperty("max-width");
56
54
  }, []);
57
- var handleAutosize = useCallback(function () {
58
- var parentRect = elementRef.current && elementRef.current.getBoundingClientRect();
59
- if (stretchToFit && autocompleteInputRef.current && parentRect != null && parentRect.width) {
60
- autocompleteInputRef.current.style.maxWidth = (parentRect == null ? void 0 : parentRect.width) + 1 + "px";
55
+ const handleAutosize = useCallback(() => {
56
+ const parentRect = elementRef.current && elementRef.current.getBoundingClientRect();
57
+ if (stretchToFit && autocompleteInputRef.current && parentRect?.width) {
58
+ autocompleteInputRef.current.style.maxWidth = `${parentRect?.width + 1}px`;
61
59
  inputRef.current && inputRef.current.scrollTo(scrollLeftRef.current, 0);
62
60
  }
63
61
  }, [stretchToFit]);
64
- var handleWrapperResize = useCallback(function () {
62
+ const handleWrapperResize = useCallback(() => {
65
63
  handlePreAutosize();
66
64
  handleAutosize();
67
65
  }, [handleAutosize, handlePreAutosize]);
68
- var transformRef = useCallback(function (element) {
66
+ const transformRef = useCallback((element) => {
69
67
  autocompleteInputRef.current = element;
70
- return element.querySelector('input');
68
+ return element.querySelector("input");
71
69
  }, []);
72
70
  useResizeObserver(elementRef, handleWrapperResize);
73
- var iconCount = +!!icon1 + +!!icon2;
74
- var handleIconsClick = useCallback(function () {
75
- var _antSelectRef$current;
76
- (_antSelectRef$current = antSelectRef.current) == null || _antSelectRef$current.focus();
71
+ const iconCount = +!!icon1 + +!!icon2;
72
+ const handleIconsClick = useCallback(() => {
73
+ antSelectRef.current?.focus();
77
74
  }, []);
78
- var icons = useMemo(function () {
79
- var icon1WithTooltip = icon1Tooltip ? /*#__PURE__*/React.createElement(Tooltip, {
80
- title: icon1Tooltip
81
- }, icon1) : icon1;
82
- var icon2WithTooltip = icon2Tooltip ? /*#__PURE__*/React.createElement(Tooltip, {
83
- title: icon2Tooltip
84
- }, icon2) : icon2;
85
- return /*#__PURE__*/React.createElement(React.Fragment, null, (icon1WithTooltip || icon2WithTooltip) && /*#__PURE__*/React.createElement(S.IconWrapper, {
86
- onClick: handleIconsClick
87
- }, icon1WithTooltip, " ", icon2WithTooltip));
75
+ const icons = useMemo(() => {
76
+ const icon1WithTooltip = icon1Tooltip ? /* @__PURE__ */ jsx(Tooltip, { title: icon1Tooltip, children: icon1 }) : icon1;
77
+ const icon2WithTooltip = icon2Tooltip ? /* @__PURE__ */ jsx(Tooltip, { title: icon2Tooltip, children: icon2 }) : icon2;
78
+ return /* @__PURE__ */ jsx(Fragment, { children: (icon1WithTooltip || icon2WithTooltip) && /* @__PURE__ */ jsxs(IconWrapper, { onClick: handleIconsClick, children: [
79
+ icon1WithTooltip,
80
+ " ",
81
+ icon2WithTooltip
82
+ ] }) });
88
83
  }, [handleIconsClick, icon1, icon2, icon1Tooltip, icon2Tooltip]);
89
- return /*#__PURE__*/React.createElement(S.AutocompleteWrapper, {
90
- ref: elementRef,
91
- autoResize: autoResize,
92
- className: "ds-autocomplete " + (className || '')
93
- }, /*#__PURE__*/React.createElement(FormField, {
94
- label: label,
95
- tooltip: tooltip,
96
- tooltipConfig: tooltipConfig,
97
- description: description,
98
- errorText: errorText
99
- }, /*#__PURE__*/React.createElement(S.ComponentWrapper, {
100
- readOnly: readOnly,
101
- error: !!errorText || error,
102
- iconCount: iconCount
103
- }, /*#__PURE__*/React.createElement(AutosizeWrapper, {
104
- autoResize: !!autoResize,
105
- value: rest.value,
106
- placeholder: placeholderString,
107
- transformRef: transformRef,
108
- ref: autosizeRef,
109
- extraWidth: AUTOSIZE_EXTRA_WIDTH + getIconsWidth(iconCount),
110
- preAutosize: handlePreAutosize,
111
- onAutosize: handleAutosize
112
- }, /*#__PURE__*/React.createElement(AntdAutoComplete, _extends({}, rest, {
113
- disabled: readOnly || disabled,
114
- dropdownClassName: "ds-autocomplete-dropdown ps__child--consume",
115
- getPopupContainer: getPopupContainer || getParentNode,
116
- ref: antSelectRef,
117
- "data-testid": "autocomplete-autosize-input"
118
- })), icons))));
84
+ return /* @__PURE__ */ jsx(AutocompleteWrapper, { ref: elementRef, autoResize, className: `ds-autocomplete ${className || ""}`, children: /* @__PURE__ */ jsx(FormField, { label, tooltip, tooltipConfig, description, errorText, children: /* @__PURE__ */ jsx(ComponentWrapper, { readOnly, error: !!errorText || error, iconCount, children: /* @__PURE__ */ jsxs(AutosizeWrapper, { autoResize: !!autoResize, value: rest.value, placeholder: placeholderString, transformRef, ref: autosizeRef, extraWidth: AUTOSIZE_EXTRA_WIDTH + getIconsWidth(iconCount), preAutosize: handlePreAutosize, onAutosize: handleAutosize, children: [
85
+ /* @__PURE__ */ jsx(AntdAutoComplete, { ...rest, disabled: readOnly || disabled, dropdownClassName: "ds-autocomplete-dropdown ps__child--consume", getPopupContainer: getPopupContainer || getParentNode, ref: antSelectRef, "data-testid": "autocomplete-autosize-input" }),
86
+ icons
87
+ ] }) }) }) });
119
88
  };
120
89
  Autocomplete.Option = AntdAutoComplete.Option;
121
- export default Autocomplete;
90
+ export {
91
+ Autocomplete as default
92
+ };
@@ -1,9 +1,9 @@
1
- import { type AutoResizeProp } from '@synerise/ds-input';
2
- export declare const AutocompleteWrapper: import("styled-components").StyledComponent<"div", any, {
1
+ import { AutoResizeProp } from '@synerise/ds-input';
2
+ export declare const AutocompleteWrapper: import('styled-components').StyledComponent<"div", any, {
3
3
  autoResize?: AutoResizeProp;
4
4
  }, never>;
5
- export declare const IconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
6
- export declare const ComponentWrapper: import("styled-components").StyledComponent<"div", any, {
5
+ export declare const IconWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
6
+ export declare const ComponentWrapper: import('styled-components').StyledComponent<"div", any, {
7
7
  error?: boolean;
8
8
  readOnly?: boolean;
9
9
  iconCount?: number;
@@ -1,57 +1,33 @@
1
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
- import styled, { css } from 'styled-components';
3
- import { autoresizeConfObjToCss } from '@synerise/ds-input/dist/Input.styles';
4
- import { ICON_GAP, ICON_OFFSET } from './Autocomplete.const';
5
- import { getIconsWidth } from './utils/getIconsWidth';
6
- var active = function active() {
7
- return css(["transition:ease-in-out all 0.2s,width 0s,min-width 0s,max-width 0s;box-shadow:inset 0 0 0 1px ", ";border:1px solid ", ";background-color:", ";"], function (props) {
8
- return props.theme.palette['blue-600'];
9
- }, function (props) {
10
- return props.theme.palette['blue-600'];
11
- }, function (props) {
12
- return props.theme.palette['blue-050'];
13
- });
14
- };
15
- var error = function error() {
16
- return css(["transition:ease-in-out all 0.2s,width 0s,min-width 0s,max-width 0s;box-shadow:inset 0 0 0 1px ", ";background:", ";border:1px solid ", ";"], function (props) {
17
- return props.theme.palette['red-600'];
18
- }, function (props) {
19
- return props.theme.palette['red-050'];
20
- }, function (props) {
21
- return props.theme.palette['red-600'];
22
- });
23
- };
24
- var readonly = function readonly() {
25
- return css(["background-color:", ";color:", ";input{cursor:auto;}"], function (props) {
26
- return props.theme.palette.white;
27
- }, function (props) {
28
- return props.theme.palette['grey-700'];
29
- });
30
- };
31
- export var AutocompleteWrapper = styled.div.withConfig({
1
+ import styled, { css } from "styled-components";
2
+ import { autoresizeConfObjToCss } from "@synerise/ds-input/dist/Input.styles";
3
+ import { ICON_OFFSET, ICON_GAP } from "./Autocomplete.const.js";
4
+ import { getIconsWidth } from "./utils/getIconsWidth.js";
5
+ const active = () => css(["transition:ease-in-out all 0.2s,width 0s,min-width 0s,max-width 0s;box-shadow:inset 0 0 0 1px ", ";border:1px solid ", ";background-color:", ";"], (props) => props.theme.palette["blue-600"], (props) => props.theme.palette["blue-600"], (props) => props.theme.palette["blue-050"]);
6
+ const error = () => css(["transition:ease-in-out all 0.2s,width 0s,min-width 0s,max-width 0s;box-shadow:inset 0 0 0 1px ", ";background:", ";border:1px solid ", ";"], (props) => props.theme.palette["red-600"], (props) => props.theme.palette["red-050"], (props) => props.theme.palette["red-600"]);
7
+ const readonly = () => css(["background-color:", ";color:", ";input{cursor:auto;}"], (props) => props.theme.palette.white, (props) => props.theme.palette["grey-700"]);
8
+ const AutocompleteWrapper = /* @__PURE__ */ styled.div.withConfig({
32
9
  displayName: "Autocompletestyles__AutocompleteWrapper",
33
10
  componentId: "sc-10de6ms-0"
34
- })(["input{font-feature-settings:'tnum';}.ant-select-auto-complete{width:", ";", ";grid-area:1 / 1;}.ant-select > span{position:absolute;left:0;top:0;}.ant-select-dropdown{.ant-select-selection__rendered{margin:0;}.ant-select-selection:hover .ant-select-selection__rendered{margin-right:10px;}.ant-select-selection__clear{font-size:15px;color:", ";width:16px;height:16px;margin-top:-7px;}&.ant-select:not(.ant-select-no-arrow) .ant-select-selection__clear{right:12px;&:hover{color:", ";}}.ant-select-dropdown-menu-item{font-weight:normal;strong{font-weight:500;}}}.ant-select-selection-search-input{padding:0;padding-right:10px;}"], function (props) {
35
- return props.autoResize ? '100%' : '200px';
36
- }, function (props) {
37
- return autoresizeConfObjToCss(_extends({}, props, {
38
- boxSizing: 'border-box'
39
- }));
40
- }, function (props) {
41
- return props.theme.palette['grey-600'];
42
- }, function (props) {
43
- return props.theme.palette['grey-700'];
44
- });
45
- export var IconWrapper = styled.div.withConfig({
11
+ })(["input{font-feature-settings:'tnum';}.ant-select-auto-complete{width:", ";", ";grid-area:1 / 1;}.ant-select > span{position:absolute;left:0;top:0;}.ant-select-dropdown{.ant-select-selection__rendered{margin:0;}.ant-select-selection:hover .ant-select-selection__rendered{margin-right:10px;}.ant-select-selection__clear{font-size:15px;color:", ";width:16px;height:16px;margin-top:-7px;}&.ant-select:not(.ant-select-no-arrow) .ant-select-selection__clear{right:12px;&:hover{color:", ";}}.ant-select-dropdown-menu-item{font-weight:normal;strong{font-weight:500;}}}.ant-select-selection-search-input{padding:0;padding-right:10px;}"], (props) => props.autoResize ? "100%" : "200px", (props) => autoresizeConfObjToCss({
12
+ ...props,
13
+ boxSizing: "border-box"
14
+ }), (props) => props.theme.palette["grey-600"], (props) => props.theme.palette["grey-700"]);
15
+ const IconWrapper = /* @__PURE__ */ styled.div.withConfig({
46
16
  displayName: "Autocompletestyles__IconWrapper",
47
17
  componentId: "sc-10de6ms-1"
48
18
  })(["position:absolute;right:", "px;top:0;display:flex;bottom:0;align-items:center;gap:", "px;z-index:5;"], ICON_OFFSET, ICON_GAP);
49
- export var ComponentWrapper = styled.div.withConfig({
19
+ const ComponentWrapper = /* @__PURE__ */ styled.div.withConfig({
50
20
  displayName: "Autocompletestyles__ComponentWrapper",
51
21
  componentId: "sc-10de6ms-2"
52
- })(["&&&{", ";.ant-select-auto-complete{", "}}}"], function (props) {
53
- return props.iconCount && "\n position: relative;\n display: inline-block;\n & {\n .ant-select .ant-select-selector .ant-select-selection-search {\n right: " + getIconsWidth(props.iconCount) + "px;\n }\n }\n ";
54
- }, function (props) {
22
+ })(["&&&{", ";.ant-select-auto-complete{", "}}}"], (props) => props.iconCount && `
23
+ position: relative;
24
+ display: inline-block;
25
+ & {
26
+ .ant-select .ant-select-selector .ant-select-selection-search {
27
+ right: ${getIconsWidth(props.iconCount)}px;
28
+ }
29
+ }
30
+ `, (props) => {
55
31
  if (props.readOnly) {
56
32
  return css([".ant-select-selector{&:hover{", "}", "}"], readonly(), readonly());
57
33
  }
@@ -59,4 +35,9 @@ export var ComponentWrapper = styled.div.withConfig({
59
35
  return css([".ant-select-selector{&:hover{", "}", "}"], error(), error());
60
36
  }
61
37
  return css(["&.ant-select{.ant-select-selector{padding:0 10px;}.ant-input{transition:ease-in-out all 0.3s,width 0s,min-width 0s,max-width 0s;&:focus{", " &:hover{", "}}}}"], active(), active());
62
- });
38
+ });
39
+ export {
40
+ AutocompleteWrapper,
41
+ ComponentWrapper,
42
+ IconWrapper
43
+ };
@@ -1,8 +1,8 @@
1
- import type { AutoCompleteProps as OriginalProps } from 'antd/lib/auto-complete';
2
- import type { RefSelectProps } from 'antd/lib/select';
3
- import type { MutableRefObject, ReactNode } from 'react';
4
- import type { FormFieldCommonProps } from '@synerise/ds-form-field';
5
- import type { AutoResizeProp } from '@synerise/ds-input';
1
+ import { AutoCompleteProps as OriginalProps } from 'antd/lib/auto-complete';
2
+ import { RefSelectProps } from 'antd/lib/select';
3
+ import { MutableRefObject, ReactNode } from 'react';
4
+ import { FormFieldCommonProps } from '@synerise/ds-form-field';
5
+ import { AutoResizeProp } from '@synerise/ds-input';
6
6
  export type OverrideProps = FormFieldCommonProps & {
7
7
  className?: string;
8
8
  icon1?: ReactNode;
@@ -1 +1 @@
1
- export {};
1
+
File without changes
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import type { AutocompleteProps } from './Autocomplete.types';
1
+ import { AutocompleteProps } from './Autocomplete.types';
2
2
  export { default } from './Autocomplete';
3
3
  export type { AutocompleteProps };
package/dist/index.js CHANGED
@@ -1 +1,4 @@
1
- export { default } from './Autocomplete';
1
+ import { default as default2 } from "./Autocomplete.js";
2
+ export {
3
+ default2 as default
4
+ };
package/dist/modules.d.js CHANGED
@@ -1 +1 @@
1
- import '@testing-library/jest-dom';
1
+ import "@testing-library/jest-dom";
File without changes
@@ -1,4 +1,7 @@
1
- import { ICON_GAP, ICON_OFFSET, ICON_WIDTH } from '../Autocomplete.const';
2
- export var getIconsWidth = function getIconsWidth(iconCount) {
1
+ import { ICON_OFFSET, ICON_WIDTH, ICON_GAP } from "../Autocomplete.const.js";
2
+ const getIconsWidth = (iconCount) => {
3
3
  return iconCount > 0 ? ICON_OFFSET + iconCount * ICON_WIDTH + (iconCount - 1) * ICON_GAP : 0;
4
- };
4
+ };
5
+ export {
6
+ getIconsWidth
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-autocomplete",
3
- "version": "1.2.34",
3
+ "version": "1.2.35",
4
4
  "description": "Autocomplete UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -16,10 +16,10 @@
16
16
  "access": "public"
17
17
  },
18
18
  "scripts": {
19
- "build": "pnpm run build:js && pnpm run build:css && pnpm run defs",
19
+ "build": "vite build",
20
20
  "build:css": "node ../../../scripts/style/less.js",
21
21
  "build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
22
- "build:watch": "pnpm run build:js -- --watch",
22
+ "build:watch": "vite build --watch",
23
23
  "defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
24
24
  "pack:ci": "pnpm pack --pack-destination ../../storybook/storybook-static/static",
25
25
  "prepublish": "pnpm run build",
@@ -35,10 +35,10 @@
35
35
  ],
36
36
  "types": "dist/index.d.ts",
37
37
  "dependencies": {
38
- "@synerise/ds-form-field": "^1.3.9",
39
- "@synerise/ds-input": "^1.6.9",
40
- "@synerise/ds-tooltip": "^1.4.9",
41
- "@synerise/ds-utils": "^1.7.0"
38
+ "@synerise/ds-form-field": "^1.3.10",
39
+ "@synerise/ds-input": "^1.6.10",
40
+ "@synerise/ds-tooltip": "^1.4.10",
41
+ "@synerise/ds-utils": "^1.7.1"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@synerise/ds-core": "*",
@@ -47,5 +47,5 @@
47
47
  "styled-components": "^5.3.3",
48
48
  "vitest": "4"
49
49
  },
50
- "gitHead": "8efc031fa688c0b87c7b3915bae93546bb63bcac"
50
+ "gitHead": "e4ecca8944fc9b41c1b9d59c8bcad5e5e2013225"
51
51
  }