armtek-uikit-react 1.0.204 → 1.0.205
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/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"armtek-uikit-react","version":"1.0.
|
|
1
|
+
{"name":"armtek-uikit-react","version":"1.0.205","description":"Armtek UIKit for React","main":"cjs/index.js","module":"esm/index.js","types":"esm/index.d.ts","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"clsx":"^2.0.0","rc-slider":"^10.2.1","react":"<=18.2.0","react-datepicker":"^4.16.0","react-dom":"<=18.2.0","react-transition-group":"^4.4.5"},"peerDependencies":{"react":"<=18.2.0","react-dom":"<=18.2.0"},"engines":{"node":">=14.0.0"},"scripts":{"pub":"npm version patch && npm publish"}}
|
|
@@ -85,7 +85,7 @@ function Interval(props) {
|
|
|
85
85
|
...inputProps,
|
|
86
86
|
value: realMin,
|
|
87
87
|
label: labelStart,
|
|
88
|
-
type: '
|
|
88
|
+
type: 'text',
|
|
89
89
|
onFocus: handleFocus,
|
|
90
90
|
onBlur: handleBlur,
|
|
91
91
|
focused: true,
|
|
@@ -97,7 +97,7 @@ function Interval(props) {
|
|
|
97
97
|
...inputProps,
|
|
98
98
|
value: realMax,
|
|
99
99
|
label: labelEnd,
|
|
100
|
-
type: '
|
|
100
|
+
type: 'text',
|
|
101
101
|
onFocus: handleFocus,
|
|
102
102
|
onBlur: handleBlur,
|
|
103
103
|
className: 'arm-interval__end',
|
|
@@ -18,7 +18,11 @@ function IntervalSlide(props) {
|
|
|
18
18
|
const defaultValue = restProps.defaultValue || (restProps.range ? [restProps.min, restProps.max] : 0);
|
|
19
19
|
const [currentValue, setCurrentValue] = (0, _react.useState)(defaultValue);
|
|
20
20
|
const handleChange = value => {
|
|
21
|
-
|
|
21
|
+
// let newValue = Array.isArray(value)
|
|
22
|
+
// ? value.map(item => String(item)).map(item => item.replace(/^0/, '')).map(Number)
|
|
23
|
+
// : Number(String(value).replace(/^0/, ''))
|
|
24
|
+
let newValue = value;
|
|
25
|
+
if (onChange) onChange(newValue);
|
|
22
26
|
};
|
|
23
27
|
const handleSlide = value => {
|
|
24
28
|
handleChange(value);
|
package/ui/Link/Link.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ type OwnProps<T extends ElementType = LinkType> = {
|
|
|
11
11
|
disablestyles?: string;
|
|
12
12
|
};
|
|
13
13
|
export type LinkProps<T extends ElementType = LinkType> = OwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof OwnProps<T>>;
|
|
14
|
-
declare const Link: <T extends ElementType =
|
|
14
|
+
declare const Link: <T extends ElementType = LinkType>(props: LinkProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export default Link;
|