Skip to content

Commit

Permalink
fix: icons warnings (workaround until stencil fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjborba committed Jul 17, 2024
1 parent 227b9fa commit 7ab055c
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Component, Host, Prop, h } from '@stencil/core'
import type { TChatMessage } from '@/context/chatContext'
import '@phosphor-icons/webcomponents/PhCopy'
import '@phosphor-icons/webcomponents/PhArrowsClockwise'
import '@phosphor-icons/webcomponents/PhThumbsDown'
import '@phosphor-icons/webcomponents/dist/icons/PhCopy.mjs'
import '@phosphor-icons/webcomponents/dist/icons/PhArrowsClockwise.mjs'
import '@phosphor-icons/webcomponents/dist/icons/PhThumbsDown.mjs'
import { copyToClipboard } from '@/utils/utils'

@Component({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

| Property | Attribute | Description | Type | Default |
| --------- | --------- | ----------- | --------------------------------------------------- | ----------- |
| `message` | -- | | `{ role: "user" \| "assistant"; content: string; }` | `undefined` |
| `message` | -- | | `{ role: "assistant" \| "user"; content: string; }` | `undefined` |


## Dependencies
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, Host, State, h } from '@stencil/core'
import { chatContext } from '@/context/chatContext'
import '@phosphor-icons/webcomponents/PhPaperPlaneTilt'
import '@phosphor-icons/webcomponents/PhStop'
import '@phosphor-icons/webcomponents/dist/icons/PhPaperPlaneTilt.mjs'
import '@phosphor-icons/webcomponents/dist/icons/PhStop.mjs'

// TODO: Hardcoding suggestions for now
const SUGGESTIONS = ['How to get started?', 'What are the prices?', 'What is Orama?']
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, Host, Prop, h, Element, State, Event, type EventEmitter } from '@stencil/core'
import '@phosphor-icons/webcomponents/PhX'
import '@phosphor-icons/webcomponents/PhMagnifyingGlass'
import '@phosphor-icons/webcomponents/dist/icons/PhX.mjs'
import '@phosphor-icons/webcomponents/dist/icons/PhMagnifyingGlass.mjs'
import { getNonExplicitAttributes } from '@/utils/utils'

type BaseInputProps = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, Host, h } from '@stencil/core'
import '@phosphor-icons/webcomponents/PhClock'
import '@phosphor-icons/webcomponents/PhPlus'
import '@phosphor-icons/webcomponents/PhCaretLeft'
import '@phosphor-icons/webcomponents/dist/icons/PhClock.mjs'
import '@phosphor-icons/webcomponents/dist/icons/PhPlus.mjs'
import '@phosphor-icons/webcomponents/dist/icons/PhCaretLeft.mjs'

@Component({
tag: 'orama-navigation-bar',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, Host, h, Element, Prop, Event, type EventEmitter } from '@stencil/core'
import type { SearchResult, SearchResultBySection } from '@/types'
import '@phosphor-icons/webcomponents/PhFiles'
import '@phosphor-icons/webcomponents/dist/icons/PhFiles.mjs'

export type SearchResultsProps = {
sections: SearchResultBySection[]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, Host, Prop, h } from '@stencil/core'
import { globalContext } from '@/context/GlobalContext'
import '@phosphor-icons/webcomponents/PhMagnifyingGlass'
import '@phosphor-icons/webcomponents/PhSparkle'
import '@phosphor-icons/webcomponents/dist/icons/PhMagnifyingGlass.mjs'
import '@phosphor-icons/webcomponents/dist/icons/PhSparkle.mjs'

@Component({
tag: 'orama-toggler',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
| `colorScheme` | `color-scheme` | | `"dark" \| "light" \| "system"` | `'light'` |
| `facetProperty` | `facet-property` | | `string` | `undefined` |
| `open` | `open` | | `boolean` | `false` |
| `resultMap` | -- | | `{ title?: string; description?: string; path?: string; section?: string; }` | `{}` |
| `resultMap` | -- | | `{ section?: string; title?: string; path?: string; description?: string; }` | `{}` |
| `themeConfig` | -- | | `{ typography?: DeepPartial<{ '--font-primary': string; }>; colors?: DeepPartial<{ light: { '--text-color-primary': string; '--text-color-secondary': string; '--text-color-teriary': string; '--text-color-inactive': string; '--background-color-primary': string; '--background-color-secondary': string; '--background-color-tertiary': string; '--background-color-fourth': string; '--border-color-primary': string; '--border-color-secondary': string; '--border-color-inactive': string; '--icon-color-primary': string; '--icon-color-secondary': string; '--icon-color-tertiary': string; '--icon-color-inactive': string; '--icon-color-accent': string; }; dark: { '--text-color-primary': string; '--text-color-secondary': string; '--text-color-teriary': string; '--text-color-inactive': string; '--background-color-primary': string; '--background-color-secondary': string; '--background-color-tertiary': string; '--background-color-fourth': string; '--border-color-primary': string; '--border-color-secondary': string; '--border-color-inactive': string; '--icon-color-primary': string; '--icon-color-secondary': string; '--icon-color-tertiary': string; '--icon-color-inactive': string; '--icon-color-accent': string; }; system: {}; }>; }` | `undefined` |


Expand Down

0 comments on commit 7ab055c

Please sign in to comment.