@synerise/ds-subject 1.1.22 → 1.1.24
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 +8 -0
- package/dist/Subject.d.ts +2 -2
- package/dist/Subject.js +36 -63
- package/dist/Subject.style.d.ts +2 -2
- package/dist/Subject.style.js +9 -5
- package/dist/Subject.types.d.ts +1 -1
- package/dist/Subject.types.js +4 -1
- package/dist/SubjectList/SubjectList.d.ts +2 -2
- package/dist/SubjectList/SubjectList.js +37 -69
- package/dist/SubjectList/SubjectList.styles.d.ts +3 -3
- package/dist/SubjectList/SubjectList.styles.js +12 -11
- package/dist/SubjectList/SubjectListItem.d.ts +2 -2
- package/dist/SubjectList/SubjectListItem.js +19 -23
- package/dist/SubjectTrigger/SubjectTrigger.d.ts +2 -2
- package/dist/SubjectTrigger/SubjectTrigger.js +23 -26
- package/dist/index.js +4 -1
- package/dist/modules.d.js +1 -1
- package/dist/modules.d.ts +0 -0
- package/package.json +11 -11
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.1.24](https://github.com/Synerise/synerise-design/compare/@synerise/ds-subject@1.1.23...@synerise/ds-subject@1.1.24) (2026-03-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-subject
|
|
9
|
+
|
|
10
|
+
## [1.1.23](https://github.com/Synerise/synerise-design/compare/@synerise/ds-subject@1.1.22...@synerise/ds-subject@1.1.23) (2026-03-20)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @synerise/ds-subject
|
|
13
|
+
|
|
6
14
|
## [1.1.22](https://github.com/Synerise/synerise-design/compare/@synerise/ds-subject@1.1.21...@synerise/ds-subject@1.1.22) (2026-03-09)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @synerise/ds-subject
|
package/dist/Subject.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SubjectProps } from './Subject.types';
|
|
3
3
|
declare const Subject: ({ selectedItem, iconPlaceholder, items, placeholder, onSelectItem, onShowPreview, type, getPopupContainerOverride, onActivate, onDeactivate, texts, opened, }: SubjectProps) => React.JSX.Element;
|
|
4
4
|
export default Subject;
|
package/dist/Subject.js
CHANGED
|
@@ -1,69 +1,42 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return type && ['event', 'context'].indexOf(type) >= 0 ? 'cyan' : 'green';
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import React, { useEffect } from "react";
|
|
3
|
+
import Dropdown from "@synerise/ds-dropdown";
|
|
4
|
+
import Icon, { ShowM } from "@synerise/ds-icon";
|
|
5
|
+
import { Subject as Subject$1, ShowPreviewButton } from "./Subject.style.js";
|
|
6
|
+
import SubjectList from "./SubjectList/SubjectList.js";
|
|
7
|
+
import SubjectTrigger from "./SubjectTrigger/SubjectTrigger.js";
|
|
8
|
+
const Subject = ({
|
|
9
|
+
selectedItem,
|
|
10
|
+
iconPlaceholder,
|
|
11
|
+
items,
|
|
12
|
+
placeholder,
|
|
13
|
+
onSelectItem,
|
|
14
|
+
onShowPreview,
|
|
15
|
+
type = "parameter",
|
|
16
|
+
getPopupContainerOverride,
|
|
17
|
+
onActivate,
|
|
18
|
+
onDeactivate,
|
|
19
|
+
texts,
|
|
20
|
+
opened
|
|
21
|
+
}) => {
|
|
22
|
+
const [dropdownVisible, setDropdownVisible] = React.useState(false);
|
|
23
|
+
const color = React.useMemo(() => {
|
|
24
|
+
return type && ["event", "context"].indexOf(type) >= 0 ? "cyan" : "green";
|
|
26
25
|
}, [type]);
|
|
27
|
-
|
|
28
|
-
value && onActivate && onActivate(
|
|
26
|
+
const onDropdownVisibilityChange = React.useCallback((value) => {
|
|
27
|
+
value && onActivate && onActivate("");
|
|
29
28
|
setDropdownVisible(value);
|
|
30
29
|
}, [onActivate]);
|
|
31
|
-
useEffect(
|
|
30
|
+
useEffect(() => {
|
|
32
31
|
setDropdownVisible(Boolean(opened));
|
|
33
32
|
}, [opened]);
|
|
34
|
-
return
|
|
35
|
-
open: dropdownVisible,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
items: items,
|
|
44
|
-
onSelectItem: onSelectItem,
|
|
45
|
-
hideDropdown: function hideDropdown() {
|
|
46
|
-
return setDropdownVisible(false);
|
|
47
|
-
}
|
|
48
|
-
}),
|
|
49
|
-
popoverProps: {
|
|
50
|
-
testId: 'subject'
|
|
51
|
-
}
|
|
52
|
-
}, /*#__PURE__*/React.createElement(SubjectTrigger, {
|
|
53
|
-
onClick: function onClick() {
|
|
54
|
-
return setDropdownVisible(true);
|
|
55
|
-
},
|
|
56
|
-
color: color,
|
|
57
|
-
iconPlaceholder: iconPlaceholder,
|
|
58
|
-
placeholder: placeholder,
|
|
59
|
-
selectedItem: selectedItem
|
|
60
|
-
})), onShowPreview && /*#__PURE__*/React.createElement(S.ShowPreviewButton, {
|
|
61
|
-
onClick: onShowPreview,
|
|
62
|
-
type: "custom-color",
|
|
63
|
-
mode: "single-icon",
|
|
64
|
-
color: color
|
|
65
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
66
|
-
component: /*#__PURE__*/React.createElement(ShowM, null)
|
|
67
|
-
})));
|
|
33
|
+
return /* @__PURE__ */ jsxs(Subject$1, { children: [
|
|
34
|
+
/* @__PURE__ */ jsx(Dropdown, { open: dropdownVisible, getPopupContainer: getPopupContainerOverride, onOpenChange: onDropdownVisibilityChange, onDismiss: onDeactivate, size: "medium", asChild: true, overlay: /* @__PURE__ */ jsx(SubjectList, { texts, items, onSelectItem, hideDropdown: () => setDropdownVisible(false) }), popoverProps: {
|
|
35
|
+
testId: "subject"
|
|
36
|
+
}, children: /* @__PURE__ */ jsx(SubjectTrigger, { onClick: () => setDropdownVisible(true), color, iconPlaceholder, placeholder, selectedItem }) }),
|
|
37
|
+
onShowPreview && /* @__PURE__ */ jsx(ShowPreviewButton, { onClick: onShowPreview, type: "custom-color", mode: "single-icon", color, children: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(ShowM, {}) }) })
|
|
38
|
+
] });
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
Subject as default
|
|
68
42
|
};
|
|
69
|
-
export default Subject;
|
package/dist/Subject.style.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StyledButton } from '@synerise/ds-button';
|
|
2
2
|
export declare const ShowPreviewButton: StyledButton;
|
|
3
|
-
export declare const Subject: import(
|
|
3
|
+
export declare const Subject: import('styled-components').StyledComponent<"div", any, {}, never>;
|
package/dist/Subject.style.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import styled from
|
|
2
|
-
import Button from
|
|
3
|
-
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import Button from "@synerise/ds-button";
|
|
3
|
+
const ShowPreviewButton = /* @__PURE__ */ styled(Button).withConfig({
|
|
4
4
|
displayName: "Subjectstyle__ShowPreviewButton",
|
|
5
5
|
componentId: "sc-1y9zv0u-0"
|
|
6
6
|
})([""]);
|
|
7
|
-
|
|
7
|
+
const Subject = /* @__PURE__ */ styled.div.withConfig({
|
|
8
8
|
displayName: "Subjectstyle__Subject",
|
|
9
9
|
componentId: "sc-1y9zv0u-1"
|
|
10
|
-
})(["display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;", "{margin-left:8px;}"], ShowPreviewButton);
|
|
10
|
+
})(["display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;", "{margin-left:8px;}"], ShowPreviewButton);
|
|
11
|
+
export {
|
|
12
|
+
ShowPreviewButton,
|
|
13
|
+
Subject
|
|
14
|
+
};
|
package/dist/Subject.types.d.ts
CHANGED
package/dist/Subject.types.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SubjectListProps } from '../Subject.types';
|
|
3
3
|
declare const SubjectList: React.FC<SubjectListProps>;
|
|
4
4
|
export default SubjectList;
|
|
@@ -1,74 +1,42 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var classNames = React.useMemo(function () {
|
|
23
|
-
return "ds-subject-item ds-subject-item-" + uuid();
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { v4 } from "uuid";
|
|
4
|
+
import Dropdown from "@synerise/ds-dropdown";
|
|
5
|
+
import Icon, { SearchM } from "@synerise/ds-icon";
|
|
6
|
+
import Result from "@synerise/ds-result";
|
|
7
|
+
import Scrollbar from "@synerise/ds-scrollbar";
|
|
8
|
+
import { focusWithArrowKeys } from "@synerise/ds-utils";
|
|
9
|
+
import { ItemsList } from "./SubjectList.styles.js";
|
|
10
|
+
import SubjectListItem from "./SubjectListItem.js";
|
|
11
|
+
const SubjectList = ({
|
|
12
|
+
items,
|
|
13
|
+
onSelectItem,
|
|
14
|
+
hideDropdown,
|
|
15
|
+
texts
|
|
16
|
+
}) => {
|
|
17
|
+
const [searchQuery, setSearchQuery] = React.useState("");
|
|
18
|
+
const overlayRef = React.useRef(null);
|
|
19
|
+
const [searchInputCanBeFocused, setSearchInputFocus] = React.useState(true);
|
|
20
|
+
const classNames = React.useMemo(() => {
|
|
21
|
+
return `ds-subject-item ds-subject-item-${v4()}`;
|
|
24
22
|
}, []);
|
|
25
|
-
|
|
26
|
-
return items.filter(
|
|
27
|
-
return item.name.
|
|
28
|
-
}).map(function (item) {
|
|
29
|
-
return /*#__PURE__*/React.createElement(SubjectListItem, {
|
|
30
|
-
className: classNames,
|
|
31
|
-
searchQuery: searchQuery,
|
|
32
|
-
key: item.name + "-" + item.id,
|
|
33
|
-
select: onSelectItem,
|
|
34
|
-
hideDropdown: hideDropdown,
|
|
35
|
-
clearSearch: function clearSearch() {
|
|
36
|
-
return setSearchQuery('');
|
|
37
|
-
},
|
|
38
|
-
item: item
|
|
39
|
-
});
|
|
23
|
+
const renderItems = React.useMemo(() => {
|
|
24
|
+
return items.filter((item) => item.name.toLowerCase().includes(searchQuery.toLowerCase())).map((item) => {
|
|
25
|
+
return /* @__PURE__ */ jsx(SubjectListItem, { className: classNames, searchQuery, select: onSelectItem, hideDropdown, clearSearch: () => setSearchQuery(""), item }, `${item.name}-${item.id}`);
|
|
40
26
|
});
|
|
41
27
|
}, [items, searchQuery, hideDropdown, onSelectItem, setSearchQuery, classNames]);
|
|
42
|
-
return
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
}, /*#__PURE__*/React.createElement(Dropdown.SearchInput, {
|
|
52
|
-
autofocus: !searchQuery || searchInputCanBeFocused,
|
|
53
|
-
iconLeft: /*#__PURE__*/React.createElement(Icon, {
|
|
54
|
-
component: /*#__PURE__*/React.createElement(SearchM, null)
|
|
55
|
-
}),
|
|
56
|
-
onSearchChange: setSearchQuery,
|
|
57
|
-
placeholder: texts.searchPlaceholder,
|
|
58
|
-
value: searchQuery,
|
|
59
|
-
onClearInput: function onClearInput() {
|
|
60
|
-
return setSearchQuery('');
|
|
61
|
-
}
|
|
62
|
-
}), /*#__PURE__*/React.createElement(S.ItemsList, null, /*#__PURE__*/React.createElement(Scrollbar, {
|
|
63
|
-
style: {
|
|
28
|
+
return /* @__PURE__ */ jsxs(Dropdown.Wrapper, { ref: overlayRef, "data-testid": "subject-overlay", onKeyDown: (e) => {
|
|
29
|
+
setSearchInputFocus(false);
|
|
30
|
+
searchQuery && focusWithArrowKeys(e, classNames.split(" ")[1], () => {
|
|
31
|
+
setSearchInputFocus(true);
|
|
32
|
+
});
|
|
33
|
+
}, children: [
|
|
34
|
+
/* @__PURE__ */ jsx(Dropdown.SearchInput, { autofocus: !searchQuery || searchInputCanBeFocused, iconLeft: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(SearchM, {}) }), onSearchChange: setSearchQuery, placeholder: texts.searchPlaceholder, value: searchQuery, onClearInput: () => setSearchQuery("") }),
|
|
35
|
+
/* @__PURE__ */ jsx(ItemsList, { children: /* @__PURE__ */ jsx(Scrollbar, { style: {
|
|
64
36
|
padding: 8
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
type: "no-results",
|
|
71
|
-
description: texts.noResults
|
|
72
|
-
}))));
|
|
37
|
+
}, absolute: true, maxHeight: 300, children: renderItems.length ? renderItems : /* @__PURE__ */ jsx(Result, { noSearchResults: true, type: "no-results", description: texts.noResults }) }) })
|
|
38
|
+
] });
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
SubjectList as default
|
|
73
42
|
};
|
|
74
|
-
export default SubjectList;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const SearchResult: import(
|
|
2
|
-
export declare const SearchResultHighlight: import(
|
|
3
|
-
export declare const ItemsList: import(
|
|
1
|
+
export declare const SearchResult: import('styled-components').StyledComponent<"span", any, {}, never>;
|
|
2
|
+
export declare const SearchResultHighlight: import('styled-components').StyledComponent<"span", any, {}, never>;
|
|
3
|
+
export declare const ItemsList: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import styled from
|
|
2
|
-
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
const SearchResult = /* @__PURE__ */ styled.span.withConfig({
|
|
3
3
|
displayName: "SubjectListstyles__SearchResult",
|
|
4
4
|
componentId: "sc-1b94el7-0"
|
|
5
|
-
})(["font-weight:400;color:", ";"],
|
|
6
|
-
|
|
7
|
-
});
|
|
8
|
-
export var SearchResultHighlight = styled.span.withConfig({
|
|
5
|
+
})(["font-weight:400;color:", ";"], (props) => props.theme.palette["grey-500"]);
|
|
6
|
+
const SearchResultHighlight = /* @__PURE__ */ styled.span.withConfig({
|
|
9
7
|
displayName: "SubjectListstyles__SearchResultHighlight",
|
|
10
8
|
componentId: "sc-1b94el7-1"
|
|
11
|
-
})(["font-weight:500;color:", ";"],
|
|
12
|
-
|
|
13
|
-
});
|
|
14
|
-
export var ItemsList = styled.div.withConfig({
|
|
9
|
+
})(["font-weight:500;color:", ";"], (props) => props.theme.palette["grey-700"]);
|
|
10
|
+
const ItemsList = /* @__PURE__ */ styled.div.withConfig({
|
|
15
11
|
displayName: "SubjectListstyles__ItemsList",
|
|
16
12
|
componentId: "sc-1b94el7-2"
|
|
17
|
-
})(["width:100%;"]);
|
|
13
|
+
})(["width:100%;"]);
|
|
14
|
+
export {
|
|
15
|
+
ItemsList,
|
|
16
|
+
SearchResult,
|
|
17
|
+
SearchResultHighlight
|
|
18
|
+
};
|
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Icon from
|
|
3
|
-
import ListItem from
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
component: item.icon
|
|
21
|
-
})
|
|
22
|
-
}, item.name);
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import Icon from "@synerise/ds-icon";
|
|
3
|
+
import ListItem from "@synerise/ds-list-item";
|
|
4
|
+
const SubjectListItem = ({
|
|
5
|
+
item,
|
|
6
|
+
clearSearch,
|
|
7
|
+
searchQuery,
|
|
8
|
+
hideDropdown,
|
|
9
|
+
select,
|
|
10
|
+
className
|
|
11
|
+
}) => {
|
|
12
|
+
return /* @__PURE__ */ jsx(ListItem, { className, highlight: searchQuery, onClick: () => {
|
|
13
|
+
hideDropdown();
|
|
14
|
+
clearSearch();
|
|
15
|
+
select(item);
|
|
16
|
+
}, prefixel: /* @__PURE__ */ jsx(Icon, { component: item.icon }), children: item.name });
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
SubjectListItem as default
|
|
23
20
|
};
|
|
24
|
-
export default SubjectListItem;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const SubjectTrigger: React.ForwardRefExoticComponent<Pick<import(
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const SubjectTrigger: React.ForwardRefExoticComponent<Pick<import('../Subject.types').SubjectProps, "placeholder" | "iconPlaceholder" | "selectedItem"> & {
|
|
3
3
|
color: string;
|
|
4
4
|
onClick: () => void;
|
|
5
5
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,29 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef, useMemo } from "react";
|
|
3
|
+
import Button from "@synerise/ds-button";
|
|
4
|
+
import Icon, { AngleDownS } from "@synerise/ds-icon";
|
|
5
|
+
const SubjectTrigger = forwardRef(({
|
|
6
|
+
iconPlaceholder,
|
|
7
|
+
placeholder,
|
|
8
|
+
selectedItem,
|
|
9
|
+
color,
|
|
10
|
+
onClick
|
|
11
|
+
}, ref) => {
|
|
12
|
+
const icon = useMemo(() => {
|
|
13
|
+
return selectedItem !== void 0 ? selectedItem.icon : iconPlaceholder;
|
|
12
14
|
}, [selectedItem, iconPlaceholder]);
|
|
13
|
-
|
|
14
|
-
return selectedItem !==
|
|
15
|
+
const label = useMemo(() => {
|
|
16
|
+
return selectedItem !== void 0 ? selectedItem.name : placeholder;
|
|
15
17
|
}, [selectedItem, placeholder]);
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
color: color,
|
|
22
|
-
onClick: onClick
|
|
23
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
24
|
-
component: icon
|
|
25
|
-
}), label, /*#__PURE__*/React.createElement(Icon, {
|
|
26
|
-
component: /*#__PURE__*/React.createElement(AngleDownS, null)
|
|
27
|
-
}));
|
|
18
|
+
return /* @__PURE__ */ jsxs(Button, { ref, "data-testid": "subject-trigger", type: "custom-color", mode: "two-icons", color, onClick, children: [
|
|
19
|
+
/* @__PURE__ */ jsx(Icon, { component: icon }),
|
|
20
|
+
label,
|
|
21
|
+
/* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(AngleDownS, {}) })
|
|
22
|
+
] });
|
|
28
23
|
});
|
|
29
|
-
export
|
|
24
|
+
export {
|
|
25
|
+
SubjectTrigger as default
|
|
26
|
+
};
|
package/dist/index.js
CHANGED
package/dist/modules.d.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-subject",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.24",
|
|
4
4
|
"description": "Subject 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-button": "^1.5.
|
|
39
|
-
"@synerise/ds-dropdown": "^1.3.
|
|
40
|
-
"@synerise/ds-icon": "^1.
|
|
41
|
-
"@synerise/ds-list-item": "^1.4.
|
|
42
|
-
"@synerise/ds-result": "^1.0.
|
|
43
|
-
"@synerise/ds-scrollbar": "^1.2.
|
|
44
|
-
"@synerise/ds-utils": "^1.
|
|
38
|
+
"@synerise/ds-button": "^1.5.18",
|
|
39
|
+
"@synerise/ds-dropdown": "^1.3.2",
|
|
40
|
+
"@synerise/ds-icon": "^1.15.1",
|
|
41
|
+
"@synerise/ds-list-item": "^1.4.10",
|
|
42
|
+
"@synerise/ds-result": "^1.0.49",
|
|
43
|
+
"@synerise/ds-scrollbar": "^1.2.17",
|
|
44
|
+
"@synerise/ds-utils": "^1.7.1",
|
|
45
45
|
"uuid": "^8.3.2"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
@@ -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
|
}
|