@synerise/ds-logic 1.1.30 → 1.1.32

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.1.32](https://github.com/Synerise/synerise-design/compare/@synerise/ds-logic@1.1.31...@synerise/ds-logic@1.1.32) (2026-03-24)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-logic
9
+
10
+ ## [1.1.31](https://github.com/Synerise/synerise-design/compare/@synerise/ds-logic@1.1.30...@synerise/ds-logic@1.1.31) (2026-03-20)
11
+
12
+ **Note:** Version bump only for package @synerise/ds-logic
13
+
6
14
  ## [1.1.30](https://github.com/Synerise/synerise-design/compare/@synerise/ds-logic@1.1.29...@synerise/ds-logic@1.1.30) (2026-03-09)
7
15
 
8
16
  **Note:** Version bump only for package @synerise/ds-logic
package/README.md CHANGED
@@ -13,7 +13,7 @@ or
13
13
  yarn add @synerise/ds-logic
14
14
  ```
15
15
 
16
- ## Usage of Login
16
+ ## Usage of Logic
17
17
 
18
18
  ```
19
19
  import Logic from '@synerise/ds-logic'
@@ -39,9 +39,10 @@ import Logic from '@synerise/ds-logic'
39
39
 
40
40
  | Property | Description | Type | Default |
41
41
  | -------- | ------------------------------------------ | ----------------------- | ------------------------------------------------------------ |
42
- | value | Value of logic component | string | - |
43
- | onChange | Function called when user change the value | (value: string) => void | - |
44
- | options | Custom list of options | LogicOperator[] | `[{value: 'AND', label: 'And'}, {value: 'OR', label: 'Or'}]` |
42
+ | value | Value of logic component | `LogicOperatorValue` (`'AND' \| 'OR' \| string`) | - |
43
+ | onChange | Function called when user change the value | `(value: LogicOperatorValue) => void` | - |
44
+ | options | Custom list of options | `LogicOperator[]` | i18n-resolved `AND` / `OR` labels (`DS.LOGIC.AND`, `DS.LOGIC.OR`) |
45
+ | readOnly | Disables click interaction and hover styles | `boolean` | `false` |
45
46
 
46
47
  ### LogicOperator
47
48
 
@@ -54,10 +55,11 @@ import Logic from '@synerise/ds-logic'
54
55
 
55
56
  | Property | Description | Type | Default |
56
57
  | -------- | --------------------------------------------------------------------------------------- | --------------------------- | ------- |
57
- | matching | Value of Matching component | boolean | false |
58
+ | matching | Value of Matching component | boolean | `true` |
58
59
  | sentence | Custom sentence require `#MATCHING_TOGGLE#`, which will be replaced by Toggle component | string | - |
59
60
  | onChange | Function called when user click on Toggle component | (matching: boolean) => void | - |
60
- | texts | Custom labels of Matching, Not matching | MatchingTexts | - |
61
+ | texts | Custom labels of Matching, Not matching | `Partial<MatchingTexts>` | - |
62
+ | readOnly | Disables click interaction and hover styles | `boolean` | `false` |
61
63
 
62
64
  ### MatchingTexts
63
65
 
package/dist/Logic.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { type LogicProps, type LogicSubComponents } from './Logic.types';
1
+ import { default as React } from 'react';
2
+ import { LogicProps, LogicSubComponents } from './Logic.types';
3
3
  declare const Logic: React.FC<LogicProps> & LogicSubComponents;
4
4
  export default Logic;
package/dist/Logic.js CHANGED
@@ -1,50 +1,39 @@
1
- import React from 'react';
2
- import { useIntl } from 'react-intl';
3
- import { Title } from '@synerise/ds-typography';
4
- import * as S from './Logic.style';
5
- import Matching from './Matching/Matching';
6
- var DEFAULT_OPTIONS = ['AND', 'OR'];
7
- var Logic = function Logic(_ref) {
8
- var value = _ref.value,
9
- options = _ref.options,
10
- onChange = _ref.onChange,
11
- _ref$readOnly = _ref.readOnly,
12
- readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly;
13
- var intl = useIntl();
14
- var operators = React.useMemo(function () {
15
- if (options !== undefined && options.length) {
1
+ import { jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { useIntl } from "react-intl";
4
+ import { Title } from "@synerise/ds-typography";
5
+ import { Logic as Logic$1 } from "./Logic.style.js";
6
+ import Matching from "./Matching/Matching.js";
7
+ const DEFAULT_OPTIONS = ["AND", "OR"];
8
+ const Logic = ({
9
+ value,
10
+ options,
11
+ onChange,
12
+ readOnly = false
13
+ }) => {
14
+ const intl = useIntl();
15
+ const operators = React.useMemo(() => {
16
+ if (options !== void 0 && options.length) {
16
17
  return options;
17
18
  }
18
- return DEFAULT_OPTIONS.map(function (option) {
19
- return {
20
- value: option,
21
- label: intl.formatMessage({
22
- id: "DS.LOGIC." + option
23
- })
24
- };
25
- });
19
+ return DEFAULT_OPTIONS.map((option) => ({
20
+ value: option,
21
+ label: intl.formatMessage({
22
+ id: `DS.LOGIC.${option}`
23
+ })
24
+ }));
26
25
  }, [options, intl]);
27
- var handleNextLogic = React.useCallback(function () {
28
- var currentOperatorIndex = operators.findIndex(function (operator) {
29
- return operator.value === value;
30
- });
31
- var nextOperatorIndex = currentOperatorIndex + 1 >= operators.length ? 0 : currentOperatorIndex + 1;
26
+ const handleNextLogic = React.useCallback(() => {
27
+ const currentOperatorIndex = operators.findIndex((operator) => operator.value === value);
28
+ const nextOperatorIndex = currentOperatorIndex + 1 >= operators.length ? 0 : currentOperatorIndex + 1;
32
29
  onChange(operators[nextOperatorIndex].value);
33
30
  }, [onChange, operators, value]);
34
- var renderValue = React.useMemo(function () {
35
- var _operators$find;
36
- return (_operators$find = operators.find(function (option) {
37
- return option.value === value;
38
- })) == null ? void 0 : _operators$find.label;
31
+ const renderValue = React.useMemo(() => {
32
+ return operators.find((option) => option.value === value)?.label;
39
33
  }, [operators, value]);
40
- return /*#__PURE__*/React.createElement(S.Logic, {
41
- className: "ds-logic",
42
- onClick: !readOnly ? handleNextLogic : undefined,
43
- readOnly: readOnly
44
- }, /*#__PURE__*/React.createElement(Title, {
45
- withoutMargin: true,
46
- level: 4
47
- }, renderValue));
34
+ return /* @__PURE__ */ jsx(Logic$1, { className: "ds-logic", onClick: !readOnly ? handleNextLogic : void 0, readOnly, children: /* @__PURE__ */ jsx(Title, { withoutMargin: true, level: 4, children: renderValue }) });
48
35
  };
49
36
  Logic.Matching = Matching;
50
- export default Logic;
37
+ export {
38
+ Logic as default
39
+ };
@@ -1,3 +1,3 @@
1
- export declare const Logic: import("styled-components").StyledComponent<"div", any, {
1
+ export declare const Logic: import('styled-components').StyledComponent<"div", any, {
2
2
  readOnly?: boolean;
3
3
  }, never>;
@@ -1,13 +1,40 @@
1
- import styled from 'styled-components';
2
- export var Logic = styled.div.withConfig({
1
+ import styled from "styled-components";
2
+ const Logic = /* @__PURE__ */ styled.div.withConfig({
3
3
  displayName: "Logicstyle__Logic",
4
4
  componentId: "sc-yp0pif-0"
5
- })(["user-select:none;position:relative;.ds-title{cursor:pointer;", "}", ""], function (_ref) {
6
- var readOnly = _ref.readOnly,
7
- theme = _ref.theme;
8
- return !readOnly ? "&:after {\n position: absolute;\n bottom: -2px;\n width: 100%;\n content: '';\n height: 1px;\n left: 1px;\n background-image: linear-gradient(\n to right,\n " + theme.palette['grey-600'] + " 25%,\n " + theme.palette.white + " 0%\n );\n background-position: top;\n background-size: 4px 1px;\n background-repeat: repeat-x;\n }" : '';
9
- }, function (_ref2) {
10
- var readOnly = _ref2.readOnly,
11
- theme = _ref2.theme;
12
- return !readOnly ? " &:hover {\n .ds-title {\n color: " + theme.palette['blue-700'] + ";\n &:after {\n background-image: linear-gradient(\n to right,\n " + theme.palette['blue-700'] + " 25%,\n " + theme.palette.white + " 0%\n );\n }\n }\n }" : '';
13
- });
5
+ })(["user-select:none;position:relative;.ds-title{cursor:pointer;", "}", ""], ({
6
+ readOnly,
7
+ theme
8
+ }) => !readOnly ? `&:after {
9
+ position: absolute;
10
+ bottom: -2px;
11
+ width: 100%;
12
+ content: '';
13
+ height: 1px;
14
+ left: 1px;
15
+ background-image: linear-gradient(
16
+ to right,
17
+ ${theme.palette["grey-600"]} 25%,
18
+ ${theme.palette.white} 0%
19
+ );
20
+ background-position: top;
21
+ background-size: 4px 1px;
22
+ background-repeat: repeat-x;
23
+ }` : "", ({
24
+ readOnly,
25
+ theme
26
+ }) => !readOnly ? ` &:hover {
27
+ .ds-title {
28
+ color: ${theme.palette["blue-700"]};
29
+ &:after {
30
+ background-image: linear-gradient(
31
+ to right,
32
+ ${theme.palette["blue-700"]} 25%,
33
+ ${theme.palette.white} 0%
34
+ );
35
+ }
36
+ }
37
+ }` : "");
38
+ export {
39
+ Logic
40
+ };
@@ -1,5 +1,5 @@
1
- import type React from 'react';
2
- import type Matching from './Matching/Matching';
1
+ import { default as React } from 'react';
2
+ import { default as Matching } from './Matching/Matching';
3
3
  export type LogicOperatorValue = 'AND' | 'OR' | string;
4
4
  export type LogicOperator = {
5
5
  value: string;
@@ -1 +1 @@
1
- export {};
1
+
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { type MatchingProps } from './Matching.types';
1
+ import { default as React } from 'react';
2
+ import { MatchingProps } from './Matching.types';
3
3
  declare const Matching: ({ matching, sentence, onChange, texts, readOnly, ...htmlAttributes }: MatchingProps) => React.JSX.Element;
4
4
  export default Matching;
@@ -1,51 +1,46 @@
1
- var _excluded = ["matching", "sentence", "onChange", "texts", "readOnly"];
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 React from 'react';
5
- import { useIntl } from 'react-intl';
6
- import * as S from './Matching.styles';
7
- var MATCHING_TOGGLE = '#MATCHING_TOGGLE#';
8
- var Matching = function Matching(_ref) {
9
- var _ref$matching = _ref.matching,
10
- matching = _ref$matching === void 0 ? true : _ref$matching,
11
- sentence = _ref.sentence,
12
- onChange = _ref.onChange,
13
- texts = _ref.texts,
14
- _ref$readOnly = _ref.readOnly,
15
- readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
16
- htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
17
- var intl = useIntl();
18
- var text = React.useMemo(function () {
19
- return _extends({
1
+ import { jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { useIntl } from "react-intl";
4
+ import { Toggle, MatchingWrapper } from "./Matching.styles.js";
5
+ const MATCHING_TOGGLE = "#MATCHING_TOGGLE#";
6
+ const Matching = ({
7
+ matching = true,
8
+ sentence,
9
+ onChange,
10
+ texts,
11
+ readOnly = false,
12
+ ...htmlAttributes
13
+ }) => {
14
+ const intl = useIntl();
15
+ const text = React.useMemo(() => {
16
+ return {
20
17
  matching: intl.formatMessage({
21
- id: 'DS.MATCHING.MATCHING',
22
- defaultMessage: 'matching'
18
+ id: "DS.MATCHING.MATCHING",
19
+ defaultMessage: "matching"
23
20
  }),
24
21
  notMatching: intl.formatMessage({
25
- id: 'DS.MATCHING.NOT-MATCHING',
26
- defaultMessage: 'not matching'
27
- })
28
- }, texts);
22
+ id: "DS.MATCHING.NOT-MATCHING",
23
+ defaultMessage: "not matching"
24
+ }),
25
+ ...texts
26
+ };
29
27
  }, [texts, intl]);
30
- var handleClick = React.useCallback(function () {
28
+ const handleClick = React.useCallback(() => {
31
29
  onChange(!matching);
32
30
  }, [onChange, matching]);
33
- var getToggle = React.useMemo(function () {
34
- return /*#__PURE__*/React.createElement(S.Toggle, {
35
- onClick: !readOnly ? handleClick : undefined,
36
- matching: matching,
37
- className: "ds-matching-toggle",
38
- readOnly: readOnly
39
- }, matching ? text.matching : text.notMatching);
31
+ const getToggle = React.useMemo(() => {
32
+ return /* @__PURE__ */ jsx(Toggle, { onClick: !readOnly ? handleClick : void 0, matching, className: "ds-matching-toggle", readOnly, children: matching ? text.matching : text.notMatching });
40
33
  }, [handleClick, matching, text, readOnly]);
41
- var getLabelWithToggle = React.useMemo(function () {
34
+ const getLabelWithToggle = React.useMemo(() => {
42
35
  if (sentence) {
43
- var startOfToggle = sentence == null ? void 0 : sentence.search(MATCHING_TOGGLE);
44
- var endOfToggle = startOfToggle + MATCHING_TOGGLE.length;
36
+ const startOfToggle = sentence?.search(MATCHING_TOGGLE);
37
+ const endOfToggle = startOfToggle + MATCHING_TOGGLE.length;
45
38
  return [sentence.substring(0, startOfToggle), getToggle, sentence.substring(endOfToggle, sentence.length)];
46
39
  }
47
40
  return getToggle;
48
41
  }, [getToggle, sentence]);
49
- return /*#__PURE__*/React.createElement(S.MatchingWrapper, htmlAttributes, getLabelWithToggle);
42
+ return /* @__PURE__ */ jsx(MatchingWrapper, { ...htmlAttributes, children: getLabelWithToggle });
43
+ };
44
+ export {
45
+ Matching as default
50
46
  };
51
- export default Matching;
@@ -1,5 +1,5 @@
1
- export declare const MatchingWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const Toggle: import("styled-components").StyledComponent<"span", any, {
1
+ export declare const MatchingWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
2
+ export declare const Toggle: import('styled-components').StyledComponent<"span", any, {
3
3
  matching: boolean;
4
4
  readOnly?: boolean;
5
5
  }, never>;
@@ -1,36 +1,58 @@
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
- var getColor = function getColor(_ref) {
4
- var theme = _ref.theme,
5
- matching = _ref.matching,
6
- readOnly = _ref.readOnly,
7
- _ref$hovered = _ref.hovered,
8
- hovered = _ref$hovered === void 0 ? false : _ref$hovered;
1
+ import styled, { css } from "styled-components";
2
+ const getColor = ({
3
+ theme,
4
+ matching,
5
+ readOnly,
6
+ hovered = false
7
+ }) => {
9
8
  if (readOnly) {
10
- return theme.palette["grey-800"];
9
+ return theme.palette[`grey-800`];
11
10
  }
12
- var hue = hovered ? '700' : '600';
13
- return theme.palette[matching ? "green-" + hue : "red-" + hue];
11
+ const hue = hovered ? "700" : "600";
12
+ return theme.palette[matching ? `green-${hue}` : `red-${hue}`];
14
13
  };
15
- export var MatchingWrapper = styled.div.withConfig({
14
+ const MatchingWrapper = /* @__PURE__ */ styled.div.withConfig({
16
15
  displayName: "Matchingstyles__MatchingWrapper",
17
16
  componentId: "sc-7z57qz-0"
18
- })(["font-size:16px;font-weight:500;line-height:1.25;color:", ";text-align:left;user-select:none;&:first-letter{text-transform:uppercase;}"], function (props) {
19
- return props.theme.palette['grey-800'];
20
- });
21
- export var Toggle = styled.span.withConfig({
17
+ })(["font-size:16px;font-weight:500;line-height:1.25;color:", ";text-align:left;user-select:none;&:first-letter{text-transform:uppercase;}"], (props) => props.theme.palette["grey-800"]);
18
+ const Toggle = /* @__PURE__ */ styled.span.withConfig({
22
19
  displayName: "Matchingstyles__Toggle",
23
20
  componentId: "sc-7z57qz-1"
24
- })(["cursor:pointer;font-size:16px;font-weight:500;line-height:1.25;color:", ";transition:color 0.1s ease-in-out;position:relative;display:inline-flex;", " ", ""], getColor, function (props) {
25
- var color = getColor(props);
26
- var readOnly = props.readOnly,
27
- theme = props.theme;
28
- return !readOnly && "\n&:after {\n position: absolute;\n bottom: -2px;\n width: 100%;\n content: '';\n height: 1px;\n left: 1px;\n background-image: linear-gradient(\n to right,\n " + color + " 25%,\n " + theme.palette.white + " 0%\n );\n background-position: top;\n background-size: 4px 1px;\n background-repeat: repeat-x;\n}";
29
- }, function (props) {
30
- var hoveredColor = getColor(_extends({}, props, {
21
+ })(["cursor:pointer;font-size:16px;font-weight:500;line-height:1.25;color:", ";transition:color 0.1s ease-in-out;position:relative;display:inline-flex;", " ", ""], getColor, (props) => {
22
+ const color = getColor(props);
23
+ const {
24
+ readOnly,
25
+ theme
26
+ } = props;
27
+ return !readOnly && `
28
+ &:after {
29
+ position: absolute;
30
+ bottom: -2px;
31
+ width: 100%;
32
+ content: '';
33
+ height: 1px;
34
+ left: 1px;
35
+ background-image: linear-gradient(
36
+ to right,
37
+ ${color} 25%,
38
+ ${theme.palette.white} 0%
39
+ );
40
+ background-position: top;
41
+ background-size: 4px 1px;
42
+ background-repeat: repeat-x;
43
+ }`;
44
+ }, (props) => {
45
+ const hoveredColor = getColor({
46
+ ...props,
31
47
  hovered: true
32
- }));
33
- var readOnly = props.readOnly,
34
- theme = props.theme;
48
+ });
49
+ const {
50
+ readOnly,
51
+ theme
52
+ } = props;
35
53
  return !readOnly && css(["&:hover{color:", ";&:after{background-image:linear-gradient( to right,", " 25%,", " 0% );}"], hoveredColor, hoveredColor, theme.palette.white);
36
- });
54
+ });
55
+ export {
56
+ MatchingWrapper,
57
+ Toggle
58
+ };
@@ -1,4 +1,4 @@
1
- import type { WithHTMLAttributes } from '@synerise/ds-utils';
1
+ import { WithHTMLAttributes } from '@synerise/ds-utils';
2
2
  export type MatchingTexts = {
3
3
  matching: string;
4
4
  notMatching: string;
@@ -1 +1 @@
1
- export {};
1
+
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { type PlaceholderType } from './Placeholder.types';
1
+ import { default as React } from 'react';
2
+ import { PlaceholderType } from './Placeholder.types';
3
3
  declare const Placeholder: React.FC<PlaceholderType>;
4
4
  export default Placeholder;
@@ -1,16 +1,16 @@
1
- import React from 'react';
2
- import { theme } from '@synerise/ds-core';
3
- import Icon, { ClickM } from '@synerise/ds-icon';
4
- import { Text } from '@synerise/ds-typography';
5
- import * as S from './Placeholder.styles';
6
- var Placeholder = function Placeholder(_ref) {
7
- var text = _ref.text;
8
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(S.PlaceholderContainer, null, /*#__PURE__*/React.createElement(Icon, {
9
- size: 24,
10
- color: theme.palette['grey-600'],
11
- component: /*#__PURE__*/React.createElement(ClickM, null)
12
- }), /*#__PURE__*/React.createElement(Text, {
13
- size: "medium"
14
- }, text)));
1
+ import { jsx, Fragment, jsxs } from "react/jsx-runtime";
2
+ import { theme } from "@synerise/ds-core";
3
+ import Icon, { ClickM } from "@synerise/ds-icon";
4
+ import { Text } from "@synerise/ds-typography";
5
+ import { PlaceholderContainer } from "./Placeholder.styles.js";
6
+ const Placeholder = ({
7
+ text
8
+ }) => {
9
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(PlaceholderContainer, { children: [
10
+ /* @__PURE__ */ jsx(Icon, { size: 24, color: theme.palette["grey-600"], component: /* @__PURE__ */ jsx(ClickM, {}) }),
11
+ /* @__PURE__ */ jsx(Text, { size: "medium", children: text })
12
+ ] }) });
13
+ };
14
+ export {
15
+ Placeholder as default
15
16
  };
16
- export default Placeholder;
@@ -1 +1 @@
1
- export declare const PlaceholderContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const PlaceholderContainer: import('styled-components').StyledComponent<"div", any, {}, never>;
@@ -1,9 +1,8 @@
1
- import styled from 'styled-components';
2
- export var PlaceholderContainer = styled.div.withConfig({
1
+ import styled from "styled-components";
2
+ const PlaceholderContainer = /* @__PURE__ */ styled.div.withConfig({
3
3
  displayName: "Placeholderstyles__PlaceholderContainer",
4
4
  componentId: "sc-1dp40dc-0"
5
- })(["width:100%;min-height:63px;margin:auto;border-radius:3px;background-color:", ";display:flex;justify-content:center;align-items:center;flex-direction:row;span.ds-text{display:block;font-size:13px;margin:6px 0 5px 11px;color:", ";}"], function (props) {
6
- return props.theme.palette.white;
7
- }, function (props) {
8
- return props.theme.palette['grey-600'];
9
- });
5
+ })(["width:100%;min-height:63px;margin:auto;border-radius:3px;background-color:", ";display:flex;justify-content:center;align-items:center;flex-direction:row;span.ds-text{display:block;font-size:13px;margin:6px 0 5px 11px;color:", ";}"], (props) => props.theme.palette.white, (props) => props.theme.palette["grey-600"]);
6
+ export {
7
+ PlaceholderContainer
8
+ };
@@ -1 +1 @@
1
- export {};
1
+
package/dist/index.js CHANGED
@@ -1,3 +1,8 @@
1
- export { default } from './Logic';
2
- export { default as Matching } from './Matching/Matching';
3
- export { default as Placeholder } from './Placeholder/Placeholder';
1
+ import { default as default2 } from "./Logic.js";
2
+ import { default as default3 } from "./Matching/Matching.js";
3
+ import { default as default4 } from "./Placeholder/Placeholder.js";
4
+ export {
5
+ default3 as Matching,
6
+ default4 as Placeholder,
7
+ default2 as default
8
+ };
package/dist/modules.d.js CHANGED
@@ -1 +1 @@
1
- import '@testing-library/jest-dom';
1
+ import "@testing-library/jest-dom";
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-logic",
3
- "version": "1.1.30",
3
+ "version": "1.1.32",
4
4
  "description": "Logic 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,9 +35,9 @@
35
35
  ],
36
36
  "types": "dist/index.d.ts",
37
37
  "dependencies": {
38
- "@synerise/ds-icon": "^1.14.1",
39
- "@synerise/ds-typography": "^1.1.11",
40
- "@synerise/ds-utils": "^1.6.0"
38
+ "@synerise/ds-icon": "^1.15.1",
39
+ "@synerise/ds-typography": "^1.1.13",
40
+ "@synerise/ds-utils": "^1.7.1"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@synerise/ds-core": "*",
@@ -45,5 +45,5 @@
45
45
  "react-intl": ">=3.12.0 <= 6.8",
46
46
  "styled-components": "^5.3.3"
47
47
  },
48
- "gitHead": "8dfafc5d7278f09d430f1e7499782d05c76b47c0"
48
+ "gitHead": "e4ecca8944fc9b41c1b9d59c8bcad5e5e2013225"
49
49
  }