Skip to content

Commit

Permalink
Updated import paths to remove '@/' usages
Browse files Browse the repository at this point in the history
  • Loading branch information
lancegliser committed Aug 29, 2024
1 parent 67ae7c5 commit 2d127c8
Show file tree
Hide file tree
Showing 88 changed files with 220 additions and 217 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
getStringsForI18nBundleFromResource,
type I18nBundle,
} from "@howso/ui-internationalization-utils";
import { Languages } from "@/constants";
import { Languages } from "../../../constants";

const namespace = "FeatureAttributeSample";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { Meta, StoryObj } from "@storybook/react";
import { getFormProviderDecorator, withPadding } from "@/storybook";
import { FeatureAttributesConfiguration } from "./FeatureAttributesConfiguration";
import { getFormProviderDecorator, withPadding } from "../../../storybook";
import { getFeaturesAttributesContextDecorator } from "../FeaturesAttributesContext/FeaturesAttributesContext.stories.decorators";
import { InferFeatureAttributeFormValues } from "../utils";
import { FeatureAttributesConfiguration } from "./FeatureAttributesConfiguration";

// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
const meta: Meta<typeof FeatureAttributesConfiguration> = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
import { formSpacingYDefault } from "@howso/react-tailwind-flowbite-components";
import { type FC, type ReactNode } from "react";
import { twMerge } from "tailwind-merge";
import { useFormValues } from "../../../hooks";
import {
FeatureAttributeTypeField,
FeatureAttributeUniqueField,
FeatureAttributeSubtypeField,
FeatureAttributeDataTypeField,
FeatureAttributeDateTimeFormatField,
FeatureAttributeIdFeatureField,
FeatureAttributeIsSensitiveField,
FeatureAttributeLocaleField,
FeatureAttributeDateTimeFormatField,
FeatureAttributeObservationalErrorField,
FeatureAttributeNullIsDependentField,
FeatureAttributeObservationalErrorField,
FeatureAttributeSubtypeField,
FeatureAttributeTypeField,
FeatureAttributeUniqueField,
} from "../fields";
import {
FeatureAttributesContinuousNumbersGroup,
FeatureAttributesBoundsGroup,
FeatureAttributesContinuousNumbersGroup,
FeatureAttributesProgrammableGroup,
FeatureAttributesTemporalityGroup,
} from "../groups";
import { useFormValues } from "@/hooks/useFormValues";
import { formSpacingYDefault } from "@howso/react-tailwind-flowbite-components";
import { InferFeatureAttributeFormValues } from "../utils";

export type FeatureAttributesConfigurationProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
getStringsForI18nBundleFromResource,
type I18nBundle,
} from "@howso/ui-internationalization-utils";
import { Languages } from "@/constants";
import { Languages } from "../../../constants";

const namespace = "FeatureAttributesConfigurationIssues";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
getStringsForI18nBundleFromResource,
type I18nBundle,
} from "@howso/ui-internationalization-utils";
import { Languages } from "@/constants";
import { Languages } from "../../../constants";

const namespace = "FeaturesAttributesCompact";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { Meta, StoryObj } from "@storybook/react";
import { FeaturesAttributesCompact } from "./FeaturesAttributesCompact";
import { FeatureAttributes } from "@howso/openapi-client";
import type { Meta, StoryObj } from "@storybook/react";
import { withPadding } from "../../../storybook";
import {
getInferFeatureAttributesRunRequiredFields,
getFeatureAttributesActiveFeatureAtom,
getInferFeatureAttributesParamsAtom,
getInferFeatureAttributesParamsTimeFeatureAtom,
getInferFeatureAttributesRunRequiredFields,
} from "../hooks";
import { withPadding } from "@/storybook";
import { FeatureAttributesIndex } from "../types";
import { FeaturesAttributesCompact } from "./FeaturesAttributesCompact";

// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
const meta: Meta<typeof FeaturesAttributesCompact> = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import { fireEvent, render, screen, within } from "@testing-library/react";
import "@testing-library/jest-dom";
import { fireEvent, render, screen, within } from "@testing-library/react";
import { act } from "react";
import { FeaturesAttributesCompact } from "./FeaturesAttributesCompact";
import { FeaturesAttributesCompactI18nBundle as i18n } from "./FeaturesAttributesCompact.i18n";
import { sleep } from "../../../utils";
import { expectFeatureAttributeConfigurationInContainer } from "../FeatureAttributesConfiguration/FeatureAttributesConfiguration.test";
import { getFeatureAttributesAllowNullsFieldInContainer } from "../fields/FeatureAttributeAllowNullsField/FeatureAttributeAllowNullsField.test";
import { getFeatureAttributeObservationalErrorFieldInElement } from "../fields/FeatureAttributeObservationalErrorField/FeatureAttributeObservationalErrorField.test";
import { getFeatureAttributesTemporalityGroup } from "../groups/FeatureAttributesTemporalityGroup/FeatureAttributesTemporalityGroup.test";
import {
getInferFeatureAttributesRunRequiredFields,
getFeatureAttributesActiveFeatureAtom,
getInferFeatureAttributesParamsAtom,
getInferFeatureAttributesParamsTimeFeatureAtom,
getFeatureAttributesActiveFeatureAtom,
getInferFeatureAttributesRunRequiredFields,
} from "../hooks";
import { sleep } from "@/utils";
import { expectFeatureAttributeConfigurationInContainer } from "../FeatureAttributesConfiguration/FeatureAttributesConfiguration.test";
import { getFeatureAttributeObservationalErrorFieldInElement } from "../fields/FeatureAttributeObservationalErrorField/FeatureAttributeObservationalErrorField.test";
import { getFeatureAttributesAllowNullsFieldInContainer } from "../fields/FeatureAttributeAllowNullsField/FeatureAttributeAllowNullsField.test";
import { FeatureAttributesIndex, InferFeatureAttributesParams } from "../types";
import { getFeatureAttributesTemporalityGroup } from "../groups/FeatureAttributesTemporalityGroup/FeatureAttributesTemporalityGroup.test";
import { FeaturesAttributesCompact } from "./FeaturesAttributesCompact";
import { FeaturesAttributesCompactI18nBundle as i18n } from "./FeaturesAttributesCompact.i18n";

/* eslint jest/no-conditional-expect: "off" */

Expand Down
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
import {
ErrorBoundary,
FieldLabel,
FieldSelect,
FieldStatic,
UpdateIcon,
WarningIcon,
} from "@howso/react-tailwind-flowbite-components";
import { Alert, Button, Checkbox, getTheme, Tooltip } from "flowbite-react";
import { useAtom, useAtomValue, useSetAtom } from "jotai/react";
import {
type Dispatch,
type SetStateAction,
FC,
useState,
useEffect,
useContext,
useEffect,
useState,
} from "react";
import { Button, Alert, getTheme, Checkbox, Tooltip } from "flowbite-react";
import { FormProvider, SubmitHandler, useForm } from "react-hook-form";
import { useAtom, useAtomValue, useSetAtom } from "jotai/react";
import { useTranslation } from "react-i18next";
import { twMerge } from "tailwind-merge";
import { MapDependentFeatureAttributesIcon } from "../../Icons";
import { FeatureAttributeSample } from "../FeatureAttributeSample";
import { FeatureAttributesConfiguration } from "../FeatureAttributesConfiguration";
import { FeatureAttributesConfigurationIssues } from "../FeatureAttributesConfigurationIssues";
import {
ErrorBoundary,
FieldLabel,
FieldSelect,
FieldStatic,
UpdateIcon,
WarningIcon,
} from "@howso/react-tailwind-flowbite-components";
import {
InferFeatureAttributeFormValues,
getFeatureAttributeConfigurationIssues,
getInferFeatureAttributeParamsFormValuesOnSubmit,
shouldInferAgain as shouldInferFeatureAttributesAgain,
} from "../utils";
import { MapDependentFeatureAttributesIcon } from "@/components/Icons";
FeaturesAttributesContext,
FeaturesAttributesContextProvider,
} from "../FeaturesAttributesContext";
import { FeaturesAttributesDependencies } from "../FeaturesAttributesDependencies";
import {
type FeatureAttributesActiveFeatureAtom,
type InferFeatureAttributesParamsAtom,
type InferFeatureAttributesParamsTimeFeatureAtom,
useFeatureAttributesForm,
getFeatureAttributesFormDefaultValues,
InferFeatureAttributesRunRequiredFieldsAtom,
useFeatureAttributesForm,
} from "../hooks";
import { FeaturesAttributesDependencies } from "../FeaturesAttributesDependencies";
import {
FeaturesAttributesContext,
FeaturesAttributesContextProvider,
} from "../FeaturesAttributesContext";
import { FeatureAttributesConfigurationIssues } from "../FeatureAttributesConfigurationIssues";
getFeatureAttributeConfigurationIssues,
getInferFeatureAttributeParamsFormValuesOnSubmit,
InferFeatureAttributeFormValues,
shouldInferAgain as shouldInferFeatureAttributesAgain,
} from "../utils";
import { FeaturesAttributesCompactI18nBundle as i18n } from "./FeaturesAttributesCompact.i18n";
import { useTranslation } from "react-i18next";

