@instructure/ui-list 8.10.1 → 8.10.3-snapshot.12
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/LICENSE.md +27 -0
- package/es/InlineList/InlineListItem/index.js +23 -11
- package/es/InlineList/index.js +18 -6
- package/es/List/ListItem/index.js +23 -11
- package/es/List/index.js +20 -8
- package/lib/InlineList/InlineListItem/index.js +23 -11
- package/lib/InlineList/index.js +18 -6
- package/lib/List/ListItem/index.js +23 -11
- package/lib/List/index.js +20 -8
- package/package.json +15 -14
- package/src/InlineList/InlineListItem/index.tsx +8 -1
- package/src/InlineList/InlineListItem/props.ts +1 -1
- package/src/InlineList/index.tsx +8 -1
- package/src/InlineList/props.ts +1 -1
- package/src/List/ListItem/index.tsx +8 -1
- package/src/List/ListItem/props.ts +1 -1
- package/src/List/index.tsx +8 -1
- package/src/List/props.ts +1 -1
- package/types/InlineList/InlineListItem/InlineListItemLocator.d.ts +64 -64
- package/types/InlineList/InlineListItem/index.d.ts +4 -2
- package/types/InlineList/InlineListItem/index.d.ts.map +1 -1
- package/types/InlineList/InlineListItem/props.d.ts +1 -1
- package/types/InlineList/InlineListItem/props.d.ts.map +1 -1
- package/types/InlineList/InlineListLocator.d.ts +224 -224
- package/types/InlineList/index.d.ts +4 -2
- package/types/InlineList/index.d.ts.map +1 -1
- package/types/InlineList/props.d.ts +1 -1
- package/types/InlineList/props.d.ts.map +1 -1
- package/types/List/ListItem/index.d.ts +4 -2
- package/types/List/ListItem/index.d.ts.map +1 -1
- package/types/List/ListItem/props.d.ts +1 -1
- package/types/List/ListItem/props.d.ts.map +1 -1
- package/types/List/ListLocator.d.ts +224 -224
- package/types/List/index.d.ts +4 -2
- package/types/List/index.d.ts.map +1 -1
- package/types/List/props.d.ts +1 -1
- package/types/List/props.d.ts.map +1 -1
|
@@ -19,7 +19,7 @@ declare class InlineList extends Component<InlineListProps> {
|
|
|
19
19
|
size?: "small" | "medium" | "large" | undefined;
|
|
20
20
|
delimiter?: "none" | "pipe" | "slash" | "arrow" | undefined;
|
|
21
21
|
itemSpacing?: "none" | "small" | "medium" | "large" | "xxx-small" | "xx-small" | "x-small" | "x-large" | "xx-large" | undefined;
|
|
22
|
-
elementRef?: ((
|
|
22
|
+
elementRef?: ((element: Element | null) => void) | undefined;
|
|
23
23
|
}>;
|
|
24
24
|
static allowedProps: readonly (keyof {
|
|
25
25
|
/**
|
|
@@ -33,7 +33,7 @@ declare class InlineList extends Component<InlineListProps> {
|
|
|
33
33
|
size?: "small" | "medium" | "large" | undefined;
|
|
34
34
|
delimiter?: "none" | "pipe" | "slash" | "arrow" | undefined;
|
|
35
35
|
itemSpacing?: "none" | "small" | "medium" | "large" | "xxx-small" | "xx-small" | "x-small" | "x-large" | "xx-large" | undefined;
|
|
36
|
-
elementRef?: ((
|
|
36
|
+
elementRef?: ((element: Element | null) => void) | undefined;
|
|
37
37
|
})[];
|
|
38
38
|
static defaultProps: {
|
|
39
39
|
children: null;
|
|
@@ -45,6 +45,8 @@ declare class InlineList extends Component<InlineListProps> {
|
|
|
45
45
|
size: string;
|
|
46
46
|
};
|
|
47
47
|
static Item: typeof InlineListItem;
|
|
48
|
+
ref: Element | null;
|
|
49
|
+
handleRef: (el: Element | null) => void;
|
|
48
50
|
renderChildren(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[] | null | undefined;
|
|
49
51
|
render(): JSX.Element;
|
|
50
52
|
}
|
|
@@ -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;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"}
|
|
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,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"}
|
|
@@ -8,7 +8,7 @@ declare type InlineListOwnProps = {
|
|
|
8
8
|
size?: 'small' | 'medium' | 'large';
|
|
9
9
|
delimiter?: 'none' | 'pipe' | 'slash' | 'arrow';
|
|
10
10
|
itemSpacing?: 'none' | 'xxx-small' | 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large';
|
|
11
|
-
elementRef?: (
|
|
11
|
+
elementRef?: (element: Element | null) => void;
|
|
12
12
|
};
|
|
13
13
|
declare type PropKeys = keyof InlineListOwnProps;
|
|
14
14
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
@@ -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,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,
|
|
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,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,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"}
|
|
@@ -17,7 +17,7 @@ declare class ListItem extends Component<ListItemProps> {
|
|
|
17
17
|
margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
18
18
|
padding?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
19
19
|
spacing?: "none" | "small" | "medium" | "large" | "xxx-small" | "xx-small" | "x-small" | "x-large" | "xx-large" | undefined;
|
|
20
|
-
elementRef?: ((
|
|
20
|
+
elementRef?: ((element: Element | null) => void) | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
static allowedProps: readonly (keyof {
|
|
23
23
|
children: import("react").ReactNode | ((...args: any[]) => import("react").ReactNode);
|
|
@@ -26,7 +26,7 @@ declare class ListItem extends Component<ListItemProps> {
|
|
|
26
26
|
margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
27
27
|
padding?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
28
28
|
spacing?: "none" | "small" | "medium" | "large" | "xxx-small" | "xx-small" | "x-small" | "x-large" | "xx-large" | undefined;
|
|
29
|
-
elementRef?: ((
|
|
29
|
+
elementRef?: ((element: Element | null) => void) | undefined;
|
|
30
30
|
})[];
|
|
31
31
|
static defaultProps: {
|
|
32
32
|
padding: string;
|
|
@@ -35,6 +35,8 @@ declare class ListItem extends Component<ListItemProps> {
|
|
|
35
35
|
size: string;
|
|
36
36
|
elementRef: (el: any) => void;
|
|
37
37
|
};
|
|
38
|
+
ref: Element | null;
|
|
39
|
+
handleRef: (el: Element | null) => void;
|
|
38
40
|
componentDidMount(): void;
|
|
39
41
|
componentDidUpdate(prevProps: any, prevState: any, snapshot: any): void;
|
|
40
42
|
render(): jsx.JSX.Element;
|
|
@@ -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;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"}
|
|
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,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;CA2BP;AAED,eAAe,QAAQ,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -8,7 +8,7 @@ declare type ListItemOwnProps = {
|
|
|
8
8
|
margin?: Spacing;
|
|
9
9
|
padding?: Spacing;
|
|
10
10
|
spacing?: 'none' | 'xxx-small' | 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large';
|
|
11
|
-
elementRef?: (
|
|
11
|
+
elementRef?: (element: Element | null) => void;
|
|
12
12
|
};
|
|
13
13
|
declare type PropKeys = keyof ListItemOwnProps;
|
|
14
14
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
@@ -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,cA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