@instructure/ui-options 10.26.1-snapshot-2 → 10.26.1
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 +2 -23
- package/es/Options/Item/index.js +6 -6
- package/es/Options/Item/props.js +18 -1
- package/es/Options/Separator/index.js +2 -2
- package/es/Options/Separator/props.js +5 -2
- package/es/Options/index.js +6 -6
- package/es/Options/props.js +10 -1
- package/lib/Options/Item/index.js +5 -5
- package/lib/Options/Item/props.js +19 -1
- package/lib/Options/Separator/index.js +1 -1
- package/lib/Options/Separator/props.js +6 -1
- package/lib/Options/index.js +5 -5
- package/lib/Options/props.js +11 -1
- package/package.json +16 -13
- package/src/Options/Item/index.tsx +4 -2
- package/src/Options/Item/props.ts +29 -1
- package/src/Options/Separator/index.tsx +2 -1
- package/src/Options/Separator/props.ts +8 -1
- package/src/Options/index.tsx +5 -7
- package/src/Options/props.ts +15 -1
- package/tsconfig.build.json +2 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Options/Item/index.d.ts +1 -0
- package/types/Options/Item/index.d.ts.map +1 -1
- package/types/Options/Item/props.d.ts +3 -2
- package/types/Options/Item/props.d.ts.map +1 -1
- package/types/Options/Separator/index.d.ts +1 -0
- package/types/Options/Separator/index.d.ts.map +1 -1
- package/types/Options/Separator/props.d.ts +3 -2
- package/types/Options/Separator/props.d.ts.map +1 -1
- package/types/Options/index.d.ts +7 -0
- package/types/Options/index.d.ts.map +1 -1
- package/types/Options/props.d.ts +3 -2
- package/types/Options/props.d.ts.map +1 -1
|
@@ -9,6 +9,7 @@ id: Options.Item
|
|
|
9
9
|
declare class Item extends Component<OptionsItemProps> {
|
|
10
10
|
static readonly componentId = "Options.Item";
|
|
11
11
|
static allowedProps: readonly ("elementRef" | "href" | keyof import("./props").OptionsItemRenderProps | "renderBeforeLabel" | "renderAfterLabel" | "beforeLabelContentVAlign" | "afterLabelContentVAlign" | "description" | "descriptionRole" | "voiceoverRoleBugWorkaround" | "isSelected")[];
|
|
12
|
+
static propTypes: import("@instructure/shared-types").PropValidators<"elementRef" | "href" | keyof import("./props").OptionsItemRenderProps | "renderBeforeLabel" | "renderAfterLabel" | "beforeLabelContentVAlign" | "afterLabelContentVAlign" | "description" | "descriptionRole" | "voiceoverRoleBugWorkaround" | "isSelected">;
|
|
12
13
|
static defaultProps: {
|
|
13
14
|
readonly as: "span";
|
|
14
15
|
readonly variant: "default";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Options/Item/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Options/Item/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAcjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAGjE;;;;;GAKG;AACH,cAGM,IAAK,SAAQ,SAAS,CAAC,gBAAgB,CAAC;IAC5C,MAAM,CAAC,QAAQ,CAAC,WAAW,kBAAiB;IAE5C,MAAM,CAAC,YAAY,4QAAe;IAClC,MAAM,CAAC,SAAS,mTAAY;IAE5B,MAAM,CAAC,YAAY;;;;;;;;MAQT;IAEV,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAQ;gBAE3B,KAAK,EAAE,gBAAgB;IAMnC,iBAAiB;IAIjB,kBAAkB;IAIlB,aAAa,CACX,WAAW,EACP,gBAAgB,CAAC,mBAAmB,CAAC,GACrC,gBAAgB,CAAC,kBAAkB,CAAC,EACxC,cAAc,EACV,gBAAgB,CAAC,eAAe,CAAC,GACjC,gBAAgB,CAAC,cAAc,CAAC;IAoBtC,MAAM;CAqEP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AsElementType, OptionsItemTheme, OtherHTMLAttributes, Renderable } from '@instructure/shared-types';
|
|
1
|
+
import type { AsElementType, PropValidators, OptionsItemTheme, OtherHTMLAttributes, Renderable } from '@instructure/shared-types';
|
|
2
2
|
import type { WithDeterministicIdProps } from '@instructure/ui-react-utils';
|
|
3
3
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
4
4
|
type OptionsItemRenderProps = {
|
|
@@ -64,7 +64,8 @@ type PropKeys = keyof OptionsItemOwnProps;
|
|
|
64
64
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
65
65
|
type OptionsItemProps = OptionsItemOwnProps & WithStyleProps<OptionsItemTheme, OptionsItemStyle> & WithDeterministicIdProps & OtherHTMLAttributes<OptionsItemOwnProps>;
|
|
66
66
|
type OptionsItemStyle = ComponentStyle<'item' | 'container' | 'content' | 'contentBefore' | 'contentAfter' | 'description'>;
|
|
67
|
+
declare const propTypes: PropValidators<PropKeys>;
|
|
67
68
|
declare const allowedProps: AllowedPropKeys;
|
|
68
69
|
export type { OptionsItemProps, OptionsItemStyle, OptionsItemRenderProps };
|
|
69
|
-
export { allowedProps };
|
|
70
|
+
export { propTypes, allowedProps };
|
|
70
71
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -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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mB,CAAC,mBAAmB,CAAC,CAAA;AAE1C,KAAK,gBAAgB,GAAG,cAAc,CAClC,MAAM,GACN,WAAW,GACX,SAAS,GACT,eAAe,GACf,cAAc,GACd,aAAa,CAChB,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAsBvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAenB,CAAA;AAED,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,CAAA;AAC1E,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -10,6 +10,7 @@ id: Options.Separator
|
|
|
10
10
|
declare class Separator extends Component<OptionsSeparatorProps> {
|
|
11
11
|
static readonly componentId = "Options.Separator";
|
|
12
12
|
static allowedProps: readonly "as"[];
|
|
13
|
+
static propTypes: import("@instructure/shared-types").PropValidators<"as">;
|
|
13
14
|
static defaultProps: {
|
|
14
15
|
readonly as: "span";
|
|
15
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Options/Separator/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQjC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAGpD;;;;;;GAMG;AACH,cACM,SAAU,SAAQ,SAAS,CAAC,qBAAqB,CAAC;IACtD,MAAM,CAAC,QAAQ,CAAC,WAAW,uBAAsB;IAEjD,MAAM,CAAC,YAAY,kBAAe;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Options/Separator/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQjC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAGpD;;;;;;GAMG;AACH,cACM,SAAU,SAAQ,SAAS,CAAC,qBAAqB,CAAC;IACtD,MAAM,CAAC,QAAQ,CAAC,WAAW,uBAAsB;IAEjD,MAAM,CAAC,YAAY,kBAAe;IAClC,MAAM,CAAC,SAAS,2DAAY;IAE5B,MAAM,CAAC,YAAY;;MAET;IAEV,iBAAiB;IAIjB,kBAAkB;IAIlB,MAAM;CAgBP;AAED,eAAe,SAAS,CAAA;AACxB,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AsElementType, OptionsSeparatorTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
1
|
+
import type { AsElementType, PropValidators, OptionsSeparatorTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
2
2
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
3
3
|
import { AllHTMLAttributes } from 'react';
|
|
4
4
|
type OptionsSeparatorOwnProps = {
|
|
@@ -11,7 +11,8 @@ type PropKeys = keyof OptionsSeparatorOwnProps;
|
|
|
11
11
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
12
12
|
type OptionsSeparatorProps = OptionsSeparatorOwnProps & WithStyleProps<OptionsSeparatorTheme, OptionsSeparatorStyle> & OtherHTMLAttributes<OptionsSeparatorOwnProps, AllHTMLAttributes<any>>;
|
|
13
13
|
type OptionsSeparatorStyle = ComponentStyle<'separator'>;
|
|
14
|
+
declare const propTypes: PropValidators<PropKeys>;
|
|
14
15
|
declare const allowedProps: AllowedPropKeys;
|
|
15
16
|
export type { OptionsSeparatorProps, OptionsSeparatorStyle };
|
|
16
|
-
export { allowedProps };
|
|
17
|
+
export { propTypes, allowedProps };
|
|
17
18
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Options/Separator/props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Options/Separator/props.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAEzC,KAAK,wBAAwB,GAAG;IAC9B;;OAEG;IACH,EAAE,CAAC,EAAE,aAAa,CAAA;CACnB,CAAA;AAED,KAAK,QAAQ,GAAG,MAAM,wBAAwB,CAAA;AAE9C,KAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,KAAK,qBAAqB,GAAG,wBAAwB,GACnD,cAAc,CAAC,qBAAqB,EAAE,qBAAqB,CAAC,GAC5D,mBAAmB,CAAC,wBAAwB,EAAE,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAA;AAEvE,KAAK,qBAAqB,GAAG,cAAc,CAAC,WAAW,CAAC,CAAA;AAExD,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAEvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAAwB,CAAA;AAE5C,YAAY,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,CAAA;AAC5D,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
package/types/Options/index.d.ts
CHANGED
|
@@ -17,6 +17,13 @@ declare class Options extends Component<OptionsProps> {
|
|
|
17
17
|
renderLabel?: import("@instructure/shared-types").Renderable;
|
|
18
18
|
children?: React.ReactNode;
|
|
19
19
|
})[];
|
|
20
|
+
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
21
|
+
as?: import("@instructure/shared-types").AsElementType;
|
|
22
|
+
role?: string;
|
|
23
|
+
elementRef?: (element: Element | null) => void;
|
|
24
|
+
renderLabel?: import("@instructure/shared-types").Renderable;
|
|
25
|
+
children?: React.ReactNode;
|
|
26
|
+
}>;
|
|
20
27
|
static defaultProps: {
|
|
21
28
|
as: string;
|
|
22
29
|
role: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Options/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Options/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAkB7D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAE7B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAGvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAM3C,KAAK,YAAY,GAAG,gBAAgB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAA;AAG3D;;;;GAIG;AACH,cAGM,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,GAAI,IAAI,OAAO,GAAG,IAAI,UAE9B;IAED,iBAAiB;IAIjB,kBAAkB;IAGlB,QAAQ,SAA+C;IAEvD,IAAI,OAAO,qBAMV;IAED,WAAW;IAeX,aAAa,CAAC,UAAU,EAAE,YAAY;IAStC,cAAc;IAed,IAAI,cAAc,uBAUjB;IAED,MAAM;CA4BP;AAED,eAAe,OAAO,CAAA;AACtB,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
package/types/Options/props.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { AsElementType, OptionsTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
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
5
|
import { Renderable } from '@instructure/shared-types';
|
|
@@ -26,7 +26,8 @@ type PropKeys = keyof OptionsOwnProps;
|
|
|
26
26
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
27
27
|
type OptionsProps = OptionsOwnProps & WithStyleProps<OptionsTheme, OptionsStyle> & OtherHTMLAttributes<OptionsOwnProps> & WithDeterministicIdProps;
|
|
28
28
|
type OptionsStyle = ComponentStyle<'options' | 'list' | 'label'>;
|
|
29
|
+
declare const propTypes: PropValidators<PropKeys>;
|
|
29
30
|
declare const allowedProps: AllowedPropKeys;
|
|
30
31
|
export type { OptionsProps, OptionsStyle };
|
|
31
|
-
export { allowedProps };
|
|
32
|
+
export { propTypes, allowedProps };
|
|
32
33
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Options/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,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,6B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