@instructure/ui-pill 10.26.1 → 11.0.1-snapshot-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 +30 -1
- package/es/Pill/index.js +6 -6
- package/es/Pill/props.js +1 -11
- package/lib/Pill/index.js +5 -5
- package/lib/Pill/props.js +1 -12
- package/package.json +17 -19
- package/src/Pill/README.md +3 -2
- package/src/Pill/index.tsx +2 -4
- package/src/Pill/props.ts +1 -22
- package/tsconfig.build.json +0 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Pill/index.d.ts +0 -9
- package/types/Pill/index.d.ts.map +1 -1
- package/types/Pill/props.d.ts +2 -3
- package/types/Pill/props.d.ts.map +1 -1
package/types/Pill/index.d.ts
CHANGED
|
@@ -17,15 +17,6 @@ declare class Pill extends Component<PillProps, PillState> {
|
|
|
17
17
|
statusLabel?: string;
|
|
18
18
|
renderIcon?: React.ReactNode;
|
|
19
19
|
})[];
|
|
20
|
-
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
21
|
-
as?: import("@instructure/shared-types").AsElementType;
|
|
22
|
-
color?: "primary" | "success" | "danger" | "info" | "warning" | "alert";
|
|
23
|
-
elementRef?: (element: Element | null) => void;
|
|
24
|
-
margin?: import("@instructure/emotion").Spacing;
|
|
25
|
-
children: React.ReactNode;
|
|
26
|
-
statusLabel?: string;
|
|
27
|
-
renderIcon?: React.ReactNode;
|
|
28
|
-
}>;
|
|
29
20
|
static defaultProps: {
|
|
30
21
|
color: string;
|
|
31
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Pill/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Pill/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKjC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAA;AAOxE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAGnD;;;;GAIG;AACH,cACM,IAAK,SAAQ,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAChD,MAAM,CAAC,QAAQ,CAAC,WAAW,UAAS;IAEpC,MAAM,CAAC,YAAY;;;;;;;;SAAe;IAElC,MAAM,CAAC,YAAY;;MAElB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,WAAW,EAAE,WAAW,GAAG,IAAI,CAAO;gBAE1B,KAAK,EAAE,SAAS;IAQ5B,iBAAiB;IAKjB,kBAAkB;IAIlB,aAAa;IAQb,SAAS,GAAI,IAAI,OAAO,GAAG,IAAI,UAQ9B;IAED,UAAU,CACR,OAAO,CAAC,EAAE,yBAAyB,CAAC,SAAS,CAAC,EAC9C,eAAe,CAAC,EAAE,yBAAyB,CAAC,iBAAiB,CAAC;IA4DhE,MAAM;CAuBP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
package/types/Pill/props.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
3
|
-
import type {
|
|
3
|
+
import type { AsElementType, PillTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
4
4
|
type PillOwnProps = {
|
|
5
5
|
as?: AsElementType;
|
|
6
6
|
color?: 'primary' | 'success' | 'danger' | 'info' | 'warning' | 'alert';
|
|
@@ -28,11 +28,10 @@ type PropKeys = keyof PillOwnProps;
|
|
|
28
28
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
29
29
|
type PillProps = PillOwnProps & WithStyleProps<PillTheme, PillStyle> & OtherHTMLAttributes<PillOwnProps>;
|
|
30
30
|
type PillStyle = ComponentStyle<'pill' | 'text' | 'maxWidth' | 'status' | 'icon'>;
|
|
31
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
32
31
|
declare const allowedProps: AllowedPropKeys;
|
|
33
32
|
type PillState = {
|
|
34
33
|
truncated: boolean;
|
|
35
34
|
};
|
|
36
35
|
export type { PillProps, PillStyle, PillState };
|
|
37
|
-
export {
|
|
36
|
+
export { allowedProps };
|
|
38
37
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Pill/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Pill/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EACV,aAAa,EACb,SAAS,EACT,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAElC,KAAK,YAAY,GAAG;IAClB,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAA;IACvE;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IAEzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC7B,CAAA;AACD,KAAK,QAAQ,GAAG,MAAM,YAAY,CAA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