@lumx/react 3.14.2-alpha.0 → 3.14.2-alpha.1
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 +8 -1
- package/index.js +13 -9
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/dialog/Dialog.tsx +4 -9
- package/src/components/progress/ProgressCircular.stories.tsx +15 -1
- package/src/components/progress/ProgressCircular.test.tsx +6 -0
- package/src/components/progress/ProgressCircular.tsx +22 -7
package/index.d.ts
CHANGED
|
@@ -2307,8 +2307,15 @@ type ProgressCircularSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm'>;
|
|
|
2307
2307
|
* Defines the props of the component.
|
|
2308
2308
|
*/
|
|
2309
2309
|
interface ProgressCircularProps extends GenericProps, HasTheme {
|
|
2310
|
-
/**
|
|
2310
|
+
/**
|
|
2311
|
+
* Progress circular size.
|
|
2312
|
+
*/
|
|
2311
2313
|
size?: ProgressCircularSize;
|
|
2314
|
+
/**
|
|
2315
|
+
* Progress display type (inline or block).
|
|
2316
|
+
* @default 'block'
|
|
2317
|
+
*/
|
|
2318
|
+
display?: 'inline' | 'block';
|
|
2312
2319
|
}
|
|
2313
2320
|
/**
|
|
2314
2321
|
* ProgressCircularProps component.
|
package/index.js
CHANGED
|
@@ -6972,7 +6972,7 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
6972
6972
|
level: 2
|
|
6973
6973
|
}, /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
6974
6974
|
value: undefined
|
|
6975
|
-
}, /*#__PURE__*/React__default.createElement("
|
|
6975
|
+
}, /*#__PURE__*/React__default.createElement("div", _extends({
|
|
6976
6976
|
className: `${CLASSNAME$10}__container`,
|
|
6977
6977
|
role: "dialog",
|
|
6978
6978
|
"aria-modal": "true"
|
|
@@ -6980,7 +6980,7 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
6980
6980
|
callback: !shouldPreventCloseOnClickAway && onClose,
|
|
6981
6981
|
childrenRefs: clickAwayRefs,
|
|
6982
6982
|
parentRef: rootRef
|
|
6983
|
-
}, /*#__PURE__*/React__default.createElement("
|
|
6983
|
+
}, /*#__PURE__*/React__default.createElement("section", {
|
|
6984
6984
|
className: `${CLASSNAME$10}__wrapper`,
|
|
6985
6985
|
ref: wrapperRef
|
|
6986
6986
|
}, (header || headerChildContent) && /*#__PURE__*/React__default.createElement("header", _extends({}, headerChildProps, {
|
|
@@ -10056,7 +10056,7 @@ ProgressLinear.displayName = COMPONENT_NAME$y;
|
|
|
10056
10056
|
ProgressLinear.className = CLASSNAME$y;
|
|
10057
10057
|
ProgressLinear.defaultProps = DEFAULT_PROPS$v;
|
|
10058
10058
|
|
|
10059
|
-
const _excluded$B = ["className", "theme", "size"];
|
|
10059
|
+
const _excluded$B = ["className", "theme", "size", "display"];
|
|
10060
10060
|
|
|
10061
10061
|
/**
|
|
10062
10062
|
* Progress sizes.
|
|
@@ -10080,7 +10080,8 @@ const CLASSNAME$x = getRootClassName(COMPONENT_NAME$x);
|
|
|
10080
10080
|
* Component default props.
|
|
10081
10081
|
*/
|
|
10082
10082
|
const DEFAULT_PROPS$u = {
|
|
10083
|
-
size: Size.m
|
|
10083
|
+
size: Size.m,
|
|
10084
|
+
display: 'block'
|
|
10084
10085
|
};
|
|
10085
10086
|
|
|
10086
10087
|
/**
|
|
@@ -10095,20 +10096,23 @@ const ProgressCircular = forwardRef((props, ref) => {
|
|
|
10095
10096
|
const {
|
|
10096
10097
|
className,
|
|
10097
10098
|
theme = defaultTheme,
|
|
10098
|
-
size
|
|
10099
|
+
size = DEFAULT_PROPS$u.size,
|
|
10100
|
+
display = DEFAULT_PROPS$u.display
|
|
10099
10101
|
} = props,
|
|
10100
10102
|
forwardedProps = _objectWithoutProperties(props, _excluded$B);
|
|
10101
|
-
|
|
10103
|
+
const Element = display === 'block' ? 'div' : 'span';
|
|
10104
|
+
return /*#__PURE__*/React__default.createElement(Element, _extends({
|
|
10102
10105
|
ref: ref
|
|
10103
10106
|
}, forwardedProps, {
|
|
10104
10107
|
className: classNames(className, handleBasicClasses({
|
|
10105
10108
|
prefix: CLASSNAME$x,
|
|
10106
10109
|
theme,
|
|
10107
|
-
size
|
|
10110
|
+
size,
|
|
10111
|
+
display
|
|
10108
10112
|
}))
|
|
10109
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
10113
|
+
}), /*#__PURE__*/React__default.createElement(Element, {
|
|
10110
10114
|
className: "lumx-progress-circular__double-bounce1"
|
|
10111
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
10115
|
+
}), /*#__PURE__*/React__default.createElement(Element, {
|
|
10112
10116
|
className: "lumx-progress-circular__double-bounce2"
|
|
10113
10117
|
}), /*#__PURE__*/React__default.createElement("svg", {
|
|
10114
10118
|
className: "lumx-progress-circular__svg",
|