Skip to content

Commit

Permalink
Updated imports to use aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
zaaakher committed Dec 4, 2023
1 parent 69d6a6c commit 31aa8ed
Show file tree
Hide file tree
Showing 83 changed files with 623 additions and 512 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @sikka/hawa

## 0.21.1

### Patch Changes

- Updated imports to use aliases
- General cleanup

## 0.21.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion components/blocks/Usage.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { FC } from "react";

import { Progress, Tooltip } from "../elements";
import { Progress, Tooltip } from "@elements/index";

type UsageCardTypes = {
tooltip?: any;
Expand Down
10 changes: 5 additions & 5 deletions components/blocks/auth/AppLanding.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { FC } from "react";

import { DirectionType, ThirdPartyAuthTextsTypes } from "@_types/index";

import { Card, CardContent } from "@elements/index";

import { DirectionType, ThirdPartyAuthTextsTypes } from "@_types/index";

import { AuthButtons } from "./AuthButtons";

type AppLandingTextsTypes = ThirdPartyAuthTextsTypes & {
Expand All @@ -21,9 +21,9 @@ type AppLandingTypes = {
viaPhone?: boolean;
viaApple?: boolean;
allowRegister?: boolean;
size: "small" | "normal" | "full";
direction: DirectionType;
handleRouteToRegister: () => void;
size?: "small" | "normal" | "full";
direction?: DirectionType;
handleRouteToRegister?: () => void;
handleGoogle?: () => void;
handleTwitter?: () => void;
handleApple?: () => void;
Expand Down
3 changes: 2 additions & 1 deletion components/blocks/feedback/FeedbackEmoji.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { FC, useState } from "react";

import { Popover, Button, Textarea } from "../../elements";
import { Popover, Button, Textarea } from "@elements/index";

import { BadEmoji, GoodEmoji, VeryBadEmoji, VeryGoodEmoji } from "../../icons";
import { cn } from "../../util";

Expand Down
6 changes: 4 additions & 2 deletions components/blocks/feedback/FeedbackForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ import {
Button,
Card,
CardContent
} from "../../elements";
import { BaseInputType } from "../../types/textTypes";
} from "@elements/index";

import { BaseInputType } from "@_types/textTypes";

import { cn } from "../../util";

type FeedbackFormRequestTypeInputProps = BaseInputType & {
Expand Down
3 changes: 2 additions & 1 deletion components/blocks/feedback/FeedbackRating.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { FC, useEffect, useRef, useState } from "react";

import { Button } from "../../elements";
import { Button } from "@elements/index";

import { cn } from "../../util";

type ComponentTypes = {
Expand Down
6 changes: 4 additions & 2 deletions components/blocks/feedback/UserReferralSource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ import {
Card,
CardContent,
RadioOptionsTypes
} from "../../elements";
import { DirectionType } from "../../types/commonTypes";
} from "@elements/index";

import { DirectionType } from "@_types/commonTypes";

import { cn } from "../../util";

type ComponentTypes = {
Expand Down
2 changes: 1 addition & 1 deletion components/blocks/misc/Announcement.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { FC } from "react";

import { Card, CardContent, Button } from "../../elements";
import { Card, CardContent, Button } from "@elements/index";

type AnnouncementTypes = {
onActionClick: () => void;
Expand Down
3 changes: 2 additions & 1 deletion components/blocks/misc/ContactForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { TextInputType } from "@/components/types/textTypes";
import { zodResolver } from "@hookform/resolvers/zod";
import * as z from "zod";

import { Button, Card, CardContent, Input, Textarea } from "../../elements";
import { Button, Card, CardContent, Input, Textarea } from "@elements/index";

import { cn } from "../../util";

type ContactFormData = {
Expand Down
2 changes: 1 addition & 1 deletion components/blocks/misc/EmptyState.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { FC } from "react";

import { Card, CardContent, CardFooter, Button } from "../../elements";
import { Card, CardContent, CardFooter, Button } from "@elements/index";

type EmptyStateProps = {
onActionClick: () => void;
Expand Down
2 changes: 1 addition & 1 deletion components/blocks/misc/LeadGenerator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
CardTitle,
Button,
Input
} from "../../elements";
} from "@elements/index";

type LGProps = {
texts?: {
Expand Down
3 changes: 2 additions & 1 deletion components/blocks/misc/LegalTexts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
TabsContent,
TabsList,
TabsTrigger
} from "../../elements";
} from "@elements/index";

import { cn } from "../../util";

type TabType = {
Expand Down
2 changes: 1 addition & 1 deletion components/blocks/misc/NoPermission.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { FC } from "react";

import { Card, CardContent } from "../../elements/Card";
import { Card, CardContent } from "@elements/Card";

type NoPermissionProps = {
texts?: {
Expand Down
3 changes: 1 addition & 2 deletions components/blocks/misc/NotFound.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { FC } from "react";

import { Button } from "../../elements/Button";
import { Card, CardContent } from "../../elements/Card";
import { Button, Card, CardContent } from "@elements/index";

type NotFoundTypes = {
variant?: "outlined" | "contained" | "neobrutalism";
Expand Down
2 changes: 1 addition & 1 deletion components/blocks/misc/Testimonial.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { FC } from "react";

import { Card, CardContent } from "../../elements/Card";
import { Card, CardContent } from "@elements/Card";

type TestimonialProps = {
variant?: "outlined" | "contained" | "neobrutalism";
Expand Down
12 changes: 8 additions & 4 deletions components/blocks/pricing/ComparingPlans.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import React, { useState, FC } from "react";

import { PlanFeature } from "@/components/types/pricingTypes";
import { PricingPlanTexts } from "@/components/types/textTypes";
import { Radio, Tooltip, ScrollArea, Button, Chip } from "@elements/index";

import {
PlanFeature,
PricingPlanTexts,
DirectionType,
RadioOptionType
} from "@_types/index";

import { Radio, Tooltip, ScrollArea, Button, Chip } from "../../elements";
import { CheckMark, UncheckMark } from "../../icons";
import { DirectionType, RadioOptionType } from "../../types/commonTypes";
import { cn } from "../../util";

type ComparingPlansTypes = {
Expand Down
12 changes: 8 additions & 4 deletions components/blocks/pricing/HorizontalPricing.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import React, { FC, useState } from "react";

import { PlanFeature } from "@/components/types/pricingTypes";
import { PricingPlanTexts } from "@/components/types/textTypes";
import { Radio } from "@elements/index";

import {
PlanFeature,
PricingPlanTexts,
DirectionType,
RadioOptionType
} from "@_types/index";

import { Radio } from "../../elements";
import { DirectionType, RadioOptionType } from "../../types/commonTypes";
import { cn } from "../../util";

type HorizontalPricingTypes = {
Expand Down
5 changes: 3 additions & 2 deletions components/blocks/pricing/PricingPlans.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React, { FC, InputHTMLAttributes } from "react";

import { PricingCard, PricingCardProps, Radio } from "../../elements";
import { DirectionType, RadioOptionType } from "../../types/commonTypes";
import { PricingCard, PricingCardProps, Radio } from "@elements/index";

import { DirectionType, RadioOptionType } from "@_types/commonTypes";

type PricingPlansTypes = {
plans: PricingCardProps[];
Expand Down
Loading

0 comments on commit 31aa8ed

Please sign in to comment.