Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
export * from './lib/modus-wc-angular.module';
export { DIRECTIVES } from './lib/stencil-generated';
export * from './lib/stencil-generated/components';
export type * from '@trimble-oss/moduswebcomponents';
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
export * from './lib/modus-wc-angular.module';
export { DIRECTIVES } from './lib/stencil-generated';
export * from './lib/stencil-generated/components';
export type * from '@trimble-oss/moduswebcomponents';
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
export * from './lib/modus-wc-angular.module';
export { DIRECTIVES } from './lib/stencil-generated';
export * from './lib/stencil-generated/components';
export type * from '@trimble-oss/moduswebcomponents';
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
import { ModusWcBadge as ModusBadge } from "@trimble-oss/moduswebcomponents-react";
import {
ModusWcBadge as ModusBadge,
type Density,
type ModusSize,
} from "@trimble-oss/moduswebcomponents-react";

function densityLabel(density: Density): string {
return density;
}
Comment thread
prashanthr6383 marked this conversation as resolved.

export default function ModusBadgeExamples() {
const typedSize: ModusSize = "md";
const typedDensity: Density = "comfortable";

return (
<>
<h3>Badge</h3>
<p className="demo-types-hint">
Types from <code>@trimble-oss/moduswebcomponents-react</code>: ModusSize=
{typedSize}, Density={densityLabel(typedDensity)}
</p>
<div className="grid">
<div className="grid-row">
<ModusBadge aria-label="Badge" content="Default" />
Expand All @@ -17,7 +32,7 @@ export default function ModusBadgeExamples() {

<div className="grid-row">
<ModusBadge aria-label="Badge" size="sm" content="Small" />
<ModusBadge aria-label="Badge" size="md" content="Medium" />
<ModusBadge aria-label="Badge" size={typedSize} content="Medium (typed)" />
<ModusBadge aria-label="Badge" size="lg" content="Large" />
</div>

Expand Down
1 change: 1 addition & 0 deletions integrations/react/v17/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ if (typeof window !== 'undefined') {
}

export * from './stencil-generated/components';
export type * from '@trimble-oss/moduswebcomponents';

// Re-export setAssetPath for users who need to override
export { setAssetPath };
1 change: 1 addition & 0 deletions integrations/react/v18/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ if (typeof window !== 'undefined') {
}

export * from './stencil-generated/components';
export type * from '@trimble-oss/moduswebcomponents';

// Re-export setAssetPath for users who need to override
export { setAssetPath };
1 change: 1 addition & 0 deletions integrations/react/v19/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ if (typeof window !== 'undefined') {
}

export * from './stencil-generated/components.js';
export type * from '@trimble-oss/moduswebcomponents';

// Re-export setAssetPath for users who need to override
export { setAssetPath };
2 changes: 2 additions & 0 deletions integrations/vue/v-latest/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ export { ModusWebComponentsPlugin, ComponentLibrary } from './plugin';

// Re-export setAssetPath for users who need to configure asset paths
export { setAssetPath } from '@trimble-oss/moduswebcomponents/components';

export type * from '@trimble-oss/moduswebcomponents';
Loading