Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
36d083b
basic build config for types
Shane98c Mar 12, 2025
c56c8cb
types for layout related components
Shane98c Mar 12, 2025
348aaea
row and column typed
Shane98c Mar 12, 2025
961c550
fix react types
Shane98c Mar 13, 2025
bb6fee4
avatar, avatar-group, group types
Shane98c Mar 14, 2025
cbdea07
fix main pointer
Shane98c Mar 14, 2025
032a209
use theme-ui types
Shane98c Mar 14, 2025
8dfa9e8
update node
Shane98c Mar 14, 2025
05959f5
badge
Shane98c Mar 17, 2025
cf4b89d
blockquote
Shane98c Mar 17, 2025
fd34e7f
simplify blockquote types
Shane98c Mar 18, 2025
6e77c35
clean up badge color use type
Shane98c Mar 18, 2025
de76289
link
Shane98c Mar 18, 2025
d14b9c0
button types started
Shane98c Mar 18, 2025
eb84639
button type improvements
Shane98c Mar 19, 2025
0b63c1f
rm redundant check
Shane98c Mar 19, 2025
a9503cc
Use interface for prop type definitions
katamartin Apr 22, 2025
f231f2c
Add prop types for Tag
katamartin Apr 22, 2025
b10801c
More interface definitions
katamartin Apr 22, 2025
2e1fcca
Add more types and cleanup index
katamartin Apr 22, 2025
52c53ec
Add more types
katamartin Apr 22, 2025
1afa73c
Add types for Filter
katamartin Apr 22, 2025
9d457f9
Merge branch 'main' of https://github.com/carbonplan/components into …
Shane98c Feb 9, 2026
8254157
update deps and build
Shane98c Feb 10, 2026
863a136
fix dropped href
Shane98c Feb 10, 2026
b8ec294
update to ts-ignore for missing types
Shane98c Feb 10, 2026
49f2a29
fix any types in colorbar
Shane98c Feb 10, 2026
eb5db37
add auto width check to grid column end calculation
Shane98c Feb 10, 2026
d0dbda3
add type export to fig caption
Shane98c Feb 10, 2026
47ad948
refactor caption detection logic for TypeScript type narrowing
Shane98c Feb 10, 2026
f705240
simplify to avoid cast
Shane98c Feb 10, 2026
4ed24d4
utils to ts
Shane98c Feb 11, 2026
d2eb4c0
add more types
Shane98c Feb 11, 2026
4690787
update types and exports
Shane98c Feb 11, 2026
0e8fe08
fix loose equality and sx.color type narrowing
Shane98c Feb 11, 2026
40e2957
fix theme color type narrowing in meta
Shane98c Feb 11, 2026
e482067
get color util
Shane98c Feb 11, 2026
807c006
clean up redundant type coercions
Shane98c Feb 11, 2026
7540e48
avoid non-null assertion in get-scrollbar-width
Shane98c Feb 11, 2026
4143551
optional colorbar props
Shane98c Feb 11, 2026
c2ad4ec
optional props
Shane98c Feb 11, 2026
45815dc
simplify build and add typecheck script
Shane98c Feb 11, 2026
95e3252
add typecheck to ci
Shane98c Feb 11, 2026
2ea28e4
add typecheck to pre commit
Shane98c Feb 11, 2026
5fecbcc
rm js from tsconfig
Shane98c Feb 11, 2026
788fad6
switch to ambient and clean up ts-ignore
Shane98c Feb 11, 2026
d99a047
derive style prop types from theme-ui definitions more directly
Shane98c Feb 11, 2026
3b3c40a
fix button type guard for function components and refactor size config
Shane98c Feb 11, 2026
90b68b4
fix colorbar type issues
Shane98c Feb 11, 2026
9c9de92
add forwardRef type params, make href optional, and fix guard for und…
Shane98c Feb 11, 2026
82cfc0c
keep prop flexibility in callout
Shane98c Feb 11, 2026
531f4d7
narrow group and figure interfaces to actual props used and remove un…
Shane98c Feb 11, 2026
78ed523
fix format
Shane98c Feb 11, 2026
9bf7541
remove cast in layout and add onclick to settings props
Shane98c Feb 11, 2026
0739cc1
clean up unneeded type in blockquote
Shane98c Feb 11, 2026
69bac7f
fix optional props in expander and narrow tag value type
Shane98c Feb 11, 2026
28c12cb
guard against empty colormap in gradient component
Shane98c Feb 11, 2026
0475a7a
preserve js null behavior in header
Shane98c Feb 11, 2026
2d16277
skip typecheck in CI lint (covered by typecheck job)
Shane98c Feb 11, 2026
5bec358
add isolatedModules and split type re-exports in barrel
Shane98c Feb 11, 2026
2620a4f
allow null for prefix and suffix
Shane98c Feb 11, 2026
52be3fb
use getSxColor util in button
Shane98c Feb 11, 2026
89037d7
cleanup unused
Shane98c Feb 11, 2026
6a1c334
remove duplicate lint CI job, let pre-commit.ci handle formatting
Shane98c Feb 11, 2026
2bab6ae
rm unused
Shane98c Feb 11, 2026
46d6cc1
rm cast
Shane98c Feb 11, 2026
a8aba44
switch to tsup for faster builds
Shane98c Feb 12, 2026
c60a02e
extend native element attributes, remove redundant prop declarations
Shane98c Feb 12, 2026
9bf7bde
fix button hover regression
Shane98c Feb 13, 2026
98d70bf
tag label optional to match og js
Shane98c Feb 13, 2026
9c4db56
match js button hover color logic exactly
Shane98c Feb 13, 2026
732b887
stricter checks for unused
Shane98c Feb 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,20 @@ name: CI
on: [push, pull_request]

jobs:
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 22.x
uses: actions/setup-node@v2.5.1
with:
node-version: 22.x
- run: npm install
- run: npm run typecheck

build:
runs-on: ubuntu-latest
needs: typecheck

strategy:
matrix:
Expand All @@ -18,10 +30,3 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build --if-present

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2.3.1
- uses: pre-commit/action@v3.0.1
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ci:
skip: [typecheck]
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: 'v2.5.1'
Expand Down Expand Up @@ -31,3 +33,10 @@ repos:
|md|markdown|mdown|mkdn\
|mdx\
)$"
- repo: local
hooks:
- id: typecheck
name: typecheck
entry: npm run typecheck
language: system
pass_filenames: false
Loading