@instructure/ui-pages 8.9.2-snapshot.1 → 8.9.2-snapshot.12
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/package.json +16 -16
- package/src/Pages/props.ts +10 -4
- package/src/Pages/styles.ts +3 -2
- package/types/Pages/props.d.ts +5 -4
- package/types/Pages/props.d.ts.map +1 -1
- package/types/Pages/styles.d.ts +3 -11
- package/types/Pages/styles.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-pages",
|
|
3
|
-
"version": "8.9.2-snapshot.
|
|
3
|
+
"version": "8.9.2-snapshot.12+6231ada93",
|
|
4
4
|
"description": "A UI component library made by Instructure Inc.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -24,23 +24,23 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@instructure/ui-babel-preset": "8.9.2-snapshot.
|
|
28
|
-
"@instructure/ui-color-utils": "8.9.2-snapshot.
|
|
29
|
-
"@instructure/ui-test-utils": "8.9.2-snapshot.
|
|
30
|
-
"@instructure/ui-themes": "8.9.2-snapshot.
|
|
27
|
+
"@instructure/ui-babel-preset": "8.9.2-snapshot.12+6231ada93",
|
|
28
|
+
"@instructure/ui-color-utils": "8.9.2-snapshot.12+6231ada93",
|
|
29
|
+
"@instructure/ui-test-utils": "8.9.2-snapshot.12+6231ada93",
|
|
30
|
+
"@instructure/ui-themes": "8.9.2-snapshot.12+6231ada93"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.13.10",
|
|
34
|
-
"@instructure/console": "8.9.2-snapshot.
|
|
35
|
-
"@instructure/emotion": "8.9.2-snapshot.
|
|
36
|
-
"@instructure/shared-types": "8.9.2-snapshot.
|
|
37
|
-
"@instructure/ui-a11y-utils": "8.9.2-snapshot.
|
|
38
|
-
"@instructure/ui-dom-utils": "8.9.2-snapshot.
|
|
39
|
-
"@instructure/ui-prop-types": "8.9.2-snapshot.
|
|
40
|
-
"@instructure/ui-react-utils": "8.9.2-snapshot.
|
|
41
|
-
"@instructure/ui-utils": "8.9.2-snapshot.
|
|
42
|
-
"@instructure/ui-view": "8.9.2-snapshot.
|
|
43
|
-
"@instructure/uid": "8.9.2-snapshot.
|
|
34
|
+
"@instructure/console": "8.9.2-snapshot.12+6231ada93",
|
|
35
|
+
"@instructure/emotion": "8.9.2-snapshot.12+6231ada93",
|
|
36
|
+
"@instructure/shared-types": "8.9.2-snapshot.12+6231ada93",
|
|
37
|
+
"@instructure/ui-a11y-utils": "8.9.2-snapshot.12+6231ada93",
|
|
38
|
+
"@instructure/ui-dom-utils": "8.9.2-snapshot.12+6231ada93",
|
|
39
|
+
"@instructure/ui-prop-types": "8.9.2-snapshot.12+6231ada93",
|
|
40
|
+
"@instructure/ui-react-utils": "8.9.2-snapshot.12+6231ada93",
|
|
41
|
+
"@instructure/ui-utils": "8.9.2-snapshot.12+6231ada93",
|
|
42
|
+
"@instructure/ui-view": "8.9.2-snapshot.12+6231ada93",
|
|
43
|
+
"@instructure/uid": "8.9.2-snapshot.12+6231ada93",
|
|
44
44
|
"prop-types": "^15"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"sideEffects": false,
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "6231ada93bd4299d640b5d39d7e44b0f54852b2a"
|
|
54
54
|
}
|
package/src/Pages/props.ts
CHANGED
|
@@ -29,8 +29,12 @@ import { ThemeablePropTypes } from '@instructure/emotion'
|
|
|
29
29
|
|
|
30
30
|
import { Page } from './Page'
|
|
31
31
|
|
|
32
|
-
import type {
|
|
33
|
-
|
|
32
|
+
import type {
|
|
33
|
+
Spacing,
|
|
34
|
+
WithStyleProps,
|
|
35
|
+
ComponentStyle
|
|
36
|
+
} from '@instructure/emotion'
|
|
37
|
+
import type { PropValidators, PagesTheme } from '@instructure/shared-types'
|
|
34
38
|
|
|
35
39
|
type PagesOwnProps = {
|
|
36
40
|
defaultPageIndex?: number
|
|
@@ -44,7 +48,9 @@ type PropKeys = keyof PagesOwnProps
|
|
|
44
48
|
|
|
45
49
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
46
50
|
|
|
47
|
-
type PagesProps = PagesOwnProps & WithStyleProps
|
|
51
|
+
type PagesProps = PagesOwnProps & WithStyleProps<PagesTheme, PagesStyle>
|
|
52
|
+
|
|
53
|
+
type PagesStyle = ComponentStyle<'pages'>
|
|
48
54
|
|
|
49
55
|
const propTypes: PropValidators<PropKeys> = {
|
|
50
56
|
children: Children.oneOf([Page]),
|
|
@@ -81,5 +87,5 @@ const allowedProps: AllowedPropKeys = [
|
|
|
81
87
|
'margin'
|
|
82
88
|
]
|
|
83
89
|
|
|
84
|
-
export type { PagesProps }
|
|
90
|
+
export type { PagesProps, PagesStyle }
|
|
85
91
|
export { propTypes, allowedProps }
|
package/src/Pages/styles.ts
CHANGED
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import { PagesTheme } from '@instructure/shared-types'
|
|
25
|
+
import type { PagesTheme } from '@instructure/shared-types'
|
|
26
|
+
import type { PagesStyle } from './props'
|
|
26
27
|
|
|
27
28
|
/**
|
|
28
29
|
* ---
|
|
@@ -34,7 +35,7 @@ import { PagesTheme } from '@instructure/shared-types'
|
|
|
34
35
|
* @param {Object} state the state of the component, the style is applied to
|
|
35
36
|
* @return {Object} The final style object, which will be used in the component
|
|
36
37
|
*/
|
|
37
|
-
const generateStyle = (componentTheme: PagesTheme) => {
|
|
38
|
+
const generateStyle = (componentTheme: PagesTheme): PagesStyle => {
|
|
38
39
|
return {
|
|
39
40
|
pages: {
|
|
40
41
|
fontSize: componentTheme.fontSize,
|
package/types/Pages/props.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { Spacing, WithStyleProps } from '@instructure/emotion';
|
|
3
|
-
import type { PropValidators } from '@instructure/shared-types';
|
|
2
|
+
import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
3
|
+
import type { PropValidators, PagesTheme } from '@instructure/shared-types';
|
|
4
4
|
declare type PagesOwnProps = {
|
|
5
5
|
defaultPageIndex?: number;
|
|
6
6
|
activePageIndex?: any;
|
|
@@ -10,9 +10,10 @@ declare type PagesOwnProps = {
|
|
|
10
10
|
};
|
|
11
11
|
declare type PropKeys = keyof PagesOwnProps;
|
|
12
12
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
13
|
-
declare type PagesProps = PagesOwnProps & WithStyleProps
|
|
13
|
+
declare type PagesProps = PagesOwnProps & WithStyleProps<PagesTheme, PagesStyle>;
|
|
14
|
+
declare type PagesStyle = ComponentStyle<'pages'>;
|
|
14
15
|
declare const propTypes: PropValidators<PropKeys>;
|
|
15
16
|
declare const allowedProps: AllowedPropKeys;
|
|
16
|
-
export type { PagesProps };
|
|
17
|
+
export type { PagesProps, PagesStyle };
|
|
17
18
|
export { propTypes, allowedProps };
|
|
18
19
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Pages/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Pages/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAE3E,aAAK,aAAa,GAAG;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,eAAe,CAAC,EAAE,GAAG,CAAA;IACrB,iBAAiB,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IAC3C,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,aAAa,CAAA;AAEnC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,UAAU,GAAG,aAAa,GAAG,cAAc,CAAC,UAAU,EAAE,UAAU,CAAC,CAAA;AAExE,aAAK,UAAU,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA;AAEzC,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAyBvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAMnB,CAAA;AAED,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
package/types/Pages/styles.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { PagesTheme } from '@instructure/shared-types';
|
|
1
|
+
import type { PagesTheme } from '@instructure/shared-types';
|
|
2
|
+
import type { PagesStyle } from './props';
|
|
2
3
|
/**
|
|
3
4
|
* ---
|
|
4
5
|
* private: true
|
|
@@ -9,15 +10,6 @@ import { PagesTheme } from '@instructure/shared-types';
|
|
|
9
10
|
* @param {Object} state the state of the component, the style is applied to
|
|
10
11
|
* @return {Object} The final style object, which will be used in the component
|
|
11
12
|
*/
|
|
12
|
-
declare const generateStyle: (componentTheme: PagesTheme) =>
|
|
13
|
-
pages: {
|
|
14
|
-
fontSize: string | 0;
|
|
15
|
-
fontFamily: string;
|
|
16
|
-
fontWeight: number;
|
|
17
|
-
color: string;
|
|
18
|
-
background: string;
|
|
19
|
-
display: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
13
|
+
declare const generateStyle: (componentTheme: PagesTheme) => PagesStyle;
|
|
22
14
|
export default generateStyle;
|
|
23
15
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/Pages/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/Pages/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBAAoB,UAAU,KAAG,UAWnD,CAAA;AAED,eAAe,aAAa,CAAA"}
|