@instructure/ui-list 8.8.0 → 8.8.1-snapshot.63
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/LICENSE.md +27 -0
- package/es/InlineList/InlineListItem/index.js +5 -38
- package/es/InlineList/InlineListItem/props.js +56 -0
- package/es/InlineList/index.js +2 -25
- package/{src/InlineList/InlineListItem/types.ts → es/InlineList/props.js} +26 -20
- package/es/List/ListItem/index.js +4 -37
- package/es/List/ListItem/props.js +56 -0
- package/es/List/index.js +4 -41
- package/es/List/props.js +60 -0
- package/lib/InlineList/InlineListItem/index.js +5 -38
- package/lib/InlineList/InlineListItem/props.js +68 -0
- package/lib/InlineList/index.js +3 -28
- package/lib/InlineList/props.js +65 -0
- package/lib/List/ListItem/index.js +4 -37
- package/lib/List/ListItem/props.js +68 -0
- package/lib/List/index.js +4 -42
- package/lib/List/props.js +74 -0
- package/package.json +15 -14
- package/src/InlineList/InlineListItem/index.tsx +8 -46
- package/src/InlineList/InlineListItem/props.ts +105 -0
- package/src/InlineList/InlineListItem/styles.ts +1 -1
- package/src/InlineList/InlineListItem/theme.ts +1 -1
- package/src/InlineList/index.tsx +5 -35
- package/src/InlineList/props.ts +102 -0
- package/src/List/ListItem/index.tsx +7 -45
- package/src/List/ListItem/props.ts +105 -0
- package/src/List/ListItem/styles.ts +1 -1
- package/src/List/ListItem/theme.ts +1 -1
- package/src/List/index.tsx +7 -48
- package/src/List/props.ts +111 -0
- package/src/List/styles.ts +1 -1
- package/src/List/theme.ts +1 -1
- package/src/index.ts +4 -4
- package/types/InlineList/InlineListItem/index.d.ts +19 -30
- package/types/InlineList/InlineListItem/index.d.ts.map +1 -1
- package/types/InlineList/InlineListItem/props.d.ts +20 -0
- package/types/InlineList/InlineListItem/props.d.ts.map +1 -0
- package/types/InlineList/InlineListItem/styles.d.ts +1 -1
- package/types/InlineList/InlineListItem/theme.d.ts +1 -1
- package/types/InlineList/InlineListItem/theme.d.ts.map +1 -1
- package/types/InlineList/index.d.ts +27 -23
- package/types/InlineList/index.d.ts.map +1 -1
- package/types/InlineList/props.d.ts +20 -0
- package/types/InlineList/props.d.ts.map +1 -0
- package/types/List/ListItem/index.d.ts +19 -30
- package/types/List/ListItem/index.d.ts.map +1 -1
- package/types/List/ListItem/props.d.ts +20 -0
- package/types/List/ListItem/props.d.ts.map +1 -0
- package/types/List/ListItem/styles.d.ts +1 -1
- package/types/List/ListItem/theme.d.ts +1 -1
- package/types/List/ListItem/theme.d.ts.map +1 -1
- package/types/List/index.d.ts +21 -35
- package/types/List/index.d.ts.map +1 -1
- package/types/List/props.d.ts +21 -0
- package/types/List/props.d.ts.map +1 -0
- package/types/List/styles.d.ts +1 -1
- package/types/List/theme.d.ts +1 -1
- package/types/List/theme.d.ts.map +1 -1
- package/types/index.d.ts +4 -4
- package/es/InlineList/InlineListItem/types.js +0 -1
- package/es/InlineList/types.js +0 -1
- package/es/List/ListItem/types.js +0 -1
- package/es/List/types.js +0 -1
- package/lib/InlineList/InlineListItem/types.js +0 -1
- package/lib/InlineList/types.js +0 -1
- package/lib/List/ListItem/types.js +0 -1
- package/lib/List/types.js +0 -1
- package/src/InlineList/types.ts +0 -43
- package/src/List/ListItem/types.ts +0 -45
- package/src/List/types.ts +0 -46
- package/types/InlineList/InlineListItem/types.d.ts +0 -12
- package/types/InlineList/InlineListItem/types.d.ts.map +0 -1
- package/types/InlineList/types.d.ts +0 -10
- package/types/InlineList/types.d.ts.map +0 -1
- package/types/List/ListItem/types.d.ts +0 -12
- package/types/List/ListItem/types.d.ts.map +0 -1
- package/types/List/types.d.ts +0 -13
- package/types/List/types.d.ts.map +0 -1
package/src/List/styles.ts
CHANGED
package/src/List/theme.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
export { InlineList } from './InlineList'
|
|
26
26
|
export { List, ListItem } from './List'
|
|
27
27
|
|
|
28
|
-
export type { InlineListProps } from './InlineList/
|
|
29
|
-
export type { InlineListItemProps } from './InlineList/InlineListItem/
|
|
30
|
-
export type { ListProps } from './List/
|
|
31
|
-
export type { ListItemProps } from './List/ListItem/
|
|
28
|
+
export type { InlineListProps } from './InlineList/props'
|
|
29
|
+
export type { InlineListItemProps } from './InlineList/InlineListItem/props'
|
|
30
|
+
export type { ListProps } from './List/props'
|
|
31
|
+
export type { ListItemProps } from './List/ListItem/props'
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Component } from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
3
|
import { jsx } from '@instructure/emotion';
|
|
5
|
-
import { InlineListItemProps } from './
|
|
4
|
+
import type { InlineListItemProps } from './props';
|
|
6
5
|
/**
|
|
7
6
|
---
|
|
8
7
|
parent: InlineList
|
|
@@ -11,36 +10,26 @@ id: InlineList.Item
|
|
|
11
10
|
**/
|
|
12
11
|
declare class InlineListItem extends Component<InlineListItemProps> {
|
|
13
12
|
static readonly componentId = "InlineList.Item";
|
|
14
|
-
static propTypes: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
* familiar CSS-like shorthand. For example: `padding="small x-large large"`.
|
|
33
|
-
*/
|
|
34
|
-
padding: (props: any, propName: any, componentName: any, location: any) => any;
|
|
35
|
-
/**
|
|
36
|
-
* Inherits itemSpacing from the parent InlineList component
|
|
37
|
-
*/
|
|
38
|
-
spacing: PropTypes.Requireable<string>;
|
|
39
|
-
elementRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
40
|
-
};
|
|
13
|
+
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
|
|
14
|
+
children: import("react").ReactNode | ((...args: any[]) => import("react").ReactNode);
|
|
15
|
+
delimiter?: "none" | "pipe" | "slash" | "arrow" | undefined;
|
|
16
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
17
|
+
margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
18
|
+
padding?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
19
|
+
spacing?: "none" | "small" | "medium" | "large" | "xxx-small" | "xx-small" | "x-small" | "x-large" | "xx-large" | undefined;
|
|
20
|
+
elementRef?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
static allowedProps: readonly (keyof {
|
|
23
|
+
children: import("react").ReactNode | ((...args: any[]) => import("react").ReactNode);
|
|
24
|
+
delimiter?: "none" | "pipe" | "slash" | "arrow" | undefined;
|
|
25
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
26
|
+
margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
27
|
+
padding?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
28
|
+
spacing?: "none" | "small" | "medium" | "large" | "xxx-small" | "xx-small" | "x-small" | "x-large" | "xx-large" | undefined;
|
|
29
|
+
elementRef?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
})[];
|
|
41
31
|
static defaultProps: {
|
|
42
32
|
padding: string;
|
|
43
|
-
margin: undefined;
|
|
44
33
|
spacing: string;
|
|
45
34
|
delimiter: string;
|
|
46
35
|
size: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/InlineList/InlineListItem/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/InlineList/InlineListItem/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAElD;;;;;GAKG;AACH,cAEM,cAAe,SAAQ,SAAS,CAAC,mBAAmB,CAAC;IACzD,MAAM,CAAC,QAAQ,CAAC,WAAW,qBAAoB;IAE/C,MAAM,CAAC,SAAS;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;MAOlB;IAED,iBAAiB;IAMjB,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,QAAQ,KAAA;IAKjD,MAAM;CA6BP;AAED,eAAe,cAAc,CAAA;AAC7B,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Spacing, WithStyleProps } from '@instructure/emotion';
|
|
3
|
+
import type { PropValidators } from '@instructure/shared-types';
|
|
4
|
+
declare type InlineListItemOwnProps = {
|
|
5
|
+
children: React.ReactNode | ((...args: any[]) => React.ReactNode);
|
|
6
|
+
delimiter?: 'none' | 'pipe' | 'slash' | 'arrow';
|
|
7
|
+
size?: 'small' | 'medium' | 'large';
|
|
8
|
+
margin?: Spacing;
|
|
9
|
+
padding?: Spacing;
|
|
10
|
+
spacing?: 'none' | 'xxx-small' | 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large';
|
|
11
|
+
elementRef?: (...args: any[]) => any;
|
|
12
|
+
};
|
|
13
|
+
declare type PropKeys = keyof InlineListItemOwnProps;
|
|
14
|
+
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
15
|
+
declare type InlineListItemProps = InlineListItemOwnProps & WithStyleProps;
|
|
16
|
+
declare const propTypes: PropValidators<PropKeys>;
|
|
17
|
+
declare const allowedProps: AllowedPropKeys;
|
|
18
|
+
export type { InlineListItemProps };
|
|
19
|
+
export { propTypes, allowedProps };
|
|
20
|
+
//# sourceMappingURL=props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/InlineList/InlineListItem/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,aAAK,sBAAsB,GAAG;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,KAAK,CAAC,SAAS,CAAC,CAAA;IACjE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAA;IAC/C,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EACJ,MAAM,GACN,WAAW,GACX,UAAU,GACV,SAAS,GACT,OAAO,GACP,QAAQ,GACR,OAAO,GACP,SAAS,GACT,UAAU,CAAA;IACd,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;CACrC,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,sBAAsB,CAAA;AAE5C,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,mBAAmB,GAAG,sBAAsB,GAAG,cAAc,CAAA;AAElE,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAkCvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAQnB,CAAA;AAED,YAAY,EAAE,mBAAmB,EAAE,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Theme } from '@instructure/ui-themes';
|
|
1
|
+
import type { Theme } from '@instructure/ui-themes';
|
|
2
2
|
import { InlineListItemTheme } from '@instructure/shared-types';
|
|
3
3
|
/**
|
|
4
4
|
* Generates the theme object for the component from the theme and provided additional information
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/InlineList/InlineListItem/theme.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,KAAK,EAAsB,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/InlineList/InlineListItem/theme.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,KAAK,EAAsB,MAAM,wBAAwB,CAAA;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAE/D;;;;GAIG;AACH,QAAA,MAAM,sBAAsB,UAAW,KAAK,KAAG,mBAoC9C,CAAA;AAED,eAAe,sBAAsB,CAAA"}
|
|
@@ -1,36 +1,40 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import { InlineListItem } from './InlineListItem';
|
|
4
|
-
import { InlineListProps } from './
|
|
3
|
+
import type { InlineListProps } from './props';
|
|
5
4
|
/**
|
|
6
5
|
---
|
|
7
6
|
category: components
|
|
8
7
|
---
|
|
9
8
|
**/
|
|
10
9
|
declare class InlineList extends Component<InlineListProps> {
|
|
11
|
-
static propTypes: {
|
|
10
|
+
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
|
|
12
11
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
---
|
|
13
|
+
category: components
|
|
14
|
+
---
|
|
15
|
+
**/
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
as?: "ol" | "ul" | undefined;
|
|
18
|
+
margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
19
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
20
|
+
delimiter?: "none" | "pipe" | "slash" | "arrow" | undefined;
|
|
21
|
+
itemSpacing?: "none" | "small" | "medium" | "large" | "xxx-small" | "xx-small" | "x-small" | "x-large" | "xx-large" | undefined;
|
|
22
|
+
elementRef?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
static allowedProps: readonly (keyof {
|
|
20
25
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
};
|
|
26
|
+
---
|
|
27
|
+
category: components
|
|
28
|
+
---
|
|
29
|
+
**/
|
|
30
|
+
children?: React.ReactNode;
|
|
31
|
+
as?: "ol" | "ul" | undefined;
|
|
32
|
+
margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
33
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
34
|
+
delimiter?: "none" | "pipe" | "slash" | "arrow" | undefined;
|
|
35
|
+
itemSpacing?: "none" | "small" | "medium" | "large" | "xxx-small" | "xx-small" | "x-small" | "x-large" | "xx-large" | undefined;
|
|
36
|
+
elementRef?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
})[];
|
|
34
38
|
static defaultProps: {
|
|
35
39
|
children: null;
|
|
36
40
|
itemSpacing: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/InlineList/index.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,EAAY,SAAS,EAAgB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/InlineList/index.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,EAAY,SAAS,EAAgB,MAAM,OAAO,CAAA;AAMhE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C;;;;GAIG;AACH,cACM,UAAW,SAAQ,SAAS,CAAC,eAAe,CAAC;IACjD,MAAM,CAAC,SAAS;QAPlB;;;;WAIG;;;;;;;;OAG2B;IAC5B,MAAM,CAAC,YAAY;QARrB;;;;WAIG;;;;;;;;SAIiC;IAClC,MAAM,CAAC,YAAY;;;;;;;;MASlB;IAED,MAAM,CAAC,IAAI,wBAAiB;IAE5B,cAAc;IAYd,MAAM;CAgBP;AAED,eAAe,UAAU,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Spacing } from '@instructure/emotion';
|
|
3
|
+
import type { PropValidators } from '@instructure/shared-types';
|
|
4
|
+
declare type InlineListOwnProps = {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
as?: 'ul' | 'ol';
|
|
7
|
+
margin?: Spacing;
|
|
8
|
+
size?: 'small' | 'medium' | 'large';
|
|
9
|
+
delimiter?: 'none' | 'pipe' | 'slash' | 'arrow';
|
|
10
|
+
itemSpacing?: 'none' | 'xxx-small' | 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large';
|
|
11
|
+
elementRef?: (...args: any[]) => any;
|
|
12
|
+
};
|
|
13
|
+
declare type PropKeys = keyof InlineListOwnProps;
|
|
14
|
+
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
15
|
+
declare type InlineListProps = InlineListOwnProps;
|
|
16
|
+
declare const propTypes: PropValidators<PropKeys>;
|
|
17
|
+
declare const allowedProps: AllowedPropKeys;
|
|
18
|
+
export type { InlineListProps };
|
|
19
|
+
export { propTypes, allowedProps };
|
|
20
|
+
//# sourceMappingURL=props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/InlineList/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,aAAK,kBAAkB,GAAG;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAA;IAC/C,WAAW,CAAC,EACR,MAAM,GACN,WAAW,GACX,UAAU,GACV,SAAS,GACT,OAAO,GACP,QAAQ,GACR,OAAO,GACP,SAAS,GACT,UAAU,CAAA;IACd,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;CACrC,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,kBAAkB,CAAA;AAExC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,eAAe,GAAG,kBAAkB,CAAA;AAEzC,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CA6BvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAQnB,CAAA;AAED,YAAY,EAAE,eAAe,EAAE,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Component } from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
3
|
import { jsx } from '@instructure/emotion';
|
|
5
|
-
import { ListItemProps } from './
|
|
4
|
+
import type { ListItemProps } from './props';
|
|
6
5
|
/**
|
|
7
6
|
---
|
|
8
7
|
parent: List
|
|
@@ -11,36 +10,26 @@ id: List.Item
|
|
|
11
10
|
**/
|
|
12
11
|
declare class ListItem extends Component<ListItemProps> {
|
|
13
12
|
static readonly componentId = "List.Item";
|
|
14
|
-
static propTypes: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
* familiar CSS-like shorthand. For example: `padding="small x-large large"`.
|
|
33
|
-
*/
|
|
34
|
-
padding: (props: any, propName: any, componentName: any, location: any) => any;
|
|
35
|
-
/**
|
|
36
|
-
* Inherits itemSpacing from the parent List component
|
|
37
|
-
*/
|
|
38
|
-
spacing: PropTypes.Requireable<string>;
|
|
39
|
-
elementRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
40
|
-
};
|
|
13
|
+
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
|
|
14
|
+
children: import("react").ReactNode | ((...args: any[]) => import("react").ReactNode);
|
|
15
|
+
delimiter?: "none" | "dashed" | "solid" | undefined;
|
|
16
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
17
|
+
margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
18
|
+
padding?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
19
|
+
spacing?: "none" | "small" | "medium" | "large" | "xxx-small" | "xx-small" | "x-small" | "x-large" | "xx-large" | undefined;
|
|
20
|
+
elementRef?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
static allowedProps: readonly (keyof {
|
|
23
|
+
children: import("react").ReactNode | ((...args: any[]) => import("react").ReactNode);
|
|
24
|
+
delimiter?: "none" | "dashed" | "solid" | undefined;
|
|
25
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
26
|
+
margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
27
|
+
padding?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
28
|
+
spacing?: "none" | "small" | "medium" | "large" | "xxx-small" | "xx-small" | "x-small" | "x-large" | "xx-large" | undefined;
|
|
29
|
+
elementRef?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
})[];
|
|
41
31
|
static defaultProps: {
|
|
42
32
|
padding: string;
|
|
43
|
-
margin: undefined;
|
|
44
33
|
spacing: string;
|
|
45
34
|
delimiter: string;
|
|
46
35
|
size: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/List/ListItem/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/List/ListItem/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C;;;;;GAKG;AACH,cAEM,QAAS,SAAQ,SAAS,CAAC,aAAa,CAAC;IAC7C,MAAM,CAAC,QAAQ,CAAC,WAAW,eAAc;IAEzC,MAAM,CAAC,SAAS;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;MAOlB;IAED,iBAAiB;IAMjB,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,QAAQ,KAAA;IAKjD,MAAM;CA2BP;AAED,eAAe,QAAQ,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Spacing, WithStyleProps } from '@instructure/emotion';
|
|
3
|
+
import type { PropValidators } from '@instructure/shared-types';
|
|
4
|
+
declare type ListItemOwnProps = {
|
|
5
|
+
children: React.ReactNode | ((...args: any[]) => React.ReactNode);
|
|
6
|
+
delimiter?: 'none' | 'dashed' | 'solid';
|
|
7
|
+
size?: 'small' | 'medium' | 'large';
|
|
8
|
+
margin?: Spacing;
|
|
9
|
+
padding?: Spacing;
|
|
10
|
+
spacing?: 'none' | 'xxx-small' | 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large';
|
|
11
|
+
elementRef?: (...args: any[]) => any;
|
|
12
|
+
};
|
|
13
|
+
declare type PropKeys = keyof ListItemOwnProps;
|
|
14
|
+
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
15
|
+
declare type ListItemProps = ListItemOwnProps & WithStyleProps;
|
|
16
|
+
declare const propTypes: PropValidators<PropKeys>;
|
|
17
|
+
declare const allowedProps: AllowedPropKeys;
|
|
18
|
+
export type { ListItemProps };
|
|
19
|
+
export { propTypes, allowedProps };
|
|
20
|
+
//# sourceMappingURL=props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/List/ListItem/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,aAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,KAAK,CAAC,SAAS,CAAC,CAAA;IACjE,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;IACvC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EACJ,MAAM,GACN,WAAW,GACX,UAAU,GACV,SAAS,GACT,OAAO,GACP,QAAQ,GACR,OAAO,GACP,SAAS,GACT,UAAU,CAAA;IACd,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;CACrC,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,gBAAgB,CAAA;AAEtC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,aAAa,GAAG,gBAAgB,GAAG,cAAc,CAAA;AAEtD,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAkCvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAQnB,CAAA;AAED,YAAY,EAAE,aAAa,EAAE,CAAA;AAC7B,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/List/ListItem/theme.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,KAAK,EAAsB,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/List/ListItem/theme.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,KAAK,EAAsB,MAAM,wBAAwB,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAEzD;;;;GAIG;AACH,QAAA,MAAM,sBAAsB,UAAW,KAAK,KAAG,aAiC9C,CAAA;AAED,eAAe,sBAAsB,CAAA"}
|
package/types/List/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Component, ReactElement } from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
3
|
import { ListItem } from './ListItem';
|
|
5
4
|
import { jsx } from '@instructure/emotion';
|
|
6
|
-
import { ListProps } from './
|
|
5
|
+
import type { ListProps } from './props';
|
|
7
6
|
/**
|
|
8
7
|
---
|
|
9
8
|
category: components
|
|
@@ -11,44 +10,31 @@ category: components
|
|
|
11
10
|
**/
|
|
12
11
|
declare class List extends Component<ListProps> {
|
|
13
12
|
static readonly componentId = "List";
|
|
14
|
-
static propTypes: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
* Valid values are `0`, `none`, `auto`, `xxx-small`, `xx-small`, `x-small`,
|
|
35
|
-
* `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via
|
|
36
|
-
* familiar CSS-like shorthand. For example: `margin="small auto large"`.
|
|
37
|
-
*/
|
|
38
|
-
margin: (props: any, propName: any, componentName: any, location: any) => any;
|
|
39
|
-
size: PropTypes.Requireable<string>;
|
|
40
|
-
/**
|
|
41
|
-
* Sets the margin separating each ListItem.
|
|
42
|
-
*/
|
|
43
|
-
itemSpacing: PropTypes.Requireable<string>;
|
|
44
|
-
elementRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
45
|
-
};
|
|
13
|
+
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
|
|
14
|
+
children?: import("react").ReactNode;
|
|
15
|
+
as?: "ol" | "ul" | undefined;
|
|
16
|
+
delimiter?: "none" | "dashed" | "solid" | undefined;
|
|
17
|
+
isUnstyled?: boolean | undefined;
|
|
18
|
+
margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
19
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
20
|
+
itemSpacing?: "none" | "small" | "medium" | "large" | "xxx-small" | "xx-small" | "x-small" | "x-large" | "xx-large" | undefined;
|
|
21
|
+
elementRef?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
static allowedProps: readonly (keyof {
|
|
24
|
+
children?: import("react").ReactNode;
|
|
25
|
+
as?: "ol" | "ul" | undefined;
|
|
26
|
+
delimiter?: "none" | "dashed" | "solid" | undefined;
|
|
27
|
+
isUnstyled?: boolean | undefined;
|
|
28
|
+
margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
29
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
30
|
+
itemSpacing?: "none" | "small" | "medium" | "large" | "xxx-small" | "xx-small" | "x-small" | "x-large" | "xx-large" | undefined;
|
|
31
|
+
elementRef?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
})[];
|
|
46
33
|
static defaultProps: {
|
|
47
34
|
children: null;
|
|
48
35
|
as: string;
|
|
49
36
|
delimiter: string;
|
|
50
37
|
isUnstyled: boolean;
|
|
51
|
-
margin: undefined;
|
|
52
38
|
size: string;
|
|
53
39
|
itemSpacing: string;
|
|
54
40
|
elementRef: (el: any) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/List/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAY,SAAS,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/List/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAY,SAAS,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAMzD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;GAIG;AACH,cAEM,IAAK,SAAQ,SAAS,CAAC,SAAS,CAAC;IACrC,MAAM,CAAC,QAAQ,CAAC,WAAW,UAAS;IAEpC,MAAM,CAAC,SAAS;;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;MASlB;IAED,MAAM,CAAC,IAAI,kBAAW;IAEtB,iBAAiB;IAMjB,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,QAAQ,KAAA;IAKjD,cAAc;IAad,MAAM;CAgBP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Spacing, WithStyleProps } from '@instructure/emotion';
|
|
2
|
+
import type { PropValidators } from '@instructure/shared-types';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
declare type ListOwnProps = {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
as?: 'ul' | 'ol';
|
|
7
|
+
delimiter?: 'none' | 'dashed' | 'solid';
|
|
8
|
+
isUnstyled?: boolean;
|
|
9
|
+
margin?: Spacing;
|
|
10
|
+
size?: 'small' | 'medium' | 'large';
|
|
11
|
+
itemSpacing?: 'none' | 'xxx-small' | 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large';
|
|
12
|
+
elementRef?: (...args: any[]) => any;
|
|
13
|
+
};
|
|
14
|
+
declare type PropKeys = keyof ListOwnProps;
|
|
15
|
+
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
16
|
+
declare type ListProps = ListOwnProps & WithStyleProps;
|
|
17
|
+
declare const propTypes: PropValidators<PropKeys>;
|
|
18
|
+
declare const allowedProps: AllowedPropKeys;
|
|
19
|
+
export type { ListProps };
|
|
20
|
+
export { propTypes, allowedProps };
|
|
21
|
+
//# sourceMappingURL=props.d.ts.map
|