@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.esm.js
CHANGED
|
@@ -1376,7 +1376,7 @@ function DSkeleton({ speed = 2, viewBox, backgroundColor, foregroundColor, child
|
|
|
1376
1376
|
return (jsx(ContentLoader, { speed: speed, viewBox: viewBox, backgroundColor: innerBackgroundColor, foregroundColor: innerForegroundColor, children: children }));
|
|
1377
1377
|
}
|
|
1378
1378
|
|
|
1379
|
-
function DStepper$2({ options, currentStep, iconSuccess: iconSuccessProp, iconSuccessFamilyClass, iconSuccessFamilyPrefix, iconSuccessMaterialStyle = false, vertical = false, completed, className, style, }) {
|
|
1379
|
+
function DStepper$2({ options, currentStep, iconSuccess: iconSuccessProp, iconSuccessFamilyClass, iconSuccessFamilyPrefix, iconSuccessMaterialStyle = false, vertical = false, completed, alignStart = false, className, style, }) {
|
|
1380
1380
|
const { iconMap: { check, }, } = useDContext();
|
|
1381
1381
|
const icon = useMemo(() => iconSuccessProp || check, [check, iconSuccessProp]);
|
|
1382
1382
|
if (currentStep < 1 || currentStep > options.length) {
|
|
@@ -1385,13 +1385,14 @@ function DStepper$2({ options, currentStep, iconSuccess: iconSuccessProp, iconSu
|
|
|
1385
1385
|
return (jsx("div", { className: classNames({
|
|
1386
1386
|
'd-stepper-desktop': true,
|
|
1387
1387
|
'is-vertical': vertical,
|
|
1388
|
-
|
|
1388
|
+
'is-align-start': alignStart && !vertical,
|
|
1389
|
+
}, className), style: style, children: options.map(({ label, value, description }) => (jsxs("div", { className: "d-step", children: [jsx("div", { className: "d-step-value", children: jsx("div", { className: classNames({
|
|
1389
1390
|
'd-step-icon-container': true,
|
|
1390
1391
|
'd-step-check': value < currentStep || completed,
|
|
1391
1392
|
'd-step-current': value === currentStep && !completed,
|
|
1392
1393
|
}), children: value < currentStep || completed
|
|
1393
1394
|
? (jsx(DIcon, { icon: icon, familyClass: iconSuccessFamilyClass, familyPrefix: iconSuccessFamilyPrefix, materialStyle: iconSuccessMaterialStyle, className: "d-step-icon" }))
|
|
1394
|
-
: value }) }), jsx("div", { className: "d-step-label", children: label })] }, value))) }));
|
|
1395
|
+
: value }) }), jsxs("div", { className: "d-step-text-container", children: [jsx("div", { className: "d-step-label", children: label }), description && (jsx("div", { className: "d-step-description", children: description }))] })] }, value))) }));
|
|
1395
1396
|
}
|
|
1396
1397
|
|
|
1397
1398
|
function DStepper$1({ options, currentStep, className, style, }) {
|
|
@@ -1418,7 +1419,7 @@ function DStepper$1({ options, currentStep, className, style, }) {
|
|
|
1418
1419
|
};
|
|
1419
1420
|
}, [currentAngle, currentStep, options.length]);
|
|
1420
1421
|
const progressStyle = useMemo(() => `conic-gradient(
|
|
1421
|
-
from
|
|
1422
|
+
from 0deg,
|
|
1422
1423
|
var(--${PREFIX_BS}step-progress-outter-fill-background-color) ${currentAngle}deg,
|
|
1423
1424
|
var(--${PREFIX_BS}step-progress-outter-background-color) 0deg)`, [currentAngle]);
|
|
1424
1425
|
return (jsxs("div", { className: classNames('d-stepper', className), style: style, children: [jsx("div", { className: "d-step-bar", style: { background: progressStyle }, children: jsx("p", { className: "d-step-number", children: `${currentStep}/${options.length}` }) }), jsx("div", { className: "d-step-info", children: Object.keys(currentOption).length > 0 && (jsxs(Fragment$1, { children: [jsx("div", { className: "d-step-label", children: currentOption.label }), jsx("div", { className: "d-step-description", children: currentOption.description || '' })] })) })] }));
|
|
@@ -1431,7 +1432,7 @@ function DStepper({ options, currentStep, iconSuccess, iconSuccessFamilyClass, i
|
|
|
1431
1432
|
const ARROW_WIDTH = 8;
|
|
1432
1433
|
const ARROW_HEIGHT = 4;
|
|
1433
1434
|
const GAP = 2;
|
|
1434
|
-
function DTooltip({ className, childrenClassName, style, offSet = ARROW_HEIGHT + GAP, padding, withFocus = false, withClick = false, withHover = true, open = false, theme = '
|
|
1435
|
+
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, }) {
|
|
1435
1436
|
const [isOpen, setIsOpen] = useState(open);
|
|
1436
1437
|
const arrowRef = useRef(null);
|
|
1437
1438
|
const { refs, context, floatingStyles, } = useFloating({
|