@lumx/react 4.3.2-alpha.33 → 4.3.2-alpha.34
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/index.d.ts +123 -89
- package/index.js +78 -26
- package/index.js.map +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -8761,7 +8761,7 @@ const Link$1 = props => {
|
|
|
8761
8761
|
theme,
|
|
8762
8762
|
href,
|
|
8763
8763
|
target,
|
|
8764
|
-
|
|
8764
|
+
handleClick,
|
|
8765
8765
|
...forwardedProps
|
|
8766
8766
|
} = props;
|
|
8767
8767
|
const [color, colorVariant] = resolveColorWithVariants(propColor, propColorVariant);
|
|
@@ -8809,7 +8809,7 @@ const Link$1 = props => {
|
|
|
8809
8809
|
const elementProps = {
|
|
8810
8810
|
ref,
|
|
8811
8811
|
className: combinedClassName,
|
|
8812
|
-
onClick: isDisabled ? undefined :
|
|
8812
|
+
onClick: isDisabled ? undefined : handleClick,
|
|
8813
8813
|
...forwardedProps,
|
|
8814
8814
|
...disabledProps
|
|
8815
8815
|
};
|
|
@@ -9919,7 +9919,7 @@ const CLASSNAME$y = 'lumx-progress-linear';
|
|
|
9919
9919
|
const {
|
|
9920
9920
|
block: block$v,
|
|
9921
9921
|
element: element$l
|
|
9922
|
-
} =
|
|
9922
|
+
} = bem(CLASSNAME$y);
|
|
9923
9923
|
|
|
9924
9924
|
/**
|
|
9925
9925
|
* Component default props.
|
|
@@ -9930,20 +9930,19 @@ const DEFAULT_PROPS$B = {};
|
|
|
9930
9930
|
* ProgressLinear component.
|
|
9931
9931
|
*
|
|
9932
9932
|
* @param props Component props.
|
|
9933
|
-
* @
|
|
9934
|
-
* @return React element.
|
|
9933
|
+
* @return JSX element.
|
|
9935
9934
|
*/
|
|
9936
|
-
const ProgressLinear =
|
|
9937
|
-
const defaultTheme = useTheme() || Theme$1.light;
|
|
9935
|
+
const ProgressLinear$1 = props => {
|
|
9938
9936
|
const {
|
|
9939
9937
|
className,
|
|
9940
|
-
theme
|
|
9938
|
+
theme,
|
|
9939
|
+
ref,
|
|
9941
9940
|
...forwardedProps
|
|
9942
9941
|
} = props;
|
|
9943
9942
|
return /*#__PURE__*/jsxs("div", {
|
|
9944
9943
|
ref: ref,
|
|
9945
9944
|
...forwardedProps,
|
|
9946
|
-
className:
|
|
9945
|
+
className: classnames(className, block$v({
|
|
9947
9946
|
[`theme-${theme}`]: Boolean(theme)
|
|
9948
9947
|
})),
|
|
9949
9948
|
children: [/*#__PURE__*/jsx("div", {
|
|
@@ -9952,11 +9951,37 @@ const ProgressLinear = forwardRef((props, ref) => {
|
|
|
9952
9951
|
className: element$l('line2')
|
|
9953
9952
|
})]
|
|
9954
9953
|
});
|
|
9954
|
+
};
|
|
9955
|
+
|
|
9956
|
+
/**
|
|
9957
|
+
* Defines the props of the component.
|
|
9958
|
+
*/
|
|
9959
|
+
|
|
9960
|
+
/**
|
|
9961
|
+
* ProgressLinear component.
|
|
9962
|
+
*
|
|
9963
|
+
* @param props Component props.
|
|
9964
|
+
* @param ref Component ref.
|
|
9965
|
+
* @return React element.
|
|
9966
|
+
*/
|
|
9967
|
+
const ProgressLinear = forwardRef((props, ref) => {
|
|
9968
|
+
const defaultTheme = useTheme() || Theme$1.light;
|
|
9969
|
+
const {
|
|
9970
|
+
theme = defaultTheme,
|
|
9971
|
+
...otherProps
|
|
9972
|
+
} = props;
|
|
9973
|
+
return ProgressLinear$1({
|
|
9974
|
+
ref,
|
|
9975
|
+
theme,
|
|
9976
|
+
...otherProps
|
|
9977
|
+
});
|
|
9955
9978
|
});
|
|
9956
9979
|
ProgressLinear.displayName = COMPONENT_NAME$x;
|
|
9957
9980
|
ProgressLinear.className = CLASSNAME$y;
|
|
9958
9981
|
ProgressLinear.defaultProps = DEFAULT_PROPS$B;
|
|
9959
9982
|
|
|
9983
|
+
/* eslint-disable react/no-unknown-property */
|
|
9984
|
+
|
|
9960
9985
|
/**
|
|
9961
9986
|
* Component display name.
|
|
9962
9987
|
*/
|
|
@@ -9969,37 +9994,38 @@ const CLASSNAME$x = 'lumx-progress-circular';
|
|
|
9969
9994
|
const {
|
|
9970
9995
|
block: block$u,
|
|
9971
9996
|
element: element$k
|
|
9972
|
-
} =
|
|
9997
|
+
} = bem(CLASSNAME$x);
|
|
9973
9998
|
|
|
9974
9999
|
/**
|
|
9975
10000
|
* Component default props.
|
|
9976
10001
|
*/
|
|
9977
10002
|
const DEFAULT_PROPS$A = {
|
|
9978
|
-
size: Size
|
|
10003
|
+
size: Size.m,
|
|
9979
10004
|
display: 'block'
|
|
9980
10005
|
};
|
|
9981
10006
|
|
|
9982
10007
|
/**
|
|
9983
|
-
*
|
|
10008
|
+
* ProgressCircular component.
|
|
9984
10009
|
*
|
|
9985
10010
|
* @param props Component props.
|
|
9986
|
-
* @
|
|
9987
|
-
* @return React element.
|
|
10011
|
+
* @return JSX element.
|
|
9988
10012
|
*/
|
|
9989
|
-
const ProgressCircular =
|
|
9990
|
-
const defaultTheme = useTheme() || Theme$1.light;
|
|
10013
|
+
const ProgressCircular$1 = props => {
|
|
9991
10014
|
const {
|
|
9992
10015
|
className,
|
|
9993
|
-
theme
|
|
10016
|
+
theme,
|
|
9994
10017
|
size = DEFAULT_PROPS$A.size,
|
|
9995
10018
|
display = DEFAULT_PROPS$A.display,
|
|
10019
|
+
ref,
|
|
10020
|
+
circleProps,
|
|
10021
|
+
svgProps,
|
|
9996
10022
|
...forwardedProps
|
|
9997
10023
|
} = props;
|
|
9998
10024
|
const Element = display === 'block' ? 'div' : 'span';
|
|
9999
10025
|
return /*#__PURE__*/jsxs(Element, {
|
|
10000
10026
|
ref: ref,
|
|
10001
10027
|
...forwardedProps,
|
|
10002
|
-
className:
|
|
10028
|
+
className: classnames(className, block$u({
|
|
10003
10029
|
[`theme-${theme}`]: Boolean(theme),
|
|
10004
10030
|
[`size-${size}`]: Boolean(size),
|
|
10005
10031
|
[`display-${display}`]: Boolean(display)
|
|
@@ -10009,18 +10035,48 @@ const ProgressCircular = forwardRef((props, ref) => {
|
|
|
10009
10035
|
}), /*#__PURE__*/jsx(Element, {
|
|
10010
10036
|
className: element$k('double-bounce2')
|
|
10011
10037
|
}), /*#__PURE__*/jsx("svg", {
|
|
10012
|
-
|
|
10038
|
+
...svgProps,
|
|
10013
10039
|
viewBox: "25 25 50 50",
|
|
10014
10040
|
children: /*#__PURE__*/jsx("circle", {
|
|
10015
|
-
|
|
10041
|
+
...circleProps,
|
|
10016
10042
|
cx: "50",
|
|
10017
10043
|
cy: "50",
|
|
10018
10044
|
r: "20",
|
|
10019
|
-
fill: "none"
|
|
10020
|
-
strokeWidth: "5"
|
|
10045
|
+
fill: "none"
|
|
10021
10046
|
})
|
|
10022
10047
|
})]
|
|
10023
10048
|
});
|
|
10049
|
+
};
|
|
10050
|
+
|
|
10051
|
+
/**
|
|
10052
|
+
* Defines the props of the component.
|
|
10053
|
+
*/
|
|
10054
|
+
|
|
10055
|
+
/**
|
|
10056
|
+
* ProgressCircular component.
|
|
10057
|
+
*
|
|
10058
|
+
* @param props Component props.
|
|
10059
|
+
* @param ref Component ref.
|
|
10060
|
+
* @return React element.
|
|
10061
|
+
*/
|
|
10062
|
+
const ProgressCircular = forwardRef((props, ref) => {
|
|
10063
|
+
const defaultTheme = useTheme() || Theme$1.light;
|
|
10064
|
+
const {
|
|
10065
|
+
theme = defaultTheme,
|
|
10066
|
+
...otherProps
|
|
10067
|
+
} = props;
|
|
10068
|
+
return ProgressCircular$1({
|
|
10069
|
+
ref,
|
|
10070
|
+
theme,
|
|
10071
|
+
...otherProps,
|
|
10072
|
+
circleProps: {
|
|
10073
|
+
className: element$k('path'),
|
|
10074
|
+
strokeWidth: '5'
|
|
10075
|
+
},
|
|
10076
|
+
svgProps: {
|
|
10077
|
+
className: element$k('svg')
|
|
10078
|
+
}
|
|
10079
|
+
});
|
|
10024
10080
|
});
|
|
10025
10081
|
ProgressCircular.displayName = COMPONENT_NAME$w;
|
|
10026
10082
|
ProgressCircular.className = CLASSNAME$x;
|
|
@@ -13312,10 +13368,6 @@ const TableCell$1 = props => {
|
|
|
13312
13368
|
variant = DEFAULT_PROPS$e.variant,
|
|
13313
13369
|
...forwardedProps
|
|
13314
13370
|
} = props;
|
|
13315
|
-
console.log({
|
|
13316
|
-
onHeaderClick,
|
|
13317
|
-
isSortable
|
|
13318
|
-
});
|
|
13319
13371
|
|
|
13320
13372
|
// Use button if clickable
|
|
13321
13373
|
const Wrapper = onHeaderClick ? 'button' : 'div';
|