Skip to content

Commit 53df8c5

Browse files
committed
chore: clean ts errors in ui
1 parent 1471ebc commit 53df8c5

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

packages/ui/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ We're looking for maintainers and contributors!
3030
- [ ] Make sure all native Web Components are properly working
3131
- [x] Demo all components
3232
- [x] Add all missing events
33-
- [ ] Add theming (design tokens) through Tailwind (i.e. remove all ts-ignores)
33+
- [ ] [Need help] Add theming (design tokens) through Tailwind (i.e. remove all ts-ignores) (https://github.com/grayhatdevelopers/material-web-components-react/pull/2)
3434
- [x] Resolve SSR/SSG issues, make compatible with NextJS (i.e. remove all dynamic imports)
3535
- [x] Separate the demo from the actual UI code
3636
- [x] Make installable as a package.
37-
- [ ] Make installable as code-in-project, like shadcn/ui, so developers have more control
38-
- [ ] Add better TypeScript support
37+
- [ ] [Need help] Make installable as code-in-project, like shadcn/ui, so developers have more control (https://github.com/grayhatdevelopers/material-web-components-react/pull/11)
38+
- [ ] [Need help] Add better TypeScript support (https://github.com/grayhatdevelopers/material-web-components-react/issues/12)
3939
- [ ] Sync with upstream (i.e. https://github.com/material-components/material-web/blob/main/docs/intro.md) through webhooks and automations
4040
- [ ] Use [Copybara](https://github.com/google/copybara) (or good ol' GitHub webhooks) to automate syncing with upstream
4141
- [ ] Use [lit-analyzer](https://www.npmjs.com/package/lit-analyzer) to see which Web Components changed. Perhaps mix with an LLM to compare existing and newly autogenerated code.

packages/ui/src/app-bar/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useEffect, useRef, useState } from "react";
22
import { twMerge } from "tailwind-merge";
3-
import { findSlotProp, removeSlotProps } from "../utils";
3+
import { findSlotProp, removeSlotProps } from "../utils/index.js";
44

55
const AppBar = ({
66
className,

packages/ui/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"compilerOptions": {
44
"outDir": "dist"
55
},
6-
"include": ["**/*"],
6+
"include": ["**/*", "*.cjs"],
77
"exclude": ["node_modules", "dist"]
88
}

packages/ui/tsconfig.lint.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"compilerOptions": {
44
"outDir": "dist"
55
},
6-
"include": ["src", "turbo", "./*.ts"],
6+
"include": ["src", "turbo", "**/*.ts*", "*.cjs"],
77
"exclude": ["node_modules", "dist"]
88
}

packages/ui/tsup.config.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
import glob from "tiny-glob";
22
import { defineConfig } from "tsup";
3-
import tailwind from "tailwindcss";
4-
import autoprefixer from "autoprefixer";
53

64
export default defineConfig(async (options) => ({
5+
clean: true,
76
entry: await glob("./src/**/!(*.d|*.spec).tsx"),
87
splitting: true,
98
target: "es5",
109
format: "esm",
1110
// dts: true,
1211
treeshake: true,
1312
bundle: true,
13+
// sourcemap: true,
1414
outDir: "./dist",
1515
minify: !options.watch,
16-
plugins: [tailwind(), autoprefixer()],
1716
}));

0 commit comments

Comments
 (0)