@muraldevkit/ui-toolkit 2.53.0-dev.1 → 2.54.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/components/avatar/MrlAvatar/MrlAvatar.d.ts +31 -0
- package/dist/components/avatar/MrlAvatar/index.d.ts +1 -0
- package/dist/components/avatar/MrlAvatarButton/MrlAvatarButton.d.ts +19 -0
- package/dist/components/avatar/MrlAvatarButton/index.d.ts +1 -0
- package/dist/components/avatar/index.d.ts +2 -0
- 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/form/text-input/MrlEditableTextInput/MrlEditableTextInputRightIcon.d.ts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/loader/MrlProgressBar/MrlProgressBar.d.ts +1 -1
- package/dist/components/loader/constants.d.ts +4 -0
- package/dist/components/popover/MrlPopover/MrlPopover.d.ts +18 -46
- package/dist/components/text/MrlTextHeading/MrlTextHeading.d.ts +3 -7
- package/dist/index.js +1 -1
- package/dist/styles/MrlAvatar/module.scss +97 -0
- package/dist/styles/MrlAvatarButton/module.scss +44 -0
- package/dist/styles/MrlPopover/module.scss +3 -25
- package/package.json +2 -1
- package/dist/components/callout/MrlCallout/MrlCallout.d.ts +0 -32
- package/dist/components/callout/MrlCallout/index.d.ts +0 -1
- package/dist/components/callout/constants.d.ts +0 -1
- package/dist/components/callout/index.d.ts +0 -1
- package/dist/styles/MrlCallout/module.scss +0 -37
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
.MrlAvatar-content {
|
|
2
|
+
border: var(--mrl-stroke-02) solid transparent;
|
|
3
|
+
border-radius: var(--mrl-radii-03);
|
|
4
|
+
display: block;
|
|
5
|
+
font-size: var(--mrl-font-size-04);
|
|
6
|
+
font-weight: var(--mrl-font-weight-04);
|
|
7
|
+
height: 100%;
|
|
8
|
+
line-height: 2.875rem;
|
|
9
|
+
max-width: 100%;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
text-align: center;
|
|
12
|
+
width: 100%;
|
|
13
|
+
:global('.MrlSvgContainer') {
|
|
14
|
+
display: block;
|
|
15
|
+
height: auto;
|
|
16
|
+
max-width: 100%;
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
.MrlAvatar {
|
|
21
|
+
border-radius: var(--mrl-radii-03);
|
|
22
|
+
box-shadow: 0 0 1px 1px rgba(0, 0, 0, 4%) inset;
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
display: block;
|
|
25
|
+
height: var(--mrl-spacing-10);
|
|
26
|
+
position: relative;
|
|
27
|
+
width: var(--mrl-spacing-10);
|
|
28
|
+
&--xsmall {
|
|
29
|
+
height: var(--mrl-spacing-07);
|
|
30
|
+
width: var(--mrl-spacing-07);
|
|
31
|
+
.MrlAvatar-content {
|
|
32
|
+
font-size: var(--mrl-font-size-02);
|
|
33
|
+
line-height: 1.375rem;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
&--small {
|
|
37
|
+
height: var(--mrl-spacing-08);
|
|
38
|
+
width: var(--mrl-spacing-08);
|
|
39
|
+
.MrlAvatar-content {
|
|
40
|
+
font-size: var(--mrl-font-size-02);
|
|
41
|
+
line-height: 1.875rem;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
&--large {
|
|
45
|
+
border-radius: var(--mrl-radii-06);
|
|
46
|
+
height: var(--mrl-spacing-13);
|
|
47
|
+
width: var(--mrl-spacing-13);
|
|
48
|
+
.MrlAvatar-content {
|
|
49
|
+
border-radius: var(--mrl-radii-06);
|
|
50
|
+
font-size: var(--mrl-font-size-07);
|
|
51
|
+
line-height: 5.875rem;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
.MrlAvatar-image {
|
|
56
|
+
display: block;
|
|
57
|
+
height: auto;
|
|
58
|
+
max-width: 100%;
|
|
59
|
+
width: 100%;
|
|
60
|
+
}
|
|
61
|
+
.MrlAvatar-icon-container {
|
|
62
|
+
border-radius: 1rem;
|
|
63
|
+
bottom: -0.1875rem;
|
|
64
|
+
color: var(--mrl-color-background);
|
|
65
|
+
position: absolute;
|
|
66
|
+
.MrlAvatar-icon {
|
|
67
|
+
display: block;
|
|
68
|
+
left: 50%;
|
|
69
|
+
position: absolute;
|
|
70
|
+
:global('.mrl-svg') {
|
|
71
|
+
margin: 0;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
.MrlAvatar-icon-container--small {
|
|
76
|
+
height: 1rem;
|
|
77
|
+
right: -0.1875rem;
|
|
78
|
+
width: 1rem;
|
|
79
|
+
.MrlAvatar-icon {
|
|
80
|
+
height: 1rem;
|
|
81
|
+
margin-left: -0.3125rem;
|
|
82
|
+
top: 0;
|
|
83
|
+
width: 0.625rem;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
.MrlAvatar-icon-container--xsmall {
|
|
87
|
+
border-radius: 0.75rem;
|
|
88
|
+
height: 0.75rem;
|
|
89
|
+
right: -0.125rem;
|
|
90
|
+
width: 0.75rem;
|
|
91
|
+
.MrlAvatar-icon {
|
|
92
|
+
height: 0.5rem;
|
|
93
|
+
margin-left: -0.225rem;
|
|
94
|
+
top: -0.1rem;
|
|
95
|
+
width: 0.5rem;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@use '~@muraldevkit/ds-foundation/src/styles/_mixins' as *;
|
|
2
|
+
.MrlAvatarButton {
|
|
3
|
+
background-color: transparent;
|
|
4
|
+
border: none;
|
|
5
|
+
border-radius: var(--mrl-radii-03);
|
|
6
|
+
margin: 0;
|
|
7
|
+
outline: none;
|
|
8
|
+
padding: 0;
|
|
9
|
+
position: relative;
|
|
10
|
+
&::after {
|
|
11
|
+
background-color: rgba(0, 0, 0, 0%);
|
|
12
|
+
border-radius: var(--mrl-radii-03);
|
|
13
|
+
bottom: 0;
|
|
14
|
+
content: '';
|
|
15
|
+
display: block;
|
|
16
|
+
left: 0;
|
|
17
|
+
position: absolute;
|
|
18
|
+
right: 0;
|
|
19
|
+
top: 0;
|
|
20
|
+
}
|
|
21
|
+
&:focus-visible {
|
|
22
|
+
@include mrl-focus;
|
|
23
|
+
}
|
|
24
|
+
&:hover {
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
&::after {
|
|
27
|
+
background-color: rgba(var(--mrl-gray-90), 0.32);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
&:active {
|
|
31
|
+
&::after {
|
|
32
|
+
background-color: rgba(var(--mrl-gray-90), 0.64);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
&--large {
|
|
36
|
+
border-radius: var(--mrl-radii-06);
|
|
37
|
+
&:focus-visible {
|
|
38
|
+
@include mrl-focus($element-radius: 'var(--mrl-radii-06)');
|
|
39
|
+
}
|
|
40
|
+
&::after {
|
|
41
|
+
border-radius: var(--mrl-radii-06);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
position: absolute;
|
|
29
29
|
right: 4px;
|
|
30
30
|
top: 6px;
|
|
31
|
-
transition: none;
|
|
32
31
|
svg {
|
|
33
32
|
color: var(--mrl-popover-text-color);
|
|
34
33
|
}
|
|
@@ -40,14 +39,13 @@
|
|
|
40
39
|
display: flex;
|
|
41
40
|
}
|
|
42
41
|
&--scrolling {
|
|
42
|
+
padding-bottom: var(--mrl-spacing-04);
|
|
43
43
|
padding-right: 0;
|
|
44
|
+
padding-top: var(--mrl-spacing-03);
|
|
44
45
|
&--content {
|
|
45
46
|
overflow-x: hidden;
|
|
46
47
|
overflow-y: auto;
|
|
47
|
-
padding
|
|
48
|
-
.MrlPopover--close {
|
|
49
|
-
right: 8px;
|
|
50
|
-
}
|
|
48
|
+
padding: var(--mrl-spacing-02) var(--mrl-spacing-04) var(--mrl-spacing-02) 0;
|
|
51
49
|
}
|
|
52
50
|
}
|
|
53
51
|
&--point {
|
|
@@ -99,23 +97,3 @@
|
|
|
99
97
|
}
|
|
100
98
|
}
|
|
101
99
|
}
|
|
102
|
-
.inverse {
|
|
103
|
-
.MrlPopover {
|
|
104
|
-
&--scrolling {
|
|
105
|
-
&--content {
|
|
106
|
-
&::-webkit-scrollbar {
|
|
107
|
-
background-color: var(--mrl-popover-background-color);
|
|
108
|
-
border-radius: 10px;
|
|
109
|
-
width: 12px;
|
|
110
|
-
}
|
|
111
|
-
&::-webkit-scrollbar-thumb {
|
|
112
|
-
background-clip: content-box;
|
|
113
|
-
background-color: var(--mrl-popover-text-color);
|
|
114
|
-
border: 3px solid transparent;
|
|
115
|
-
border-radius: 10px;
|
|
116
|
-
position: relative;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@muraldevkit/ui-toolkit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.54.0",
|
|
4
4
|
"description": "Mural's UI Toolkit",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"@muraldevkit/ds-icons-animated": "^1.0.1",
|
|
50
50
|
"@muraldevkit/ds-pictograms": "^1.1.0",
|
|
51
51
|
"@react-spring/web": "9.4.2",
|
|
52
|
+
"@tactivos/mural-shared": "2.8.0",
|
|
52
53
|
"lottie-web": "^5.9.6",
|
|
53
54
|
"react": ">=16.9",
|
|
54
55
|
"react-dom": ">=16.9"
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { MrlPopoverProps } from '../../popover';
|
|
3
|
-
export type MrlCalloutPopoverProps = Omit<MrlPopoverProps, 'children' | 'actionState' | 'isSubMenu' | 'triggerRef'>;
|
|
4
|
-
interface MrlCalloutCTA {
|
|
5
|
-
onClick: () => void;
|
|
6
|
-
dataQa?: string;
|
|
7
|
-
text: string;
|
|
8
|
-
}
|
|
9
|
-
export interface MrlCalloutProps extends MrlCalloutPopoverProps {
|
|
10
|
-
/** a unique id that binds the callout content and the trigger for assistive technologies */
|
|
11
|
-
ariaControls?: string;
|
|
12
|
-
autoFocus?: boolean;
|
|
13
|
-
children: React.ReactElement;
|
|
14
|
-
disableClickOutside?: boolean;
|
|
15
|
-
description?: string | JSX.Element;
|
|
16
|
-
eyebrow?: string;
|
|
17
|
-
id?: string;
|
|
18
|
-
image?: JSX.Element;
|
|
19
|
-
renderWithPortal?: boolean;
|
|
20
|
-
show: boolean;
|
|
21
|
-
title?: string;
|
|
22
|
-
primaryCta?: MrlCalloutCTA;
|
|
23
|
-
secondaryCta?: MrlCalloutCTA;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* MrlCallout component.
|
|
27
|
-
*
|
|
28
|
-
* @param props - The props.
|
|
29
|
-
* @returns {React.ReactElement} The MrlCallout component.
|
|
30
|
-
*/
|
|
31
|
-
export declare const MrlCallout: ({ ariaControls, alignment, children, description, disableClickOutside, disableFocusTrap, eyebrow, hasCloseButton, id, image, kind, onOpen, onClose, point, position, primaryCta, secondaryCta, show, spacing, title }: MrlCalloutProps) => React.ReactElement;
|
|
32
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { MrlCallout } from './MrlCallout';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const HELLO_WORLD = "hello world";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './MrlCallout';
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
.MrlCallout {
|
|
2
|
-
&--content {
|
|
3
|
-
max-width: 280px;
|
|
4
|
-
}
|
|
5
|
-
&--title {
|
|
6
|
-
font-size: var(--mrl-font-size-03);
|
|
7
|
-
margin-bottom: var(--mrl-spacing-02);
|
|
8
|
-
padding-right: var(--mrl-spacing-05);
|
|
9
|
-
}
|
|
10
|
-
&--eyebrow {
|
|
11
|
-
font-size: var(--mrl-font-size-01);
|
|
12
|
-
font-weight: 700;
|
|
13
|
-
margin-bottom: var(--mrl-spacing-02);
|
|
14
|
-
padding-right: var(--mrl-spacing-05);
|
|
15
|
-
}
|
|
16
|
-
&--description {
|
|
17
|
-
p {
|
|
18
|
-
font-size: var(--mrl-font-size-02);
|
|
19
|
-
padding-right: var(--mrl-spacing-05);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
&--image {
|
|
23
|
-
margin-top: var(--mrl-spacing-05);
|
|
24
|
-
img {
|
|
25
|
-
height: auto;
|
|
26
|
-
width: 100%;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
&--footer {
|
|
30
|
-
display: flex;
|
|
31
|
-
justify-content: flex-start;
|
|
32
|
-
margin-top: var(--mrl-spacing-05);
|
|
33
|
-
:global(.mrlButton:last-child) {
|
|
34
|
-
margin-left: auto;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|