@dynamic-framework/ui-react 1.30.1 → 1.31.0
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/dist/css/dynamic-ui-non-root.css +45 -25
- package/dist/css/dynamic-ui-non-root.min.css +2 -2
- package/dist/css/dynamic-ui-root.css +7 -6
- package/dist/css/dynamic-ui-root.min.css +2 -2
- package/dist/css/dynamic-ui.css +51 -30
- package/dist/css/dynamic-ui.min.css +2 -2
- package/dist/index.esm.js +6 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/types/components/DStepperDesktop/DStepperDesktop.d.ts +3 -1
- package/package.json +6 -3
- package/src/style/abstracts/variables/_+import.scss +0 -1
- package/src/style/abstracts/variables/_forms.scss +3 -3
- package/src/style/abstracts/variables/_tooltip.scss +4 -4
- package/src/style/base/_form-check.scss +6 -2
- package/src/style/base/_label.scss +1 -0
- package/src/style/components/_d-stepper-desktop.scss +25 -5
- package/src/style/components/_d-stepper-mobile.scss +6 -6
- package/src/style/root/_root.scss +2 -1
- package/src/style/abstracts/variables/_box-shadow.scss +0 -6
package/dist/index.js
CHANGED
|
@@ -1378,7 +1378,7 @@ function DSkeleton({ speed = 2, viewBox, backgroundColor, foregroundColor, child
|
|
|
1378
1378
|
return (jsxRuntime.jsx(ContentLoader, { speed: speed, viewBox: viewBox, backgroundColor: innerBackgroundColor, foregroundColor: innerForegroundColor, children: children }));
|
|
1379
1379
|
}
|
|
1380
1380
|
|
|
1381
|
-
function DStepper$2({ options, currentStep, iconSuccess: iconSuccessProp, iconSuccessFamilyClass, iconSuccessFamilyPrefix, iconSuccessMaterialStyle = false, vertical = false, completed, className, style, }) {
|
|
1381
|
+
function DStepper$2({ options, currentStep, iconSuccess: iconSuccessProp, iconSuccessFamilyClass, iconSuccessFamilyPrefix, iconSuccessMaterialStyle = false, vertical = false, completed, alignStart = false, className, style, }) {
|
|
1382
1382
|
const { iconMap: { check, }, } = useDContext();
|
|
1383
1383
|
const icon = React.useMemo(() => iconSuccessProp || check, [check, iconSuccessProp]);
|
|
1384
1384
|
if (currentStep < 1 || currentStep > options.length) {
|
|
@@ -1387,13 +1387,14 @@ function DStepper$2({ options, currentStep, iconSuccess: iconSuccessProp, iconSu
|
|
|
1387
1387
|
return (jsxRuntime.jsx("div", { className: classNames({
|
|
1388
1388
|
'd-stepper-desktop': true,
|
|
1389
1389
|
'is-vertical': vertical,
|
|
1390
|
-
|
|
1390
|
+
'is-align-start': alignStart && !vertical,
|
|
1391
|
+
}, className), style: style, children: options.map(({ label, value, description }) => (jsxRuntime.jsxs("div", { className: "d-step", children: [jsxRuntime.jsx("div", { className: "d-step-value", children: jsxRuntime.jsx("div", { className: classNames({
|
|
1391
1392
|
'd-step-icon-container': true,
|
|
1392
1393
|
'd-step-check': value < currentStep || completed,
|
|
1393
1394
|
'd-step-current': value === currentStep && !completed,
|
|
1394
1395
|
}), children: value < currentStep || completed
|
|
1395
1396
|
? (jsxRuntime.jsx(DIcon, { icon: icon, familyClass: iconSuccessFamilyClass, familyPrefix: iconSuccessFamilyPrefix, materialStyle: iconSuccessMaterialStyle, className: "d-step-icon" }))
|
|
1396
|
-
: value }) }), jsxRuntime.jsx("div", { className: "d-step-label", children: label })] }, value))) }));
|
|
1397
|
+
: value }) }), jsxRuntime.jsxs("div", { className: "d-step-text-container", children: [jsxRuntime.jsx("div", { className: "d-step-label", children: label }), description && (jsxRuntime.jsx("div", { className: "d-step-description", children: description }))] })] }, value))) }));
|
|
1397
1398
|
}
|
|
1398
1399
|
|
|
1399
1400
|
function DStepper$1({ options, currentStep, className, style, }) {
|
|
@@ -1420,7 +1421,7 @@ function DStepper$1({ options, currentStep, className, style, }) {
|
|
|
1420
1421
|
};
|
|
1421
1422
|
}, [currentAngle, currentStep, options.length]);
|
|
1422
1423
|
const progressStyle = React.useMemo(() => `conic-gradient(
|
|
1423
|
-
from
|
|
1424
|
+
from 0deg,
|
|
1424
1425
|
var(--${PREFIX_BS}step-progress-outter-fill-background-color) ${currentAngle}deg,
|
|
1425
1426
|
var(--${PREFIX_BS}step-progress-outter-background-color) 0deg)`, [currentAngle]);
|
|
1426
1427
|
return (jsxRuntime.jsxs("div", { className: classNames('d-stepper', className), style: style, children: [jsxRuntime.jsx("div", { className: "d-step-bar", style: { background: progressStyle }, children: jsxRuntime.jsx("p", { className: "d-step-number", children: `${currentStep}/${options.length}` }) }), jsxRuntime.jsx("div", { className: "d-step-info", children: Object.keys(currentOption).length > 0 && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: "d-step-label", children: currentOption.label }), jsxRuntime.jsx("div", { className: "d-step-description", children: currentOption.description || '' })] })) })] }));
|
|
@@ -1433,7 +1434,7 @@ function DStepper({ options, currentStep, iconSuccess, iconSuccessFamilyClass, i
|
|
|
1433
1434
|
const ARROW_WIDTH = 8;
|
|
1434
1435
|
const ARROW_HEIGHT = 4;
|
|
1435
1436
|
const GAP = 2;
|
|
1436
|
-
function DTooltip({ className, childrenClassName, style, offSet = ARROW_HEIGHT + GAP, padding, withFocus = false, withClick = false, withHover = true, open = false, theme = '
|
|
1437
|
+
function DTooltip({ className, childrenClassName, style, offSet = ARROW_HEIGHT + GAP, padding, withFocus = false, withClick = false, withHover = true, open = false, theme = 'dark', placement = 'top', size, Component, children, }) {
|
|
1437
1438
|
const [isOpen, setIsOpen] = React.useState(open);
|
|
1438
1439
|
const arrowRef = React.useRef(null);
|
|
1439
1440
|
const { refs, context, floatingStyles, } = react.useFloating({
|