@synerise/ds-form 1.2.1 → 1.2.3

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,14 @@
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.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-form@1.2.2...@synerise/ds-form@1.2.3) (2026-03-24)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-form
9
+
10
+ ## [1.2.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-form@1.2.1...@synerise/ds-form@1.2.2) (2026-03-20)
11
+
12
+ **Note:** Version bump only for package @synerise/ds-form
13
+
6
14
  ## [1.2.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-form@1.2.0...@synerise/ds-form@1.2.1) (2026-03-09)
7
15
 
8
16
  **Note:** Version bump only for package @synerise/ds-form
package/README.md CHANGED
@@ -34,20 +34,32 @@ The Form and EditableList components have been deprecated and replaced by Editab
34
34
 
35
35
  ### Form.FieldSet
36
36
 
37
- | Property | Description | Type | Default |
38
- | ----------- | ----------------------------------- | ------- | ------- |
39
- | heading | Heading text | string | - |
40
- | className | Class name applied to the element | string | - |
41
- | description | Description text | string | - |
42
- | withLine | Whether divider should be displayed | boolean | `false` |
37
+ | Property | Description | Type | Default |
38
+ | ----------- | ----------------------------------- | ----------- | ------- |
39
+ | heading | Heading text | `ReactNode` | - |
40
+ | className | Class name applied to the element | `string` | - |
41
+ | description | Description text | `ReactNode` | - |
42
+ | withLine | Whether divider should be displayed | `boolean` | - |
43
43
 
44
44
  ### EditableList
45
45
 
46
- | Property | Description | Type | Default |
47
- | ------------------ | -------------------------------------------- | ---------------------------------------------------------------------------------------------- | ------- |
48
- | firstInputProps\* | Enable overwriting first input props | AutocompleteProps / undefined | - |
49
- | secondInputProps\* | Enable overwriting second input props | InputProps / undefined | - |
50
- | validation | Enable validation on first and second column | Record<'validateLeftColumn' / 'validateLeftColumn', (val: string) => string / ReactNode / null | - |
51
- | addButtonConfig | Define props for button | AddButtonConfigProps / undefined | - |
46
+ | Property | Description | Type | Default |
47
+ | ---------------------- | --------------------------------------------------------- | ------------------------------------------------------------- | --------------------------- |
48
+ | value | Controlled rows array | `EditableParam[]` | - |
49
+ | onChange | Called after any name/value change | `(params: EditableParam[]) => void` | - |
50
+ | leftColumnName | Label above the first column (row 0 only) | `ReactNode` | - |
51
+ | rightColumnName | Label above the second column (row 0 only) | `ReactNode` | - |
52
+ | autocompleteOptions | Option children for the Autocomplete in each row | `ReactNode` | - |
53
+ | onSearch | Forwarded to Autocomplete.onSearch | `(query: string) => void` | - |
54
+ | onClickDelete | Custom delete handler; omit to remove from internal state | `(param?, index?, params?) => void` | - |
55
+ | addButtonConfig | Define props for the add-row button | `{ textAddButton?, disableAddButton?, onClickAddRow? }` | - |
56
+ | validation | Per-field validation; return error node or falsy | `{ validateLeftColumn?, validateRightColumn? }` | - |
57
+ | firstInputProps\* | Overwrite first column (Autocomplete) props | `AutocompleteProps` | `{ style: { width: 350 } }` |
58
+ | secondInputProps\* | Overwrite second column (Input) props | `InputProps` | `{ style: { width: 300 } }` |
59
+ | renderAddButton | Replace the default add-row button | `(params?) => JSX.Element` | - |
60
+ | renderLeftColumn | Replace the Autocomplete for each row | `(param, index) => JSX.Element` | - |
61
+ | renderRightColumn | Replace the Input for each row | `(param, index) => JSX.Element` | - |
62
+ | renderAdditionalColumn | Append a column after the two defaults in each row | `(rows) => JSX.Element` | - |
63
+ | renderActions | `true` = Cruds delete; function = custom actions | `boolean \| ((param, idx, params, callbacks) => JSX.Element)` | - |
52
64
 
53
65
  - in order to overwrite f.e. styles in first two columns, it is possible to use spread operator used in component implementation, to overwrite style of third column it is required to import styled component wrapper and overwrite it
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { type EditListProps } from './EditableList.types';
1
+ import { default as React } from 'react';
2
+ import { EditListProps } from './EditableList.types';
3
3
  export declare const EditableList: React.FC<EditListProps>;
