@instructure/ui-select 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/Select/Group/index.js +2 -3
- package/es/Select/Group/props.js +0 -7
- package/es/Select/Option/index.js +2 -2
- package/es/Select/Option/props.js +0 -27
- package/es/Select/SelectLocator.js +5 -2
- package/es/Select/index.js +92 -85
- package/es/Select/props.js +2 -142
- package/lib/Select/Group/index.js +2 -3
- package/lib/Select/Group/props.js +0 -7
- package/lib/Select/Option/index.js +2 -2
- package/lib/Select/Option/props.js +0 -27
- package/lib/Select/SelectLocator.js +3 -0
- package/lib/Select/index.js +96 -86
- package/lib/Select/props.js +2 -142
- package/package.json +23 -23
- package/src/Select/Group/index.tsx +2 -3
- package/src/Select/Group/props.ts +8 -8
- package/src/Select/Option/index.tsx +2 -2
- package/src/Select/Option/props.ts +33 -25
- package/src/Select/index.tsx +160 -168
- package/src/Select/props.ts +176 -117
- package/tsconfig.build.json +27 -2
- package/tsconfig.build.tsbuildinfo +1 -0
- package/types/Select/Group/index.d.ts +4 -5
- package/types/Select/Group/index.d.ts.map +1 -1
- package/types/Select/Group/props.d.ts +7 -1
- package/types/Select/Group/props.d.ts.map +1 -1
- package/types/Select/Option/index.d.ts +3 -7
- package/types/Select/Option/index.d.ts.map +1 -1
- package/types/Select/Option/props.d.ts +28 -4
- package/types/Select/Option/props.d.ts.map +1 -1
- package/types/Select/SelectLocator.d.ts +117 -117
- package/types/Select/index.d.ts +68 -99
- package/types/Select/index.d.ts.map +1 -1
- package/types/Select/props.d.ts +146 -21
- package/types/Select/props.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Select/Option/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAGhD
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Select/Option/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAGhD;;;;;;;GAOG;AACH,cAAM,MAAO,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IAC/C,MAAM,CAAC,QAAQ,CAAC,WAAW,mBAAkB;IAE7C,MAAM,CAAC,YAAY;;;;;;oDAAe;IAClC,MAAM,CAAC,SAAS;;;;;;kDAAY;IAE5B,MAAM,CAAC,YAAY;;;;MAIlB;IAGD,MAAM;CAKP;AAED,eAAe,MAAM,CAAA;AACrB,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -1,19 +1,43 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { OtherHTMLAttributes, PropValidators } from '@instructure/shared-types';
|
|
3
|
-
declare type
|
|
3
|
+
declare type OptionProps = {
|
|
4
|
+
/**
|
|
5
|
+
* The id for the option.
|
|
6
|
+
*/
|
|
4
7
|
id: string;
|
|
8
|
+
/**
|
|
9
|
+
* Whether or not this option is highlighted.
|
|
10
|
+
*/
|
|
5
11
|
isHighlighted?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Whether or not this option is selected.
|
|
14
|
+
*/
|
|
6
15
|
isSelected?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Whether or not this option is disabled.
|
|
18
|
+
*/
|
|
7
19
|
isDisabled?: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Content to display as the option label.
|
|
22
|
+
*/
|
|
10
23
|
children?: React.ReactNode;
|
|
11
24
|
};
|
|
25
|
+
declare type RenderSelectOptionLabel = React.ReactNode | ((args: OptionProps) => React.ReactNode);
|
|
26
|
+
declare type SelectOptionOwnProps = OptionProps & {
|
|
27
|
+
/**
|
|
28
|
+
* Content to display before the option label, such as an icon.
|
|
29
|
+
*/
|
|
30
|
+
renderBeforeLabel?: RenderSelectOptionLabel;
|
|
31
|
+
/**
|
|
32
|
+
* Content to display after the option label, such as an icon.
|
|
33
|
+
*/
|
|
34
|
+
renderAfterLabel?: RenderSelectOptionLabel;
|
|
35
|
+
};
|
|
12
36
|
declare type PropKeys = keyof SelectOptionOwnProps;
|
|
13
37
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
14
38
|
declare type SelectOptionProps = SelectOptionOwnProps & OtherHTMLAttributes<SelectOptionOwnProps>;
|
|
15
39
|
declare const propTypes: PropValidators<PropKeys>;
|
|
16
40
|
declare const allowedProps: AllowedPropKeys;
|
|
17
|
-
export type { SelectOptionProps };
|
|
41
|
+
export type { SelectOptionProps, RenderSelectOptionLabel };
|
|
18
42
|
export { propTypes, allowedProps };
|
|
19
43
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Select/Option/props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Select/Option/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAElC,aAAK,WAAW,GAAG;IACjB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,aAAK,uBAAuB,GACxB,KAAK,CAAC,SAAS,GACf,CAAC,CAAC,IAAI,EAAE,WAAW,KAAK,KAAK,CAAC,SAAS,CAAC,CAAA;AAE5C,aAAK,oBAAoB,GAAG,WAAW,GAAG;IACxC;;OAEG;IACH,iBAAiB,CAAC,EAAE,uBAAuB,CAAA;IAC3C;;OAEG;IACH,gBAAgB,CAAC,EAAE,uBAAuB,CAAA;CAC3C,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,oBAAoB,CAAA;AAE1C,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,iBAAiB,GAAG,oBAAoB,GAC3C,mBAAmB,CAAC,oBAAoB,CAAC,CAAA;AAE3C,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAQvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAQnB,CAAA;AAED,YAAY,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|