@muraldevkit/ui-toolkit 2.68.0-dev.3 → 2.68.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/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 +2 -2
- package/dist/components/form/text-input/MrlEditableTextInput/MrlEditableTextInput.d.ts +6 -0
- package/dist/components/index.d.ts +0 -1
- package/dist/components/menu/MrlMenuItem/MrlMenuItem.d.ts +1 -1
- package/dist/components/menu/demo/MenuWithRTI.d.ts +19 -0
- package/dist/components/modal/MrlModal/MrlModal.d.ts +5 -1
- package/dist/components/notification/MrlToast/MrlToast.d.ts +1 -1
- package/dist/components/rovingTabindex/MrlRovingTabindex/MrlRovingTabindex.d.ts +1 -1
- package/dist/components/svg/config.d.ts +1 -1
- package/dist/components/table/MrlSmartTable/MrlSmartTable.d.ts +2 -1
- package/dist/components/table/constants.d.ts +4 -0
- package/dist/components/tooltip/MrlTooltip/MrlTooltip.d.ts +1 -4
- package/dist/components/tooltip/MrlTooltip/utilities.d.ts +8 -0
- package/dist/index.js +1 -1
- package/dist/styles/MrlButton/global.scss +4 -0
- package/dist/styles/MrlEditableTextInput/module.scss +10 -0
- package/dist/styles/MrlModal/module.scss +0 -1
- package/dist/styles/MrlModalContent/module.scss +1 -1
- package/dist/styles/MrlSelectMenu/module.scss +2 -1
- package/dist/styles/MrlSelectMenu/variables.scss +1 -0
- package/package.json +1 -1
- package/dist/components/toolbar/MrlToolbar/MrlToolbar.d.ts +0 -35
- package/dist/components/toolbar/MrlToolbar/index.d.ts +0 -1
- package/dist/components/toolbar/MrlToolbarButton/MrlToolbarButton.d.ts +0 -40
- package/dist/components/toolbar/MrlToolbarButton/index.d.ts +0 -1
- package/dist/components/toolbar/MrlToolbarItem/MrlToolbarItem.d.ts +0 -30
- package/dist/components/toolbar/MrlToolbarItem/index.d.ts +0 -1
- package/dist/components/toolbar/index.d.ts +0 -3
- package/dist/styles/MrlToolbar/module.scss +0 -63
- package/dist/styles/MrlToolbarButton/module.scss +0 -3
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
text-align: center;
|
|
14
14
|
vertical-align: middle;
|
|
15
15
|
white-space: nowrap;
|
|
16
|
+
.mrl-tooltip-trigger-content {
|
|
17
|
+
align-items: center;
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
}
|
|
16
20
|
&.mrlButton--small {
|
|
17
21
|
@include mrl-text-interactive('xsmall');
|
|
18
22
|
@include mrl-button-size('small');
|
|
@@ -73,4 +73,14 @@
|
|
|
73
73
|
}
|
|
74
74
|
.MrlEditableTextInput-focus-wrapper {
|
|
75
75
|
font-size: var(--mrl-type-size-text-small);
|
|
76
|
+
.MrlEditableTextInput-hover-button {
|
|
77
|
+
opacity: 0;
|
|
78
|
+
}
|
|
79
|
+
&:hover,
|
|
80
|
+
&:focus-within {
|
|
81
|
+
.MrlEditableTextInput-hover-button {
|
|
82
|
+
opacity: 1;
|
|
83
|
+
transition: opacity var(--mrl-duration-03) var(--mrl-timing-m2);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
76
86
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
$affordance: var(--mrl-select-item-text-affordance);
|
|
5
5
|
$item-padding: var(--mrl-select-item-padding-vertical);
|
|
6
6
|
$space: var(--mrl-select-item-spacing-stack);
|
|
7
|
+
$mrl-selectItem-height: 20px;
|
|
7
8
|
.mrl-selectMenu {
|
|
8
9
|
$mrl-selectItem-height: calc($affordance + ($item-padding * 2) + $space);
|
|
9
10
|
background: var(--mrl-color-background);
|
|
@@ -11,7 +12,7 @@ $space: var(--mrl-select-item-spacing-stack);
|
|
|
11
12
|
box-shadow: var(--mrl-shadow-01);
|
|
12
13
|
display: none;
|
|
13
14
|
left: 0;
|
|
14
|
-
max-height: calc(
|
|
15
|
+
max-height: calc(var(--mrl-select-item-height) * 6);
|
|
15
16
|
overflow-y: auto;
|
|
16
17
|
padding: var(--mrl-spacing-03);
|
|
17
18
|
position: absolute;
|
package/package.json
CHANGED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React, { ComponentPropsWithRef } from 'react';
|
|
2
|
-
import { MrlIconButtonProps, MrlMenuProps } from '../../../';
|
|
3
|
-
/**
|
|
4
|
-
* Props for the MrlToolbar component.
|
|
5
|
-
*/
|
|
6
|
-
export interface MrlToolbarProps extends ComponentPropsWithRef<'div'> {
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
kind?: 'default' | 'inverse' | 'ghost' | 'skeleton';
|
|
9
|
-
/**
|
|
10
|
-
* An optional prop to apply an aria-label to the MrlToobar
|
|
11
|
-
*/
|
|
12
|
-
label?: string;
|
|
13
|
-
lastToolbarInRow?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* An optional prop to set the maximum number of visible items in a toolbar.
|
|
16
|
-
* Additional items will appear in a menu.
|
|
17
|
-
*/
|
|
18
|
-
maxVisibleItems?: number;
|
|
19
|
-
menuButtonProps?: MrlIconButtonProps;
|
|
20
|
-
menuProps?: MrlMenuProps;
|
|
21
|
-
orientation?: 'horizontal' | 'vertical';
|
|
22
|
-
/**
|
|
23
|
-
* A boolean prop that sets RovingTabindex in the MrlToolbar
|
|
24
|
-
*/
|
|
25
|
-
shouldUseRti?: boolean;
|
|
26
|
-
size?: 'xsmall' | 'small' | 'medium';
|
|
27
|
-
spaced?: boolean;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* MrlToolbar component.
|
|
31
|
-
*
|
|
32
|
-
* @param props The MrlToolbar component properties.
|
|
33
|
-
* @returns The MrlToolbar component.
|
|
34
|
-
*/
|
|
35
|
-
export declare const MrlToolbar: (props: MrlToolbarProps) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './MrlToolbar';
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { MrlIconButtonProps, MrlMenuItemProps } from '../../../';
|
|
3
|
-
/**
|
|
4
|
-
* Props for the MrlToolbarButton component.
|
|
5
|
-
*/
|
|
6
|
-
export interface MrlToolbarButtonProps {
|
|
7
|
-
/**
|
|
8
|
-
* The icon that will be rendered.
|
|
9
|
-
*/
|
|
10
|
-
icon: React.ReactElement;
|
|
11
|
-
includeInRoving?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* A prop used to set a toolbar button to never move into the menu.
|
|
14
|
-
*/
|
|
15
|
-
lockedInToolbar?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* onClick event for the button.
|
|
18
|
-
*/
|
|
19
|
-
onClick?: (e?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
20
|
-
/**
|
|
21
|
-
* Props used to control the display of the button in the menu.
|
|
22
|
-
*/
|
|
23
|
-
menuItemProps?: Omit<MrlMenuItemProps, 'onClick'>;
|
|
24
|
-
/**
|
|
25
|
-
* A prop used to render the item in the menu instead of the toolbar.
|
|
26
|
-
*/
|
|
27
|
-
renderInMenu?: boolean;
|
|
28
|
-
text: string;
|
|
29
|
-
/**
|
|
30
|
-
* Props used to control the display of the button in the toolbar.
|
|
31
|
-
*/
|
|
32
|
-
toolbarButtonProps?: Omit<MrlIconButtonProps, 'onClick'>;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* MrlToolbarButton component.
|
|
36
|
-
*
|
|
37
|
-
* @param props The MrlToolbarButton component properties.
|
|
38
|
-
* @returns The MrlToolbarButton component.
|
|
39
|
-
*/
|
|
40
|
-
export declare const MrlToolbarButton: (props: MrlToolbarButtonProps) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './MrlToolbarButton';
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* Props for the MrlToolbarItem component.
|
|
4
|
-
*/
|
|
5
|
-
export interface MrlToolbarItemProps {
|
|
6
|
-
/**
|
|
7
|
-
* A prop used to set a toolbar button to never move into the menu.
|
|
8
|
-
*/
|
|
9
|
-
lockedInToolbar?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* The rendered component in the overflow menu.
|
|
12
|
-
* If nothing is passed, the toolbarItem will be rendered in the menu.
|
|
13
|
-
*/
|
|
14
|
-
menuItem?: JSX.Element;
|
|
15
|
-
/**
|
|
16
|
-
* A prop used to render the item in the menu instead of the toolbar.
|
|
17
|
-
*/
|
|
18
|
-
renderInMenu?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* The rendered markup in the toolbar.
|
|
21
|
-
*/
|
|
22
|
-
toolbarItem: JSX.Element;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* MrlToolbarItem component.
|
|
26
|
-
*
|
|
27
|
-
* @param props The MrlToolbarItem component properties.
|
|
28
|
-
* @returns The MrlToolbarItem component.
|
|
29
|
-
*/
|
|
30
|
-
export declare const MrlToolbarItem: (props: MrlToolbarItemProps) => JSX.Element | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './MrlToolbarItem';
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
$medium-size: 3.5rem;
|
|
3
|
-
$small-size: 3rem;
|
|
4
|
-
$xsmall-size: 2rem;
|
|
5
|
-
.MrlToolbar {
|
|
6
|
-
align-items: center;
|
|
7
|
-
background: var(--mrl-color-background);
|
|
8
|
-
border-radius: var(--mrl-border-radius-container);
|
|
9
|
-
box-shadow: var(--mrl-shadows-lifted);
|
|
10
|
-
cursor: default;
|
|
11
|
-
display: flex;
|
|
12
|
-
gap: var(--mrl-spacing-02);
|
|
13
|
-
min-height: $medium-size;
|
|
14
|
-
padding: var(--mrl-spacing-03);
|
|
15
|
-
pointer-events: all;
|
|
16
|
-
transition: opacity var(--mrl-duration-03) var(--mrl-timing-m3);
|
|
17
|
-
}
|
|
18
|
-
.MrlToolbarRTIContainer {
|
|
19
|
-
align-items: center;
|
|
20
|
-
display: flex;
|
|
21
|
-
gap: var(--mrl-spacing-02);
|
|
22
|
-
}
|
|
23
|
-
.MrlToolbar-inverse {
|
|
24
|
-
background: var(--mrl-color-background-inverse);
|
|
25
|
-
box-shadow: none;
|
|
26
|
-
color: var(--mrl-color-text-inverse);
|
|
27
|
-
}
|
|
28
|
-
.MrlToolbar-ghost {
|
|
29
|
-
background: none;
|
|
30
|
-
border-radius: 0;
|
|
31
|
-
box-shadow: none;
|
|
32
|
-
}
|
|
33
|
-
.MrlToolbar-skeleton.MrlToolbar-vertical {
|
|
34
|
-
background-color: rgba(var(--mrl-gray-30), 1);
|
|
35
|
-
}
|
|
36
|
-
.MrlToolbar-small {
|
|
37
|
-
min-height: $small-size;
|
|
38
|
-
}
|
|
39
|
-
.MrlToolbar-xsmall {
|
|
40
|
-
min-height: $xsmall-size;
|
|
41
|
-
padding: 0;
|
|
42
|
-
}
|
|
43
|
-
.MrlToolbar-vertical {
|
|
44
|
-
flex-direction: column;
|
|
45
|
-
min-height: 0;
|
|
46
|
-
min-width: $medium-size;
|
|
47
|
-
&.MrlToolbar-small {
|
|
48
|
-
min-width: $small-size;
|
|
49
|
-
}
|
|
50
|
-
&.MrlToolbar-xsmall {
|
|
51
|
-
min-width: $xsmall-size;
|
|
52
|
-
}
|
|
53
|
-
.MrlToolbarRTIContainer {
|
|
54
|
-
flex-direction: column;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
.MrlToolbar-spaced {
|
|
58
|
-
gap: var(--mrl-spacing-05);
|
|
59
|
-
padding-left: var(--mrl-spacing-05);
|
|
60
|
-
.mrlButton + .mrlButton {
|
|
61
|
-
margin-left: calc(var(--mrl-spacing-03) / 2 * -1);
|
|
62
|
-
}
|
|
63
|
-
}
|