Skip to content

Commit

Permalink
Folder restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
exoup committed Feb 20, 2024
1 parent b8a8b60 commit b2775bb
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 15 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState, Children, isValidElement, cloneElement } from "react";
import { radiusOptions, surfaceColorOptions, childSurfaceColorOptions, textOptions } from "../util/classOptions.js";
import { useTheme } from "../Context/ThemeContext.jsx";
import { radiusOptions, surfaceColorOptions, childSurfaceColorOptions, textOptions } from "../../context/classOptions";
import { useTheme } from "../../context/ThemeContext.jsx";
import { twMerge, twJoin } from "tailwind-merge";

export default function Accordion({ themeClass = useTheme(), radiusClass = 'round', className, children, onChange = null, initialExpanded = [], accordion = true, flush = false }) {
Expand Down
File renamed without changes.
18 changes: 18 additions & 0 deletions src/components/Avatar/Avatar.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@


const Avatar = (props) => {
return (
<div class={`flex flex-row max-w-48 h-full group cursor-pointer ${props.class}`} >
<i class="bi bi-person-circle flex justify-center items-center my-auto mx-2 shadow-md text-opacity-80 group-hover:ring-1 group-hover:ring-info transition-all rounded-full text-4xl size-9"></i>
<div class="flex flex-col flex-grow m-auto text-center overflow-hidden">
<div class="font-bold text-sm break-all">{props.name}</div>
<div class=" font-semibold text-xs truncate">{props.company}</div>
</div>
<div class="flex items-center mx-4">
<i class="bi bi-caret-down-fill text-xs"></i>
</div>
</div>
)
};

export default Avatar;
4 changes: 2 additions & 2 deletions src/Button/Button.jsx → src/components/Button/Button.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { buttonColorOptions, radiusOptions, sizeOptions } from "../util/classOptions";
import { buttonColorOptions, radiusOptions, sizeOptions } from "../../context/classOptions";
import { LoadingIcon } from "../Icon/Icon.jsx";
import { useTheme } from "../Context/ThemeContext.jsx";
import { useTheme } from "../../context/ThemeContext.jsx";

export const Button = (props) => {
const themeColor = useTheme();
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { buttonColorOptions, radiusOptions, sizeOptions } from "../util/classOptions.js";
import { useTheme } from "../Context/ThemeContext.jsx";
import { buttonColorOptions, radiusOptions, sizeOptions } from "../../context/classOptions.js";
import { useTheme } from "../../context/ThemeContext.jsx";

export const LeadingButton = (props) => {
const themeColor = useTheme();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { buttonColorOptions, radiusOptions, sizeOptions } from "../util/classOptions";
import { buttonColorOptions, radiusOptions, sizeOptions } from "../../context/classOptions";
import { useTheme } from "../../context/ThemeContext.jsx";
import { LoadingIcon } from "../Icon/Icon.jsx";
import { useTheme } from "../Context/ThemeContext.jsx";

export const PillButton = (props) => {
const themeColor = useTheme();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { buttonColorOptions, radiusOptions } from "../util/classOptions.js";
import { useTheme } from "../Context/ThemeContext.jsx";
import { buttonColorOptions, radiusOptions } from "../../context/classOptions.js";
import { useTheme } from "../../context/ThemeContext.jsx";

export const ShapeButton = (props) => {
const themeColor = useTheme();
Expand Down
4 changes: 2 additions & 2 deletions src/Card/Card.jsx → src/components/Card/Card.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { surfaceColorOptions, textOptions, radiusOptions } from "../util/classOptions.js";
import { useTheme } from "../Context/ThemeContext.jsx";
import { surfaceColorOptions, textOptions, radiusOptions } from "../../context/classOptions.js";
import { useTheme } from "../../context/ThemeContext.jsx";
import { twMerge } from "tailwind-merge";

export default function Card({ ref, themeClass = useTheme(), radiusClass = 'round', className, children }) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { LeadingButton } from "../Button/LeadingButton";
import { Icon } from "../Icon/Icon";
import { Follower } from "../Textual/Follower";
import { ChevronDoubleRightIcon } from "@heroicons/react/24/outline";
import "../util/styles.css";
import "../../resources/styles.css";

export default {
args: {
Expand Down
3 changes: 1 addition & 2 deletions src/Icon/Icon.jsx → src/components/Icon/Icon.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { cloneElement } from "react";
import { loadingOptions } from "../util/classOptions";
import { loadingOptions } from "../../context/classOptions";

export const Icon = ({ icons, loading, loadingClass }) => {
return (
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit b2775bb

Please sign in to comment.