@instructure/ui-list 8.13.1-snapshot.9 → 8.14.1-snapshot.6
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/CHANGELOG.md +4 -0
- package/es/InlineList/InlineListItem/InlineListItemLocator.js +2 -1
- package/es/InlineList/InlineListItem/index.js +19 -15
- package/es/InlineList/InlineListItem/props.js +0 -24
- package/es/InlineList/InlineListLocator.js +2 -1
- package/es/InlineList/__examples__/InlineList.examples.js +1 -1
- package/es/InlineList/index.js +1 -2
- package/es/InlineList/props.js +0 -17
- package/es/List/ListItem/index.js +19 -15
- package/es/List/ListItem/props.js +0 -24
- package/es/List/ListLocator.js +4 -2
- package/es/List/__examples__/List.examples.js +1 -1
- package/es/List/index.js +16 -13
- package/es/List/props.js +0 -25
- package/lib/InlineList/InlineListItem/InlineListItemLocator.js +1 -0
- package/lib/InlineList/InlineListItem/index.js +19 -15
- package/lib/InlineList/InlineListItem/props.js +0 -24
- package/lib/InlineList/InlineListLocator.js +1 -0
- package/lib/InlineList/__examples__/InlineList.examples.js +1 -1
- package/lib/InlineList/index.js +1 -2
- package/lib/InlineList/props.js +0 -17
- package/lib/List/ListItem/index.js +19 -15
- package/lib/List/ListItem/props.js +0 -24
- package/lib/List/ListLocator.js +3 -1
- package/lib/List/__examples__/List.examples.js +1 -1
- package/lib/List/index.js +16 -13
- package/lib/List/props.js +0 -25
- package/package.json +14 -14
- package/src/InlineList/InlineListItem/index.tsx +5 -9
- package/src/InlineList/InlineListItem/props.ts +20 -20
- package/src/InlineList/__examples__/InlineList.examples.tsx +7 -4
- package/src/InlineList/index.tsx +1 -3
- package/src/InlineList/props.ts +16 -15
- package/src/List/ListItem/index.tsx +5 -9
- package/src/List/ListItem/props.ts +20 -20
- package/src/List/__examples__/List.examples.tsx +8 -5
- package/src/List/index.tsx +5 -10
- package/src/List/props.ts +20 -20
- package/tsconfig.build.json +18 -2
- package/tsconfig.build.tsbuildinfo +1 -0
- package/types/InlineList/InlineListItem/InlineListItemLocator.d.ts +52 -52
- package/types/InlineList/InlineListItem/index.d.ts +4 -4
- package/types/InlineList/InlineListItem/index.d.ts.map +1 -1
- package/types/InlineList/InlineListItem/props.d.ts +20 -1
- package/types/InlineList/InlineListItem/props.d.ts.map +1 -1
- package/types/InlineList/InlineListLocator.d.ts +182 -182
- package/types/InlineList/__examples__/InlineList.examples.d.ts +3 -8
- package/types/InlineList/__examples__/InlineList.examples.d.ts.map +1 -1
- package/types/InlineList/index.d.ts +1 -2
- package/types/InlineList/index.d.ts.map +1 -1
- package/types/InlineList/props.d.ts +14 -0
- package/types/InlineList/props.d.ts.map +1 -1
- package/types/List/ListItem/index.d.ts +4 -4
- package/types/List/ListItem/index.d.ts.map +1 -1
- package/types/List/ListItem/props.d.ts +20 -1
- package/types/List/ListItem/props.d.ts.map +1 -1
- package/types/List/ListLocator.d.ts +182 -182
- package/types/List/__examples__/List.examples.d.ts +3 -8
- package/types/List/__examples__/List.examples.d.ts.map +1 -1
- package/types/List/index.d.ts +2 -3
- package/types/List/index.d.ts.map +1 -1
- package/types/List/props.d.ts +20 -0
- package/types/List/props.d.ts.map +1 -1
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
getComponentProps: (props: any) => {
|
|
5
|
-
children: JSX.Element[];
|
|
6
|
-
};
|
|
7
|
-
filter: (props: any) => boolean;
|
|
8
|
-
};
|
|
1
|
+
import type { StoryConfig } from '@instructure/ui-test-utils';
|
|
2
|
+
import type { ListProps } from '../props';
|
|
3
|
+
declare const _default: StoryConfig<ListProps>;
|
|
9
4
|
export default _default;
|
|
10
5
|
//# sourceMappingURL=List.examples.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.examples.d.ts","sourceRoot":"","sources":["../../../src/List/__examples__/List.examples.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"List.examples.d.ts","sourceRoot":"","sources":["../../../src/List/__examples__/List.examples.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;;AAEzC,wBAiB2B"}
|
package/types/List/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import type { ListProps } from './props';
|
|
|
7
7
|
---
|
|
8
8
|
category: components
|
|
9
9
|
---
|
|
10
|
+
@tsProps
|
|
10
11
|
**/
|
|
11
12
|
declare class List extends Component<ListProps> {
|
|
12
13
|
static readonly componentId = "List";
|
|
@@ -31,19 +32,17 @@ declare class List extends Component<ListProps> {
|
|
|
31
32
|
elementRef?: ((element: Element | null) => void) | undefined;
|
|
32
33
|
})[];
|
|
33
34
|
static defaultProps: {
|
|
34
|
-
children: null;
|
|
35
35
|
as: string;
|
|
36
36
|
delimiter: string;
|
|
37
37
|
isUnstyled: boolean;
|
|
38
38
|
size: string;
|
|
39
39
|
itemSpacing: string;
|
|
40
|
-
elementRef: (el: any) => void;
|
|
41
40
|
};
|
|
42
41
|
static Item: typeof ListItem;
|
|
43
42
|
ref: Element | null;
|
|
44
43
|
handleRef: (el: Element | null) => void;
|
|
45
44
|
componentDidMount(): void;
|
|
46
|
-
componentDidUpdate(
|
|
45
|
+
componentDidUpdate(): void;
|
|
47
46
|
renderChildren(): ReactElement<any, string | import("react").JSXElementConstructor<any>>[] | null | undefined;
|
|
48
47
|
render(): jsx.JSX.Element;
|
|
49
48
|
}
|
|
@@ -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;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
|
|
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;;;;;GAKG;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;;;;;;MAMlB;IAED,MAAM,CAAC,IAAI,kBAAW;IAEtB,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAQ9B;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,cAAc;IAad,MAAM;CAgBP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAA"}
|
package/types/List/props.d.ts
CHANGED
|
@@ -2,13 +2,33 @@ import React from 'react';
|
|
|
2
2
|
import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
3
3
|
import type { PropValidators, ListTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
4
4
|
declare type ListOwnProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Only accepts `<List.Item>` as a child
|
|
7
|
+
*/
|
|
5
8
|
children?: React.ReactNode;
|
|
6
9
|
as?: 'ul' | 'ol';
|
|
10
|
+
/**
|
|
11
|
+
* One of: none, dashed, solid
|
|
12
|
+
*/
|
|
7
13
|
delimiter?: 'none' | 'dashed' | 'solid';
|
|
14
|
+
/**
|
|
15
|
+
* When set, renders the List Items without a list style type.
|
|
16
|
+
*/
|
|
8
17
|
isUnstyled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Valid values are `0`, `none`, `auto`, `xxx-small`, `xx-small`, `x-small`,
|
|
20
|
+
* `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via
|
|
21
|
+
* familiar CSS-like shorthand. For example: `margin="small auto large"`.
|
|
22
|
+
*/
|
|
9
23
|
margin?: Spacing;
|
|
10
24
|
size?: 'small' | 'medium' | 'large';
|
|
25
|
+
/**
|
|
26
|
+
* Sets the margin separating each ListItem.
|
|
27
|
+
*/
|
|
11
28
|
itemSpacing?: 'none' | 'xxx-small' | 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large';
|
|
29
|
+
/**
|
|
30
|
+
* provides a reference to the underlying html root element
|
|
31
|
+
*/
|
|
12
32
|
elementRef?: (element: Element | null) => void;
|
|
13
33
|
};
|
|
14
34
|
declare type PropKeys = keyof ListOwnProps;
|
|
@@ -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,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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