@synerise/ds-completed-within 1.2.10 → 1.2.11
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/CompleteWithin.styles.d.ts +2 -2
- package/dist/CompleteWithin.styles.js +13 -18
- package/dist/CompletedWithin.d.ts +2 -2
- package/dist/CompletedWithin.js +82 -130
- package/dist/CompletedWithin.types.d.ts +2 -2
- package/dist/CompletedWithin.types.js +1 -1
- package/dist/Settings/Settings.d.ts +2 -2
- package/dist/Settings/Settings.js +35 -47
- package/dist/Settings/Settings.styles.d.ts +1 -1
- package/dist/Settings/Settings.styles.js +7 -6
- package/dist/Settings/Settings.types.d.ts +2 -2
- package/dist/Settings/Settings.types.js +1 -1
- package/dist/index.js +4 -1
- package/dist/modules.d.js +1 -1
- package/dist/modules.d.ts +0 -0
- package/package.json +12 -12
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.11](https://github.com/Synerise/synerise-design/compare/@synerise/ds-completed-within@1.2.10...@synerise/ds-completed-within@1.2.11) (2026-03-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-completed-within
|
|
9
|
+
|
|
6
10
|
## [1.2.10](https://github.com/Synerise/synerise-design/compare/@synerise/ds-completed-within@1.2.9...@synerise/ds-completed-within@1.2.10) (2026-03-20)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @synerise/ds-completed-within
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StyledButton } from '@synerise/ds-button';
|
|
2
2
|
export declare const TriggerButton: StyledButton;
|
|
3
3
|
export declare const ClearButton: StyledButton;
|
|
4
|
-
export declare const CompletedWithinWrapper: import(
|
|
4
|
+
export declare const CompletedWithinWrapper: import('styled-components').StyledComponent<"div", any, {
|
|
5
5
|
withValue: boolean;
|
|
6
6
|
readOnly?: boolean;
|
|
7
7
|
}, never>;
|
|
@@ -1,25 +1,20 @@
|
|
|
1
|
-
import styled, { css } from
|
|
2
|
-
import Button from
|
|
3
|
-
import { IconContainer } from
|
|
4
|
-
|
|
1
|
+
import styled, { css } from "styled-components";
|
|
2
|
+
import Button from "@synerise/ds-button";
|
|
3
|
+
import { IconContainer } from "@synerise/ds-icon";
|
|
4
|
+
const TriggerButton = /* @__PURE__ */ styled(Button).withConfig({
|
|
5
5
|
displayName: "CompleteWithinstyles__TriggerButton",
|
|
6
6
|
componentId: "sc-1hcip2f-0"
|
|
7
7
|
})(["transition:padding 0s;"]);
|
|
8
|
-
|
|
8
|
+
const ClearButton = /* @__PURE__ */ styled(Button).withConfig({
|
|
9
9
|
displayName: "CompleteWithinstyles__ClearButton",
|
|
10
10
|
componentId: "sc-1hcip2f-1"
|
|
11
|
-
})(["&&&{opacity:0;pointer-events:none;transition:opacity 0.3s ease-in-out,width 0.3s ease-in-out;", "{svg{fill:", ";color:", ";}}&:hover{", "{svg{fill:", " !important;color:", " !important;}}}&:focus{.btn-focus{box-shadow:none;}}}"], IconContainer,
|
|
12
|
-
|
|
13
|
-
}, function (props) {
|
|
14
|
-
return props.theme.palette['red-600'];
|
|
15
|
-
}, IconContainer, function (props) {
|
|
16
|
-
return props.theme.palette['red-600'];
|
|
17
|
-
}, function (props) {
|
|
18
|
-
return props.theme.palette['red-600'];
|
|
19
|
-
});
|
|
20
|
-
export var CompletedWithinWrapper = styled.div.withConfig({
|
|
11
|
+
})(["&&&{opacity:0;pointer-events:none;transition:opacity 0.3s ease-in-out,width 0.3s ease-in-out;", "{svg{fill:", ";color:", ";}}&:hover{", "{svg{fill:", " !important;color:", " !important;}}}&:focus{.btn-focus{box-shadow:none;}}}"], IconContainer, (props) => props.theme.palette["red-600"], (props) => props.theme.palette["red-600"], IconContainer, (props) => props.theme.palette["red-600"], (props) => props.theme.palette["red-600"]);
|
|
12
|
+
const CompletedWithinWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
21
13
|
displayName: "CompleteWithinstyles__CompletedWithinWrapper",
|
|
22
14
|
componentId: "sc-1hcip2f-2"
|
|
23
|
-
})(["display:flex;align-items:center;justify-content:flex-start;height:32px;position:relative;", ";"],
|
|
24
|
-
|
|
25
|
-
|
|
15
|
+
})(["display:flex;align-items:center;justify-content:flex-start;height:32px;position:relative;", ";"], (props) => Boolean(props.withValue) && !props.readOnly && css(["&&&{", "{padding-right:32px;}", "{background-color:transparent !important;position:absolute;right:0;opacity:1;pointer-events:all;}}"], TriggerButton, ClearButton));
|
|
16
|
+
export {
|
|
17
|
+
ClearButton,
|
|
18
|
+
CompletedWithinWrapper,
|
|
19
|
+
TriggerButton
|
|
20
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CompletedWithinProps } from './CompletedWithin.types';
|
|
3
3
|
export declare const DEFAULT_PERIODS: string[];
|
|
4
4
|
declare const CompletedWithin: ({ value, maxValue, onSetValue, text, periods, placeholder, tooltip, readOnly, }: CompletedWithinProps) => React.JSX.Element;
|
|
5
5
|
export default CompletedWithin;
|
package/dist/CompletedWithin.js
CHANGED
|
@@ -1,150 +1,102 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import { useIntl } from
|
|
4
|
-
import Dropdown from
|
|
5
|
-
import Icon, {
|
|
6
|
-
import Tooltip from
|
|
7
|
-
import
|
|
8
|
-
import Settings from
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}, [text, intl]);
|
|
40
|
-
|
|
41
|
-
if (periods !==
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useState, useCallback } from "react";
|
|
3
|
+
import { useIntl } from "react-intl";
|
|
4
|
+
import Dropdown from "@synerise/ds-dropdown";
|
|
5
|
+
import Icon, { Close3S, ClockM } from "@synerise/ds-icon";
|
|
6
|
+
import Tooltip from "@synerise/ds-tooltip";
|
|
7
|
+
import { CompletedWithinWrapper, ClearButton, TriggerButton } from "./CompleteWithin.styles.js";
|
|
8
|
+
import Settings from "./Settings/Settings.js";
|
|
9
|
+
const DEFAULT_PERIODS = ["SECONDS", "MINUTES", "HOURS", "DAYS", "MONTHS", "YEARS"];
|
|
10
|
+
const CompletedWithin = ({
|
|
11
|
+
value,
|
|
12
|
+
maxValue,
|
|
13
|
+
onSetValue,
|
|
14
|
+
text,
|
|
15
|
+
periods,
|
|
16
|
+
placeholder,
|
|
17
|
+
tooltip,
|
|
18
|
+
readOnly
|
|
19
|
+
}) => {
|
|
20
|
+
const intl = useIntl();
|
|
21
|
+
const texts = useMemo(() => ({
|
|
22
|
+
header: intl.formatMessage({
|
|
23
|
+
id: "DS.COMPLETED-WITHIN.HEADER",
|
|
24
|
+
defaultMessage: "Completed within"
|
|
25
|
+
}),
|
|
26
|
+
completedLabel: intl.formatMessage({
|
|
27
|
+
id: "DS.COMPLETED-WITHIN.COMPLETED-WIHITN",
|
|
28
|
+
defaultMessage: "Completed within"
|
|
29
|
+
}),
|
|
30
|
+
clear: intl.formatMessage({
|
|
31
|
+
id: "DS.COMPLETED-WITHIN.CLEAR",
|
|
32
|
+
defaultMessage: "Clear"
|
|
33
|
+
}),
|
|
34
|
+
periodPlaceholder: intl.formatMessage({
|
|
35
|
+
id: "DS.COMPLETED-WITHIN.PERIOD-PLACEHOLDER",
|
|
36
|
+
defaultMessage: "Interval"
|
|
37
|
+
}),
|
|
38
|
+
...text
|
|
39
|
+
}), [text, intl]);
|
|
40
|
+
const getPeriods = useMemo(() => {
|
|
41
|
+
if (periods !== void 0 && periods.length) {
|
|
42
42
|
return periods;
|
|
43
43
|
}
|
|
44
|
-
return DEFAULT_PERIODS.map(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
};
|
|
52
|
-
});
|
|
44
|
+
return DEFAULT_PERIODS.map((period) => ({
|
|
45
|
+
value: period,
|
|
46
|
+
label: intl.formatMessage({
|
|
47
|
+
id: `DS.COMPLETED-WITHIN.${period}`,
|
|
48
|
+
defaultMessage: period
|
|
49
|
+
})
|
|
50
|
+
}));
|
|
53
51
|
}, [periods, intl]);
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
var _useState3 = useState(false),
|
|
61
|
-
tooltipOpen = _useState3[0],
|
|
62
|
-
setTooltipOpen = _useState3[1];
|
|
63
|
-
var _useState4 = useState(false),
|
|
64
|
-
settingsOpen = _useState4[0],
|
|
65
|
-
setSettingsVisible = _useState4[1];
|
|
66
|
-
var hasValue = useMemo(function () {
|
|
67
|
-
return value.value !== undefined && value.value > 0;
|
|
68
|
-
}, [value]);
|
|
69
|
-
var handleOpenChange = useCallback(function (visible) {
|
|
52
|
+
const [innerValue, setInnerValue] = useState(value.value);
|
|
53
|
+
const [innerPeriod, setInnerPeriod] = useState(value.period);
|
|
54
|
+
const [tooltipOpen, setTooltipOpen] = useState(false);
|
|
55
|
+
const [settingsOpen, setSettingsVisible] = useState(false);
|
|
56
|
+
const hasValue = useMemo(() => value.value !== void 0 && value.value > 0, [value]);
|
|
57
|
+
const handleOpenChange = useCallback((visible) => {
|
|
70
58
|
setSettingsVisible(visible);
|
|
71
59
|
setTooltipOpen(false);
|
|
72
60
|
if (!visible && innerValue && innerPeriod) {
|
|
73
|
-
|
|
61
|
+
const newValue = maxValue && maxValue < Number(innerValue) ? maxValue : innerValue;
|
|
74
62
|
onSetValue({
|
|
75
63
|
value: Number(newValue),
|
|
76
64
|
period: innerPeriod
|
|
77
65
|
});
|
|
78
66
|
}
|
|
79
67
|
}, [innerPeriod, innerValue, maxValue, onSetValue]);
|
|
80
|
-
|
|
81
|
-
setInnerPeriod(
|
|
82
|
-
setInnerValue(
|
|
68
|
+
const handleClear = useCallback(() => {
|
|
69
|
+
setInnerPeriod(void 0);
|
|
70
|
+
setInnerValue(void 0);
|
|
83
71
|
onSetValue({
|
|
84
|
-
value:
|
|
85
|
-
period:
|
|
72
|
+
value: void 0,
|
|
73
|
+
period: void 0
|
|
86
74
|
});
|
|
87
75
|
}, [onSetValue]);
|
|
88
|
-
|
|
76
|
+
const triggerMode = useMemo(() => {
|
|
89
77
|
if (hasValue || placeholder) {
|
|
90
|
-
return
|
|
78
|
+
return "icon-label";
|
|
91
79
|
}
|
|
92
|
-
return
|
|
80
|
+
return "single-icon";
|
|
93
81
|
}, [hasValue, placeholder]);
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
return hasValue ? texts.completedLabel + " " + value.value + " " + ((_getPeriods$find = getPeriods.find(function (singlePeriod) {
|
|
97
|
-
return singlePeriod.value === value.period;
|
|
98
|
-
})) == null ? void 0 : _getPeriods$find.label) : placeholder;
|
|
82
|
+
const triggerLabel = useMemo(() => {
|
|
83
|
+
return hasValue ? `${texts.completedLabel} ${value.value} ${getPeriods.find((singlePeriod) => singlePeriod.value === value.period)?.label}` : placeholder;
|
|
99
84
|
}, [getPeriods, hasValue, texts, value, placeholder]);
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
mode:
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
withValue: hasValue
|
|
118
|
-
}, readOnly ? trigger : /*#__PURE__*/React.createElement(Dropdown, {
|
|
119
|
-
overlay: /*#__PURE__*/React.createElement(Settings, {
|
|
120
|
-
value: {
|
|
121
|
-
value: innerValue !== undefined ? Number(innerValue) : undefined,
|
|
122
|
-
period: innerPeriod
|
|
123
|
-
},
|
|
124
|
-
maxValue: maxValue,
|
|
125
|
-
onValueChange: setInnerValue,
|
|
126
|
-
onPeriodChange: setInnerPeriod,
|
|
127
|
-
text: texts,
|
|
128
|
-
readOnly: readOnly,
|
|
129
|
-
periods: getPeriods
|
|
130
|
-
}),
|
|
131
|
-
trigger: ['click'],
|
|
132
|
-
open: settingsOpen,
|
|
133
|
-
onOpenChange: handleOpenChange,
|
|
134
|
-
placement: "topLeft",
|
|
135
|
-
size: 238,
|
|
136
|
-
popoverProps: {
|
|
137
|
-
testId: 'completed-within'
|
|
138
|
-
}
|
|
139
|
-
}, trigger), hasValue && !readOnly && /*#__PURE__*/React.createElement(Tooltip, {
|
|
140
|
-
title: texts.clear
|
|
141
|
-
}, /*#__PURE__*/React.createElement(S.ClearButton, {
|
|
142
|
-
mode: "single-icon",
|
|
143
|
-
type: "ghost",
|
|
144
|
-
onClick: handleClear,
|
|
145
|
-
"data-testid": "clear-button"
|
|
146
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
147
|
-
component: /*#__PURE__*/React.createElement(Close3S, null)
|
|
148
|
-
}))));
|
|
85
|
+
const trigger = /* @__PURE__ */ jsx(Tooltip, { type: "largeSimple", description: tooltip, trigger: ["hover"], onOpenChange: setTooltipOpen, open: !settingsOpen && tooltipOpen, children: /* @__PURE__ */ jsxs(TriggerButton, { "data-testid": "completed-within-trigger", readOnly, className: "ds-completed-within", type: "tertiary", mode: triggerMode, children: [
|
|
86
|
+
/* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(ClockM, {}) }),
|
|
87
|
+
triggerLabel
|
|
88
|
+
] }) });
|
|
89
|
+
return /* @__PURE__ */ jsxs(CompletedWithinWrapper, { readOnly, withValue: hasValue, children: [
|
|
90
|
+
readOnly ? trigger : /* @__PURE__ */ jsx(Dropdown, { overlay: /* @__PURE__ */ jsx(Settings, { value: {
|
|
91
|
+
value: innerValue !== void 0 ? Number(innerValue) : void 0,
|
|
92
|
+
period: innerPeriod
|
|
93
|
+
}, maxValue, onValueChange: setInnerValue, onPeriodChange: setInnerPeriod, text: texts, readOnly, periods: getPeriods }), trigger: ["click"], open: settingsOpen, onOpenChange: handleOpenChange, placement: "topLeft", size: 238, popoverProps: {
|
|
94
|
+
testId: "completed-within"
|
|
95
|
+
}, children: trigger }),
|
|
96
|
+
hasValue && !readOnly && /* @__PURE__ */ jsx(Tooltip, { title: texts.clear, children: /* @__PURE__ */ jsx(ClearButton, { mode: "single-icon", type: "ghost", onClick: handleClear, "data-testid": "clear-button", children: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(Close3S, {}) }) }) })
|
|
97
|
+
] });
|
|
98
|
+
};
|
|
99
|
+
export {
|
|
100
|
+
DEFAULT_PERIODS,
|
|
101
|
+
CompletedWithin as default
|
|
149
102
|
};
|
|
150
|
-
export default CompletedWithin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { LiteralStringUnion } from '@synerise/ds-utils';
|
|
3
3
|
export type CompletedWithinTexts = {
|
|
4
4
|
clear: ReactNode;
|
|
5
5
|
header: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SettingsProps } from './Settings.types';
|
|
3
3
|
declare const Settings: ({ value, text, onPeriodChange, onValueChange, periods, maxValue, readOnly, }: SettingsProps) => React.JSX.Element;
|
|
4
4
|
export default Settings;
|
|
@@ -1,48 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { InputGroup } from
|
|
3
|
-
import InputNumber from
|
|
4
|
-
import Select from
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
onPeriodChange(option);
|
|
37
|
-
},
|
|
38
|
-
dropdownStyle: {
|
|
39
|
-
minWidth: '150px'
|
|
40
|
-
}
|
|
41
|
-
}, periods.map(function (period) {
|
|
42
|
-
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
43
|
-
key: period.value,
|
|
44
|
-
value: period.value
|
|
45
|
-
}, period.label);
|
|
46
|
-
}))));
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { InputGroup } from "@synerise/ds-input";
|
|
3
|
+
import InputNumber from "@synerise/ds-input-number";
|
|
4
|
+
import Select from "@synerise/ds-select";
|
|
5
|
+
import { Settings as Settings$1 } from "./Settings.styles.js";
|
|
6
|
+
const Settings = ({
|
|
7
|
+
value,
|
|
8
|
+
text,
|
|
9
|
+
onPeriodChange,
|
|
10
|
+
onValueChange,
|
|
11
|
+
periods,
|
|
12
|
+
maxValue,
|
|
13
|
+
readOnly
|
|
14
|
+
}) => {
|
|
15
|
+
return /* @__PURE__ */ jsx(Settings$1, { "data-testid": "completed-within-dropdown", children: /* @__PURE__ */ jsxs(InputGroup, { size: "default", label: text.header, resetMargin: true, compact: true, children: [
|
|
16
|
+
/* @__PURE__ */ jsx(InputNumber, { size: "small", raw: true, readOnly, value: value.value, onChange: onValueChange, min: 0, max: maxValue ?? Number.MAX_SAFE_INTEGER }),
|
|
17
|
+
/* @__PURE__ */ jsx(
|
|
18
|
+
Select,
|
|
19
|
+
{
|
|
20
|
+
size: "default",
|
|
21
|
+
value: value.period,
|
|
22
|
+
placeholder: text.periodPlaceholder,
|
|
23
|
+
onChange: (option) => {
|
|
24
|
+
onPeriodChange(option);
|
|
25
|
+
},
|
|
26
|
+
dropdownStyle: {
|
|
27
|
+
minWidth: "150px"
|
|
28
|
+
},
|
|
29
|
+
children: periods.map((period) => /* @__PURE__ */ jsx(Select.Option, { value: period.value, children: period.label }, period.value))
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
] }) });
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
Settings as default
|
|
47
36
|
};
|
|
48
|
-
export default Settings;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Settings: import(
|
|
1
|
+
export declare const Settings: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import styled from
|
|
2
|
-
import { InputGroupWrapper } from
|
|
3
|
-
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { InputGroupWrapper } from "@synerise/ds-input/dist/InputGroup.styles";
|
|
3
|
+
const Settings = /* @__PURE__ */ styled.div.withConfig({
|
|
4
4
|
displayName: "Settingsstyles__Settings",
|
|
5
5
|
componentId: "sc-11xtzjt-0"
|
|
6
|
-
})(["display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:20px;background-color:", ";max-width:238px;.ant-select-selection-item,.ant-select-selection-placeholder{font-weight:500;}", "{width:100%;}"],
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
})(["display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:20px;background-color:", ";max-width:238px;.ant-select-selection-item,.ant-select-selection-placeholder{font-weight:500;}", "{width:100%;}"], (props) => props.theme.palette.white, InputGroupWrapper);
|
|
7
|
+
export {
|
|
8
|
+
Settings
|
|
9
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { default as InputNumber } from '@synerise/ds-input-number';
|
|
2
|
+
import { CompletedWithinProps, CompletedWithinTexts, CustomPeriod, Period, PeriodValue } from '../CompletedWithin.types';
|
|
3
3
|
type InputProps = React.ComponentProps<typeof InputNumber>;
|
|
4
4
|
export type SettingsProps = Omit<CompletedWithinProps, 'onClear' | 'onSetValue' | 'periods' | 'text'> & {
|
|
5
5
|
onValueChange: InputProps['onChange'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
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-completed-within",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.11",
|
|
4
4
|
"description": "CompletedWithin 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,14 +35,14 @@
|
|
|
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.15.
|
|
41
|
-
"@synerise/ds-input": "^1.6.
|
|
42
|
-
"@synerise/ds-input-number": "^1.2.
|
|
43
|
-
"@synerise/ds-select": "^1.3.
|
|
44
|
-
"@synerise/ds-tooltip": "^1.4.
|
|
45
|
-
"@synerise/ds-utils": "^1.7.
|
|
38
|
+
"@synerise/ds-button": "^1.5.18",
|
|
39
|
+
"@synerise/ds-dropdown": "^1.3.2",
|
|
40
|
+
"@synerise/ds-icon": "^1.15.1",
|
|
41
|
+
"@synerise/ds-input": "^1.6.10",
|
|
42
|
+
"@synerise/ds-input-number": "^1.2.35",
|
|
43
|
+
"@synerise/ds-select": "^1.3.20",
|
|
44
|
+
"@synerise/ds-tooltip": "^1.4.10",
|
|
45
|
+
"@synerise/ds-utils": "^1.7.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"vitest": "4"
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"react-intl": ">=3.12.0 <= 6.8",
|
|
55
55
|
"styled-components": "^5.3.3"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "e4ecca8944fc9b41c1b9d59c8bcad5e5e2013225"
|
|
58
58
|
}
|