@instructure/ui-options 8.14.1-snapshot.63 → 8.14.1-snapshot.66
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/types/Options/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { Component } from 'react';
|
|
2
|
+
import React, { Component } from 'react';
|
|
3
3
|
import { jsx } from '@instructure/emotion';
|
|
4
4
|
import { Item } from './Item';
|
|
5
5
|
import { Separator } from './Separator';
|
|
6
6
|
import type { OptionsProps } from './props';
|
|
7
|
+
declare type OptionsChild = React.ComponentElement<OptionsProps, Options>;
|
|
7
8
|
/**
|
|
8
9
|
---
|
|
9
10
|
category: components
|
|
@@ -16,15 +17,15 @@ declare class Options extends Component<OptionsProps> {
|
|
|
16
17
|
as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
|
|
17
18
|
role?: string | undefined;
|
|
18
19
|
elementRef?: ((element: Element | null) => void) | undefined;
|
|
19
|
-
renderLabel?:
|
|
20
|
-
children?:
|
|
20
|
+
renderLabel?: React.ReactNode | (() => React.ReactNode);
|
|
21
|
+
children?: React.ReactNode;
|
|
21
22
|
})[];
|
|
22
23
|
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
|
|
23
24
|
as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
|
|
24
25
|
role?: string | undefined;
|
|
25
26
|
elementRef?: ((element: Element | null) => void) | undefined;
|
|
26
|
-
renderLabel?:
|
|
27
|
-
children?:
|
|
27
|
+
renderLabel?: React.ReactNode | (() => React.ReactNode);
|
|
28
|
+
children?: React.ReactNode;
|
|
28
29
|
}>;
|
|
29
30
|
static defaultProps: {
|
|
30
31
|
as: string;
|
|
@@ -42,8 +43,8 @@ declare class Options extends Component<OptionsProps> {
|
|
|
42
43
|
_labelId: string;
|
|
43
44
|
get childAs(): "li" | undefined;
|
|
44
45
|
renderLabel(): jsx.JSX.Element;
|
|
45
|
-
renderSubList(
|
|
46
|
-
renderChildren(): jsx.JSX.Element[]
|
|
46
|
+
renderSubList(subOptions: OptionsChild): jsx.JSX.Element;
|
|
47
|
+
renderChildren(): jsx.JSX.Element[];
|
|
47
48
|
render(): jsx.JSX.Element;
|
|
48
49
|
}
|
|
49
50
|
export default Options;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Options/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Options/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,KAAK,EAAE,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAalD,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAKrD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAE7B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAGvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAK3C,aAAK,YAAY,GAAG,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAA;AAGjE;;;;;GAKG;AACH,cAEM,OAAQ,SAAQ,SAAS,CAAC,YAAY,CAAC;IAC3C,MAAM,CAAC,QAAQ,CAAC,WAAW,aAAY;IAEvC,MAAM,CAAC,YAAY;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;;;;;MAMlB;IAED,MAAM,CAAC,IAAI,cAAO;IAClB,MAAM,CAAC,SAAS,mBAAY;IAE5B,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAE9B;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,QAAQ,SAAuB;IAE/B,IAAI,OAAO,qBAMV;IAED,WAAW;IAcX,aAAa,CAAC,UAAU,EAAE,YAAY;IAStC,cAAc;IAcd,MAAM;CA4BP;AAED,eAAe,OAAO,CAAA;AACtB,OAAO,EAAE,OAAO,EAAE,CAAA"}
|