@instructure/ui-simple-select 8.26.3 → 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 +11 -0
- package/package.json +15 -15
- package/src/SimpleSelect/Option/props.ts +6 -7
- package/src/SimpleSelect/index.tsx +1 -1
- package/src/SimpleSelect/props.ts +7 -5
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/SimpleSelect/Option/props.d.ts +6 -5
- package/types/SimpleSelect/Option/props.d.ts.map +1 -1
- package/types/SimpleSelect/index.d.ts +8 -8
- package/types/SimpleSelect/props.d.ts +5 -4
- package/types/SimpleSelect/props.d.ts.map +1 -1
@@ -1,13 +1,14 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import type { OtherHTMLAttributes, PropValidators } from '@instructure/shared-types';
|
3
|
+
import { Renderable } from '@instructure/shared-types';
|
3
4
|
declare type OptionProps = {
|
4
5
|
id: SimpleSelectOptionOwnProps['id'];
|
5
|
-
isDisabled
|
6
|
-
isSelected
|
7
|
-
isHighlighted
|
8
|
-
children
|
6
|
+
isDisabled?: SimpleSelectOptionOwnProps['isDisabled'];
|
7
|
+
isSelected?: boolean;
|
8
|
+
isHighlighted?: boolean;
|
9
|
+
children?: React.ReactNode;
|
9
10
|
};
|
10
|
-
declare type RenderSimpleSelectOptionLabel =
|
11
|
+
declare type RenderSimpleSelectOptionLabel = Renderable<OptionProps>;
|
11
12
|
declare type SimpleSelectOptionOwnProps = {
|
12
13
|
/**
|
13
14
|
* The id for the option.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/SimpleSelect/Option/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACf,MAAM,2BAA2B,CAAA;
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../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,EAAE,YAAY,EAAE,CAAA"}
|
@@ -21,8 +21,8 @@ declare class SimpleSelect extends Component<SimpleSelectProps, SimpleSelectStat
|
|
21
21
|
static readonly componentId = "SimpleSelect";
|
22
22
|
static Option: typeof Option;
|
23
23
|
static Group: typeof Group;
|
24
|
-
static allowedProps: readonly ("
|
25
|
-
renderLabel:
|
24
|
+
static allowedProps: readonly ("value" | "children" | "defaultValue" | "onChange" | keyof {
|
25
|
+
renderLabel: import("@instructure/shared-types").Renderable<never>;
|
26
26
|
id?: string | undefined;
|
27
27
|
size?: "small" | "medium" | "large" | undefined;
|
28
28
|
assistiveText?: string | undefined;
|
@@ -40,13 +40,13 @@ declare class SimpleSelect extends Component<SimpleSelectProps, SimpleSelectStat
|
|
40
40
|
mountNode?: import("@instructure/ui-position").PositionMountNode | undefined;
|
41
41
|
inputRef?: ((inputElement: HTMLInputElement | null) => void) | undefined;
|
42
42
|
listRef?: ((listElement: HTMLUListElement | null) => void) | undefined;
|
43
|
-
renderBeforeInput?:
|
44
|
-
renderAfterInput?:
|
43
|
+
renderBeforeInput?: import("@instructure/shared-types").Renderable<never>;
|
44
|
+
renderAfterInput?: import("@instructure/shared-types").Renderable<never>;
|
45
45
|
onFocus?: ((event: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
46
46
|
onBlur?: ((event: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
47
47
|
} | "onShowOptions" | "onHideOptions" | "renderEmptyOption")[];
|
48
|
-
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<"
|
49
|
-
renderLabel:
|
48
|
+
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<"value" | "children" | "defaultValue" | "onChange" | keyof {
|
49
|
+
renderLabel: import("@instructure/shared-types").Renderable<never>;
|
50
50
|
id?: string | undefined;
|
51
51
|
size?: "small" | "medium" | "large" | undefined;
|
52
52
|
assistiveText?: string | undefined;
|
@@ -64,8 +64,8 @@ declare class SimpleSelect extends Component<SimpleSelectProps, SimpleSelectStat
|
|
64
64
|
mountNode?: import("@instructure/ui-position").PositionMountNode | undefined;
|
65
65
|
inputRef?: ((inputElement: HTMLInputElement | null) => void) | undefined;
|
66
66
|
listRef?: ((listElement: HTMLUListElement | null) => void) | undefined;
|
67
|
-
renderBeforeInput?:
|
68
|
-
renderAfterInput?:
|
67
|
+
renderBeforeInput?: import("@instructure/shared-types").Renderable<never>;
|
68
|
+
renderAfterInput?: import("@instructure/shared-types").Renderable<never>;
|
69
69
|
onFocus?: ((event: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
70
70
|
onBlur?: ((event: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
71
71
|
} | "onShowOptions" | "onHideOptions" | "renderEmptyOption">;
|
@@ -4,6 +4,7 @@ import type { OtherHTMLAttributes, PickPropsWithExceptions, PropValidators } fro
|
|
4
4
|
import type { PlacementPropValues, PositionConstraint, PositionMountNode } from '@instructure/ui-position';
|
5
5
|
import type { SelectOwnProps } from '@instructure/ui-select';
|
6
6
|
import type { WithDeterministicIdProps } from '@instructure/ui-react-utils';
|
7
|
+
import { Renderable } from '@instructure/shared-types';
|
7
8
|
declare type SimpleSelectOwnProps = PropsPassedToSelect & {
|
8
9
|
/**
|
9
10
|
* The value corresponding to the value of the selected option. If defined,
|
@@ -32,7 +33,7 @@ declare type SimpleSelectOwnProps = PropsPassedToSelect & {
|
|
32
33
|
/**
|
33
34
|
* Content to display in the list when no options are available.
|
34
35
|
*/
|
35
|
-
renderEmptyOption?:
|
36
|
+
renderEmptyOption?: Renderable;
|
36
37
|
/**
|
37
38
|
* Children of type `<SimpleSelect.Option />` or `<SimpleSelect.Group />`.
|
38
39
|
*/
|
@@ -42,7 +43,7 @@ declare type PropsPassedToSelect = {
|
|
42
43
|
/**
|
43
44
|
* The form field label.
|
44
45
|
*/
|
45
|
-
renderLabel:
|
46
|
+
renderLabel: Renderable;
|
46
47
|
/**
|
47
48
|
* The id of the text input. One is generated if not supplied.
|
48
49
|
*/
|
@@ -128,12 +129,12 @@ declare type PropsPassedToSelect = {
|
|
128
129
|
/**
|
129
130
|
* Content to display before the text input. This will commonly be an icon.
|
130
131
|
*/
|
131
|
-
renderBeforeInput?:
|
132
|
+
renderBeforeInput?: Renderable;
|
132
133
|
/**
|
133
134
|
* Content to display after the text input. This content will replace the
|
134
135
|
* default arrow icons.
|
135
136
|
*/
|
136
|
-
renderAfterInput?:
|
137
|
+
renderAfterInput?: Renderable;
|
137
138
|
/**
|
138
139
|
* Callback fired when text input receives focus.
|
139
140
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/SimpleSelect/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAUlD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,EACV,mBAAmB,EACnB,uBAAuB,EACvB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/SimpleSelect/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAUlD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,EACV,mBAAmB,EACnB,uBAAuB,EACvB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,0BAA0B,CAAA;AACj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