@instructure/ui-list 10.26.1 → 11.0.0
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 +23 -2
- package/es/InlineList/InlineListItem/index.js +6 -6
- package/es/InlineList/InlineListItem/props.js +1 -13
- package/es/InlineList/index.js +9 -6
- package/es/InlineList/props.js +1 -13
- package/es/List/ListItem/index.js +6 -6
- package/es/List/ListItem/props.js +1 -12
- package/es/List/index.js +6 -6
- package/es/List/props.js +1 -14
- package/lib/InlineList/InlineListItem/index.js +5 -5
- package/lib/InlineList/InlineListItem/props.js +1 -13
- package/lib/InlineList/index.js +9 -5
- package/lib/InlineList/props.js +1 -14
- package/lib/List/ListItem/index.js +5 -5
- package/lib/List/ListItem/props.js +1 -12
- package/lib/List/index.js +5 -5
- package/lib/List/props.js +1 -15
- package/package.json +12 -15
- package/src/InlineList/InlineListItem/index.tsx +2 -4
- package/src/InlineList/InlineListItem/props.ts +1 -24
- package/src/InlineList/index.tsx +2 -4
- package/src/InlineList/props.ts +2 -31
- package/src/List/ListItem/index.tsx +2 -4
- package/src/List/ListItem/props.ts +1 -24
- package/src/List/index.tsx +2 -4
- package/src/List/props.ts +2 -33
- package/tsconfig.build.json +0 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/InlineList/InlineListItem/index.d.ts +0 -1
- package/types/InlineList/InlineListItem/index.d.ts.map +1 -1
- package/types/InlineList/InlineListItem/props.d.ts +2 -3
- package/types/InlineList/InlineListItem/props.d.ts.map +1 -1
- package/types/InlineList/index.d.ts +0 -9
- package/types/InlineList/index.d.ts.map +1 -1
- package/types/InlineList/props.d.ts +2 -3
- package/types/InlineList/props.d.ts.map +1 -1
- package/types/List/ListItem/index.d.ts +0 -1
- package/types/List/ListItem/index.d.ts.map +1 -1
- package/types/List/ListItem/props.d.ts +2 -3
- package/types/List/ListItem/props.d.ts.map +1 -1
- package/types/List/index.d.ts +0 -10
- package/types/List/index.d.ts.map +1 -1
- package/types/List/props.d.ts +2 -3
- package/types/List/props.d.ts.map +1 -1
|
@@ -8,15 +8,6 @@ category: components
|
|
|
8
8
|
|
|
9
9
|
**/
|
|
10
10
|
declare class InlineList extends Component<InlineListProps> {
|
|
11
|
-
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
12
|
-
children?: React.ReactNode;
|
|
13
|
-
as?: "ul" | "ol";
|
|
14
|
-
margin?: import("@instructure/emotion").Spacing;
|
|
15
|
-
size?: "small" | "medium" | "large";
|
|
16
|
-
delimiter?: "none" | "pipe" | "slash" | "arrow";
|
|
17
|
-
itemSpacing?: "none" | "xxx-small" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large" | "xx-large";
|
|
18
|
-
elementRef?: (element: Element | null) => void;
|
|
19
|
-
}>;
|
|
20
11
|
static allowedProps: readonly (keyof {
|
|
21
12
|
children?: React.ReactNode;
|
|
22
13
|
as?: "ul" | "ol";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/InlineList/index.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAY,SAAS,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/InlineList/index.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAY,SAAS,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAKzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C;;;;;GAKG;AACH,cAAM,UAAW,SAAQ,SAAS,CAAC,eAAe,CAAC;IACjD,MAAM,CAAC,YAAY;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;MAMlB;IAED,MAAM,CAAC,IAAI,wBAAiB;IAE5B,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,GAAI,IAAI,OAAO,GAAG,IAAI,UAQ9B;IAED,cAAc;IAkBd,MAAM;CAiBP;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 { OtherHTMLAttributes
|
|
3
|
+
import type { OtherHTMLAttributes } from '@instructure/shared-types';
|
|
4
4
|
type InlineListOwnProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Only accepts `<InlineList.Item>` as a child
|
|
@@ -27,8 +27,7 @@ type InlineListOwnProps = {
|
|
|
27
27
|
type PropKeys = keyof InlineListOwnProps;
|
|
28
28
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
29
29
|
type InlineListProps = InlineListOwnProps & OtherHTMLAttributes<InlineListOwnProps>;
|
|
30
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
31
30
|
declare const allowedProps: AllowedPropKeys;
|
|
32
31
|
export type { InlineListProps };
|
|
33
|
-
export {
|
|
32
|
+
export { allowedProps };
|
|
34
33
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/InlineList/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/InlineList/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAEpE,KAAK,kBAAkB,GAAG;IACxB;;OAEG;IAEH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAChB;;;;OAIG;IACH,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;;OAEG;IACH,WAAW,CAAC,EACR,MAAM,GACN,WAAW,GACX,UAAU,GACV,SAAS,GACT,OAAO,GACP,QAAQ,GACR,OAAO,GACP,SAAS,GACT,UAAU,CAAA;IACd;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;CAC/C,CAAA;AAED,KAAK,QAAQ,GAAG,MAAM,kBAAkB,CAAA;AAExC,KAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,KAAK,eAAe,GAAG,kBAAkB,GACvC,mBAAmB,CAAC,kBAAkB,CAAC,CAAA;AACzC,QAAA,MAAM,YAAY,EAAE,eAQnB,CAAA;AAED,YAAY,EAAE,eAAe,EAAE,CAAA;AAC/B,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -8,7 +8,6 @@ id: List.Item
|
|
|
8
8
|
**/
|
|
9
9
|
declare class ListItem extends Component<ListItemProps> {
|
|
10
10
|
static readonly componentId = "List.Item";
|
|
11
|
-
static propTypes: import("@instructure/shared-types").PropValidators<"delimiter" | "size" | "margin" | "padding" | "spacing" | "elementRef" | "children">;
|
|
12
11
|
static allowedProps: readonly ("delimiter" | "size" | "margin" | "padding" | "spacing" | "elementRef" | "children")[];
|
|
13
12
|
static defaultProps: {
|
|
14
13
|
padding: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/List/ListItem/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/List/ListItem/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAWjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C;;;;;GAKG;AACH,cACM,QAAS,SAAQ,SAAS,CAAC,aAAa,CAAC;IAC7C,MAAM,CAAC,QAAQ,CAAC,WAAW,eAAc;IAEzC,MAAM,CAAC,YAAY,mGAAe;IAClC,MAAM,CAAC,YAAY;;;;;MAKlB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,GAAI,IAAI,OAAO,GAAG,IAAI,UAQ9B;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,MAAM;CA4BP;AAED,eAAe,QAAQ,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ListItemTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
4
4
|
type ListItemOwnProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Inherits delimiter from the parent List component.
|
|
@@ -32,8 +32,7 @@ type PropKeys = keyof ListItemOwnProps;
|
|
|
32
32
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
33
33
|
type ListItemProps = ListItemOwnProps & WithStyleProps<ListItemTheme, ListItemStyle> & OtherHTMLAttributes<ListItemOwnProps>;
|
|
34
34
|
type ListItemStyle = ComponentStyle<'listItem'>;
|
|
35
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
36
35
|
declare const allowedProps: AllowedPropKeys;
|
|
37
36
|
export type { ListItemProps, ListItemStyle };
|
|
38
|
-
export {
|
|
37
|
+
export { allowedProps };
|
|
39
38
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/List/ListItem/props.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/List/ListItem/props.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAElC,KAAK,gBAAgB,GAAG;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;IACvC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,OAAO,CAAC,EACJ,MAAM,GACN,WAAW,GACX,UAAU,GACV,SAAS,GACT,OAAO,GACP,QAAQ,GACR,OAAO,GACP,SAAS,GACT,UAAU,CAAA;IACd;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;CAC/C,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAA;AAE9B,KAAK,QAAQ,GAAG,MAAM,gBAAgB,CAAA;AAEtC,KAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,KAAK,aAAa,GAAG,gBAAgB,GACnC,cAAc,CAAC,aAAa,EAAE,aAAa,CAAC,GAC5C,mBAAmB,CAAC,gBAAgB,CAAC,CAAA;AAEvC,KAAK,aAAa,GAAG,cAAc,CAAC,UAAU,CAAC,CAAA;AAC/C,QAAA,MAAM,YAAY,EAAE,eAQnB,CAAA;AAED,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
package/types/List/index.d.ts
CHANGED
|
@@ -8,16 +8,6 @@ category: components
|
|
|
8
8
|
**/
|
|
9
9
|
declare class List extends Component<ListProps> {
|
|
10
10
|
static readonly componentId = "List";
|
|
11
|
-
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
12
|
-
children?: React.ReactNode;
|
|
13
|
-
as?: "ul" | "ol";
|
|
14
|
-
delimiter?: "none" | "dashed" | "solid";
|
|
15
|
-
isUnstyled?: boolean;
|
|
16
|
-
margin?: import("@instructure/emotion").Spacing;
|
|
17
|
-
size?: "small" | "medium" | "large";
|
|
18
|
-
itemSpacing?: "none" | "xxx-small" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large" | "xx-large";
|
|
19
|
-
elementRef?: (element: Element | null) => void;
|
|
20
|
-
}>;
|
|
21
11
|
static allowedProps: readonly (keyof {
|
|
22
12
|
children?: React.ReactNode;
|
|
23
13
|
as?: "ul" | "ol";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/List/index.tsx"],"names":[],"mappings":"AAwBA,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,OAAO,EAAY,SAAS,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAKzD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAQrC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;GAIG;AACH,cACM,IAAK,SAAQ,SAAS,CAAC,SAAS,CAAC;IACrC,MAAM,CAAC,QAAQ,CAAC,WAAW,UAAS;IAEpC,MAAM,CAAC,YAAY;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;MAMlB;IAED,MAAM,CAAC,IAAI,kBAAW;IAEtB,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,GAAI,IAAI,OAAO,GAAG,IAAI,UAQ9B;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,cAAc;IAad,MAAM;CAiBP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,QAAQ,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 {
|
|
3
|
+
import type { ListTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
4
4
|
type ListOwnProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Only accepts `<List.Item>` as a child
|
|
@@ -35,8 +35,7 @@ type PropKeys = keyof ListOwnProps;
|
|
|
35
35
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
36
36
|
type ListProps = ListOwnProps & WithStyleProps<ListTheme, ListStyle> & OtherHTMLAttributes<ListOwnProps>;
|
|
37
37
|
type ListStyle = ComponentStyle<'list'>;
|
|
38
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
39
38
|
declare const allowedProps: AllowedPropKeys;
|
|
40
39
|
export type { ListProps, ListStyle };
|
|
41
|
-
export {
|
|
40
|
+
export { allowedProps };
|
|
42
41
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/List/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/List/props.ts"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