@muraldevkit/ui-toolkit 2.4.2 → 2.6.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/README.md +27 -1
- package/dist/components/button/MrlAnimatedIconButton/MrlAnimatedIconButton.d.ts +1 -1
- package/dist/components/button/MrlButton/MrlButton.d.ts +1 -1
- package/dist/components/button/MrlIconButton/MrlIconButton.d.ts +1 -1
- package/dist/components/focus-trap/MrlFocusTrap/MrlFocusTrap.d.ts +1 -1
- package/dist/components/form/radio/MrlRadioButton/MrlRadioButton.d.ts +46 -0
- package/dist/components/form/radio/MrlRadioButton/index.d.ts +1 -0
- package/dist/components/form/utils.d.ts +12 -0
- package/dist/components/grid/MrlCol/MrlCol.d.ts +3 -8
- package/dist/components/grid/MrlGrid/MrlGrid.d.ts +3 -10
- package/dist/components/grid/MrlRow/MrlRow.d.ts +4 -8
- package/dist/components/index.d.ts +1 -0
- package/dist/components/layout/MrlMain/MrlMain.d.ts +9 -0
- package/dist/components/layout/MrlMain/index.d.ts +1 -0
- package/dist/components/layout/MrlPage/MrlPage.d.ts +11 -0
- package/dist/components/layout/MrlPage/index.d.ts +11 -0
- package/dist/components/layout/MrlSidebar/MrlSidebar.d.ts +11 -0
- package/dist/components/layout/MrlSidebar/index.d.ts +1 -0
- package/dist/components/layout/MrlTopbar/MrlTopbar.d.ts +11 -0
- package/dist/components/layout/MrlTopbar/index.d.ts +1 -0
- package/dist/components/layout/constants.d.ts +16 -0
- package/dist/components/layout/context/LayoutContext.d.ts +24 -0
- package/dist/components/layout/index.d.ts +4 -0
- package/dist/components/layout/utils.d.ts +15 -0
- package/dist/components/svg/config.d.ts +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useBreakpoint/index.d.ts +15 -0
- package/dist/index.js +1 -1
- package/dist/styles/MrlMain/module.scss +26 -0
- package/dist/styles/MrlMain/variables.scss +5 -0
- package/dist/styles/MrlPage/module.scss +13 -0
- package/dist/styles/MrlRadioButton/module.scss +8 -0
- package/dist/styles/MrlRadioButtonStandalone/module.scss +2 -2
- package/dist/styles/MrlSidebar/module.scss +61 -0
- package/dist/styles/MrlTopbar/module.scss +12 -0
- package/dist/styles/grid/global.scss +5 -1
- package/dist/styles/grid/variables.scss +6 -5
- package/dist/styles/layout/variables.scss +3 -0
- package/package.json +2 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
@use './MrlMain.variables' as *;
|
|
3
|
+
@use '../layout.variables' as *;
|
|
4
|
+
@use '@muraldevkit/ds-foundation/src/styles/global-variables/breakpoints' as *;
|
|
5
|
+
.MrlMain {
|
|
6
|
+
align-items: initial;
|
|
7
|
+
background: rgba(var(--mrl-white), 1);
|
|
8
|
+
border-radius: var(--mrl-border-radius-container-large);
|
|
9
|
+
flex: 1;
|
|
10
|
+
margin-bottom: var(--mrl-spacing-05);
|
|
11
|
+
padding: var(--main-padding-large) var(--main-padding-small);
|
|
12
|
+
width: 100%;
|
|
13
|
+
&--no-topbar {
|
|
14
|
+
margin-top: var(--mrl-spacing-05);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
@media (min-width: $mrl-breakpoint-02) {
|
|
18
|
+
.MrlMain {
|
|
19
|
+
padding: var(--main-padding-large) var(--main-padding-medium);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
@media (min-width: $mrl-breakpoint-03) {
|
|
23
|
+
.MrlMain {
|
|
24
|
+
padding: var(--main-padding-large) var(--main-padding-large);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
@import '../layout.variables';
|
|
3
|
+
.MrlPage {
|
|
4
|
+
background: var(--mrl-color-background-page);
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-wrap: wrap;
|
|
7
|
+
padding-left: var(--mrl-spacing-05);
|
|
8
|
+
padding-right: var(--mrl-spacing-05);
|
|
9
|
+
position: relative;
|
|
10
|
+
&--no-topbar {
|
|
11
|
+
padding-top: var(--mrl-spacing-05);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
@use './MrlRadioButtonStandalone.variables.scss';
|
|
6
6
|
.MrlRadioButtonStandalone {
|
|
7
7
|
display: inline-block;
|
|
8
|
-
height: var(--mrl-radio-button-height);
|
|
9
8
|
margin: calc(var(--mrl-spacing-02) + var(--mrl-spacing-01));
|
|
10
9
|
margin-left: var(--mrl-spacing-01);
|
|
10
|
+
min-height: var(--mrl-radio-button-height);
|
|
11
|
+
min-width: var(--mrl-radio-button-width);
|
|
11
12
|
position: relative;
|
|
12
|
-
width: var(--mrl-radio-button-width);
|
|
13
13
|
}
|
|
14
14
|
.MrlRadioButtonStandalone-input {
|
|
15
15
|
appearance: none;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
|
|
2
|
+
@use '../layout.variables' as *;
|
|
3
|
+
@use '../../grid/grid.variables' as *;
|
|
4
|
+
.MrlSidebar {
|
|
5
|
+
align-items: stretch;
|
|
6
|
+
margin-right: var(--mrl-spacing-05);
|
|
7
|
+
text-align: center;
|
|
8
|
+
width: $sidebar-width;
|
|
9
|
+
&--mobile {
|
|
10
|
+
align-items: stretch;
|
|
11
|
+
background: var(--mrl-color-background-page);
|
|
12
|
+
height: calc(100%);
|
|
13
|
+
left: calc(($sidebar-width + 2px) * -1);
|
|
14
|
+
position: absolute;
|
|
15
|
+
transition: opacity var(--mrl-duration-03) var(--mrl-timing-m1),
|
|
16
|
+
left var(--mrl-duration-03) var(--mrl-timing-m1);
|
|
17
|
+
z-index: 2;
|
|
18
|
+
@media (prefers-reduced-motion: reduce) {
|
|
19
|
+
transition: opacity var(--mrl-duration-03) var(--mrl-timing-m1);
|
|
20
|
+
}
|
|
21
|
+
&--open {
|
|
22
|
+
left: 0;
|
|
23
|
+
opacity: 1;
|
|
24
|
+
}
|
|
25
|
+
&--withClose {
|
|
26
|
+
padding-top: 1000px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
&--offset {
|
|
30
|
+
&.MrlSidebar--mobile,
|
|
31
|
+
&.MrlSidebar-overlay {
|
|
32
|
+
height: calc(100% - $topbar-height);
|
|
33
|
+
top: $topbar-height;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.MrlSidebar-menu-trigger {
|
|
38
|
+
left: var(--mrl-spacing-05);
|
|
39
|
+
position: absolute;
|
|
40
|
+
top: var(--mrl-spacing-05);
|
|
41
|
+
width: 50px;
|
|
42
|
+
}
|
|
43
|
+
.MrlSidebar-menu-close {
|
|
44
|
+
position: absolute;
|
|
45
|
+
right: calc(var(--mrl-spacing-05) / 2);
|
|
46
|
+
top: var(--mrl-spacing-05);
|
|
47
|
+
}
|
|
48
|
+
.MrlSidebar-overlay {
|
|
49
|
+
background-color: rgba(0, 0, 0, 56%);
|
|
50
|
+
bottom: 0;
|
|
51
|
+
left: -10000px;
|
|
52
|
+
opacity: 0;
|
|
53
|
+
position: absolute;
|
|
54
|
+
right: 0;
|
|
55
|
+
top: 0;
|
|
56
|
+
transition: opacity var(--mrl-duration-03) var(--mrl-timing-m1);
|
|
57
|
+
z-index: 1;
|
|
58
|
+
&--visible {
|
|
59
|
+
opacity: 1;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
|
|
2
|
+
@use '@muraldevkit/ds-foundation/src/styles/global-variables/breakpoints' as *;
|
|
2
3
|
$grid-breakpoints: (
|
|
3
4
|
xs: 0,
|
|
4
|
-
sm:
|
|
5
|
-
md:
|
|
6
|
-
lg:
|
|
7
|
-
xl:
|
|
8
|
-
xxl:
|
|
5
|
+
sm: $mrl-breakpoint-01,
|
|
6
|
+
md: $mrl-breakpoint-02,
|
|
7
|
+
lg: $mrl-breakpoint-03,
|
|
8
|
+
xl: $mrl-breakpoint-04,
|
|
9
|
+
xxl: $mrl-breakpoint-05
|
|
9
10
|
);
|
|
10
11
|
$grid-gutter-width: 1rem;
|
|
11
12
|
$spacer: 1rem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@muraldevkit/ui-toolkit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "Mural's UI Toolkit",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -100,6 +100,7 @@
|
|
|
100
100
|
"lint-staged": "13.2.2",
|
|
101
101
|
"null-loader": "4.0.1",
|
|
102
102
|
"prettier": "2.8.8",
|
|
103
|
+
"react-markdown": "8.0.7",
|
|
103
104
|
"rimraf": "5.0.0",
|
|
104
105
|
"sass": "1.62.1",
|
|
105
106
|
"sass-loader": "13.2.2",
|