Compare commits

..

4 Commits

Author SHA1 Message Date
semantic-release-bot b079759a6b chore(release): 0.1.0-develop.29 [skip ci]
# [0.1.0-develop.29](https://git.lumeweb.com/LumeWeb/sdk/compare/v0.1.0-develop.28...v0.1.0-develop.29) (2023-10-12)

### Bug Fixes

* debug ([d77c4c2](d77c4c2a60))
* pass props to trigger and add disabled button styling ([cccdfde](cccdfdedbb))
2023-10-12 18:49:57 +00:00
Derrick Hammer 4a229059c2
Merge remote-tracking branch 'origin/develop' into develop 2023-10-12 14:48:26 -04:00
Derrick Hammer d77c4c2a60
fix: debug 2023-10-12 14:48:19 -04:00
Derrick Hammer cccdfdedbb
fix: pass props to trigger and add disabled button styling 2023-10-12 14:47:33 -04:00
4 changed files with 29 additions and 12 deletions

View File

@ -1,3 +1,11 @@
# [0.1.0-develop.29](https://git.lumeweb.com/LumeWeb/sdk/compare/v0.1.0-develop.28...v0.1.0-develop.29) (2023-10-12)
### Bug Fixes
* debug ([d77c4c2](https://git.lumeweb.com/LumeWeb/sdk/commit/d77c4c2a605a3ff695c35bd1f22759f830908ddc))
* pass props to trigger and add disabled button styling ([cccdfde](https://git.lumeweb.com/LumeWeb/sdk/commit/cccdfdedbbb659106d294cb11c0638920db94783))
# [0.1.0-develop.28](https://git.lumeweb.com/LumeWeb/sdk/compare/v0.1.0-develop.27...v0.1.0-develop.28) (2023-10-12)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@lumeweb/sdk",
"version": "0.1.0-develop.28",
"version": "0.1.0-develop.29",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/sdk",
"version": "0.1.0-develop.28",
"version": "0.1.0-develop.29",
"dependencies": {
"@lumeweb/kernel-network-registry-client": "0.1.0-develop.10",
"@lumeweb/libkernel": "0.1.0-develop.65",

View File

@ -1,6 +1,6 @@
{
"name": "@lumeweb/sdk",
"version": "0.1.0-develop.28",
"version": "0.1.0-develop.29",
"type": "module",
"main": "lib/index.js",
"types": "lib/src/index.d.ts",

View File

@ -29,15 +29,24 @@ const LumeDashboard = (props: any) => {
setUniqueNetworkTypes(uniqueTypes);
}, [networks]);
const DefaultTrigger = (props: any) => (
<LumeDashboardTrigger asChild>
<button
className="bg-primary text-primary-foreground p-2 px-4 text-sm font-semibold font-mono rounded-md"
{...props}>
Open Dashboard
</button>
</LumeDashboardTrigger>
);
const DefaultTrigger = (props: any) => {
console.log(props);
return (
<LumeDashboardTrigger asChild {...props}>
<button
className={cn(
"bg-primary text-primary-foreground p-2 px-4 text-sm font-semibold font-mono rounded-md",
{
"disabled:pointer-events-none disabled:opacity-50":
props.disabled,
},
)}
{...props}>
Open Dashboard
</button>
</LumeDashboardTrigger>
);
};
const GivenTrigger = React.Children.toArray(
children?.children || (children as any) || [],
)