@instructure/ui-list 8.10.3-snapshot.21 → 8.10.3-snapshot.22
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/package.json +14 -14
- package/src/InlineList/InlineListItem/props.ts +4 -2
- package/src/InlineList/props.ts +6 -2
- package/src/List/ListItem/props.ts +7 -2
- package/src/List/props.ts +8 -2
- package/types/InlineList/InlineListItem/index.d.ts +2 -12
- package/types/InlineList/InlineListItem/index.d.ts.map +1 -1
- package/types/InlineList/InlineListItem/props.d.ts +2 -2
- package/types/InlineList/InlineListItem/props.d.ts.map +1 -1
- package/types/InlineList/index.d.ts +0 -10
- package/types/InlineList/index.d.ts.map +1 -1
- package/types/InlineList/props.d.ts +2 -2
- package/types/InlineList/props.d.ts.map +1 -1
- package/types/List/ListItem/props.d.ts +2 -2
- package/types/List/ListItem/props.d.ts.map +1 -1
- package/types/List/props.d.ts +2 -2
- package/types/List/props.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-list",
|
|
3
|
-
"version": "8.10.3-snapshot.
|
|
3
|
+
"version": "8.10.3-snapshot.22+f96f8c48e",
|
|
4
4
|
"description": "Components for displaying vertical or horizontal lists.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -25,21 +25,21 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.13.10",
|
|
28
|
-
"@instructure/console": "8.10.3-snapshot.
|
|
29
|
-
"@instructure/emotion": "8.10.3-snapshot.
|
|
30
|
-
"@instructure/shared-types": "8.10.3-snapshot.
|
|
31
|
-
"@instructure/ui-prop-types": "8.10.3-snapshot.
|
|
32
|
-
"@instructure/ui-react-utils": "8.10.3-snapshot.
|
|
33
|
-
"@instructure/ui-testable": "8.10.3-snapshot.
|
|
34
|
-
"@instructure/ui-view": "8.10.3-snapshot.
|
|
28
|
+
"@instructure/console": "8.10.3-snapshot.22+f96f8c48e",
|
|
29
|
+
"@instructure/emotion": "8.10.3-snapshot.22+f96f8c48e",
|
|
30
|
+
"@instructure/shared-types": "8.10.3-snapshot.22+f96f8c48e",
|
|
31
|
+
"@instructure/ui-prop-types": "8.10.3-snapshot.22+f96f8c48e",
|
|
32
|
+
"@instructure/ui-react-utils": "8.10.3-snapshot.22+f96f8c48e",
|
|
33
|
+
"@instructure/ui-testable": "8.10.3-snapshot.22+f96f8c48e",
|
|
34
|
+
"@instructure/ui-view": "8.10.3-snapshot.22+f96f8c48e",
|
|
35
35
|
"prop-types": "^15"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@instructure/ui-babel-preset": "8.10.3-snapshot.
|
|
39
|
-
"@instructure/ui-color-utils": "8.10.3-snapshot.
|
|
40
|
-
"@instructure/ui-test-locator": "8.10.3-snapshot.
|
|
41
|
-
"@instructure/ui-test-utils": "8.10.3-snapshot.
|
|
42
|
-
"@instructure/ui-themes": "8.10.3-snapshot.
|
|
38
|
+
"@instructure/ui-babel-preset": "8.10.3-snapshot.22+f96f8c48e",
|
|
39
|
+
"@instructure/ui-color-utils": "8.10.3-snapshot.22+f96f8c48e",
|
|
40
|
+
"@instructure/ui-test-locator": "8.10.3-snapshot.22+f96f8c48e",
|
|
41
|
+
"@instructure/ui-test-utils": "8.10.3-snapshot.22+f96f8c48e",
|
|
42
|
+
"@instructure/ui-themes": "8.10.3-snapshot.22+f96f8c48e"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=16.8 <=17"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
50
|
"sideEffects": false,
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "f96f8c48efab7806609098e1f00a6953b2884601"
|
|
52
52
|
}
|
|
@@ -34,7 +34,8 @@ import type {
|
|
|
34
34
|
} from '@instructure/emotion'
|
|
35
35
|
import type {
|
|
36
36
|
PropValidators,
|
|
37
|
-
InlineListItemTheme
|
|
37
|
+
InlineListItemTheme,
|
|
38
|
+
OtherHTMLAttributes
|
|
38
39
|
} from '@instructure/shared-types'
|
|
39
40
|
|
|
40
41
|
type InlineListItemOwnProps = {
|
|
@@ -61,7 +62,8 @@ type PropKeys = keyof InlineListItemOwnProps
|
|
|
61
62
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
62
63
|
|
|
63
64
|
type InlineListItemProps = InlineListItemOwnProps &
|
|
64
|
-
WithStyleProps<InlineListItemTheme, InlineListItemStyle>
|
|
65
|
+
WithStyleProps<InlineListItemTheme, InlineListItemStyle> &
|
|
66
|
+
OtherHTMLAttributes<InlineListItemOwnProps>
|
|
65
67
|
|
|
66
68
|
type InlineListItemStyle = ComponentStyle<'inlineListItem' | 'delimiter'>
|
|
67
69
|
|
package/src/InlineList/props.ts
CHANGED
|
@@ -30,7 +30,10 @@ import { ThemeablePropTypes } from '@instructure/emotion'
|
|
|
30
30
|
import { InlineListItem } from './InlineListItem'
|
|
31
31
|
|
|
32
32
|
import type { Spacing } from '@instructure/emotion'
|
|
33
|
-
import type {
|
|
33
|
+
import type {
|
|
34
|
+
OtherHTMLAttributes,
|
|
35
|
+
PropValidators
|
|
36
|
+
} from '@instructure/shared-types'
|
|
34
37
|
|
|
35
38
|
type InlineListOwnProps = {
|
|
36
39
|
children?: React.ReactNode // TODO: oneOf([InlineListItem])
|
|
@@ -55,7 +58,8 @@ type PropKeys = keyof InlineListOwnProps
|
|
|
55
58
|
|
|
56
59
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
57
60
|
|
|
58
|
-
type InlineListProps = InlineListOwnProps
|
|
61
|
+
type InlineListProps = InlineListOwnProps &
|
|
62
|
+
OtherHTMLAttributes<InlineListOwnProps>
|
|
59
63
|
|
|
60
64
|
const propTypes: PropValidators<PropKeys> = {
|
|
61
65
|
/**
|
|
@@ -32,7 +32,11 @@ import type {
|
|
|
32
32
|
WithStyleProps,
|
|
33
33
|
ComponentStyle
|
|
34
34
|
} from '@instructure/emotion'
|
|
35
|
-
import type {
|
|
35
|
+
import type {
|
|
36
|
+
PropValidators,
|
|
37
|
+
ListItemTheme,
|
|
38
|
+
OtherHTMLAttributes
|
|
39
|
+
} from '@instructure/shared-types'
|
|
36
40
|
|
|
37
41
|
type ListItemOwnProps = {
|
|
38
42
|
children: React.ReactNode | ((...args: any[]) => React.ReactNode)
|
|
@@ -58,7 +62,8 @@ type PropKeys = keyof ListItemOwnProps
|
|
|
58
62
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
59
63
|
|
|
60
64
|
type ListItemProps = ListItemOwnProps &
|
|
61
|
-
WithStyleProps<ListItemTheme, ListItemStyle>
|
|
65
|
+
WithStyleProps<ListItemTheme, ListItemStyle> &
|
|
66
|
+
OtherHTMLAttributes<ListItemOwnProps>
|
|
62
67
|
|
|
63
68
|
type ListItemStyle = ComponentStyle<'listItem'>
|
|
64
69
|
|
package/src/List/props.ts
CHANGED
|
@@ -35,7 +35,11 @@ import type {
|
|
|
35
35
|
WithStyleProps,
|
|
36
36
|
ComponentStyle
|
|
37
37
|
} from '@instructure/emotion'
|
|
38
|
-
import type {
|
|
38
|
+
import type {
|
|
39
|
+
PropValidators,
|
|
40
|
+
ListTheme,
|
|
41
|
+
OtherHTMLAttributes
|
|
42
|
+
} from '@instructure/shared-types'
|
|
39
43
|
|
|
40
44
|
type ListOwnProps = {
|
|
41
45
|
children?: React.ReactNode // TODO: oneOf([ListItem])
|
|
@@ -61,7 +65,9 @@ type PropKeys = keyof ListOwnProps
|
|
|
61
65
|
|
|
62
66
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
63
67
|
|
|
64
|
-
type ListProps = ListOwnProps &
|
|
68
|
+
type ListProps = ListOwnProps &
|
|
69
|
+
WithStyleProps<ListTheme, ListStyle> &
|
|
70
|
+
OtherHTMLAttributes<ListOwnProps>
|
|
65
71
|
|
|
66
72
|
type ListStyle = ComponentStyle<'list'>
|
|
67
73
|
|
|
@@ -12,12 +12,7 @@ declare class InlineListItem extends Component<InlineListItemProps> {
|
|
|
12
12
|
static readonly componentId = "InlineList.Item";
|
|
13
13
|
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
|
|
14
14
|
children: import("react").ReactNode | ((...args: any[]) => import("react").ReactNode);
|
|
15
|
-
delimiter?: "none" | "pipe" | "slash" | "arrow" | undefined;
|
|
16
|
-
---
|
|
17
|
-
parent: InlineList
|
|
18
|
-
id: InlineList.Item
|
|
19
|
-
---
|
|
20
|
-
**/
|
|
15
|
+
delimiter?: "none" | "pipe" | "slash" | "arrow" | undefined;
|
|
21
16
|
size?: "small" | "medium" | "large" | undefined;
|
|
22
17
|
margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
23
18
|
padding?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
@@ -26,12 +21,7 @@ declare class InlineListItem extends Component<InlineListItemProps> {
|
|
|
26
21
|
}>;
|
|
27
22
|
static allowedProps: readonly (keyof {
|
|
28
23
|
children: import("react").ReactNode | ((...args: any[]) => import("react").ReactNode);
|
|
29
|
-
delimiter?: "none" | "pipe" | "slash" | "arrow" | undefined;
|
|
30
|
-
---
|
|
31
|
-
parent: InlineList
|
|
32
|
-
id: InlineList.Item
|
|
33
|
-
---
|
|
34
|
-
**/
|
|
24
|
+
delimiter?: "none" | "pipe" | "slash" | "arrow" | undefined;
|
|
35
25
|
size?: "small" | "medium" | "large" | undefined;
|
|
36
26
|
margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
37
27
|
padding?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
@@ -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;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
|
|
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,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAG9B;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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
3
|
-
import type { PropValidators, InlineListItemTheme } from '@instructure/shared-types';
|
|
3
|
+
import type { PropValidators, InlineListItemTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
4
4
|
declare type InlineListItemOwnProps = {
|
|
5
5
|
children: React.ReactNode | ((...args: any[]) => React.ReactNode);
|
|
6
6
|
delimiter?: 'none' | 'pipe' | 'slash' | 'arrow';
|
|
@@ -12,7 +12,7 @@ declare type InlineListItemOwnProps = {
|
|
|
12
12
|
};
|
|
13
13
|
declare type PropKeys = keyof InlineListItemOwnProps;
|
|
14
14
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
15
|
-
declare type InlineListItemProps = InlineListItemOwnProps & WithStyleProps<InlineListItemTheme, InlineListItemStyle>;
|
|
15
|
+
declare type InlineListItemProps = InlineListItemOwnProps & WithStyleProps<InlineListItemTheme, InlineListItemStyle> & OtherHTMLAttributes<InlineListItemOwnProps>;
|
|
16
16
|
declare type InlineListItemStyle = ComponentStyle<'inlineListItem' | 'delimiter'>;
|
|
17
17
|
declare const propTypes: PropValidators<PropKeys>;
|
|
18
18
|
declare const allowedProps: AllowedPropKeys;
|
|
@@ -1 +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,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAElC,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,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;CAC/C,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,GAC/C,cAAc,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAA;
|
|
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,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAElC,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,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;CAC/C,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,GAC/C,cAAc,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,GACxD,mBAAmB,CAAC,sBAAsB,CAAC,CAAA;AAE7C,aAAK,mBAAmB,GAAG,cAAc,CAAC,gBAAgB,GAAG,WAAW,CAAC,CAAA;AAEzE,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAkCvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAQnB,CAAA;AAED,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -8,11 +8,6 @@ category: components
|
|
|
8
8
|
**/
|
|
9
9
|
declare class InlineList extends Component<InlineListProps> {
|
|
10
10
|
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
|
|
11
|
-
/**
|
|
12
|
-
---
|
|
13
|
-
category: components
|
|
14
|
-
---
|
|
15
|
-
**/
|
|
16
11
|
children?: React.ReactNode;
|
|
17
12
|
as?: "ol" | "ul" | undefined;
|
|
18
13
|
margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
@@ -22,11 +17,6 @@ declare class InlineList extends Component<InlineListProps> {
|
|
|
22
17
|
elementRef?: ((element: Element | null) => void) | undefined;
|
|
23
18
|
}>;
|
|
24
19
|
static allowedProps: readonly (keyof {
|
|
25
|
-
/**
|
|
26
|
-
---
|
|
27
|
-
category: components
|
|
28
|
-
---
|
|
29
|
-
**/
|
|
30
20
|
children?: React.ReactNode;
|
|
31
21
|
as?: "ol" | "ul" | undefined;
|
|
32
22
|
margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
@@ -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;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
|
|
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;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;MASlB;IAED,MAAM,CAAC,IAAI,wBAAiB;IAE5B,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAG9B;IAED,cAAc;IAYd,MAAM;CAgBP;AAED,eAAe,UAAU,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Spacing } from '@instructure/emotion';
|
|
3
|
-
import type { PropValidators } from '@instructure/shared-types';
|
|
3
|
+
import type { OtherHTMLAttributes, PropValidators } from '@instructure/shared-types';
|
|
4
4
|
declare type InlineListOwnProps = {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
as?: 'ul' | 'ol';
|
|
@@ -12,7 +12,7 @@ declare type InlineListOwnProps = {
|
|
|
12
12
|
};
|
|
13
13
|
declare type PropKeys = keyof InlineListOwnProps;
|
|
14
14
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
15
|
-
declare type InlineListProps = InlineListOwnProps
|
|
15
|
+
declare type InlineListProps = InlineListOwnProps & OtherHTMLAttributes<InlineListOwnProps>;
|
|
16
16
|
declare const propTypes: PropValidators<PropKeys>;
|
|
17
17
|
declare const allowedProps: AllowedPropKeys;
|
|
18
18
|
export type { InlineListProps };
|
|
@@ -1 +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,
|
|
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,EACV,mBAAmB,EACnB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAElC,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,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;CAC/C,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,GACvC,mBAAmB,CAAC,kBAAkB,CAAC,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,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
3
|
-
import type { PropValidators, ListItemTheme } from '@instructure/shared-types';
|
|
3
|
+
import type { PropValidators, ListItemTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
4
4
|
declare type ListItemOwnProps = {
|
|
5
5
|
children: React.ReactNode | ((...args: any[]) => React.ReactNode);
|
|
6
6
|
delimiter?: 'none' | 'dashed' | 'solid';
|
|
@@ -12,7 +12,7 @@ declare type ListItemOwnProps = {
|
|
|
12
12
|
};
|
|
13
13
|
declare type PropKeys = keyof ListItemOwnProps;
|
|
14
14
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
15
|
-
declare type ListItemProps = ListItemOwnProps & WithStyleProps<ListItemTheme, ListItemStyle>;
|
|
15
|
+
declare type ListItemProps = ListItemOwnProps & WithStyleProps<ListItemTheme, ListItemStyle> & OtherHTMLAttributes<ListItemOwnProps>;
|
|
16
16
|
declare type ListItemStyle = ComponentStyle<'listItem'>;
|
|
17
17
|
declare const propTypes: PropValidators<PropKeys>;
|
|
18
18
|
declare const allowedProps: AllowedPropKeys;
|
|
@@ -1 +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,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,
|
|
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,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAElC,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,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;CAC/C,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,GACnC,cAAc,CAAC,aAAa,EAAE,aAAa,CAAC,GAC5C,mBAAmB,CAAC,gBAAgB,CAAC,CAAA;AAEvC,aAAK,aAAa,GAAG,cAAc,CAAC,UAAU,CAAC,CAAA;AAE/C,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAkCvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAQnB,CAAA;AAED,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
package/types/List/props.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
3
|
-
import type { PropValidators, ListTheme } from '@instructure/shared-types';
|
|
3
|
+
import type { PropValidators, ListTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
4
4
|
declare type ListOwnProps = {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
as?: 'ul' | 'ol';
|
|
@@ -13,7 +13,7 @@ declare type ListOwnProps = {
|
|
|
13
13
|
};
|
|
14
14
|
declare type PropKeys = keyof ListOwnProps;
|
|
15
15
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
16
|
-
declare type ListProps = ListOwnProps & WithStyleProps<ListTheme, ListStyle>;
|
|
16
|
+
declare type ListProps = ListOwnProps & WithStyleProps<ListTheme, ListStyle> & OtherHTMLAttributes<ListOwnProps>;
|
|
17
17
|
declare type ListStyle = ComponentStyle<'list'>;
|
|
18
18
|
declare const propTypes: PropValidators<PropKeys>;
|
|
19
19
|
declare const allowedProps: AllowedPropKeys;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/List/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/List/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EACT,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAElC,aAAK,YAAY,GAAG;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;IACvC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,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,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;CAC/C,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,YAAY,CAAA;AAElC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,SAAS,GAAG,YAAY,GAC3B,cAAc,CAAC,SAAS,EAAE,SAAS,CAAC,GACpC,mBAAmB,CAAC,YAAY,CAAC,CAAA;AAEnC,aAAK,SAAS,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;AAEvC,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAoCvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eASnB,CAAA;AAED,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,CAAA;AACpC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|