Skip to content

Commit

Permalink
fix icon imports, I think
Browse files Browse the repository at this point in the history
  • Loading branch information
david-crespo committed Oct 4, 2023
1 parent 80f7c8a commit 1ce2a46
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 18 deletions.
2 changes: 1 addition & 1 deletion libs/ui/lib/ModalLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
import type { ReactNode } from 'react'

import { OpenLink12Icon } from '../'
import { OpenLink12Icon } from '@oxide/design-system/icons/react'

export const ModalLinks = ({
heading,
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/lib/action-menu/ActionMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import cn from 'classnames'
import { matchSorter } from 'match-sorter'
import React, { useState } from 'react'

import { Close12Icon } from '@oxide/ui'
import { Close12Icon } from '@oxide/design-system/icons/react'
import { classed, groupBy } from '@oxide/util'

import { useSteppedScroll } from '../hooks/use-stepped-scroll'
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/lib/checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
import cn from 'classnames'

import { Checkmark12Icon } from '@oxide/ui'
import { Checkmark12Icon } from '@oxide/design-system/icons/react'
import { classed } from '@oxide/util'

const Check = () => (
Expand Down
3 changes: 2 additions & 1 deletion libs/ui/lib/date-picker/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import { useDateFormatter } from 'react-aria'
import { useDatePickerState } from 'react-stately'
import type { DatePickerStateOptions } from 'react-stately'

import { Calendar16Icon, Error12Icon } from '../../'
import { Calendar16Icon, Error12Icon } from '@oxide/design-system/icons/react'

import { Calendar } from './Calendar'
import { TimeField } from './DateField'
import { Dialog } from './Dialog'
Expand Down
3 changes: 2 additions & 1 deletion libs/ui/lib/date-picker/DateRangePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import { useDateFormatter } from 'react-aria'
import { useDateRangePickerState } from 'react-stately'
import type { DateRangePickerStateOptions } from 'react-stately'

import { Calendar16Icon, Error12Icon } from '../../'
import { Calendar16Icon, Error12Icon } from '@oxide/design-system/icons/react'

import { TimeField } from './DateField'
import { Dialog } from './Dialog'
import { Popover } from './Popover'
Expand Down
3 changes: 2 additions & 1 deletion libs/ui/lib/date-picker/RangeCalendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import { useLocale, useRangeCalendar } from 'react-aria'
import { useRangeCalendarState } from 'react-stately'
import type { CalendarState, RangeCalendarState } from 'react-stately'

import { DirectionLeftIcon, DirectionRightIcon } from '../../'
import { DirectionLeftIcon, DirectionRightIcon } from '@oxide/design-system/icons/react'

import { CalendarGrid } from './CalendarGrid'

export function RangeCalendar(props: RangeCalendarProps<DateValue>) {
Expand Down
3 changes: 2 additions & 1 deletion libs/ui/lib/empty-message/EmptyMessage.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
*
* Copyright Oxide Computer Company
*/
import { Instances24Icon } from '../../'
import { Instances24Icon } from '@oxide/design-system/icons/react'

import { EmptyMessage } from './EmptyMessage'

export const Default = () => (
Expand Down
9 changes: 6 additions & 3 deletions libs/ui/lib/message/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ import cn from 'classnames'
import type { ReactElement, ReactNode } from 'react'
import { Link, type To } from 'react-router-dom'

import { OpenLink12Icon } from '@oxide/ui'

import { Error12Icon, Success12Icon, Warning12Icon } from '../../'
import {
Error12Icon,
OpenLink12Icon,
Success12Icon,
Warning12Icon,
} from '@oxide/design-system/icons/react'

type Variant = 'success' | 'error' | 'notice' | 'info'

Expand Down
2 changes: 1 addition & 1 deletion libs/ui/lib/modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import * as Dialog from '@radix-ui/react-dialog'
import { animated, useTransition } from '@react-spring/web'
import React, { createContext, forwardRef, useContext, useId } from 'react'

import { Close12Icon } from '@oxide/design-system/icons/react'
import { classed } from '@oxide/util'

import { Close12Icon } from '../../'
import { Button } from '../button/Button'

const ModalContext = createContext(false)
Expand Down
3 changes: 2 additions & 1 deletion libs/ui/lib/page-header/PageHeader.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
*
* Copyright Oxide Computer Company
*/
import { Folder24Icon } from '../../'
import { Folder24Icon } from '@oxide/design-system/icons/react'

import { PageHeader, PageTitle } from './PageHeader'

export const Default = () => (
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/lib/pagination/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
import cn from 'classnames'

import { DirectionLeftIcon, DirectionRightIcon } from '../../'
import { DirectionLeftIcon, DirectionRightIcon } from '@oxide/design-system/icons/react'

interface PageInputProps {
number: number
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/lib/side-modal/SideModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import { animated, useTransition } from '@react-spring/web'
import cn from 'classnames'
import React, { type ReactNode, createContext, useContext, useRef } from 'react'

import { Close12Icon, Error12Icon } from '@oxide/design-system/icons/react'
import { Message } from '@oxide/ui'
import { classed } from '@oxide/util'

import { useIsOverflow } from 'app/hooks'

import { Close12Icon, Error12Icon } from '../../'
import './side-modal.css'

const SideModalContext = createContext(false)
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/lib/tag/Tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
import cn from 'classnames'

import { Close8Icon } from '../../'
import { Close8Icon } from '@oxide/design-system/icons/react'

export type TagColor = 'default' | 'destructive' | 'notice' | 'neutral'
export type TagVariant = 'default' | 'secondary'
Expand Down
8 changes: 7 additions & 1 deletion libs/ui/lib/toast/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ import type { ReactElement } from 'react'
import { useEffect } from 'react'
import { Link, type To } from 'react-router-dom'

import { Close12Icon, Error12Icon, Success12Icon, Warning12Icon } from '../../'
import {
Close12Icon,
Error12Icon,
Success12Icon,
Warning12Icon,
} from '@oxide/design-system/icons/react'

import { TimeoutIndicator } from '../timeout-indicator/TimeoutIndicator'
import { Truncate } from '../truncate/Truncate'

Expand Down
3 changes: 2 additions & 1 deletion libs/ui/lib/tooltip/Tooltip.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
*
* Copyright Oxide Computer Company
*/
import { Filter12Icon } from '../../'
import { Filter12Icon } from '@oxide/design-system/icons/react'

import { Tooltip } from './Tooltip'

export const Default = () => (
Expand Down
3 changes: 2 additions & 1 deletion libs/ui/lib/truncate/Truncate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
*/
import { useState } from 'react'

import { Clipboard16Icon, Success12Icon } from '../../'
import { Clipboard16Icon, Success12Icon } from '@oxide/design-system/icons/react'

import useTimeout from '../hooks/use-timeout'
import { Tooltip } from '../tooltip/Tooltip'

Expand Down

0 comments on commit 1ce2a46

Please sign in to comment.