@instructure/ui-options 10.26.1 → 11.0.0
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 +23 -2
- package/es/Options/Item/index.js +6 -6
- package/es/Options/Item/props.js +1 -18
- package/es/Options/Separator/index.js +2 -2
- package/es/Options/Separator/props.js +2 -5
- package/es/Options/index.js +6 -6
- package/es/Options/props.js +1 -10
- package/lib/Options/Item/index.js +5 -5
- package/lib/Options/Item/props.js +1 -19
- package/lib/Options/Separator/index.js +1 -1
- package/lib/Options/Separator/props.js +1 -6
- package/lib/Options/index.js +5 -5
- package/lib/Options/props.js +1 -11
- package/package.json +13 -16
- package/src/Options/Item/index.tsx +2 -4
- package/src/Options/Item/props.ts +1 -29
- package/src/Options/Separator/index.tsx +1 -2
- package/src/Options/Separator/props.ts +1 -8
- package/src/Options/index.tsx +7 -5
- package/src/Options/props.ts +1 -15
- package/tsconfig.build.json +0 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Options/Item/index.d.ts +0 -1
- package/types/Options/Item/index.d.ts.map +1 -1
- package/types/Options/Item/props.d.ts +2 -3
- package/types/Options/Item/props.d.ts.map +1 -1
- package/types/Options/Separator/index.d.ts +0 -1
- package/types/Options/Separator/index.d.ts.map +1 -1
- package/types/Options/Separator/props.d.ts +2 -3
- package/types/Options/Separator/props.d.ts.map +1 -1
- package/types/Options/index.d.ts +0 -7
- package/types/Options/index.d.ts.map +1 -1
- package/types/Options/props.d.ts +2 -3
- package/types/Options/props.d.ts.map +1 -1
|
@@ -9,7 +9,6 @@ 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">;
|
|
13
12
|
static defaultProps: {
|
|
14
13
|
readonly as: "span";
|
|
15
14
|
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;AAajC,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAGjE;;;;;GAKG;AACH,cAEM,IAAK,SAAQ,SAAS,CAAC,gBAAgB,CAAC;IAC5C,MAAM,CAAC,QAAQ,CAAC,WAAW,kBAAiB;IAE5C,MAAM,CAAC,YAAY,4QAAe;IAElC,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;CAsEP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AsElementType,
|
|
1
|
+
import type { AsElementType, 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,8 +64,7 @@ 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>;
|
|
68
67
|
declare const allowedProps: AllowedPropKeys;
|
|
69
68
|
export type { OptionsItemProps, OptionsItemStyle, OptionsItemRenderProps };
|
|
70
|
-
export {
|
|
69
|
+
export { allowedProps };
|
|
71
70
|
//# 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":"AAwBA,OAAO,KAAK,EACV,aAAa,EACb,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,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,CAAC,EAAE,UAAU,CAAA;IACrB;;OAEG;I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ACd,aAAa,CAChB,CAAA;AACD,QAAA,MAAM,YAAY,EAAE,eAenB,CAAA;AAED,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,CAAA;AAC1E,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -10,7 +10,6 @@ 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">;
|
|
14
13
|
static defaultProps: {
|
|
15
14
|
readonly as: "span";
|
|
16
15
|
};
|
|
@@ -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;IAElC,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,
|
|
1
|
+
import type { AsElementType, 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,8 +11,7 @@ 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>;
|
|
15
14
|
declare const allowedProps: AllowedPropKeys;
|
|
16
15
|
export type { OptionsSeparatorProps, OptionsSeparatorStyle };
|
|
17
|
-
export {
|
|
16
|
+
export { allowedProps };
|
|
18
17
|
//# 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":"AAwBA,OAAO,KAAK,EACV,aAAa,EACb,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;AACxD,QAAA,MAAM,YAAY,EAAE,eAAwB,CAAA;AAE5C,YAAY,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
package/types/Options/index.d.ts
CHANGED
|
@@ -17,13 +17,6 @@ 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
|
-
}>;
|
|
27
20
|
static defaultProps: {
|
|
28
21
|
as: string;
|
|
29
22
|
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;AAiB7D,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,cAEM,OAAQ,SAAQ,SAAS,CAAC,YAAY,CAAC;IAC3C,MAAM,CAAC,QAAQ,CAAC,WAAW,aAAY;IAEvC,MAAM,CAAC,YAAY;;;;;;SAAe;IAElC,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;CAiCP;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,
|
|
2
|
+
import type { AsElementType, 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,8 +26,7 @@ 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>;
|
|
30
29
|
declare const allowedProps: AllowedPropKeys;
|
|
31
30
|
export type { OptionsProps, OptionsStyle };
|
|
32
|
-
export {
|
|
31
|
+
export { allowedProps };
|
|
33
32
|
//# 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;AACzB,OAAO,KAAK,EACV,aAAa,EACb,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,KAAK,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;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,CAAA;IAIxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,KAAK,QAAQ,GAAG,MAAM,eAAe,CAAA;AAErC,KAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,KAAK,YAAY,GAAG,eAAe,GACjC,cAAc,CAAC,YAAY,EAAE,YAAY,CAAC,GAC1C,mBAAmB,CAAC,eAAe,CAAC,GACpC,wBAAwB,CAAA;AAE1B,KAAK,YAAY,GAAG,cAAc,CAAC,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,CAAA;AAChE,QAAA,MAAM,YAAY,EAAE,eAMnB,CAAA;AAED,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,CAAA"}
|