Skip to content

Commit 9637bcd

Browse files
authored
Merge pull request #917 from ivoreis/feat/typescript-sidenav
feat(sidenav): update sidenav to typescript
2 parents 9e822f1 + ca9f74b commit 9637bcd

File tree

7 files changed

+219
-140
lines changed

7 files changed

+219
-140
lines changed

packages/css/src/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ interface CSSOthersObjectForCSSObject {
5050
/**
5151
* Map all nested selectors
5252
*/
53-
interface CSSSelectorObject {
53+
export interface CSSSelectorObject {
5454
[cssSelector: string]: SystemStyleObject
5555
}
5656

@@ -411,7 +411,7 @@ interface OverwriteCSSProperties {
411411
* @see https://developer.mozilla.org/docs/Web/CSS/border-radius
412412
*/
413413
borderRadius?: CSS.BorderRadiusProperty<string | number>
414-
414+
415415
/**
416416
* The **`z-index`** CSS property sets the z-order of a positioned element and its descendants or flex items. Overlapping elements with a larger z-index cover those with a smaller one.
417417
*
@@ -443,7 +443,7 @@ export type SystemCssProperties = {
443443
| SystemStyleObject
444444
}
445445

446-
interface VariantProperty {
446+
export interface VariantProperty {
447447
/**
448448
* **`Variants`** can be useful for applying complex styles to a component based on a single prop.
449449
*

packages/sidenav/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"version": "0.4.0-alpha.1",
44
"main": "dist/index.js",
55
"module": "dist/index.esm.js",
6+
"types": "dist/index.d.ts",
7+
"sideEffects": false,
68
"license": "MIT",
79
"scripts": {
810
"prepare": "microbundle --no-compress",
@@ -16,7 +18,8 @@
1618
"@mdx-js/react": "^1.0.21",
1719
"deepmerge": "^4.0.0",
1820
"react": "^16.8.6",
19-
"theme-ui": "^0.4.0-alpha.1"
21+
"theme-ui": "^0.4.0-alpha.1",
22+
"@types/mdx-js__react": "^1.5.1"
2023
},
2124
"keywords": [
2225
"theme-ui",

0 commit comments

Comments
 (0)