@dynamic-framework/ui-react 1.16.0 → 1.16.2
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/{LICENSE → LICENSE.md} +2 -2
- package/dist/css/dynamic-ui-non-root.css +131 -150
- package/dist/css/dynamic-ui-non-root.min.css +4 -2
- package/dist/css/dynamic-ui-root.css +6 -4
- package/dist/css/dynamic-ui-root.min.css +4 -2
- package/dist/css/dynamic-ui.css +134 -153
- package/dist/css/dynamic-ui.min.css +4 -2
- package/dist/index.esm.js +11 -11
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/js/bootstrap.bundle.js +8 -8
- package/dist/js/bootstrap.bundle.min.js +3 -3
- package/dist/js/bootstrap.esm.js +8 -8
- package/dist/js/bootstrap.esm.min.js +3 -3
- package/dist/js/bootstrap.js +8 -8
- package/dist/js/bootstrap.min.js +3 -3
- package/dist/types/components/DTabs/DTabs.d.ts +2 -1
- package/package.json +6 -5
- package/src/style/abstracts/variables/_+import.scss +1 -1
- package/src/style/abstracts/variables/_body.scss +1 -1
- package/src/style/abstracts/variables/_box-shadow.scss +1 -1
- package/src/style/abstracts/variables/_cards.scss +2 -2
- package/src/style/abstracts/variables/_dropdowns.scss +11 -7
- package/src/style/abstracts/variables/_forms.scss +23 -19
- package/src/style/abstracts/variables/_list-group.scss +2 -2
- package/src/style/abstracts/variables/_modals.scss +1 -6
- package/src/style/abstracts/variables/_navs.scss +2 -2
- package/src/style/abstracts/variables/_offcanvas.scss +1 -2
- package/src/style/abstracts/variables/_typography.scss +1 -1
- package/src/style/base/_+import.scss +1 -0
- package/src/style/base/_accordion.scss +2 -1
- package/src/style/base/_dropdown.scss +3 -0
- package/src/style/components/_d-modal.scss +0 -5
- package/src/style/components/_d-tabs.scss +10 -19
package/dist/index.js
CHANGED
|
@@ -1038,16 +1038,15 @@ var DList$1 = Object.assign(DList, {
|
|
|
1038
1038
|
function DModalHeader({ showCloseButton, onClose, children, className, style, iconFamilyClass, iconFamilyPrefix, icon: iconProp, materialStyle = false, }) {
|
|
1039
1039
|
const { iconMap: { xLg, }, } = useDContext();
|
|
1040
1040
|
const icon = React.useMemo(() => iconProp || xLg, [iconProp, xLg]);
|
|
1041
|
-
return (jsxRuntime.jsxs("div", { className: classNames('modal-header', className), style: style, children: [jsxRuntime.jsx("div", {
|
|
1041
|
+
return (jsxRuntime.jsxs("div", { className: classNames('modal-header', className), style: style, children: [jsxRuntime.jsx("div", { children: children }), showCloseButton && (jsxRuntime.jsx("button", { type: "button", className: "d-modal-close", "aria-label": "Close", onClick: onClose, children: jsxRuntime.jsx(DIcon, { icon: icon, familyClass: iconFamilyClass, familyPrefix: iconFamilyPrefix, materialStyle: materialStyle }) }))] }));
|
|
1042
1042
|
}
|
|
1043
1043
|
|
|
1044
1044
|
function DModalBody({ children, className, style, }) {
|
|
1045
|
-
|
|
1046
|
-
return (jsxRuntime.jsx("div", { className: classNames('d-modal-slot modal-body', className), style: generateStyleVariables, children: children }));
|
|
1045
|
+
return (jsxRuntime.jsx("div", { className: classNames('modal-body', className), style: style, children: children }));
|
|
1047
1046
|
}
|
|
1048
1047
|
|
|
1049
1048
|
function DModalFooter({ className, style, actionPlacement = 'fill', children, }) {
|
|
1050
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: "d-modal-separator" }), jsxRuntime.jsx("div", { className: classNames(`
|
|
1049
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: "d-modal-separator" }), jsxRuntime.jsx("div", { className: classNames(`modal-footer d-modal-action-${actionPlacement}`, className), style: style, children: children })] }));
|
|
1051
1050
|
}
|
|
1052
1051
|
|
|
1053
1052
|
function DModal({ name, className, style, staticBackdrop, scrollable, centered, fullScreen, fullScreenFrom, size, children, }) {
|
|
@@ -1076,15 +1075,15 @@ var DModal$1 = Object.assign(DModal, {
|
|
|
1076
1075
|
function DOffcanvasHeader({ showCloseButton, onClose, children, className, style, iconFamilyClass, iconFamilyPrefix, icon: iconProp, materialStyle = false, }) {
|
|
1077
1076
|
const { iconMap: { xLg, }, } = useDContext();
|
|
1078
1077
|
const icon = React.useMemo(() => iconProp || xLg, [iconProp, xLg]);
|
|
1079
|
-
return (jsxRuntime.jsxs("div", { className: classNames('offcanvas-header', className), style: style, children: [jsxRuntime.jsx("div", {
|
|
1078
|
+
return (jsxRuntime.jsxs("div", { className: classNames('offcanvas-header', className), style: style, children: [jsxRuntime.jsx("div", { children: children }), showCloseButton && (jsxRuntime.jsx("button", { type: "button", className: "d-offcanvas-close", "aria-label": "Close", onClick: onClose, children: jsxRuntime.jsx(DIcon, { icon: icon, familyClass: iconFamilyClass, familyPrefix: iconFamilyPrefix, materialStyle: materialStyle }) }))] }));
|
|
1080
1079
|
}
|
|
1081
1080
|
|
|
1082
1081
|
function DOffcanvasBody({ children, className, style, }) {
|
|
1083
|
-
return (jsxRuntime.jsx("div", { className: classNames('
|
|
1082
|
+
return (jsxRuntime.jsx("div", { className: classNames('offcanvas-body', className), style: style, children: children }));
|
|
1084
1083
|
}
|
|
1085
1084
|
|
|
1086
1085
|
function DOffcanvasFooter({ footerActionPlacement = 'fill', children, className, style, }) {
|
|
1087
|
-
return (jsxRuntime.jsx("div", { className: classNames(`d-offcanvas-
|
|
1086
|
+
return (jsxRuntime.jsx("div", { className: classNames(`d-offcanvas-footer d-offcanvas-action-${footerActionPlacement}`, className), style: style, children: children }));
|
|
1088
1087
|
}
|
|
1089
1088
|
|
|
1090
1089
|
function DOffcanvas({ name, className, style, staticBackdrop, scrollable, openFrom = 'end', children, }) {
|
|
@@ -1334,7 +1333,7 @@ function DTabContent({ tab, children, className, style, }) {
|
|
|
1334
1333
|
return (jsxRuntime.jsx("div", { className: classNames('tab-pane fade show active', className), id: `${tab}Pane`, role: "tabpanel", tabIndex: 0, "aria-labelledby": `${tab}Tab`, style: style, children: children }));
|
|
1335
1334
|
}
|
|
1336
1335
|
|
|
1337
|
-
function DTabs({ children, defaultSelected, onChange, options, className, style, vertical, }) {
|
|
1336
|
+
function DTabs({ children, defaultSelected, onChange, options, className, style, vertical, pill, }) {
|
|
1338
1337
|
const [selected, setSelected] = React.useState(defaultSelected);
|
|
1339
1338
|
const onSelect = React.useCallback((option) => {
|
|
1340
1339
|
if (option.tab) {
|
|
@@ -1349,10 +1348,11 @@ function DTabs({ children, defaultSelected, onChange, options, className, style,
|
|
|
1349
1348
|
const value = React.useMemo(() => ({
|
|
1350
1349
|
isSelected,
|
|
1351
1350
|
}), [isSelected]);
|
|
1351
|
+
const generateClasses = React.useMemo(() => (Object.assign({ nav: true, 'flex-column align-items-center': vertical, 'nav-pills': pill, 'nav-tabs': !pill }, className && { [className]: true })), [vertical, pill, className]);
|
|
1352
1352
|
return (jsxRuntime.jsx(TabContext.Provider, { value: value, children: jsxRuntime.jsxs("div", { className: classNames({
|
|
1353
|
-
'd-
|
|
1354
|
-
'
|
|
1355
|
-
}, className), style: style, children: [jsxRuntime.jsx("nav", { className:
|
|
1353
|
+
'd-flex': true,
|
|
1354
|
+
'flex-column': !vertical,
|
|
1355
|
+
}, className), style: style, children: [jsxRuntime.jsx("nav", { className: classNames(generateClasses), children: options.map((option) => (jsxRuntime.jsx("button", { id: `${option.tab}Tab`, className: classNames('nav-link', {
|
|
1356
1356
|
active: option.tab === selected,
|
|
1357
1357
|
}, className), type: "button", role: "tab", "aria-controls": `${option.tab}Pane`, "aria-selected": option.tab === selected, disabled: option.disabled, onClick: () => onSelect(option), children: option.label }, option.label))) }), jsxRuntime.jsx("div", { className: "tab-content", children: children })] }) }));
|
|
1358
1358
|
}
|