Compare commits

..

No commits in common. "v0.1.0-develop.29" and "v0.1.0-develop.28" have entirely different histories.

4 changed files with 12 additions and 29 deletions

View File

@ -1,11 +1,3 @@
# [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) # [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", "name": "@lumeweb/sdk",
"version": "0.1.0-develop.29", "version": "0.1.0-develop.28",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/sdk", "name": "@lumeweb/sdk",
"version": "0.1.0-develop.29", "version": "0.1.0-develop.28",
"dependencies": { "dependencies": {
"@lumeweb/kernel-network-registry-client": "0.1.0-develop.10", "@lumeweb/kernel-network-registry-client": "0.1.0-develop.10",
"@lumeweb/libkernel": "0.1.0-develop.65", "@lumeweb/libkernel": "0.1.0-develop.65",

View File

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

View File

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