Skip to content

Commit 9b4a6e0

Browse files
committed
move classed out of util barrel
1 parent d731de2 commit 9b4a6e0

File tree

17 files changed

+25
-18
lines changed

17 files changed

+25
-18
lines changed

app/components/HL.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
*
66
* Copyright Oxide Computer Company
77
*/
8-
import { classed } from '@oxide/util'
8+
import { classed } from '~/util/classed'
99

1010
export const HL = classed.span`text-sans-semi-md text-default`

app/components/Terminal.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import { Terminal as XTerm, type ITerminalOptions } from 'xterm'
1010
import { FitAddon } from 'xterm-addon-fit'
1111

1212
import { DirectionDownIcon, DirectionUpIcon } from '@oxide/ui'
13-
import { classed } from '@oxide/util'
13+
14+
import { classed } from '~/util/classed'
1415

1516
import { AttachAddon } from './AttachAddon'
1617

app/components/form/Form.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ import cn from 'classnames'
99
import { cloneElement } from 'react'
1010

1111
import { Button, Error12Icon, type ButtonProps } from '@oxide/ui'
12-
import { classed, flattenChildren, invariant, isOneOf, pluckFirstOfType } from '@oxide/util'
12+
import { flattenChildren, invariant, isOneOf, pluckFirstOfType } from '@oxide/util'
13+
14+
import { classed } from '~/util/classed'
1315

1416
import './form.css'
1517

app/components/form/FullPageForm.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ import { useBlocker, type Blocker } from 'react-router-dom'
1111

1212
import type { ApiError } from '@oxide/api'
1313
import { Modal, PageHeader, PageTitle } from '@oxide/ui'
14-
import { classed, flattenChildren, pluckFirstOfType } from '@oxide/util'
14+
import { flattenChildren, pluckFirstOfType } from '@oxide/util'
15+
16+
import { classed } from '~/util/classed'
1517

1618
import { Form } from '../form/Form'
1719
import { PageActions } from '../PageActions'

app/layouts/helpers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import { useRef } from 'react'
99
import { Outlet } from 'react-router-dom'
1010

1111
import { SkipLinkTarget } from '@oxide/ui'
12-
import { classed } from '@oxide/util'
1312

1413
import { Pagination } from '~/components/Pagination'
14+
import { classed } from '~/util/classed'
1515
import { PageActionsTarget } from 'app/components/PageActions'
1616
import { useScrollRestoration } from 'app/hooks/use-scroll-restoration'
1717

app/table/cells/EmptyCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Copyright Oxide Computer Company
77
*/
88

9-
import { classed } from '@oxide/util'
9+
import { classed } from '~/util/classed'
1010

1111
export const EmptyCell = () => <span className="text-sans-md text-quinary">&mdash;</span>
1212

app/table/cells/LinkCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88
import { Link } from 'react-router-dom'
99

10-
import { classed } from '@oxide/util'
10+
import { classed } from '~/util/classed'
1111

1212
import type { Cell } from './Cell'
1313

app/ui/lib/ActionMenu.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ import { matchSorter } from 'match-sorter'
1111
import React, { useState } from 'react'
1212

1313
import { Close12Icon } from '@oxide/design-system/icons/react'
14-
import { classed, groupBy } from '@oxide/util'
14+
import { groupBy } from '@oxide/util'
15+
16+
import { classed } from '~/util/classed'
1517

1618
import { useSteppedScroll } from './use-stepped-scroll'
1719

app/ui/lib/Checkbox.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
import cn from 'classnames'
99

1010
import { Checkmark12Icon } from '@oxide/design-system/icons/react'
11-
import { classed } from '@oxide/util'
11+
12+
import { classed } from '~/util/classed'
1213

1314
const Check = () => (
1415
<Checkmark12Icon className="pointer-events-none absolute left-0.5 top-0.5 h-3 w-3 fill-current text-accent" />

app/ui/lib/Divider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Copyright Oxide Computer Company
77
*/
8-
import { classed } from '@oxide/util'
8+
import { classed } from '~/util/classed'
99

1010
/** Gets special styling from being inside `.ox-form` */
1111
export const FormDivider = classed.hr`ox-divider w-full border-t border-secondary`

0 commit comments

Comments
 (0)