@dynamic-framework/ui-react 1.30.0 → 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 +86 -56
- 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 +92 -61
- package/dist/css/dynamic-ui.min.css +2 -2
- package/dist/index.esm.js +20 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +20 -8
- package/dist/index.js.map +1 -1
- package/dist/js/cjs/enums.js +65 -0
- package/dist/js/cjs/popper-base.js +939 -0
- package/dist/js/cjs/popper-lite.js +1260 -0
- package/dist/js/cjs/popper.js +1819 -0
- package/dist/js/esm/createPopper.js +199 -0
- package/dist/js/esm/dom-utils/contains.js +23 -0
- package/dist/js/esm/dom-utils/getBoundingClientRect.js +41 -0
- package/dist/js/esm/dom-utils/getClippingRect.js +70 -0
- package/dist/js/esm/dom-utils/getCompositeRect.js +58 -0
- package/dist/js/esm/dom-utils/getComputedStyle.js +4 -0
- package/dist/js/esm/dom-utils/getDocumentElement.js +6 -0
- package/dist/js/esm/dom-utils/getDocumentRect.js +29 -0
- package/dist/js/esm/dom-utils/getHTMLElementScroll.js +6 -0
- package/dist/js/esm/dom-utils/getLayoutRect.js +25 -0
- package/dist/js/esm/dom-utils/getNodeName.js +3 -0
- package/dist/js/esm/dom-utils/getNodeScroll.js +11 -0
- package/dist/js/esm/dom-utils/getOffsetParent.js +69 -0
- package/dist/js/esm/dom-utils/getParentNode.js +19 -0
- package/dist/js/esm/dom-utils/getScrollParent.js +16 -0
- package/dist/js/esm/dom-utils/getViewportRect.js +31 -0
- package/dist/js/esm/dom-utils/getWindow.js +12 -0
- package/dist/js/esm/dom-utils/getWindowScroll.js +10 -0
- package/dist/js/esm/dom-utils/getWindowScrollBarX.js +13 -0
- package/dist/js/esm/dom-utils/instanceOf.js +23 -0
- package/dist/js/esm/dom-utils/isLayoutViewport.js +4 -0
- package/dist/js/esm/dom-utils/isScrollParent.js +10 -0
- package/dist/js/esm/dom-utils/isTableElement.js +4 -0
- package/dist/js/esm/dom-utils/listScrollParents.js +26 -0
- package/dist/js/esm/enums.js +31 -0
- package/dist/js/esm/index.js +8 -0
- package/dist/js/esm/modifiers/applyStyles.js +84 -0
- package/dist/js/esm/modifiers/arrow.js +90 -0
- package/dist/js/esm/modifiers/computeStyles.js +169 -0
- package/dist/js/esm/modifiers/eventListeners.js +49 -0
- package/dist/js/esm/modifiers/flip.js +147 -0
- package/dist/js/esm/modifiers/hide.js +61 -0
- package/dist/js/esm/modifiers/index.js +9 -0
- package/dist/js/esm/modifiers/offset.js +54 -0
- package/dist/js/esm/modifiers/popperOffsets.js +25 -0
- package/dist/js/esm/modifiers/preventOverflow.js +142 -0
- package/dist/js/esm/popper-base.js +3 -0
- package/dist/js/esm/popper-lite.js +11 -0
- package/dist/js/esm/popper.js +20 -0
- package/dist/js/esm/types.js +0 -0
- package/dist/js/esm/utils/computeAutoPlacement.js +43 -0
- package/dist/js/esm/utils/computeOffsets.js +70 -0
- package/dist/js/esm/utils/debounce.js +15 -0
- package/dist/js/esm/utils/detectOverflow.js +65 -0
- package/dist/js/esm/utils/expandToHashMap.js +6 -0
- package/dist/js/esm/utils/getAltAxis.js +3 -0
- package/dist/js/esm/utils/getAltLen.js +3 -0
- package/dist/js/esm/utils/getBasePlacement.js +4 -0
- package/dist/js/esm/utils/getFreshSideObject.js +8 -0
- package/dist/js/esm/utils/getMainAxisFromPlacement.js +3 -0
- package/dist/js/esm/utils/getOppositePlacement.js +11 -0
- package/dist/js/esm/utils/getOppositeVariationPlacement.js +9 -0
- package/dist/js/esm/utils/getVariation.js +3 -0
- package/dist/js/esm/utils/math.js +3 -0
- package/dist/js/esm/utils/mergeByName.js +14 -0
- package/dist/js/esm/utils/mergePaddingObject.js +4 -0
- package/dist/js/esm/utils/orderModifiers.js +44 -0
- package/dist/js/esm/utils/rectToClientRect.js +8 -0
- package/dist/js/esm/utils/uniqueBy.js +11 -0
- package/dist/js/esm/utils/userAgent.js +11 -0
- package/dist/js/esm/utils/within.js +8 -0
- package/dist/js/umd/enums.js +71 -0
- package/dist/js/umd/enums.min.js +6 -0
- package/dist/js/umd/popper-base.js +945 -0
- package/dist/js/umd/popper-base.min.js +6 -0
- package/dist/js/umd/popper-lite.js +1266 -0
- package/dist/js/umd/popper-lite.min.js +6 -0
- package/dist/js/umd/popper.js +1825 -0
- package/dist/js/umd/popper.min.js +6 -0
- package/dist/types/components/DSkeleton/DSkeleton.d.ts +3 -0
- package/dist/types/components/DStepperDesktop/DStepperDesktop.d.ts +3 -1
- package/dist/types/components/index.d.ts +1 -0
- package/package.json +12 -5
- package/src/style/abstracts/variables/_+import.scss +1 -1
- package/src/style/abstracts/variables/_breadcrumb.scss +5 -0
- package/src/style/abstracts/variables/_forms.scss +3 -3
- package/src/style/abstracts/variables/_modals.scss +6 -6
- package/src/style/abstracts/variables/_offcanvas.scss +7 -4
- package/src/style/abstracts/variables/_pagination.scss +6 -4
- package/src/style/abstracts/variables/_progress.scss +3 -3
- package/src/style/abstracts/variables/_tooltip.scss +4 -4
- package/src/style/base/_alert.scss +0 -2
- package/src/style/base/_form-check.scss +6 -2
- package/src/style/base/_label.scss +1 -0
- package/src/style/base/_pagination.scss +11 -1
- package/src/style/components/_d-offcanvas.scss +10 -1
- package/src/style/components/_d-stepper-desktop.scss +27 -7
- 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
|
@@ -280,6 +280,13 @@ function DAlert({ theme = 'success', icon: iconProp, iconFamilyClass, iconFamily
|
|
|
280
280
|
return (jsxs("div", Object.assign({ className: classNames(generateClasses), style: style, role: "alert", id: id }, dataAttributes, { children: [icon && (jsx(DIcon, { className: "alert-icon", icon: icon, familyClass: iconFamilyClass, familyPrefix: iconFamilyPrefix, materialStyle: iconMaterialStyle })), jsx("div", { className: "alert-text", children: children }), showClose && (jsx("button", { type: "button", className: "d-close", "aria-label": "Close", onClick: onClose, children: jsx(DIcon, { icon: iconClose, familyClass: iconCloseFamilyClass, familyPrefix: iconCloseFamilyPrefix, materialStyle: iconCloseMaterialStyle }) }))] })));
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
+
function DAvatar({ id, size, image, title, className, style, dataAttributes, }) {
|
|
284
|
+
return (jsxs("div", Object.assign({ className: classNames({
|
|
285
|
+
avatar: true,
|
|
286
|
+
[`avatar-${size}`]: !!size,
|
|
287
|
+
}, className), style: style, id: id }, dataAttributes, { children: [image && jsx("img", { src: image, alt: "avatar", className: "avatar-img" }), title && jsx("span", { className: "avatar-title", children: title })] })));
|
|
288
|
+
}
|
|
289
|
+
|
|
283
290
|
function DBadge({ text, soft = false, theme = 'primary', id, rounded, className, style, iconStart, iconEnd, iconMaterialStyle, iconFamilyClass, iconFamilyPrefix, dataAttributes, }) {
|
|
284
291
|
const generateClasses = useMemo(() => ({
|
|
285
292
|
badge: true,
|
|
@@ -1172,7 +1179,7 @@ var DList$1 = Object.assign(DList, {
|
|
|
1172
1179
|
function DModalHeader({ showCloseButton, onClose, children, className, style, iconFamilyClass, iconFamilyPrefix, icon: iconProp, materialStyle = false, }) {
|
|
1173
1180
|
const { iconMap: { xLg, }, } = useDContext();
|
|
1174
1181
|
const icon = useMemo(() => iconProp || xLg, [iconProp, xLg]);
|
|
1175
|
-
return (jsxs("div", { className: classNames('modal-header', className), style: style, children: [jsx("div", { children: children }), showCloseButton && (jsx("button", { type: "button", className: "d-close align-self-center", "aria-label": "Close", onClick: onClose, children: jsx(DIcon, { icon: icon, familyClass: iconFamilyClass, familyPrefix: iconFamilyPrefix, materialStyle: materialStyle }) }))] }));
|
|
1182
|
+
return (jsxs(Fragment$1, { children: [jsxs("div", { className: classNames('modal-header', className), style: style, children: [jsx("div", { children: children }), showCloseButton && (jsx("button", { type: "button", className: "d-close align-self-center", "aria-label": "Close", onClick: onClose, children: jsx(DIcon, { icon: icon, familyClass: iconFamilyClass, familyPrefix: iconFamilyPrefix, materialStyle: materialStyle }) }))] }), jsx("div", { className: "d-modal-separator" })] }));
|
|
1176
1183
|
}
|
|
1177
1184
|
|
|
1178
1185
|
function DModalBody({ children, className, style, }) {
|
|
@@ -1209,7 +1216,7 @@ var DModal$1 = Object.assign(DModal, {
|
|
|
1209
1216
|
function DOffcanvasHeader({ showCloseButton, onClose, children, className, style, iconFamilyClass, iconFamilyPrefix, icon: iconProp, materialStyle = false, }) {
|
|
1210
1217
|
const { iconMap: { xLg, }, } = useDContext();
|
|
1211
1218
|
const icon = useMemo(() => iconProp || xLg, [iconProp, xLg]);
|
|
1212
|
-
return (jsxs("div", { className: classNames('offcanvas-header', className), style: style, children: [jsx("div", { children: children }), showCloseButton && (jsx("button", { type: "button", className: "d-close align-self-center", "aria-label": "Close", onClick: onClose, children: jsx(DIcon, { icon: icon, familyClass: iconFamilyClass, familyPrefix: iconFamilyPrefix, materialStyle: materialStyle }) }))] }));
|
|
1219
|
+
return (jsxs(Fragment$1, { children: [jsxs("div", { className: classNames('offcanvas-header', className), style: style, children: [jsx("div", { children: children }), showCloseButton && (jsx("button", { type: "button", className: "d-close align-self-center", "aria-label": "Close", onClick: onClose, children: jsx(DIcon, { icon: icon, familyClass: iconFamilyClass, familyPrefix: iconFamilyPrefix, materialStyle: materialStyle }) }))] }), jsx("div", { className: "d-offcanvas-separator" })] }));
|
|
1213
1220
|
}
|
|
1214
1221
|
|
|
1215
1222
|
function DOffcanvasBody({ children, className, style, }) {
|
|
@@ -1217,7 +1224,7 @@ function DOffcanvasBody({ children, className, style, }) {
|
|
|
1217
1224
|
}
|
|
1218
1225
|
|
|
1219
1226
|
function DOffcanvasFooter({ footerActionPlacement = 'fill', children, className, style, }) {
|
|
1220
|
-
return (jsx("div", { className: classNames(`d-offcanvas-footer d-offcanvas-action-${footerActionPlacement}`, className), style: style, children: children }));
|
|
1227
|
+
return (jsxs(Fragment$1, { children: [jsx("div", { className: "d-offcanvas-separator" }), jsx("div", { className: classNames(`d-offcanvas-footer d-offcanvas-action-${footerActionPlacement}`, className), style: style, children: children })] }));
|
|
1221
1228
|
}
|
|
1222
1229
|
|
|
1223
1230
|
function DOffcanvas({ name, className, style, staticBackdrop, scrollable, openFrom = 'end', children, dataAttributes, }) {
|
|
@@ -1348,6 +1355,9 @@ function DQuickActionSwitch({ id: idProp, name, label, hint, checked, disabled,
|
|
|
1348
1355
|
return (jsxs("button", Object.assign({ className: classNames('d-quick-action-switch', className), type: "button", onClick: clickHandler, style: style }, dataAttributes, { children: [jsx("div", { className: "d-quick-action-switch-content", children: jsx(DInputSwitch, { id: id, name: name, disabled: disabled, checked: checked, readonly: true, label: label }) }), jsx("div", { className: "d-quick-action-switch-hint", children: hint })] })));
|
|
1349
1356
|
}
|
|
1350
1357
|
|
|
1358
|
+
/**
|
|
1359
|
+
* @deprecated Please use https://getbootstrap.com/docs/5.3/components/placeholders/ instead
|
|
1360
|
+
*/
|
|
1351
1361
|
function DSkeleton({ speed = 2, viewBox, backgroundColor, foregroundColor, children, }) {
|
|
1352
1362
|
const innerBackgroundColor = useMemo(() => {
|
|
1353
1363
|
if (backgroundColor) {
|
|
@@ -1366,7 +1376,7 @@ function DSkeleton({ speed = 2, viewBox, backgroundColor, foregroundColor, child
|
|
|
1366
1376
|
return (jsx(ContentLoader, { speed: speed, viewBox: viewBox, backgroundColor: innerBackgroundColor, foregroundColor: innerForegroundColor, children: children }));
|
|
1367
1377
|
}
|
|
1368
1378
|
|
|
1369
|
-
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, }) {
|
|
1370
1380
|
const { iconMap: { check, }, } = useDContext();
|
|
1371
1381
|
const icon = useMemo(() => iconSuccessProp || check, [check, iconSuccessProp]);
|
|
1372
1382
|
if (currentStep < 1 || currentStep > options.length) {
|
|
@@ -1375,13 +1385,14 @@ function DStepper$2({ options, currentStep, iconSuccess: iconSuccessProp, iconSu
|
|
|
1375
1385
|
return (jsx("div", { className: classNames({
|
|
1376
1386
|
'd-stepper-desktop': true,
|
|
1377
1387
|
'is-vertical': vertical,
|
|
1378
|
-
|
|
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({
|
|
1379
1390
|
'd-step-icon-container': true,
|
|
1380
1391
|
'd-step-check': value < currentStep || completed,
|
|
1381
1392
|
'd-step-current': value === currentStep && !completed,
|
|
1382
1393
|
}), children: value < currentStep || completed
|
|
1383
1394
|
? (jsx(DIcon, { icon: icon, familyClass: iconSuccessFamilyClass, familyPrefix: iconSuccessFamilyPrefix, materialStyle: iconSuccessMaterialStyle, className: "d-step-icon" }))
|
|
1384
|
-
: 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))) }));
|
|
1385
1396
|
}
|
|
1386
1397
|
|
|
1387
1398
|
function DStepper$1({ options, currentStep, className, style, }) {
|
|
@@ -1408,7 +1419,7 @@ function DStepper$1({ options, currentStep, className, style, }) {
|
|
|
1408
1419
|
};
|
|
1409
1420
|
}, [currentAngle, currentStep, options.length]);
|
|
1410
1421
|
const progressStyle = useMemo(() => `conic-gradient(
|
|
1411
|
-
from
|
|
1422
|
+
from 0deg,
|
|
1412
1423
|
var(--${PREFIX_BS}step-progress-outter-fill-background-color) ${currentAngle}deg,
|
|
1413
1424
|
var(--${PREFIX_BS}step-progress-outter-background-color) 0deg)`, [currentAngle]);
|
|
1414
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 || '' })] })) })] }));
|
|
@@ -1421,7 +1432,7 @@ function DStepper({ options, currentStep, iconSuccess, iconSuccessFamilyClass, i
|
|
|
1421
1432
|
const ARROW_WIDTH = 8;
|
|
1422
1433
|
const ARROW_HEIGHT = 4;
|
|
1423
1434
|
const GAP = 2;
|
|
1424
|
-
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, }) {
|
|
1425
1436
|
const [isOpen, setIsOpen] = useState(open);
|
|
1426
1437
|
const arrowRef = useRef(null);
|
|
1427
1438
|
const { refs, context, floatingStyles, } = useFloating({
|
|
@@ -1575,5 +1586,5 @@ async function configureI8n(resources, _a = {}) {
|
|
|
1575
1586
|
.then((t) => t);
|
|
1576
1587
|
}
|
|
1577
1588
|
|
|
1578
|
-
export { DAlert, DBadge, DBoxFile, DButton, DButtonIcon, DCard$1 as DCard, DCardBody, DCardFooter, DCardHeader, DCarousel$1 as DCarousel, DCarouselSlide, DChip, DCollapse, DContext, DContextProvider, DCurrencyText, DDatePicker, DIcon, DIconBase, DInput$1 as DInput, DInputCheck, DInputCounter$1 as DInputCounter, DInputCurrency$1 as DInputCurrency, DInputCurrencyBase$1 as DInputCurrencyBase, DInputMask$1 as DInputMask, DInputPassword$1 as DInputPassword, DInputPin, DInputRange$1 as DInputRange, DInputSearch$1 as DInputSearch, DInputSelect, DInputSwitch, DList$1 as DList, DListItem, DModal$1 as DModal, DModalBody, DModalFooter, DModalHeader, DOffcanvas$1 as DOffcanvas, DOffcanvasBody, DOffcanvasFooter, DOffcanvasHeader, DPaginator, DPopover, DProgress, DQuickActionButton, DQuickActionCheck, DQuickActionSelect, DQuickActionSwitch, DSelect$1 as DSelect, DSkeleton, DStepper, DStepper$2 as DStepperDesktop, DStepper$1 as DStepperMobile, DTabContent, DTableHead, DTabs$1 as DTabs, DToast$1 as DToast, DToastContainer, DTooltip, configureI8n as configureI18n, formatCurrency, useDContext, useDPortalContext, useDToast, useDisableBodyScrollEffect, useDisableInputWheel, useFormatCurrency, useInputCurrency, usePortal, useProvidedRefOrCreate, useStackState, useTabContext };
|
|
1589
|
+
export { DAlert, DAvatar, DBadge, DBoxFile, DButton, DButtonIcon, DCard$1 as DCard, DCardBody, DCardFooter, DCardHeader, DCarousel$1 as DCarousel, DCarouselSlide, DChip, DCollapse, DContext, DContextProvider, DCurrencyText, DDatePicker, DIcon, DIconBase, DInput$1 as DInput, DInputCheck, DInputCounter$1 as DInputCounter, DInputCurrency$1 as DInputCurrency, DInputCurrencyBase$1 as DInputCurrencyBase, DInputMask$1 as DInputMask, DInputPassword$1 as DInputPassword, DInputPin, DInputRange$1 as DInputRange, DInputSearch$1 as DInputSearch, DInputSelect, DInputSwitch, DList$1 as DList, DListItem, DModal$1 as DModal, DModalBody, DModalFooter, DModalHeader, DOffcanvas$1 as DOffcanvas, DOffcanvasBody, DOffcanvasFooter, DOffcanvasHeader, DPaginator, DPopover, DProgress, DQuickActionButton, DQuickActionCheck, DQuickActionSelect, DQuickActionSwitch, DSelect$1 as DSelect, DSkeleton, DStepper, DStepper$2 as DStepperDesktop, DStepper$1 as DStepperMobile, DTabContent, DTableHead, DTabs$1 as DTabs, DToast$1 as DToast, DToastContainer, DTooltip, configureI8n as configureI18n, formatCurrency, useDContext, useDPortalContext, useDToast, useDisableBodyScrollEffect, useDisableInputWheel, useFormatCurrency, useInputCurrency, usePortal, useProvidedRefOrCreate, useStackState, useTabContext };
|
|
1579
1590
|
//# sourceMappingURL=index.esm.js.map
|