@instructure/ui-options 8.26.2 → 8.26.4-snapshot-3
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 +15 -0
- package/es/Options/Item/styles.js +2 -1
- package/lib/Options/Item/styles.js +2 -1
- package/package.json +14 -14
- package/src/Options/Item/props.ts +6 -10
- package/src/Options/Item/styles.ts +3 -2
- package/src/Options/props.ts +2 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Options/Item/props.d.ts +5 -6
- package/types/Options/Item/props.d.ts.map +1 -1
- package/types/Options/Item/styles.d.ts.map +1 -1
- package/types/Options/index.d.ts +2 -2
- package/types/Options/props.d.ts +2 -1
- package/types/Options/props.d.ts.map +1 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { AsElementType, PropValidators, OptionsItemTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
1
|
+
import type { AsElementType, PropValidators, OptionsItemTheme, OtherHTMLAttributes, Renderable } from '@instructure/shared-types';
|
|
3
2
|
import type { WithDeterministicIdProps } from '@instructure/ui-react-utils';
|
|
4
3
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
5
4
|
declare type OptionsItemRenderProps = {
|
|
6
|
-
children?:
|
|
5
|
+
children?: Renderable;
|
|
7
6
|
/**
|
|
8
7
|
* Element type to render as. Will be set to `<a>` if href is provided.
|
|
9
8
|
*/
|
|
@@ -22,12 +21,12 @@ declare type OptionsItemOwnProps = OptionsItemRenderProps & {
|
|
|
22
21
|
* Content to render before the label
|
|
23
22
|
* (if you pass a function, it has the `props` as its parameter)
|
|
24
23
|
*/
|
|
25
|
-
renderBeforeLabel?:
|
|
24
|
+
renderBeforeLabel?: Renderable<OptionsItemRenderProps>;
|
|
26
25
|
/**
|
|
27
26
|
* Content to render after the label
|
|
28
27
|
* (if you pass a function, it has the `props` as its parameter)
|
|
29
28
|
*/
|
|
30
|
-
renderAfterLabel?:
|
|
29
|
+
renderAfterLabel?: Renderable<OptionsItemRenderProps>;
|
|
31
30
|
/**
|
|
32
31
|
* Sets the vAlign of renderBeforeLabel content
|
|
33
32
|
*/
|
|
@@ -39,7 +38,7 @@ declare type OptionsItemOwnProps = OptionsItemRenderProps & {
|
|
|
39
38
|
/**
|
|
40
39
|
* Additional "secondary" description text
|
|
41
40
|
*/
|
|
42
|
-
description?:
|
|
41
|
+
description?: Renderable;
|
|
43
42
|
/**
|
|
44
43
|
* The ARIA role of the description element
|
|
45
44
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Options/Item/props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Options/Item/props.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EACX,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,sBAAsB,GAAG;IAC5B,QAAQ,CAAC,EAAE,UAAU,CAAA;IACrB;;OAEG;IACH,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB;;OAEG;IACH,OAAO,CAAC,EACJ,SAAS,GACT,aAAa,GACb,UAAU,GACV,UAAU,GACV,sBAAsB,CAAA;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,aAAK,mBAAmB,GAAG,sBAAsB,GAAG;IAClD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,UAAU,CAAC,sBAAsB,CAAC,CAAA;IACtD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,UAAU,CAAC,sBAAsB,CAAC,CAAA;IACrD;;OAEG;IACH,w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"styles.d.ts","sourceRoot":"","sources":["../../../src/Options/Item/styles.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAGjE;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,gBAAgB,SACzB,gBAAgB,KACtB,gBA4JF,CAAA;AAED,eAAe,aAAa,CAAA"}
|
package/types/Options/index.d.ts
CHANGED
|
@@ -17,14 +17,14 @@ declare class Options extends Component<OptionsProps> {
|
|
|
17
17
|
as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
|
|
18
18
|
role?: string | undefined;
|
|
19
19
|
elementRef?: ((element: Element | null) => void) | undefined;
|
|
20
|
-
renderLabel?:
|
|
20
|
+
renderLabel?: import("@instructure/shared-types").Renderable<never>;
|
|
21
21
|
children?: React.ReactNode;
|
|
22
22
|
})[];
|
|
23
23
|
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
|
|
24
24
|
as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
|
|
25
25
|
role?: string | undefined;
|
|
26
26
|
elementRef?: ((element: Element | null) => void) | undefined;
|
|
27
|
-
renderLabel?:
|
|
27
|
+
renderLabel?: import("@instructure/shared-types").Renderable<never>;
|
|
28
28
|
children?: React.ReactNode;
|
|
29
29
|
}>;
|
|
30
30
|
static defaultProps: {
|
package/types/Options/props.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { AsElementType, PropValidators, OptionsTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
3
3
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
4
4
|
import type { WithDeterministicIdProps } from '@instructure/ui-react-utils';
|
|
5
|
+
import { Renderable } from '@instructure/shared-types';
|
|
5
6
|
declare type OptionsOwnProps = {
|
|
6
7
|
/**
|
|
7
8
|
* Element type to render as
|
|
@@ -18,7 +19,7 @@ declare type OptionsOwnProps = {
|
|
|
18
19
|
/**
|
|
19
20
|
* Content to render as a label. Mostly for when the component is nested
|
|
20
21
|
*/
|
|
21
|
-
renderLabel?:
|
|
22
|
+
renderLabel?: Renderable;
|
|
22
23
|
children?: React.ReactNode;
|
|
23
24
|
};
|
|
24
25
|
declare type PropKeys = keyof OptionsOwnProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Options/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,YAAY,EACZ,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Options/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,YAAY,EACZ,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAEtD,aAAK,eAAe,GAAG;IACrB;;OAEG;IACH,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C;;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