@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.
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { LinkTargetType, LinkColor, LinkSize } from '../constants';
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
  }
@@ -115,7 +115,7 @@ export declare const colorPictoStoryData: {
115
115
  export declare const animateStoryData: {
116
116
  args: {
117
117
  delay: number;
118
- state: "play" | "stop";
118
+ state: "stop" | "play";
119
119
  };
120
120
  argTypes: {
121
121
  delay: {
@@ -1,4 +1,5 @@
1
- import React from 'react';
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 & React.HTMLProps<HTMLTableElement>): JSX.Element;
143
+ export declare function MrlSmartTable(props: MrlSmartTableProps): JSX.Element;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- export interface MrlTableProps extends React.HTMLProps<HTMLTableElement> {
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.HTMLProps<HTMLTableSectionElement> {
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.HTMLProps<HTMLTableCellElement> {
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.HTMLProps<HTMLTableCellElement> {
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.HTMLProps<HTMLTableSectionElement> {
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.HTMLProps<HTMLTableRowElement> {
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).