Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
fpbrault committed Jan 15, 2025
1 parent 57d53a8 commit d2133b7
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 30 deletions.
4 changes: 1 addition & 3 deletions packages/atomic-react/scripts/build-lit.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import cem from '@coveo/atomic/custom-elements-manifest' with {type: 'json'};
import {writeFileSync} from 'node:fs';
import * as prettier from 'prettier';



const isLitDeclaration = (declaration) =>
declaration?.superclass?.name === 'LitElement' || declaration?.superclass?.name === 'TailwindLitElement';

Expand Down Expand Up @@ -89,4 +87,4 @@ for (const entry of entries) {
prettierConfig
)
)
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import ReactDOM from 'react-dom';

import { OverlayEventDetail } from './interfaces';
import { StencilReactForwardedRef, attachProps, dashToPascalCase, defineCustomElement, setRef } from './utils';
import { OverlayEventDetail } from './interfaces.js';
import { StencilReactForwardedRef, attachProps, dashToPascalCase, defineCustomElement, setRef } from './utils/index.js';

interface OverlayElement extends HTMLElement {
present: () => Promise<void>;
Expand Down
52 changes: 27 additions & 25 deletions packages/samples/atomic-next/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,31 +195,33 @@ function MyTemplate(result: Result) {
</AtomicResultSectionExcerpt>
<AtomicResultSectionBottomMetadata>
<AtomicResultFieldsList>
<AtomicResultDate format="ddd MMM D YYYY" />
{result.raw.cat_platform ? (
<>
<span className="field-label">
<AtomicText value="Platform" />
</span>
<AtomicResultText field="cat_platform" />
</>
) : null}
{result.raw.cat_condition ? (
<>
<span className="field-label">
<AtomicText value="Condition" />
</span>
<AtomicResultText field="cat_condition" />
</>
) : null}
{result.raw.cat_categories ? (
<>
<span className="field-label">
<AtomicText value="Tags" />
</span>
<AtomicResultMultiValueText field="cat_categories" />
</>
) : null}
<>
<AtomicResultDate format="ddd MMM D YYYY" />
{result.raw.cat_platform && (
<>
<span className="field-label">
<AtomicText value="Platform" />
</span>
<AtomicResultText field="cat_platform" />
</>
)}
{result.raw.cat_condition && (
<>
<span className="field-label">
<AtomicText value="Condition" />
</span>
<AtomicResultText field="cat_condition" />
</>
)}
{result.raw.cat_categories && (
<>
<span className="field-label">
<AtomicText value="Tags" />
</span>
<AtomicResultMultiValueText field="cat_categories" />
</>
)}
</>
</AtomicResultFieldsList>
</AtomicResultSectionBottomMetadata>
</>
Expand Down

0 comments on commit d2133b7

Please sign in to comment.