export type FeaturesAttributesCompactProps = {
activeFeatureAtom: FeatureAttributesActiveFeatureAtom;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
getStringsForI18nBundleFromResource,
type I18nBundle,
} from "@howso/ui-internationalization-utils";
import { Languages } from "@/constants";
import { Languages } from "../../../constants";

const namespace = "FeaturesAttributesDependencies";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
getStringsForI18nBundleFromResource,
type I18nBundle,
} from "@howso/ui-internationalization-utils";
import { Languages } from "@/constants";
import { Languages } from "../../../constants";

const namespace = "FeaturesAttributesRows";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import type { Meta, StoryObj } from "@storybook/react";
import { FeaturesAttributesRows } from "./FeaturesAttributesRows";
import { FeatureAttributes } from "@howso/openapi-client";
import type { Meta, StoryObj } from "@storybook/react";
import { withPadding } from "../../../storybook";
import {
getInferFeatureAttributesRunRequiredFields,
getFeatureAttributesActiveFeatureAtom,
getInferFeatureAttributesParamsAtom,
getFeatureAttributesOptionsAtom,
getInferFeatureAttributesParamsAtom,
getInferFeatureAttributesParamsTimeFeatureAtom,
getInferFeatureAttributesRunRequiredFields,
} from "../hooks";
import { withPadding } from "@/storybook";
import type { FeatureAttributesIndex } from "../types";
import { FeaturesAttributesRows } from "./FeaturesAttributesRows";

// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
const meta: Meta<typeof FeaturesAttributesRows> = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
import { ChangeEvent, FC, useCallback, useEffect, useState } from "react";
import { FeatureAttributes } from "@howso/openapi-client";
import {
Table,
Button,
Radio,
Modal,
ErrorBoundary,
FormModal,
ToggleInput,
UpdateIcon,
WarningIcon,
} from "@howso/react-tailwind-flowbite-components";
import {
Alert,
Button,
getTheme,
Modal,
Radio,
Table,
Tooltip,
} from "flowbite-react";
import { useAtom, useAtomValue, useSetAtom } from "jotai/react";
import { ChangeEvent, FC, useCallback, useEffect, useState } from "react";
import { FormProvider, SubmitHandler, useForm } from "react-hook-form";
import { useTranslation } from "react-i18next";
import { twMerge } from "tailwind-merge";
import { MapDependentFeatureAttributesIcon } from "../../Icons";
import { FeatureAttributeSample } from "../FeatureAttributeSample";
import { FeatureAttributesConfiguration } from "../FeatureAttributesConfiguration";
import { FeatureAttributesConfigurationIssues } from "../FeatureAttributesConfigurationIssues";
import { FeaturesAttributesContextProvider } from "../FeaturesAttributesContext";
import { FeaturesAttributesDependencies } from "../FeaturesAttributesDependencies";
import {
FeatureAttributeTypeField,
featureAttributeTypeLabel,
} from "../fields";
import { useAtom, useAtomValue, useSetAtom } from "jotai/react";
import { twMerge } from "tailwind-merge";
import { FeaturesAttributesDependencies } from "../FeaturesAttributesDependencies";
import {
ErrorBoundary,
FormModal,
ToggleInput,
UpdateIcon,
WarningIcon,
} from "@howso/react-tailwind-flowbite-components";
type FeatureAttributesActiveFeatureAtom,
type FeatureAttributesOptionsAtom,
getFeatureAttributesFormDefaultValues,
type InferFeatureAttributesParamsAtom,
type InferFeatureAttributesParamsTimeFeatureAtom,
InferFeatureAttributesRunRequiredFieldsAtom,
useFeatureAttributesForm,
} from "../hooks";
import {
InferFeatureAttributeFormValues,
getFeatureAttributeConfigurationIssues,
getInferFeatureAttributeParamsFormValuesOnSubmit,
InferFeatureAttributeFormValues,
setInferFeatureAttributeParamsFeatureAttributes,
shouldInferAgain,
} from "../utils";
import { MapDependentFeatureAttributesIcon } from "@/components/Icons";
import {
type FeatureAttributesActiveFeatureAtom,
type InferFeatureAttributesParamsAtom,
type FeatureAttributesOptionsAtom,
type InferFeatureAttributesParamsTimeFeatureAtom,
useFeatureAttributesForm,
getFeatureAttributesFormDefaultValues,
InferFeatureAttributesRunRequiredFieldsAtom,
} from "../hooks";
import { FeaturesAttributesContextProvider } from "../FeaturesAttributesContext";
import { FeatureAttributesConfigurationIssues } from "../FeatureAttributesConfigurationIssues";
import { FeaturesAttributesRowsI18nBundle as i18n } from "./FeaturesAttributesRows.i18n";
import { useTranslation } from "react-i18next";

