1 parent
89a52dad21
commit
d9da311141
11 files changed
+48
-12
No files matched your search
@@ -32,3 +32,4 @@ export type { TopBannerProps } from "./top-banner";
|
|||||||
export { AnimatedPopover } from "./popover/index";
|
export { AnimatedPopover } from "./popover/index";
|
||||||
export { TableActions, DropdownActions } from "./table/TableActions";
|
export { TableActions, DropdownActions } from "./table/TableActions";
|
||||||
export type { ActionType } from "./table/TableActions";
|
export type { ActionType } from "./table/TableActions";
|
||||||
|
export { Skeleton, SkeletonAvatar, SkeletonButton, SkeletonContainer, SkeletonText } from "./skeleton";
|
||||||
File renamed without changes.
@@ -0,0 +1,36 @@
|
|||||||
|
import { Canvas, Meta, Story, ArgsTable } from '@storybook/addon-docs';
|
||||||
|
import { Examples, Example, Note, Title, VariantsTable, VariantColumn, RowTitles, CustomArgsTable} from '@calcom/storybook/components'
|
||||||
|
import { Icon } from "@calcom/ui";
|
||||||
|
|
||||||
|
import { Skeleton, SkeletonAvatar, SkeletonText, SkeletonButton, SkeletonContainer } from './';
|
||||||
|
|
||||||
|
<Meta title="UI/Skeleton" component={Skeleton} />
|
||||||
|
|
||||||
|
<Title title="Skeleton" suffix="Brief" subtitle="Version 2.0 — Last Update: 22 Aug 2022"/>
|
||||||
|
|
||||||
|
|
||||||
|
## Definition
|
||||||
|
Skeletons are used as a placeholder to the content while the content is being loaded. It is used to improve the user experience by providing a visual cue that the content is loading.
|
||||||
|
|
||||||
|
## Structure
|
||||||
|
|
||||||
|
<CustomArgsTable of={Skeleton} />
|
||||||
|
|
||||||
|
|
||||||
|
<Examples title="Skeleton Avatar" >
|
||||||
|
<Example title="Primary">
|
||||||
|
<SkeletonAvatar className="h-8 w-8" />
|
||||||
|
</Example>
|
||||||
|
</Examples>
|
||||||
|
|
||||||
|
<Examples title="Skeleton Text" >
|
||||||
|
<Example title="Primary">
|
||||||
|
<SkeletonText className="h-4 w-32"/>
|
||||||
|
</Example>
|
||||||
|
</Examples>
|
||||||
|
|
||||||
|
<Examples title="Skeleton Button" >
|
||||||
|
<Example title="Primary">
|
||||||
|
<SkeletonButton className="h-8 w-32"/>
|
||||||
|
</Example>
|
||||||
|
</Examples>
|
||||||
@@ -29,6 +29,11 @@ export {
|
|||||||
SelectField,
|
SelectField,
|
||||||
SelectWithValidation,
|
SelectWithValidation,
|
||||||
TableActions,
|
TableActions,
|
||||||
|
Skeleton,
|
||||||
|
SkeletonAvatar,
|
||||||
|
SkeletonText,
|
||||||
|
SkeletonButton,
|
||||||
|
SkeletonContainer,
|
||||||
DropdownActions,
|
DropdownActions,
|
||||||
} from "./components";
|
} from "./components";
|
||||||
export type { ActionType } from "./components";
|
export type { ActionType } from "./components";
|
||||||
@@ -50,10 +55,6 @@ export {
|
|||||||
HorizontalTabs,
|
HorizontalTabs,
|
||||||
SettingsToggle,
|
SettingsToggle,
|
||||||
showToast,
|
showToast,
|
||||||
SkeletonAvatar,
|
|
||||||
SkeletonButton,
|
|
||||||
SkeletonContainer,
|
|
||||||
SkeletonText,
|
|
||||||
Swatch,
|
Swatch,
|
||||||
Switch,
|
Switch,
|
||||||
Card,
|
Card,
|
||||||
@@ -108,7 +109,6 @@ export { List, ListItem, ListItemText, ListItemTitle, ListLinkItem } from "./v2/
|
|||||||
export { default as MeetingTimeInTimezones } from "./v2/core/MeetingTimeInTimezones";
|
export { default as MeetingTimeInTimezones } from "./v2/core/MeetingTimeInTimezones";
|
||||||
export { default as Meta, MetaProvider } from "./v2/core/Meta";
|
export { default as Meta, MetaProvider } from "./v2/core/Meta";
|
||||||
export { MobileNavigationMoreItems, ShellSubHeading } from "./v2/core/Shell";
|
export { MobileNavigationMoreItems, ShellSubHeading } from "./v2/core/Shell";
|
||||||
export { Skeleton } from "./v2/core/skeleton";
|
|
||||||
export { StepCard } from "./v2/core/StepCard";
|
export { StepCard } from "./v2/core/StepCard";
|
||||||
export { default as Stepper } from "./v2/core/Stepper";
|
export { default as Stepper } from "./v2/core/Stepper";
|
||||||
export { Steps } from "./v2/core/Steps";
|
export { Steps } from "./v2/core/Steps";
|
||||||
|
|||||||
@@ -38,9 +38,9 @@ import {
|
|||||||
import ErrorBoundary from "../../ErrorBoundary";
|
import ErrorBoundary from "../../ErrorBoundary";
|
||||||
import { KBarContent, KBarRoot, KBarTrigger } from "../../Kbar";
|
import { KBarContent, KBarRoot, KBarTrigger } from "../../Kbar";
|
||||||
import Logo from "../../Logo";
|
import Logo from "../../Logo";
|
||||||
|
import { SkeletonText } from "../../components/skeleton";
|
||||||
import Credits from "./Credits";
|
import Credits from "./Credits";
|
||||||
import HeadSeo from "./head-seo";
|
import HeadSeo from "./head-seo";
|
||||||
import { SkeletonText } from "./skeleton";
|
|
||||||
|
|
||||||
/* TODO: Migate this */
|
/* TODO: Migate this */
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import Link from "next/link";
|
|||||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||||
import { Icon } from "@calcom/ui";
|
import { Icon } from "@calcom/ui";
|
||||||
|
|
||||||
import { SkeletonText } from "../skeleton";
|
import { SkeletonText } from "../../../components/skeleton";
|
||||||
import Slider from "./Slider";
|
import Slider from "./Slider";
|
||||||
|
|
||||||
export default function AppStoreCategories({
|
export default function AppStoreCategories({
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { SkeletonText } from "../../../components/skeleton";
|
||||||
import Meta from "../Meta";
|
import Meta from "../Meta";
|
||||||
import { ShellSubHeading } from "../Shell";
|
import { ShellSubHeading } from "../Shell";
|
||||||
import { SkeletonText } from "../skeleton";
|
|
||||||
|
|
||||||
function SkeletonLoader({
|
function SkeletonLoader({
|
||||||
className,
|
className,
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { useEffect, useRef } from "react";
|
|||||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||||
|
|
||||||
import { Icon } from "../../..";
|
import { Icon } from "../../..";
|
||||||
import { SkeletonText } from "../skeleton";
|
import { SkeletonText } from "../../../components/skeleton";
|
||||||
|
|
||||||
const Slider = <T extends string | unknown>({
|
const Slider = <T extends string | unknown>({
|
||||||
title = "",
|
title = "",
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export { Portal } from "./Portal";
|
|||||||
export { Segment, SegmentOption } from "./Segment";
|
export { Segment, SegmentOption } from "./Segment";
|
||||||
export { default as SettingsToggle } from "./SettingsToggle";
|
export { default as SettingsToggle } from "./SettingsToggle";
|
||||||
export { default as Shell } from "./Shell";
|
export { default as Shell } from "./Shell";
|
||||||
export { Skeleton, SkeletonAvatar, SkeletonButton, SkeletonContainer, SkeletonText } from "./skeleton";
|
|
||||||
export { default as Stepper } from "./Stepper";
|
export { default as Stepper } from "./Stepper";
|
||||||
export { default as Swatch } from "./Swatch";
|
export { default as Swatch } from "./Swatch";
|
||||||
export { default as Switch } from "./Switch";
|
export { default as Switch } from "./Switch";
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import classNames from "@calcom/lib/classNames";
|
|||||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||||
import { SVGComponent } from "@calcom/types/SVGComponent";
|
import { SVGComponent } from "@calcom/types/SVGComponent";
|
||||||
|
|
||||||
import { SkeletonText } from "../../skeleton";
|
import { SkeletonText } from "../../../../components/skeleton";
|
||||||
|
|
||||||
export type HorizontalTabItemProps = {
|
export type HorizontalTabItemProps = {
|
||||||
name: string;
|
name: string;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
|
|||||||
import { SVGComponent } from "@calcom/types/SVGComponent";
|
import { SVGComponent } from "@calcom/types/SVGComponent";
|
||||||
|
|
||||||
import { Icon } from "../../../..";
|
import { Icon } from "../../../..";
|
||||||
import { Skeleton } from "../../skeleton";
|
import { Skeleton } from "../../../../components/skeleton";
|
||||||
|
|
||||||
export type VerticalTabItemProps = {
|
export type VerticalTabItemProps = {
|
||||||
name: string;
|
name: string;
|
||||||
|
|||||||
Reference in new issue
Block a user