Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
297 commits
Select commit Hold shift + click to select a range
641ca6b
chore: 🤖 temporary custom resolve tsconfig path
punkbit Jan 23, 2026
0f1082d
refactor: 💡 export from correct theme boundary
punkbit Jan 23, 2026
219b6ae
chore: 🤖 node externals in vite, remove alias
punkbit Jan 23, 2026
ae52a23
chore: 🤖 use relative paths
punkbit Jan 23, 2026
777ca23
chore: 🤖 use externalize deps
punkbit Jan 23, 2026
9f48675
Merge branch 'main' into perf/distribute-esm-unbundled
punkbit Jan 23, 2026
652552b
chore: 🤖 for ESM compatibility, tweak/handle CJS components
punkbit Jan 23, 2026
4487fcb
chore: revert ts alias rewrite to relative
punkbit Jan 23, 2026
95830e0
chore: lint do not allow barrel imports
punkbit Jan 23, 2026
b0bfea5
chore: remove excludes from tsconfig
punkbit Jan 23, 2026
e17a4ec
chore: set vite settings to preserve file struct in output
punkbit Jan 23, 2026
51a8c5b
fix: solve import cycles
punkbit Jan 23, 2026
3a50adf
fix: solve import cycles in stories
punkbit Jan 23, 2026
3c0f773
fix: build amends
punkbit Jan 23, 2026
677d314
fix: add .js extension
punkbit Jan 23, 2026
b80a63b
chore: analyze and visualise bundle
punkbit Jan 23, 2026
56099bb
chore: split ESM, CJS distribution
punkbit Jan 23, 2026
e76a47d
Merge branch 'main' into chore/distribution-unbundled
punkbit Jan 26, 2026
ac9c7c8
Merge branch 'main' into chore/distribution-unbundled
punkbit Jan 26, 2026
2f0b0f3
chore: format
punkbit Jan 26, 2026
3dd00a2
fix: 🐛 lint code block
punkbit Jan 26, 2026
a2ffec6
fix: 🐛 import Separator
punkbit Jan 26, 2026
d54269a
chore: format
punkbit Jan 26, 2026
ee433d9
fix: 🐛 import Separator
punkbit Jan 26, 2026
4edae27
chore: 🤖 add changeset
punkbit Jan 26, 2026
8a820d8
chore: merge main
punkbit Jan 29, 2026
ecbbc8b
chore: 🤖 use 0.0.251-rc.62
punkbit Jan 29, 2026
578471e
chore: 🤖 resolve conflict resolution, deleted files which were remove…
punkbit Jan 29, 2026
32cfad1
chore: 🤖 resolve conflict resolution, middle truncator
punkbit Jan 29, 2026
777aee5
chore: 🤖 resolve conflict resolution, missing container changes
punkbit Jan 29, 2026
e163516
refactor: 💡 FileMultiUpload to follow FileUpload due to middle truncator
punkbit Jan 29, 2026
38a68b1
fix: 🐛 prevent icon success pushed right
punkbit Jan 29, 2026
447491c
Merge branch 'fix/middle-truncator-icon-success-upload-val-position' …
punkbit Jan 29, 2026
b0fafa5
fix: 🐛 remove file size from multiple file upload
punkbit Jan 29, 2026
c682e36
Merge branch 'main' into chore/distribution-unbundled
punkbit Feb 2, 2026
ad93bef
Merge branch 'main' into chore/distribution-unbundled
punkbit Feb 2, 2026
332649d
chore: 🤖 merge conflict amend for ButtonGroup
punkbit Feb 2, 2026
c13bcd7
chore: 🤖 remove comment
punkbit Feb 2, 2026
a8c8db4
refactor: 💡 reduce import path redundancy (WIP, pt1)
punkbit Feb 2, 2026
9c13175
refactor: 💡 accordion as index
punkbit Feb 2, 2026
0d9b045
refactor: 💡 rename component by directory name to index
punkbit Feb 2, 2026
b2ee6e4
refactor: 💡 update import statements to prefer index
punkbit Feb 2, 2026
439d12b
chore: 🤖 remove old indexes (this was a failed attempt, which importe…
punkbit Feb 2, 2026
7ab0652
fix: 🐛 import statements
punkbit Feb 2, 2026
e0cba91
fix: 🐛 import statements
punkbit Feb 2, 2026
f9dfadd
fix: 🐛 import statements
punkbit Feb 2, 2026
7c323c6
fix: 🐛 icon names in types
punkbit Feb 2, 2026
6a3d7f4
chore: 🤖 add note
punkbit Feb 2, 2026
6d759b6
chore: 🤖 format
punkbit Feb 2, 2026
4105497
fix: 🐛 icon names location
punkbit Feb 2, 2026
3104380
fix: 🐛 icon names location
punkbit Feb 2, 2026
a0316ba
chore: 🤖 update changeset
punkbit Feb 2, 2026
9dd1f85
refactor: 💡 use component level barrel, to allow devs see component n…
punkbit Feb 2, 2026
150fe10
fix: 🐛 import statements
punkbit Feb 2, 2026
0da025f
chore: 🤖 add eslint to prevent imports from index and request use of …
punkbit Feb 2, 2026
2edec36
Merge branch 'main' into chore/distribution-unbundled
punkbit Feb 2, 2026
cee7b6b
Merge branch 'main' into chore/distribution-unbundled
punkbit Feb 3, 2026
abc152e
Merge branch 'chore/distribution-unbundled' into refactor/component-p…
punkbit Feb 3, 2026
af4e441
fix: 🐛 merge main conflict resolution
punkbit Feb 16, 2026
00ee734
fix: 🐛 dayjs version
punkbit Feb 16, 2026
beeae4f
fix: 🐛 merge from main,m incorrectly changed
punkbit Feb 16, 2026
8477295
chore: 🤖 prepare merge main
punkbit Feb 20, 2026
52e7c18
Merge branch 'main' into refactor/component-path-redundancy
punkbit Feb 20, 2026
7def5d8
fix: 🐛 merge conflicts
punkbit Feb 20, 2026
2be183c
refactor: 💡 further paths pass
punkbit Feb 20, 2026
16a4d5f
chore: 🤖 add note
punkbit Feb 20, 2026
b4ae1dc
chore: 🤖 format
punkbit Feb 20, 2026
329401f
refactor: 💡 further paths pass for AutoComplete
punkbit Feb 20, 2026
1c24c0d
fix: 🐛 merge conflict
punkbit Feb 20, 2026
332dd11
refactor: 💡 further paths pass for Collapsible
punkbit Feb 20, 2026
5b77caa
chore: 🤖 init changeset
punkbit Feb 20, 2026
9b51373
fix: 🐛 merge conflict
punkbit Feb 20, 2026
4e81c0c
Merge branch 'refactor/component-path-redundancy' into refactor/modul…
punkbit Feb 20, 2026
eeabb54
fix: 🐛 file extension
punkbit Feb 20, 2026
50195e1
fix: 🐛 file extension
punkbit Feb 20, 2026
19a2dd6
refactor: 💡 init GenericMenu structure
punkbit Feb 20, 2026
2b268d7
chore: 🤖 add generic menu test
punkbit Feb 20, 2026
4ebdecc
chore: 🤖 add generic menu story
punkbit Feb 20, 2026
abd0362
refactor: 💡 make components/Common to avoid loose files
punkbit Feb 20, 2026
2d4d8d4
refactor: 💡 move types
punkbit Feb 20, 2026
5fe875d
refactor: 💡 update path changes for common components
punkbit Feb 20, 2026
384907d
refactor: 💡 add Text index/exports
punkbit Feb 20, 2026
56bcf5a
refactor: 💡 first pass, move types to *.types.ts
punkbit Feb 20, 2026
cb3cb6a
refactor: 💡 second pass, move types to *.types.ts
punkbit Feb 20, 2026
99b1dd8
refactor: 💡 third pass, move types to *.types.ts
punkbit Feb 20, 2026
eb1e4d0
refactor: 💡 forth pass, move types to *.types.ts
punkbit Feb 20, 2026
0e1160a
refactor: 💡 fifth pass, move types to *.types.ts
punkbit Feb 20, 2026
cb39cab
refactor: 💡 export size color
punkbit Feb 20, 2026
61e3c21
refactor: 💡 move types for Avatar
punkbit Feb 20, 2026
d087a98
fix: 🐛 imports
punkbit Feb 20, 2026
a9b0dc5
fix: 🐛 types
punkbit Feb 20, 2026
f64864e
fix: 🐛 linter
punkbit Feb 20, 2026
9cbe820
fix: 🐛 test
punkbit Feb 20, 2026
7ac1cc7
chore: 🤖 add hmr benchmark
punkbit Feb 23, 2026
9c0715e
chore: 🤖 make component build name index to remove redundancy
punkbit Feb 23, 2026
9100a4e
chore: 🤖 generate exports, e.g. expose direct component imports and i…
punkbit Feb 23, 2026
f4308ad
perf: ⚡ benchmark hmr deep nested components
punkbit Feb 23, 2026
3398bc2
chore: 🤖 link @clickhouse/click-ui to itself, required for benchmark
punkbit Feb 23, 2026
fabed86
perf: ⚡ generate component exports, e.g. speedy component and type ac…
punkbit Feb 23, 2026
b18ce79
refactor: 💡 remove unused re-export files
punkbit Feb 23, 2026
3fdfbdb
chore: 🤖 update changeset
punkbit Feb 23, 2026
cf8aa56
chore: 🤖 remove comments
punkbit Feb 23, 2026
4c4f304
Merge branch 'refactor/component-path-redundancy' into refactor/modul…
punkbit Feb 23, 2026
a195c9e
fix: 🐛 TIAS circular dependencies, first 60
punkbit Feb 23, 2026
e1261e8
refactor: 💡 make commons their own components
punkbit Feb 23, 2026
0a80393
refactor: 💡 split common components
punkbit Feb 23, 2026
d76eed5
refactor: 💡 common components (styled components) exports
punkbit Feb 23, 2026
22adc5a
refactor: 💡 types in src/components/types
punkbit Feb 23, 2026
c274dc8
refactor: 💡 reconsile types
punkbit Feb 23, 2026
55f4c8a
refactor: 💡 exports order
punkbit Feb 23, 2026
e8e5839
chore: 🤖 update exports
punkbit Feb 23, 2026
f919a14
refactor: 💡 logo props
punkbit Feb 23, 2026
285845c
refactor: 💡 IconSize is an Icon type
punkbit Feb 23, 2026
450901c
refactor: 💡 rename icon types file
punkbit Feb 23, 2026
7f7c4ca
refactor: 💡 rename icon type import
punkbit Feb 23, 2026
fb2bc41
refactor: 💡 move common icon SVG props
punkbit Feb 23, 2026
955e7a7
refactor: 💡 move common icon SVG element to icons
punkbit Feb 23, 2026
913a867
refactor: 💡 prefix types with type
punkbit Feb 23, 2026
63b4b34
chore: 🤖 format
punkbit Feb 23, 2026
bf681fb
fix: 🐛 redundancy in exports pathnames
punkbit Feb 23, 2026
5cd3c50
refactor: 💡 text types in typography
punkbit Feb 23, 2026
920e528
refactor: 💡 cursor options type in panel
punkbit Feb 23, 2026
708157a
refactor: 💡 common types
punkbit Feb 23, 2026
76dd030
chore: 🤖 add changeset
punkbit Feb 23, 2026
1e1ee14
refactor: 💡 shared svg props
punkbit Feb 23, 2026
376cb97
refactor: 💡 use shared types
punkbit Feb 23, 2026
3e20499
refactor: 💡 remove re-export, prefer shared
punkbit Feb 23, 2026
dd6e14a
refactor: 💡 shared types
punkbit Feb 23, 2026
f086c43
refactor: 💡 rename icon size as shared asset size
punkbit Feb 23, 2026
6c8d24f
Merge branch 'main' into refactor/component-path-redundancy
punkbit Feb 23, 2026
75c2685
Merge branch 'main' into refactor/modular-file-architecture
punkbit Feb 24, 2026
4a21a1a
chore: 🤖 merge conflict
punkbit Feb 24, 2026
500aa15
fix: 🐛 resole theme conflicts
punkbit Feb 24, 2026
4d5da8f
fix: 🐛 resolve theme types
punkbit Feb 24, 2026
f2a863f
refactor: 💡 theme
punkbit Feb 24, 2026
3389991
Merge branch 'main' into refactor/component-path-redundancy
punkbit Feb 24, 2026
43f7247
Merge branch 'refactor/component-path-redundancy' into refactor/modul…
punkbit Feb 24, 2026
7ebf6b2
fix: 🐛 resolve merge conflicts due to circular deps
punkbit Feb 24, 2026
a1d22ad
refactor: 💡 theme
punkbit Feb 24, 2026
ca7988b
refactor: 💡 remove hard typed theme
punkbit Feb 24, 2026
c4599fe
chore: 🤖 merge base refactor/modular-file-architecture
punkbit Feb 24, 2026
0138807
refactor: 💡 make theme and click ui provider as providers
punkbit Feb 24, 2026
0271d2b
refactor: 💡 export ClickUIProvider as named export
punkbit Feb 24, 2026
8c4638c
refactor: 💡 src/theme
punkbit Feb 24, 2026
d690af4
refactor: 💡 theme files now follow the namespace pattern:
punkbit Feb 24, 2026
312c7f2
refactor: 💡 remove theme index
punkbit Feb 24, 2026
af25897
refactor: 💡 remove src/components/index.ts, prefer main src/index.ts …
punkbit Feb 24, 2026
2eca516
refactor: 💡 prefer alias for internal inter component imports
punkbit Feb 24, 2026
27db0c5
refactor: 💡 main exports api
punkbit Feb 24, 2026
6a9dedd
refactor: 💡 storybook
punkbit Feb 24, 2026
f9a2690
refactor: 💡 storybook
punkbit Feb 24, 2026
9a41224
chore: 🤖 remove comment
punkbit Feb 24, 2026
3424bc4
refactor: 💡 use typescript api to get list of components from source …
punkbit Feb 25, 2026
88458ea
chore: 🤖 update exports list
punkbit Feb 25, 2026
ec11633
docs: 📝 public api exports management
punkbit Feb 25, 2026
5bdd4a0
chore: 🤖 add generate-exports generated component exports summary
punkbit Feb 25, 2026
d7e0824
chore: 🤖 add generate-exports script alias
punkbit Feb 25, 2026
1044072
chore: 🤖 show warning if package.json has changed, reminding user to …
punkbit Feb 25, 2026
ca79b96
chore: 🤖 add changeset
punkbit Feb 25, 2026
8bb44f0
chore: 🤖 removed styledLinkProps from public api, prevent leaking syt…
punkbit Feb 25, 2026
58ebe14
chore: 🤖 removed StyledLinkedProps and linkStyles from public API to …
punkbit Feb 25, 2026
a2eb173
chore: 🤖 update changeset
punkbit Feb 25, 2026
cfec25f
chore: 🤖 export as deprecated jsdoc
punkbit Feb 25, 2026
43f660d
chore: 🤖 deleted file
punkbit Feb 25, 2026
b262dc6
Merge branch 'fix/circular-dependencies-first-pass' into chore/public…
punkbit Feb 25, 2026
8591ff1
fix: 🐛 types deps
punkbit Feb 25, 2026
9e97615
Merge branch 'refactor/modular-file-architecture' into fix/circular-d…
punkbit Feb 26, 2026
10f3747
Merge branch 'fix/circular-dependencies-first-pass' into chore/public…
punkbit Feb 26, 2026
cfed2f0
Merge branch 'chore/public-api-as-exports-generator-source-of-truth' …
punkbit Feb 26, 2026
0838edd
refactor: 💡 move THEMES data structure from types
punkbit Feb 26, 2026
1fcb102
Merge branch 'fix/circular-dependencies-first-pass' into chore/public…
punkbit Feb 26, 2026
75452a2
Merge branch 'main' into refactor/component-path-redundancy
punkbit Feb 26, 2026
113fdae
test: 💍 update test (due to merge issues)
punkbit Feb 26, 2026
a60ad70
Merge branch 'refactor/component-path-redundancy' into refactor/modul…
punkbit Feb 26, 2026
74cdcf9
chore: 🤖 the asset system has to be updated to reflect architecture d…
punkbit Feb 26, 2026
541f617
chore: 🤖 merge from refactor/modular-file-architecture
punkbit Feb 26, 2026
a44d410
Merge branch 'fix/circular-dependencies-first-pass' into chore/public…
punkbit Feb 26, 2026
317f5f9
Merge branch 'chore/public-api-as-exports-generator-source-of-truth' …
punkbit Feb 26, 2026
91cff6d
Merge branch 'main' into refactor/component-path-redundancy
punkbit Feb 26, 2026
3a5527c
fix: 🐛 error TS2724: './IconButton' has no exported member named 'Ic…
punkbit Feb 26, 2026
2f92c76
Merge branch 'refactor/component-path-redundancy' into refactor/modul…
punkbit Feb 26, 2026
0faebfb
Merge branch 'refactor/modular-file-architecture' into fix/circular-d…
punkbit Feb 26, 2026
76e13ba
Merge branch 'fix/circular-dependencies-first-pass' into chore/public…
punkbit Feb 26, 2026
67676ca
Merge branch 'chore/public-api-as-exports-generator-source-of-truth' …
punkbit Feb 26, 2026
c5e9d73
chore: 🤖 add TODO
punkbit Feb 26, 2026
f68fca0
Merge branch 'main' into refactor/modular-file-architecture
punkbit Mar 2, 2026
e077679
Merge branch 'refactor/modular-file-architecture' into fix/circular-d…
punkbit Mar 2, 2026
b620dd9
fix: 🐛 circular dep
punkbit Mar 2, 2026
3a29007
Merge branch 'main' into refactor/component-path-redundancy
punkbit Mar 4, 2026
7feb175
Merge branch 'refactor/component-path-redundancy' into refactor/modul…
punkbit Mar 4, 2026
ab22012
Merge branch 'main' into refactor/component-path-redundancy
punkbit Mar 4, 2026
e018de2
Merge branch 'refactor/component-path-redundancy' into refactor/modul…
punkbit Mar 4, 2026
c68a672
Merge branch 'refactor/modular-file-architecture' into fix/circular-d…
punkbit Mar 4, 2026
27a28f8
Merge branch 'fix/circular-dependencies-first-pass' into chore/public…
punkbit Mar 4, 2026
5330fe3
Merge branch 'chore/public-api-as-exports-generator-source-of-truth' …
punkbit Mar 4, 2026
4e5063b
chore: 🤖 resolve merge conflict missing type
punkbit Mar 4, 2026
5761174
Merge branch 'refactor/modular-file-architecture' into fix/circular-d…
punkbit Mar 4, 2026
21b2f1e
Merge branch 'fix/circular-dependencies-first-pass' into chore/public…
punkbit Mar 4, 2026
a181d65
Merge branch 'chore/public-api-as-exports-generator-source-of-truth' …
punkbit Mar 4, 2026
1809ea8
Merge branch 'main' into refactor/component-path-redundancy
punkbit Mar 5, 2026
5088a1a
Merge branch 'refactor/component-path-redundancy' into refactor/modul…
punkbit Mar 5, 2026
0b455b6
Merge branch 'refactor/modular-file-architecture' into fix/circular-d…
punkbit Mar 5, 2026
3e57d35
Merge branch 'fix/circular-dependencies-first-pass' into chore/public…
punkbit Mar 5, 2026
9168412
chore: 🤖 remove deprecated
punkbit Mar 5, 2026
6cf17e3
Merge branch 'main' into refactor/component-path-redundancy
punkbit Mar 5, 2026
8e4d084
Merge branch 'refactor/component-path-redundancy' into refactor/modul…
punkbit Mar 5, 2026
9e1c50a
Merge branch 'refactor/modular-file-architecture' into fix/circular-d…
punkbit Mar 5, 2026
b7fdb12
Merge branch 'fix/circular-dependencies-first-pass' into chore/public…
punkbit Mar 5, 2026
5153cc7
Merge branch 'chore/public-api-as-exports-generator-source-of-truth' …
punkbit Mar 5, 2026
39e467c
Merge branch 'main' into refactor/component-path-redundancy
punkbit Mar 6, 2026
541a394
Merge branch 'refactor/component-path-redundancy' into refactor/modul…
punkbit Mar 6, 2026
6f2e21b
Merge branch 'refactor/modular-file-architecture' into fix/circular-d…
punkbit Mar 6, 2026
7e1a485
Merge branch 'fix/circular-dependencies-first-pass' into chore/public…
punkbit Mar 6, 2026
4811fc4
Merge branch 'chore/public-api-as-exports-generator-source-of-truth' …
punkbit Mar 6, 2026
8ab4715
fix: 🐛 ContextMenu.types.ts: Added type?: 'default' | 'danger' to the…
punkbit Mar 6, 2026
61ba957
refactor: 💡 move local type
punkbit Mar 6, 2026
0de665f
refactor: 💡 move local type (missed track file)
punkbit Mar 6, 2026
d010920
refactor: 💡 changeset
punkbit Mar 6, 2026
197bc09
Merge branch 'main' into refactor/modular-file-architecture
punkbit Mar 6, 2026
60e4059
refactor: 💡 move ContextMenu types
punkbit Mar 6, 2026
1a91961
chore: 🤖 remove FlyoutHeaderProps and FlyoutFooterProps are each decl…
punkbit Mar 6, 2026
1a6ed3a
refactor: 💡 Replaced stale types in Flyout.types.ts with the correct …
punkbit Mar 6, 2026
aefe081
fix: 🐛 typo, should be orientation
punkbit Mar 6, 2026
0c9a15c
refactor: 💡 changeset
punkbit Mar 6, 2026
5391578
Merge branch 'refactor/modular-file-architecture' into fix/circular-d…
punkbit Mar 6, 2026
718ea0e
Merge main into fix/circular-dependencies-first-pass
punkbit Mar 6, 2026
fc9b00d
chore: 🤖 update changeset, include what changed
punkbit Mar 6, 2026
a34417d
fix: 🐛 types
punkbit Mar 6, 2026
1de78a1
fix: 🐛 missing exports InitCUIThemeScript and InitCUIThemeScriptProps
punkbit Mar 6, 2026
9fe24a3
fix: 🐛 merge conflicts, update changeset, remove orphans
punkbit Mar 6, 2026
8b0f4f6
fix: 🐛 remove unknown casting in themes in theme.core.ts
punkbit Mar 6, 2026
d52c468
refactor: 💡 theme const and types
punkbit Mar 6, 2026
29eb3ea
chore: 🤖 remove unwanted file
punkbit Mar 6, 2026
3113b1c
fix: 🐛 derived types from THEMES tricky as it can cause circular deps
punkbit Mar 6, 2026
91c5a7a
refactor: 💡 capitalize theme name
punkbit Mar 6, 2026
d6d084b
chore: 🤖 add bug fix in changeset
punkbit Mar 6, 2026
0c5c3e8
chore: 🤖 remove unrelated
punkbit Mar 6, 2026
43f249a
refactor: 💡 import path redundancy
punkbit Mar 6, 2026
3b0a5d5
Merge branch 'fix/circular-dependencies-first-pass' into chore/public…
punkbit Mar 6, 2026
8edcffd
chore: 🤖 generate:exports must run build first
punkbit Mar 6, 2026
6c20e63
docs: 📝 clarify source of truth
punkbit Mar 6, 2026
19dfaab
Merge branch 'main' into chore/public-api-as-exports-generator-source…
punkbit Mar 6, 2026
91e1426
chore: 🤖 update exports
punkbit Mar 6, 2026
296dc0a
chore: 🤖 Changeset should enumerate removed paths:
punkbit Mar 6, 2026
2d5991a
fix: 🐛 off-by-one in summary log
punkbit Mar 6, 2026
dc0ae72
docs: 📝 redundant build in docs
punkbit Mar 6, 2026
ab19d65
Merge branch 'chore/public-api-as-exports-generator-source-of-truth' …
punkbit Mar 6, 2026
3fdf5f7
chore: 🤖 update changeset
punkbit Mar 6, 2026
074f8c9
chore: 🤖 update changeset and export LinkProps
punkbit Mar 6, 2026
7a8bab0
Merge branch 'main' into chore/remove-leaked-styling-library-types-fr…
punkbit Mar 6, 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
43 changes: 43 additions & 0 deletions .changeset/cool-onions-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
'@clickhouse/click-ui': patch
---

Deprecated StyledLinkProps and linkStyles in the public API. These will be removed in a future release to prevent leaking styled-components implementation details, e.g. $size and $weight transient props in the Public API

## Migration Guide (Recommended)

The Link component already:
- Accepts a component prop to render as any element type
- Accepts size and weight props
- Passes through all other props, e.g. onClick, etc.

We recommend migrating away from the deprecated APIs:
- Replace StyledLinkProps and linkStyles usage
- Remove the CuiStyledLink styled component definition
- Use `<Link component={RouterLink} size="md" weight="normal" ...>` directly

Current common consumer pattern uses the deprecated internal styling APIs:

```tsx
import { Link } from 'react-router-dom';
import { linkStyles, StyledLinkProps } from '@clickhouse/click-ui';

const CuiStyledLink = styled(Link)<StyledLinkProps>`
${linkStyles}
`;

<CuiStyledLink $size="md" $weight="normal"
to="/path">text</CuiStyledLink>
```

Recommended Pattern:

```tsx
import { Link as RouterLink } from 'react-router-dom';
import { Link } from '@clickhouse/click-ui';

<Link component={RouterLink} size="md" weight="normal"
to="/path">text</Link>
```

**Note:** These deprecated APIs will be removed in a future major release. Please migrate before then to avoid breaking changes.
23 changes: 20 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,8 @@
// Label & Link
export { Label } from './components/Label';
export { Link } from './components/Link';
// TODO: This linkStyles require investigation
export { linkStyles } from './components/Link/common';
export type { LabelProps } from './components/Label';
export type { StyledLinkProps } from './components/Link/common';
export type { LinkProps } from './components/Link';

// Multi Accordion
export { MultiAccordion } from './components/MultiAccordion';
Expand Down Expand Up @@ -217,7 +215,7 @@
export { Table } from './components/Table';
export type {
TableColumnConfigProps,
TableHeaderType,

Check warning on line 218 in src/index.ts

View workflow job for this annotation

GitHub Actions / code-quality-checks

`TableHeaderType` is deprecated. The TableHeaderType field have been deprecated to favour TableColumnConfigProps
TableProps,
TableRowType,
} from './components/Table';
Expand Down Expand Up @@ -299,3 +297,22 @@
export type { DialogProps, DialogTriggerProps } from '@radix-ui/react-dialog';
export type { HoverCardProps } from '@radix-ui/react-hover-card';
export type { PopoverProps } from '@radix-ui/react-popover';

// ================================================
// Deprecated Exports
// These exports are deprecated and will be removed in a future version.
// They are kept here temporarily for backward compatibility.
// ================================================

/**
* @deprecated Use the `Link` component with the `component` prop instead.
* Example: `<Link component={RouterLink} size="md" weight="normal" to="/path">text</Link>`
*/
export { linkStyles } from './components/Link/common';

/**
* @deprecated Use the `Link` component with the `component` prop instead.
* This type exposes internal styled-components implementation details.
* Example: `<Link component={RouterLink} size="md" weight="normal" to="/path">text</Link>`
*/
export type { StyledLinkProps } from './components/Link/common';
Loading