export type FeaturesAttributesRowsProps = {
activeFeatureAtom: FeatureAttributesActiveFeatureAtom;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
getStringsForI18nBundleFromResource,
type I18nBundle,
} from "@howso/ui-internationalization-utils";
import { Languages } from "@/constants";
import { Languages } from "../../../../constants";

const namespace = "FeatureAttributeAllowNullsField";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Meta, StoryObj } from "@storybook/react";
import { FeatureAttributeAllowNullsField } from "./FeatureAttributeAllowNullsField";
import { getFormProviderDecorator } from "@/storybook";
import { getFormProviderDecorator } from "../../../../storybook";
import { getFeaturesAttributesContextDecorator } from "../../FeaturesAttributesContext/FeaturesAttributesContext.stories.decorators";
import { FeatureAttributeAllowNullsField } from "./FeatureAttributeAllowNullsField";

// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
const meta: Meta<typeof FeatureAttributeAllowNullsField> = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
getStringsForI18nBundleFromResource,
type I18nBundle,
} from "@howso/ui-internationalization-utils";
import { Languages } from "@/constants";
import { Languages } from "../../../../constants";

const namespace = "FeatureAttributeAllowedValuesField";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { FeatureAttributes } from "@howso/openapi-client";
import type { Meta, StoryObj } from "@storybook/react";
import { FeatureAttributeAllowedValuesField } from "./FeatureAttributeAllowedValuesField";
import { getFormProviderDecorator } from "@/storybook";
import { FC, ReactNode } from "react";
import { UseFormProps, useForm, FormProvider } from "react-hook-form";
import { FeatureAttributes } from "@howso/openapi-client";
import { FormProvider, UseFormProps, useForm } from "react-hook-form";
import { getFormProviderDecorator } from "../../../../storybook";
import { getFeaturesAttributesContextDecorator } from "../../FeaturesAttributesContext/FeaturesAttributesContext.stories.decorators";
import { FeatureAttributeAllowedValuesField } from "./FeatureAttributeAllowedValuesField";

const defaultValues: FeatureAttributes = {
type: "nominal",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
getStringsForI18nBundleFromResource,
type I18nBundle,
} from "@howso/ui-internationalization-utils";
import { Languages } from "@/constants";
import { Languages } from "../../../../constants";

const namespace = "FeatureAttributeCycleLengthField";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Meta, StoryObj } from "@storybook/react";
import { FeatureAttributeCycleLengthField } from "./FeatureAttributeCycleLengthField";
import { getFormProviderDecorator } from "@/storybook";
import { getFormProviderDecorator } from "../../../../storybook";
import { getFeaturesAttributesContextDecorator } from "../../FeaturesAttributesContext/FeaturesAttributesContext.stories.decorators";
import { FeatureAttributeCycleLengthField } from "./FeatureAttributeCycleLengthField";

// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
const meta: Meta<typeof FeatureAttributeCycleLengthField> = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
getStringsForI18nBundleFromResource,
type I18nBundle,
} from "@howso/ui-internationalization-utils";
import { Languages } from "@/constants";
import { Languages } from "../../../../constants";

const namespace = "FeatureAttributeDataTypeField";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { Meta, StoryObj } from "@storybook/react";
import { FeatureAttributeDataTypeField } from "./FeatureAttributeDataTypeField";
import { getFormProviderDecorator } from "@/storybook";
import { InferFeatureAttributeFormValues } from "../../utils";
import { getFormProviderDecorator } from "../../../../storybook";
import { getFeaturesAttributesContextDecorator } from "../../FeaturesAttributesContext/FeaturesAttributesContext.stories.decorators";
import { InferFeatureAttributeFormValues } from "../../utils";
import { FeatureAttributeDataTypeField } from "./FeatureAttributeDataTypeField";

// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
const meta: Meta<typeof FeatureAttributeDataTypeField> = {
Expand Down
Loading

0 comments on commit 2d127c8

Please sign in to comment.