Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
jer3m01 committed Nov 2, 2024
1 parent e40d702 commit 4bf67cb
Show file tree
Hide file tree
Showing 17 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion apps/docs/src/examples/color-area.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createSignal } from "solid-js";
import { ColorArea } from "@kobalte/core/color-area";
import { parseColor } from "@kobalte/core/colors";
import { createSignal } from "solid-js";
import style from "./color-area.module.css";

export function BasicExample() {
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/examples/color-channel-field.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createSignal } from "solid-js";
import { ColorChannelField } from "@kobalte/core/color-channel-field";
import { parseColor } from "@kobalte/core/colors";
import { createSignal } from "solid-js";
import { ArrowIcon } from "../components";
import style from "./color-channel-field.module.css";

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/examples/color-field.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createSignal } from "solid-js";
import { ColorField } from "@kobalte/core/color-field";
import { createSignal } from "solid-js";

import style from "./color-field.module.css";

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/examples/color-slider.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createSignal } from "solid-js";
import { ColorSlider } from "@kobalte/core/color-slider";
import { parseColor } from "@kobalte/core/colors";
import { createSignal } from "solid-js";
import style from "./color-slider.module.css";

export function BasicExample() {
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/examples/color-wheel.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createSignal } from "solid-js";
import { ColorWheel } from "@kobalte/core/color-wheel";
import { parseColor } from "@kobalte/core/colors";
import { createSignal } from "solid-js";
import style from "./color-wheel.module.css";

export function BasicExample() {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/color-area/color-area-background.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import {
createSignal,
splitProps,
} from "solid-js";
import type { Color, ColorChannel } from "../colors";
import { parseColor } from "../colors";
import {
type FormControlDataSet,
useFormControlContext,
Expand All @@ -18,8 +20,6 @@ import {
type PolymorphicProps,
} from "../polymorphic";
import { linearScale } from "../slider/utils";
import type { Color, ColorChannel } from "../colors";
import { parseColor } from "../colors";
import { useColorAreaContext } from "./color-area-context";

export interface ColorAreaBackgroundOptions {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import {
createMemo,
splitProps,
} from "solid-js";
import { COLOR_INTL_TRANSLATIONS } from "../colors";
import {
FORM_CONTROL_FIELD_PROP_NAMES,
createFormControlField,
useFormControlContext,
} from "../form-control";
import { COLOR_INTL_TRANSLATIONS } from "../colors";
import { useColorAreaContext } from "./color-area-context";

export interface ColorAreaHiddenInputBaseProps extends ComponentProps<"input"> {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/color-area/color-area-root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
splitProps,
} from "solid-js";

import type { Color, ColorChannel, ColorSpace } from "../colors/types";
import {
FORM_CONTROL_PROP_NAMES,
FormControlContext,
Expand All @@ -26,7 +27,6 @@ import {
type PolymorphicProps,
} from "../polymorphic";
import { createFormResetListener } from "../primitives";
import type { Color, ColorChannel, ColorSpace } from "../colors/types";
import {
ColorAreaContext,
type ColorAreaContextValue,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/color-area/color-area-thumb.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { callHandler, mergeRefs } from "@kobalte/utils";
import { combineStyle } from "@solid-primitives/props";
import { type JSX, type ValidComponent, splitProps } from "solid-js";
import { COLOR_INTL_TRANSLATIONS } from "../colors";
import { useFormControlContext } from "../form-control";
import {
type ElementOf,
Polymorphic,
type PolymorphicProps,
} from "../polymorphic";
import { COLOR_INTL_TRANSLATIONS } from "../colors";
import { useColorAreaContext } from "./color-area-context";

export interface ColorAreaThumbOptions {}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/color-area/create-color-area-state.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { clamp, mergeDefaultProps, snapValueToStep } from "@kobalte/utils";
import { type Accessor, batch, createMemo, createSignal } from "solid-js";
import { createControllableSignal } from "../primitives";
import type { Color, ColorChannel, ColorSpace } from "../colors";
import { createControllableSignal } from "../primitives";

export interface ColorAreaState {
readonly value: Accessor<Color>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import {
createUniqueId,
splitProps,
} from "solid-js";
import type { Color, ColorChannel, ColorSpace } from "../colors";
import * as NumberField from "../number-field";
import type { ElementOf, PolymorphicProps } from "../polymorphic";
import { createControllableSignal } from "../primitives";
import type { Color, ColorChannel, ColorSpace } from "../colors";

export interface ColorChannelFieldRootOptions
extends Omit<
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/color-field/color-field-root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import {
createUniqueId,
splitProps,
} from "solid-js";
import { parseColor } from "../colors";
import type { ElementOf, PolymorphicProps } from "../polymorphic";
import { createControllableSignal } from "../primitives";
import * as TextField from "../text-field";
import { parseColor } from "../colors";
import {
ColorFieldContext,
type ColorFieldContextValue,
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/color-slider/color-slider-root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import {
splitProps,
} from "solid-js";

import type { ElementOf, PolymorphicProps } from "../polymorphic";
import { createControllableSignal } from "../primitives/create-controllable-signal";
import * as Slider from "../slider";
import { COLOR_INTL_TRANSLATIONS, type ColorIntlTranslations } from "../colors";
import type { Color, ColorChannel, ColorSpace } from "../colors";
import { parseColor } from "../colors";
import type { ElementOf, PolymorphicProps } from "../polymorphic";
import { createControllableSignal } from "../primitives/create-controllable-signal";
import * as Slider from "../slider";
import {
ColorSliderContext,
type ColorSliderContextValue,
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/color-swatch/color-swatch-root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import {
createUniqueId,
splitProps,
} from "solid-js";
import { COLOR_INTL_TRANSLATIONS } from "../colors";
import type { Color } from "../colors";
import {
type ElementOf,
Polymorphic,
type PolymorphicProps,
} from "../polymorphic";
import { COLOR_INTL_TRANSLATIONS } from "../colors";
import type { Color } from "../colors";
import {
COLOR_SWATCH_INTL_TRANSLATIONS,
type ColorSwatchIntlTranslations,
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/color-wheel/color-wheel-root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import {
splitProps,
} from "solid-js";

import { COLOR_INTL_TRANSLATIONS, type ColorIntlTranslations } from "../colors";
import type { Color } from "../colors";
import {
FORM_CONTROL_PROP_NAMES,
FormControlContext,
Expand All @@ -26,8 +28,6 @@ import {
type PolymorphicProps,
} from "../polymorphic";
import { createFormResetListener } from "../primitives";
import { COLOR_INTL_TRANSLATIONS, type ColorIntlTranslations } from "../colors";
import type { Color } from "../colors";
import {
ColorWheelContext,
type ColorWheelContextValue,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/color-wheel/create-color-wheel-state.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { mergeDefaultProps } from "@kobalte/utils";
import { type Accessor, createMemo, createSignal } from "solid-js";
import { createControllableSignal } from "../primitives";
import type { Color } from "../colors";
import { parseColor } from "../colors";
import { createControllableSignal } from "../primitives";
import {
angleToCartesian,
cartesianToAngle,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/colors/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./intl";
export * from "./types";
export * from "./utils";
export * from "./utils";

0 comments on commit 4bf67cb

Please sign in to comment.