4
4
  export default EditableList;
@@ -1,114 +1,90 @@
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 React from 'react';
3
- import Autocomplete from '@synerise/ds-autocomplete';
4
- import { theme } from '@synerise/ds-core';
5
- import Cruds from '@synerise/ds-cruds';
6
- import Icon, { Add3M } from '@synerise/ds-icon';
7
- import { Input } from '@synerise/ds-input';
8
- import * as S from './EditableList.styles';
9
- var defaultFirstInputProps = {
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import Autocomplete from "@synerise/ds-autocomplete";
4
+ import { theme } from "@synerise/ds-core";
5
+ import Cruds from "@synerise/ds-cruds";
6
+ import Icon, { Add3M } from "@synerise/ds-icon";
7
+ import { Input } from "@synerise/ds-input";
8
+ import { RowWrapper, AutoCompleteWrapper, InputWrapper, CrudWrapper, ButtonWrapper, AddButton, AddIconWrapper } from "./EditableList.styles.js";
9
+ const defaultFirstInputProps = {
10
10
  style: {
11
11
  width: 350
12
12
  }
13
13
  };
14
- var defaultSecondInputProps = {
14
+ const defaultSecondInputProps = {
15
15
  style: {
16
16
  width: 300
17
17
  }
18
18
  };
19
- export var EditableList = function EditableList(_ref) {
20
- var _renderAddButton;
21
- var leftColumnName = _ref.leftColumnName,
22
- rightColumnName = _ref.rightColumnName,
23
- autocompleteOptions = _ref.autocompleteOptions,
24
- value = _ref.value,
25
- _onChange = _ref.onChange,
26
- addButtonConfig = _ref.addButtonConfig,
27
- onSearch = _ref.onSearch,
28
- onClickDelete = _ref.onClickDelete,
29
- renderAddButton = _ref.renderAddButton,
30
- renderLeftColumn = _ref.renderLeftColumn,
31
- renderRightColumn = _ref.renderRightColumn,
32
- renderAdditionalColumn = _ref.renderAdditionalColumn,
33
- renderActions = _ref.renderActions,
34
- validation = _ref.validation,
35
- _ref$firstInputProps = _ref.firstInputProps,
36
- firstInputProps = _ref$firstInputProps === void 0 ? defaultFirstInputProps : _ref$firstInputProps,
37
- _ref$secondInputProps = _ref.secondInputProps,
38
- secondInputProps = _ref$secondInputProps === void 0 ? defaultSecondInputProps : _ref$secondInputProps;
39
- var _React$useState = React.useState([]),
40
- params = _React$useState[0],
41
- setParams = _React$useState[1];
42
- var paramsWithNewValue = function paramsWithNewValue(id, name, newValue) {
43
- var updatedParams = [].concat(params || []);
19
+ const EditableList = ({
20
+ leftColumnName,
21
+ rightColumnName,
22
+ autocompleteOptions,
23
+ value,
24
+ onChange,
25
+ addButtonConfig,
26
+ onSearch,
27
+ onClickDelete,
28
+ renderAddButton,
29
+ renderLeftColumn,
30
+ renderRightColumn,
31
+ renderAdditionalColumn,
32
+ renderActions,
33
+ validation,
34
+ firstInputProps = defaultFirstInputProps,
35
+ secondInputProps = defaultSecondInputProps
36
+ }) => {
37
+ const [params, setParams] = React.useState([]);
38
+ const paramsWithNewValue = (id, name, newValue) => {
39
+ const updatedParams = [...params || []];
44
40
  updatedParams[id] = {
45
- name: name,
41
+ name,
46
42
  value: newValue
47
43
  };
48
44
  return updatedParams;
49
45
  };
50
- React.useEffect(function () {
46
+ React.useEffect(() => {
51
47
  setParams(value);
52
48
  }, [value]);
53
- var onSetParamsDefault = function onSetParamsDefault() {
54
- return setParams(function (prevParams) {
55
- return [].concat(prevParams || [], [{
56
- name: '',
57
- value: ''
58
- }]);
59
- });
60
- };
61
- return /*#__PURE__*/React.createElement("div", null, params == null ? void 0 : params.map(function (param, id) {
62
- var _renderLeftColumn, _renderRightColumn;
63
- return /*#__PURE__*/React.createElement(S.RowWrapper, {
64
- key: id
65
- }, (_renderLeftColumn = renderLeftColumn == null ? void 0 : renderLeftColumn(param, id)) != null ? _renderLeftColumn : /*#__PURE__*/React.createElement(S.AutoCompleteWrapper, null, /*#__PURE__*/React.createElement(Autocomplete, _extends({
66
- onSearch: onSearch,
67
- value: param.name,
68
- onChange: function onChange(paramName) {
69
- var newParams = paramsWithNewValue(id, paramName, param.value);
49
+ const onSetParamsDefault = () => setParams((prevParams) => [...prevParams || [], {
50
+ name: "",
51
+ value: ""
52
+ }]);
53
+ return /* @__PURE__ */ jsxs("div", { children: [
54
+ params?.map((param, id) => /* @__PURE__ */ jsxs(RowWrapper, { children: [
55
+ renderLeftColumn?.(param, id) ?? /* @__PURE__ */ jsx(AutoCompleteWrapper, { children: /* @__PURE__ */ jsx(Autocomplete, { onSearch, value: param.name, onChange: (paramName) => {
56
+ const newParams = paramsWithNewValue(id, paramName, param.value);
70
57
  setParams(newParams);
71
- if (_onChange) {
72
- _onChange(newParams);
58
+ if (onChange) {
59
+ onChange(newParams);
73
60
  }
74
- },
75
- label: id === 0 ? leftColumnName : null,
76
- error: Boolean(validation == null || validation.validateLeftColumn == null ? void 0 : validation.validateLeftColumn(param.name)),
77
- errorText: validation == null || validation.validateLeftColumn == null ? void 0 : validation.validateLeftColumn(param.name)
78
- }, firstInputProps), autocompleteOptions)), (_renderRightColumn = renderRightColumn == null ? void 0 : renderRightColumn(param, id)) != null ? _renderRightColumn : /*#__PURE__*/React.createElement(S.InputWrapper, null, /*#__PURE__*/React.createElement(Input, _extends({
79
- value: param.value,
80
- onChange: function onChange(ev) {
81
- var newParams = paramsWithNewValue(id, param.name, ev.target.value);
61
+ }, label: id === 0 ? leftColumnName : null, error: Boolean(validation?.validateLeftColumn?.(param.name)), errorText: validation?.validateLeftColumn?.(param.name), ...firstInputProps, children: autocompleteOptions }) }),
62
+ renderRightColumn?.(param, id) ?? /* @__PURE__ */ jsx(InputWrapper, { children: /* @__PURE__ */ jsx(Input, { value: param.value, onChange: (ev) => {
63
+ const newParams = paramsWithNewValue(id, param.name, ev.target.value);
82
64
  setParams(newParams);
83
- if (_onChange) {
84
- _onChange(newParams);
65
+ if (onChange) {
66
+ onChange(newParams);
85
67
  }
86
- },
87
- label: id === 0 ? rightColumnName : null,
88
- error: Boolean(validation == null || validation.validateRightColumn == null ? void 0 : validation.validateRightColumn(param.value)),
89
- errorText: validation == null || validation.validateRightColumn == null ? void 0 : validation.validateRightColumn(param.value)
90
- }, secondInputProps))), renderAdditionalColumn == null ? void 0 : renderAdditionalColumn(params), typeof renderActions === 'function' && (renderActions == null ? void 0 : renderActions(param, id, params, {
91
- onClickDelete: onClickDelete
92
- })) || renderActions === true && /*#__PURE__*/React.createElement(S.CrudWrapper, {
93
- marginWithLabel: id === 0 ? leftColumnName : null
94
- }, /*#__PURE__*/React.createElement(Cruds, {
95
- onRemove: function onRemove() {
96
- var newParams = params ? [].concat(params.slice(0, id), params.slice(id + 1, params.length)) : [];
68
+ }, label: id === 0 ? rightColumnName : null, error: Boolean(validation?.validateRightColumn?.(param.value)), errorText: validation?.validateRightColumn?.(param.value), ...secondInputProps }) }),
69
+ renderAdditionalColumn?.(params),
70
+ typeof renderActions === "function" && renderActions?.(param, id, params, {
71
+ onClickDelete
72
+ }) || renderActions === true && /* @__PURE__ */ jsx(CrudWrapper, { marginWithLabel: id === 0 ? leftColumnName : null, children: /* @__PURE__ */ jsx(Cruds, { onRemove: () => {
73
+ const newParams = params ? [...params.slice(0, id), ...params.slice(id + 1, params.length)] : [];
97
74
  if (onClickDelete) {
98
75
  onClickDelete(param, id, newParams);
99
76
  } else {
100
77
  setParams(newParams);
101
78
  }
102
- }
103
- })) || undefined);
104
- }), (_renderAddButton = renderAddButton == null ? void 0 : renderAddButton(params)) != null ? _renderAddButton : /*#__PURE__*/React.createElement(S.ButtonWrapper, null, /*#__PURE__*/React.createElement(S.AddButton, {
105
- onClick: (addButtonConfig == null ? void 0 : addButtonConfig.onClickAddRow) || onSetParamsDefault,
106
- type: "ghost-primary",
107
- disabled: addButtonConfig == null ? void 0 : addButtonConfig.disableAddButton
108
- }, /*#__PURE__*/React.createElement(S.AddIconWrapper, null, /*#__PURE__*/React.createElement(Icon, {
109
- component: /*#__PURE__*/React.createElement(Add3M, null),
110
- size: 24,
111
- color: theme.palette['blue-600']
112
- })), /*#__PURE__*/React.createElement("span", null, addButtonConfig == null ? void 0 : addButtonConfig.textAddButton))));
79
+ } }) }) || void 0
80
+ ] }, id)),
81
+ renderAddButton?.(params) ?? /* @__PURE__ */ jsx(ButtonWrapper, { children: /* @__PURE__ */ jsxs(AddButton, { onClick: addButtonConfig?.onClickAddRow || onSetParamsDefault, type: "ghost-primary", disabled: addButtonConfig?.disableAddButton, children: [
82
+ /* @__PURE__ */ jsx(AddIconWrapper, { children: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(Add3M, {}), size: 24, color: theme.palette["blue-600"] }) }),
83
+ /* @__PURE__ */ jsx("span", { children: addButtonConfig?.textAddButton })
84
+ ] }) })
85
+ ] });
86
+ };
87
+ export {
88
+ EditableList,
89
+ EditableList as default
113
90
  };
114
- export default EditableList;
@@ -1,10 +1,10 @@
1
- import { type StyledButton } from '@synerise/ds-button';
2
- export declare const RowWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const AutoCompleteWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- export declare const ButtonWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ import { StyledButton } from '@synerise/ds-button';
2
+ export declare const RowWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
3
+ export declare const AutoCompleteWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
4
+ export declare const ButtonWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
5
5
  export declare const AddButton: StyledButton;
6
- export declare const AddIconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
7
- export declare const CrudWrapper: import("styled-components").StyledComponent<"div", any, {
6
+ export declare const AddIconWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
7
+ export declare const CrudWrapper: import('styled-components').StyledComponent<"div", any, {
8
8
  marginWithLabel?: boolean | React.ReactNode;
9
9
  }, never>;
10
- export declare const InputWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
10
+ export declare const InputWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
@@ -1,32 +1,39 @@
1
- import styled from 'styled-components';
2
- import Button from '@synerise/ds-button';
3
- export var RowWrapper = styled.div.withConfig({
1
+ import styled from "styled-components";
2
+ import Button from "@synerise/ds-button";
3
+ const RowWrapper = /* @__PURE__ */ styled.div.withConfig({
4
4
  displayName: "EditableListstyles__RowWrapper",
5
5
  componentId: "sc-1uztup5-0"
6
6
  })(["display:flex;align-items:start;padding:8px 0px 8px 0px;"]);
7
- export var AutoCompleteWrapper = styled.div.withConfig({
7
+ const AutoCompleteWrapper = /* @__PURE__ */ styled.div.withConfig({
8
8
  displayName: "EditableListstyles__AutoCompleteWrapper",
9
9
  componentId: "sc-1uztup5-1"
10
10
  })(["padding-right:10px;margin-bottom:15px;"]);
11
- export var ButtonWrapper = styled.div.withConfig({
11
+ const ButtonWrapper = /* @__PURE__ */ styled.div.withConfig({
12
12
  displayName: "EditableListstyles__ButtonWrapper",
13
13
  componentId: "sc-1uztup5-2"
14
14
  })([""]);
15
- export var AddButton = styled(Button).withConfig({
15
+ const AddButton = /* @__PURE__ */ styled(Button).withConfig({
16
16
  displayName: "EditableListstyles__AddButton",
17
17
  componentId: "sc-1uztup5-3"
18
18
  })(["span{padding:0 4px;}"]);
19
- export var AddIconWrapper = styled.div.withConfig({
19
+ const AddIconWrapper = /* @__PURE__ */ styled.div.withConfig({
20
20
  displayName: "EditableListstyles__AddIconWrapper",
21
21
  componentId: "sc-1uztup5-4"
22
22
  })(["display:inline-block;"]);
23
- export var CrudWrapper = styled.div.withConfig({
23
+ const CrudWrapper = /* @__PURE__ */ styled.div.withConfig({
24
24
  displayName: "EditableListstyles__CrudWrapper",
25
25
  componentId: "sc-1uztup5-5"
26
- })(["padding-left:4px;margin-top:", ";"], function (props) {
27
- return props.marginWithLabel ? '30px' : '4px';
28
- });
29
- export var InputWrapper = styled.div.withConfig({
26
+ })(["padding-left:4px;margin-top:", ";"], (props) => props.marginWithLabel ? "30px" : "4px");
27
+ const InputWrapper = /* @__PURE__ */ styled.div.withConfig({
30
28
  displayName: "EditableListstyles__InputWrapper",
31
29
  componentId: "sc-1uztup5-6"
32
- })(["padding-left:4px;"]);
30
+ })(["padding-left:4px;"]);
31
+ export {
32
+ AddButton,
33
+ AddIconWrapper,
34
+ AutoCompleteWrapper,
35
+ ButtonWrapper,
36
+ CrudWrapper,
37
+ InputWrapper,
38
+ RowWrapper
39
+ };
@@ -1,6 +1,6 @@
1
- import type { InputProps } from 'antd/lib/input';
2
- import type { ReactNode } from 'react';
3
- import type { AutocompleteProps } from '@synerise/ds-autocomplete';
1
+ import { InputProps } from 'antd/lib/input';
2
+ import { ReactNode } from 'react';
3
+ import { AutocompleteProps } from '@synerise/ds-autocomplete';
4
4
  export type EditableParam = {
5
5
  name: string;
6
6
  value: string;
@@ -1 +1 @@
1
- export {};
1
+
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { type FieldSetProps } from './FieldSet.types';
1
+ import { default as React } from 'react';
2
+ import { FieldSetProps } from './FieldSet.types';
3
3
  /**
4
4
  * @deprecated - FieldSet component will no longer be supported
5
5
  */
@@ -1,19 +1,20 @@
1
- import React from 'react';
2
- import Divider from '@synerise/ds-divider';
3
- import * as S from './FieldSet.styles';
4
- /**
5
- * @deprecated - FieldSet component will no longer be supported
6
- */
7
- var FieldSet = function FieldSet(_ref) {
8
- var className = _ref.className,
9
- heading = _ref.heading,
10
- description = _ref.description,
11
- withLine = _ref.withLine,
12
- children = _ref.children;
13
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(S.TopWrapper, {
14
- className: className
15
- }, /*#__PURE__*/React.createElement(S.Heading, null, heading), /*#__PURE__*/React.createElement(S.Description, null, description), withLine && /*#__PURE__*/React.createElement(Divider, {
16
- marginTop: 18
17
- })), children);
1
+ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
+ import Divider from "@synerise/ds-divider";
3
+ import { TopWrapper, Heading, Description } from "./FieldSet.styles.js";
4
+ const FieldSet = ({
5
+ className,
6
+ heading,
7
+ description,
8
+ withLine,
9
+ children
10
+ }) => /* @__PURE__ */ jsxs(Fragment, { children: [
11
+ /* @__PURE__ */ jsxs(TopWrapper, { className, children: [
12
+ /* @__PURE__ */ jsx(Heading, { children: heading }),
13
+ /* @__PURE__ */ jsx(Description, { children: description }),
14
+ withLine && /* @__PURE__ */ jsx(Divider, { marginTop: 18 })
15
+ ] }),
16
+ children
17
+ ] });
18
+ export {
19
+ FieldSet as default
18
20
  };
19
- export default FieldSet;
@@ -1,3 +1,3 @@
1
- export declare const TopWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const Heading: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const TopWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
2
+ export declare const Heading: import('styled-components').StyledComponent<"div", any, {}, never>;
3
3
  export declare const Description = "div";
@@ -1,11 +1,16 @@
1
- import styled from 'styled-components';
2
- import { macro } from '@synerise/ds-typography';
3
- export var TopWrapper = styled.div.withConfig({
1
+ import styled from "styled-components";
2
+ import { macro } from "@synerise/ds-typography";
3
+ const TopWrapper = /* @__PURE__ */ styled.div.withConfig({
4
4
  displayName: "FieldSetstyles__TopWrapper",
5
5
  componentId: "sc-pb79tu-0"
6
6
  })(["margin-bottom:24px;"]);
7
- export var Heading = styled.div.withConfig({
7
+ const Heading = /* @__PURE__ */ styled.div.withConfig({
8
8
  displayName: "FieldSetstyles__Heading",
9
9
  componentId: "sc-pb79tu-1"
10
10
  })(["margin-bottom:4px;", ";", ";"], macro.heading, macro.h400);
11
- export var Description = 'div';
11
+ const Description = "div";
12
+ export {
13
+ Description,
14
+ Heading,
15
+ TopWrapper
16
+ };
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  export interface FieldSetProps {
3
3
  className?: string;
4
4
  heading: ReactNode;
@@ -1 +1 @@
1
- export {};
1
+
package/dist/Form.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import FieldSet from './Elements/FieldSet/FieldSet';
1
+ import { default as React } from 'react';
2
+ import { default as FieldSet } from './Elements/FieldSet/FieldSet';
3
3
  declare class Form extends React.Component {
4
4
  static FieldSet: typeof FieldSet;
5
5
  }
package/dist/Form.js CHANGED
@@ -1,13 +1,9 @@
1
- function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
2
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
3
- import React from 'react';
4
- import FieldSet from './Elements/FieldSet/FieldSet';
5
- var Form = /*#__PURE__*/function (_React$Component) {
6
- function Form() {
7
- return _React$Component.apply(this, arguments) || this;
8
- }
9
- _inheritsLoose(Form, _React$Component);
10
- return Form;
11
- }(React.Component);
12
- Form.FieldSet = FieldSet;
13
- export default Form;
1
+ import React from "react";
2
+ import FieldSet from "./Elements/FieldSet/FieldSet.js";
3
+ const _Form = class _Form extends React.Component {
4
+ };
5
+ _Form.FieldSet = FieldSet;
6
+ let Form = _Form;
7
+ export {
8
+ Form as default
9
+ };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { EditableList } from './EditableList/EditableList';
2
- import type { EditListProps, EditableParam } from './EditableList/EditableList.types';
2
+ import { EditListProps, EditableParam } from './EditableList/EditableList.types';
3
3
  export { EditableList };
4
4
  export { default } from './Form';
5
5
  export type { EditableParam, EditListProps };
package/dist/index.js CHANGED
@@ -1,3 +1,6 @@
1
- import { EditableList } from './EditableList/EditableList';
2
- export { EditableList };
3
- export { default } from './Form';
1
+ import { EditableList } from "./EditableList/EditableList.js";
2
+ import { default as default2 } from "./Form.js";
3
+ export {
4
+ EditableList,
5
+ default2 as default
6
+ };
package/dist/modules.d.js CHANGED
@@ -1 +1 @@
1
- import '@testing-library/jest-dom';
1
+ import "@testing-library/jest-dom";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-form",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Form 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,13 +35,13 @@
35
35
  ],
36
36
  "types": "dist/index.d.ts",
37
37
  "dependencies": {
38
- "@synerise/ds-autocomplete": "^1.2.33",
39
- "@synerise/ds-button": "^1.5.16",
40
- "@synerise/ds-cruds": "^1.1.0",
41
- "@synerise/ds-divider": "^1.3.0",
42
- "@synerise/ds-icon": "^1.14.1",
43
- "@synerise/ds-input": "^1.6.8",
44
- "@synerise/ds-typography": "^1.1.11"
38
+ "@synerise/ds-autocomplete": "^1.2.35",
39
+ "@synerise/ds-button": "^1.5.18",
40
+ "@synerise/ds-cruds": "^1.1.2",
41
+ "@synerise/ds-divider": "^1.3.2",
42
+ "@synerise/ds-icon": "^1.15.1",
43
+ "@synerise/ds-input": "^1.6.10",
44
+ "@synerise/ds-typography": "^1.1.13"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@synerise/ds-core": "*",
@@ -49,5 +49,5 @@
49
49
  "react": ">=16.9.0 <= 18.3.1",
50
50
  "styled-components": "^5.3.3"
51
51
  },
52
- "gitHead": "8dfafc5d7278f09d430f1e7499782d05c76b47c0"
52
+ "gitHead": "e4ecca8944fc9b41c1b9d59c8bcad5e5e2013225"
53
53
  }
@@ -1 +0,0 @@
1
- export {};