@muraldevkit/ui-toolkit 2.8.0 → 2.9.1
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/link/MrlLink/MrlLink.d.ts +8 -2
- package/dist/components/link/constants.d.ts +3 -0
- package/dist/components/svg/config.d.ts +1 -1
- package/dist/components/table/MrlSmartTable/MrlSmartTable.d.ts +4 -3
- package/dist/components/table/MrlTable/MrlTable.d.ts +2 -2
- package/dist/components/table/MrlTableBody/MrlTableBody.d.ts +2 -2
- package/dist/components/table/MrlTableCell/MrlTableCell.d.ts +2 -2
- package/dist/components/table/MrlTableColumn/MrlTableColumn.d.ts +2 -2
- package/dist/components/table/MrlTableHeader/MrlTableHeader.d.ts +2 -2
- package/dist/components/table/MrlTableRow/MrlTableRow.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/styles/MrlLink/module.scss +21 -1
- package/dist/styles/MrlSidebar/module.scss +3 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { LinkColor, LinkKind, LinkSize, LinkTargetType } from '../constants';
|
|
3
3
|
import { AttrsObject } from '../../../utils';
|
|
4
4
|
export interface MrlLinkProptypes {
|
|
5
5
|
/** The textual label describing the link's purpose */
|
|
@@ -8,6 +8,12 @@ export interface MrlLinkProptypes {
|
|
|
8
8
|
href: string;
|
|
9
9
|
/** Specifies how to open the linked document */
|
|
10
10
|
target?: LinkTargetType;
|
|
11
|
+
/**
|
|
12
|
+
* Color scheme to use based on the link's container background
|
|
13
|
+
* - bold (default): a thicker underline to help a link stand out in a large amount of body copy
|
|
14
|
+
* - simple: a thinner underline to help address visual hierarchy issues when many links are in a list
|
|
15
|
+
*/
|
|
16
|
+
kind?: LinkKind;
|
|
11
17
|
/**
|
|
12
18
|
* Color scheme to use based on the link's container background
|
|
13
19
|
* - default: most use cases
|
|
@@ -40,4 +46,4 @@ export interface MrlLinkProptypes {
|
|
|
40
46
|
* @param {MrlLinkProptypes} props the props for your MrlLink
|
|
41
47
|
* @returns {React.ReactElement} an a element containing the text you pass
|
|
42
48
|
*/
|
|
43
|
-
export declare const MrlLink: ({ target, className, color, size, href, attrs, onClick, text }: MrlLinkProptypes) => React.ReactElement;
|
|
49
|
+
export declare const MrlLink: ({ target, className, color, kind, size, href, attrs, onClick, text }: MrlLinkProptypes) => React.ReactElement;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
export declare const allowedValues: {
|
|
2
2
|
colors: readonly ["default", "mono", "inverse"];
|
|
3
|
+
kind: readonly ["bold", "simple"];
|
|
3
4
|
sizes: readonly ["default", "large", "medium", "small", "xsmall"];
|
|
4
5
|
targets: readonly ["_blank", "_parent", "_top", "_self"];
|
|
5
6
|
};
|
|
6
7
|
export type LinkColor = (typeof allowedValues.colors)[number];
|
|
8
|
+
export type LinkKind = (typeof allowedValues.kind)[number];
|
|
7
9
|
export type LinkSize = (typeof allowedValues.sizes)[number];
|
|
8
10
|
export type LinkTargetType = (typeof allowedValues.targets)[number];
|
|
9
11
|
export interface LinkDefaults {
|
|
10
12
|
color: LinkColor;
|
|
13
|
+
kind: LinkKind;
|
|
11
14
|
size: LinkSize;
|
|
12
15
|
target: LinkTargetType;
|
|
13
16
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MrlTableProps } from '../MrlTable';
|
|
2
3
|
import { MrlSortDirection, MrlTableColumnId, MrlTableColumnSortDescriptor, MrlTableItemId, MrlTableSelectionMode } from '../constants';
|
|
3
4
|
export interface MrlSmartColumnRendererProps {
|
|
4
5
|
/**
|
|
@@ -100,7 +101,7 @@ export interface MrlSmartTableSelectionOptions {
|
|
|
100
101
|
*/
|
|
101
102
|
onSelectionChange: (keys: MrlTableSelection) => void;
|
|
102
103
|
}
|
|
103
|
-
export interface MrlSmartTableProps {
|
|
104
|
+
export interface MrlSmartTableProps extends Partial<Pick<MrlTableProps, 'aria-label' | 'aria-labelledby' | 'aria-describedby' | 'aria-details'>> {
|
|
104
105
|
/**
|
|
105
106
|
* A list of table columns.
|
|
106
107
|
*/
|
|
@@ -139,4 +140,4 @@ export interface MrlSmartTableProps {
|
|
|
139
140
|
* @param {MrlSmartTableProps} props - MrlSmartTable component props
|
|
140
141
|
* @returns a table
|
|
141
142
|
*/
|
|
142
|
-
export declare function MrlSmartTable(props: MrlSmartTableProps
|
|
143
|
+
export declare function MrlSmartTable(props: MrlSmartTableProps): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface MrlTableProps extends React.
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface MrlTableProps extends React.ComponentPropsWithoutRef<'table'> {
|
|
3
3
|
/**
|
|
4
4
|
* An element id (and if not provided, a unique value decorated
|
|
5
5
|
* to prevent conflict with aria controls will be generated).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface MrlTableBodyProps extends React.
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface MrlTableBodyProps extends React.ComponentPropsWithoutRef<'tbody'> {
|
|
3
3
|
/**
|
|
4
4
|
* An element id (and if not provided, a unique value decorated
|
|
5
5
|
* to prevent conflict with aria controls will be generated).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface MrlTableCellProps extends React.
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface MrlTableCellProps extends React.ComponentPropsWithoutRef<'td'> {
|
|
3
3
|
/**
|
|
4
4
|
* An element id (and if not provided, a unique value decorated
|
|
5
5
|
* to prevent conflict with aria controls will be generated).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface MrlTableColumnProps extends React.
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface MrlTableColumnProps extends React.ComponentPropsWithoutRef<'th'> {
|
|
3
3
|
/**
|
|
4
4
|
* An element id (and if not provided, a unique value decorated
|
|
5
5
|
* to prevent conflict with aria controls will be generated).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface MrlTableHeaderProps extends React.
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface MrlTableHeaderProps extends React.ComponentPropsWithoutRef<'thead'> {
|
|
3
3
|
/**
|
|
4
4
|
* An element id (and if not provided, a unique value decorated
|
|
5
5
|
* to prevent conflict with aria controls will be generated).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface MrlTableRowProps extends React.
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface MrlTableRowProps extends React.ComponentPropsWithoutRef<'tr'> {
|
|
3
3
|
/**
|
|
4
4
|
* An element id (and if not provided, a unique value decorated
|
|
5
5
|
* to prevent conflict with aria controls will be generated).
|