@muraldevkit/ui-toolkit 2.86.7 → 2.87.0-dev-nydP.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/dist/components/modal/MrlModalContext/MrlModalContext.d.ts +17 -0
- package/dist/components/modal/MrlModalContext/index.d.ts +1 -0
- package/dist/components/svg/config.d.ts +1 -1
- package/dist/components/table/MrlSmartTable/MrlSmartTable.d.ts +22 -0
- package/dist/components/table/MrlTable/MrlTable.d.ts +2 -2
- package/dist/components/table/MrlTableHeader/MrlTableHeader.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/styles/MrlModalFooter/module.scss +7 -0
- package/dist/styles/MrlModalHeader/module.scss +7 -0
- package/dist/styles/MrlSmartTable/module.scss +20 -0
- package/dist/utils/hasScrollContent/hasScrollContent.d.ts +11 -0
- package/package.json +1 -1
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
@use '~@muraldevkit/ds-foundation/src/styles/global-variables/breakpoints' as *;
|
|
3
3
|
@use '~@muraldevkit/ds-foundation/src/styles/skeletons/button' as *;
|
|
4
|
+
@use '../../../styles/shared/box-shadow/scrollShadow.scss' as *;
|
|
4
5
|
@use './MrlModalFooter.variables.scss';
|
|
5
6
|
.mrl-modal-footer {
|
|
6
7
|
display: flex;
|
|
7
8
|
flex-direction: row;
|
|
8
9
|
gap: var(--mrl-modal-footer-inline-margin);
|
|
9
10
|
padding: var(--mrl-modal-padding-vertical-footer) var(--mrl-modal-padding-horizontal);
|
|
11
|
+
transition: box-shadow var(--mrl-duration-04) var(--mrl-timing-m2);
|
|
10
12
|
}
|
|
11
13
|
.mrl-modal-footer-wrapper {
|
|
12
14
|
display: flex;
|
|
@@ -32,3 +34,8 @@
|
|
|
32
34
|
width: auto;
|
|
33
35
|
}
|
|
34
36
|
}
|
|
37
|
+
.mrl-modal-scroll-shadow-bottom {
|
|
38
|
+
@include scrollShadowBottom;
|
|
39
|
+
border-bottom-left-radius: var(--mrl-modal-border-radius);
|
|
40
|
+
border-bottom-right-radius: var(--mrl-modal-border-radius);
|
|
41
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
@use '../../../styles/shared/box-shadow/scrollShadow.scss' as *;
|
|
2
3
|
@use '../modal.variables.scss' as *;
|
|
3
4
|
.mrl-modal-header {
|
|
4
5
|
color: var(--mrl-modal-header-text-color);
|
|
@@ -11,4 +12,10 @@
|
|
|
11
12
|
#{$mrl-modal-close-size} + var(--mrl-modal-close-offset) + var(--mrl-modal-close-inline-margin)
|
|
12
13
|
)
|
|
13
14
|
var(--mrl-modal-padding-vertical-bottom) var(--mrl-modal-padding-horizontal);
|
|
15
|
+
transition: box-shadow var(--mrl-duration-04) var(--mrl-timing-m2);
|
|
16
|
+
}
|
|
17
|
+
.mrl-modal-scroll-shadow-top {
|
|
18
|
+
@include scrollShadowTop;
|
|
19
|
+
border-top-left-radius: var(--mrl-modal-border-radius);
|
|
20
|
+
border-top-right-radius: var(--mrl-modal-border-radius);
|
|
14
21
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
@use '@muraldevkit/ds-foundation/src/styles/contextual-variables/z-index' as *;
|
|
2
3
|
@use '../table.variables.scss';
|
|
3
4
|
.MrlSmartTable--accessible-visually-hidden-button {
|
|
4
5
|
all: unset;
|
|
@@ -25,3 +26,22 @@
|
|
|
25
26
|
.MrlTableRow--disabled > :global(.MrlTableCell) {
|
|
26
27
|
color: var(--mrl-table-disabled-color);
|
|
27
28
|
}
|
|
29
|
+
.MrlSmartTableStickyContainer {
|
|
30
|
+
display: none;
|
|
31
|
+
overflow: auto;
|
|
32
|
+
-ms-overflow-style: none;
|
|
33
|
+
position: fixed;
|
|
34
|
+
scrollbar-width: none;
|
|
35
|
+
top: 72px;
|
|
36
|
+
z-index: $mrl-zIndex-menus;
|
|
37
|
+
&::-webkit-scrollbar {
|
|
38
|
+
background: transparent;
|
|
39
|
+
width: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
.MrlSmartTableStickyContainer--sticky {
|
|
43
|
+
display: block;
|
|
44
|
+
}
|
|
45
|
+
.MrlSmartTable--sticky {
|
|
46
|
+
table-layout: fixed;
|
|
47
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type HasScrollContentReturn = {
|
|
2
|
+
hasScrollTop: boolean;
|
|
3
|
+
hasScrollBottom: boolean;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Test if an element has scrollable content left
|
|
7
|
+
*
|
|
8
|
+
* @param {HTMLElement} element - the element you want to test
|
|
9
|
+
* @returns {HasScrollContentReturn} - object with hasScrollTop and hasScrollBottom properties
|
|
10
|
+
*/
|
|
11
|
+
export declare const hasScrollContent: (element: HTMLElement) => HasScrollContentReturn;
|