@synerise/ds-form 1.2.2 → 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 +4 -0
- package/dist/EditableList/EditableList.d.ts +2 -2
- package/dist/EditableList/EditableList.js +65 -89
- package/dist/EditableList/EditableList.styles.d.ts +7 -7
- package/dist/EditableList/EditableList.styles.js +20 -13
- package/dist/EditableList/EditableList.types.d.ts +3 -3
- package/dist/EditableList/EditableList.types.js +1 -1
- package/dist/Elements/FieldSet/FieldSet.d.ts +2 -2
- package/dist/Elements/FieldSet/FieldSet.js +19 -18
- package/dist/Elements/FieldSet/FieldSet.styles.d.ts +2 -2
- package/dist/Elements/FieldSet/FieldSet.styles.js +10 -5
- package/dist/Elements/FieldSet/FieldSet.types.d.ts +1 -1
- package/dist/Elements/FieldSet/FieldSet.types.js +1 -1
- package/dist/Form.d.ts +2 -2
- package/dist/Form.js +9 -13
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -3
- package/dist/modules.d.js +1 -1
- package/package.json +11 -11
- package/dist/Elements/FieldSet/__specs__/FieldSet.spec.d.ts +0 -1
- /package/dist/{EditableList/__spec__/EditableList.spec.d.ts → modules.d.ts} +0 -0
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.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
|
+
|
|
6
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)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @synerise/ds-form
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
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
|
-
|
|
2
|
-
import React from
|
|
3
|
-
import Autocomplete from
|
|
4
|
-
import { theme } from
|
|
5
|
-
import Cruds from
|
|
6
|
-
import Icon, { Add3M } from
|
|
7
|
-
import { Input } from
|
|
8
|
-
import
|
|
9
|
-
|
|
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
|
-
|
|
14
|
+
const defaultSecondInputProps = {
|
|
15
15
|
style: {
|
|
16
16
|
width: 300
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
|
41
|
+
name,
|
|
46
42
|
value: newValue
|
|
47
43
|
};
|
|
48
44
|
return updatedParams;
|
|
49
45
|
};
|
|
50
|
-
React.useEffect(
|
|
46
|
+
React.useEffect(() => {
|
|
51
47
|
setParams(value);
|
|
52
48
|
}, [value]);
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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 (
|
|
72
|
-
|
|
58
|
+
if (onChange) {
|
|
59
|
+
onChange(newParams);
|
|
73
60
|
}
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
|
|
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 (
|
|
84
|
-
|
|
65
|
+
if (onChange) {
|
|
66
|
+
onChange(newParams);
|
|
85
67
|
}
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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
|
-
}))
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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 {
|
|
2
|
-
export declare const RowWrapper: import(
|
|
3
|
-
export declare const AutoCompleteWrapper: import(
|
|
4
|
-
export declare const ButtonWrapper: import(
|
|
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(
|
|
7
|
-
export declare const CrudWrapper: import(
|
|
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(
|
|
10
|
+
export declare const InputWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
-
import styled from
|
|
2
|
-
import Button from
|
|
3
|
-
|
|
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
|
-
|
|
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
|
-
|
|
11
|
+
const ButtonWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
12
12
|
displayName: "EditableListstyles__ButtonWrapper",
|
|
13
13
|
componentId: "sc-1uztup5-2"
|
|
14
14
|
})([""]);
|
|
15
|
-
|
|
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
|
-
|
|
19
|
+
const AddIconWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
20
20
|
displayName: "EditableListstyles__AddIconWrapper",
|
|
21
21
|
componentId: "sc-1uztup5-4"
|
|
22
22
|
})(["display:inline-block;"]);
|
|
23
|
-
|
|
23
|
+
const CrudWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
24
24
|
displayName: "EditableListstyles__CrudWrapper",
|
|
25
25
|
componentId: "sc-1uztup5-5"
|
|
26
|
-
})(["padding-left:4px;margin-top:", ";"],
|
|
27
|
-
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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
|
-
|
|
1
|
+
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Divider from
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
children
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
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(
|
|
2
|
-
export declare const Heading: import(
|
|
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
|
|
2
|
-
import { macro } from
|
|
3
|
-
|
|
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
|
-
|
|
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
|
-
|
|
11
|
+
const Description = "div";
|
|
12
|
+
export {
|
|
13
|
+
Description,
|
|
14
|
+
Heading,
|
|
15
|
+
TopWrapper
|
|
16
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
|
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
|
|
2
|
-
|
|
3
|
-
export {
|
|
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
|
|
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.
|
|
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": "
|
|
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": "
|
|
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.
|
|
39
|
-
"@synerise/ds-button": "^1.5.
|
|
40
|
-
"@synerise/ds-cruds": "^1.1.
|
|
41
|
-
"@synerise/ds-divider": "^1.3.
|
|
42
|
-
"@synerise/ds-icon": "^1.15.
|
|
43
|
-
"@synerise/ds-input": "^1.6.
|
|
44
|
-
"@synerise/ds-typography": "^1.1.
|
|
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": "
|
|
52
|
+
"gitHead": "e4ecca8944fc9b41c1b9d59c8bcad5e5e2013225"
|
|
53
53
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|