@kala-ui/react 0.0.1-beta.7 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/accordion-skeleton.js +1 -1
- package/dist/components/accordion/accordion.js +2 -1
- package/dist/components/action-icon/action-icon.d.ts +12 -0
- package/dist/components/action-icon/action-icon.js +35 -0
- package/dist/components/action-icon/action-icon.stories.d.ts +9 -0
- package/dist/components/action-icon/action-icon.stories.js +42 -0
- package/dist/components/action-icon/index.d.ts +1 -0
- package/dist/components/action-icon/index.js +1 -0
- package/dist/components/alert/alert-skeleton.js +4 -3
- package/dist/components/alert/alert.d.ts +2 -2
- package/dist/components/alert/alert.js +8 -6
- package/dist/components/alert/alert.stories.js +13 -9
- package/dist/components/alert/index.d.ts +1 -1
- package/dist/components/alert-dialog/alert-dialog.js +8 -5
- package/dist/components/app-shell/app-shell.d.ts +58 -0
- package/dist/components/app-shell/app-shell.js +111 -0
- package/dist/components/app-shell/app-shell.stories.d.ts +8 -0
- package/dist/components/app-shell/app-shell.stories.js +35 -0
- package/dist/components/app-shell/index.d.ts +1 -0
- package/dist/components/app-shell/index.js +1 -0
- package/dist/components/avatar/avatar.d.ts +2 -2
- package/dist/components/avatar/avatar.stories.js +1 -1
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/badge/badge.stories.js +1 -1
- package/dist/components/banner/banner-skeleton.js +1 -1
- package/dist/components/banner/banner.d.ts +1 -1
- package/dist/components/banner/banner.stories.js +1 -1
- package/dist/components/box/box.d.ts +8 -0
- package/dist/components/box/box.js +10 -0
- package/dist/components/box/box.stories.d.ts +8 -0
- package/dist/components/box/box.stories.js +32 -0
- package/dist/components/box/index.d.ts +1 -0
- package/dist/components/box/index.js +1 -0
- package/dist/components/breadcrumbs/breadcrumbs-skeleton.js +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.stories.js +1 -1
- package/dist/components/burger/burger.d.ts +8 -0
- package/dist/components/burger/burger.js +21 -0
- package/dist/components/burger/burger.stories.d.ts +8 -0
- package/dist/components/burger/burger.stories.js +31 -0
- package/dist/components/burger/index.d.ts +1 -0
- package/dist/components/burger/index.js +1 -0
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/button/button.stories.js +10 -7
- package/dist/components/button-group/button-group.stories.js +1 -1
- package/dist/components/calendar/calendar-skeleton.js +1 -1
- package/dist/components/calendar/calendar.d.ts +1 -1
- package/dist/components/calendar/calendar.js +1 -1
- package/dist/components/calendar/calendar.types.d.ts +3 -3
- package/dist/components/card/card-skeleton.js +2 -2
- package/dist/components/card/card.js +17 -14
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/center/center.d.ts +7 -0
- package/dist/components/center/center.js +10 -0
- package/dist/components/center/center.stories.d.ts +7 -0
- package/dist/components/center/center.stories.js +25 -0
- package/dist/components/center/index.d.ts +1 -0
- package/dist/components/center/index.js +1 -0
- package/dist/components/charts/area-chart.js +1 -1
- package/dist/components/charts/bar-chart.js +1 -1
- package/dist/components/charts/donut-chart.js +1 -1
- package/dist/components/charts/index.d.ts +2 -2
- package/dist/components/charts/index.js +2 -2
- package/dist/components/charts/line-chart.js +1 -1
- package/dist/components/charts/radial-bar-chart.js +1 -1
- package/dist/components/charts/theme-utils.d.ts +1 -1
- package/dist/components/charts/use-theme-aware-chart.d.ts +1 -1
- package/dist/components/charts/use-theme-aware-chart.js +2 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/checkbox/checkbox.stories.js +12 -8
- package/dist/components/close-button/close-button.d.ts +7 -0
- package/dist/components/close-button/close-button.js +9 -0
- package/dist/components/close-button/close-button.stories.d.ts +7 -0
- package/dist/components/close-button/close-button.stories.js +18 -0
- package/dist/components/close-button/index.d.ts +1 -0
- package/dist/components/close-button/index.js +1 -0
- package/dist/components/code/code.d.ts +8 -0
- package/dist/components/code/code.js +14 -0
- package/dist/components/code/code.stories.d.ts +8 -0
- package/dist/components/code/code.stories.js +31 -0
- package/dist/components/code/index.d.ts +1 -0
- package/dist/components/code/index.js +1 -0
- package/dist/components/collapse/collapse.d.ts +17 -0
- package/dist/components/collapse/collapse.js +34 -0
- package/dist/components/collapse/index.d.ts +1 -0
- package/dist/components/collapse/index.js +1 -0
- package/dist/components/color-input/color-input.d.ts +28 -0
- package/dist/components/color-input/color-input.js +35 -0
- package/dist/components/color-input/color-input.stories.d.ts +10 -0
- package/dist/components/color-input/color-input.stories.js +41 -0
- package/dist/components/color-input/index.d.ts +1 -0
- package/dist/components/color-input/index.js +1 -0
- package/dist/components/combobox/combobox-skeleton.js +1 -1
- package/dist/components/combobox/combobox.d.ts +1 -1
- package/dist/components/combobox/combobox.js +17 -8
- package/dist/components/combobox/combobox.stories.js +1 -1
- package/dist/components/command/command.d.ts +2 -2
- package/dist/components/command/command.stories.js +14 -19
- package/dist/components/container/container.d.ts +1 -1
- package/dist/components/container/index.d.ts +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/data-table/column-header-filter.js +11 -6
- package/dist/components/data-table/data-table-skeleton.js +5 -15
- package/dist/components/data-table/data-table.js +18 -15
- package/dist/components/data-table/data-table.stories.js +3 -5
- package/dist/components/date-picker/date-picker.d.ts +1 -1
- package/dist/components/date-picker/date-picker.js +3 -3
- package/dist/components/date-picker/date-picker.types.d.ts +1 -1
- package/dist/components/dialog/dialog-skeleton.js +1 -1
- package/dist/components/dialog/dialog.js +6 -4
- package/dist/components/dialog/dialog.stories.js +2 -2
- package/dist/components/dnd/dnd.d.ts +4 -5
- package/dist/components/dnd/dnd.js +5 -5
- package/dist/components/dnd/dnd.stories.js +48 -40
- package/dist/components/drawer/drawer.stories.js +2 -2
- package/dist/components/empty-state/empty-state-skeleton.js +2 -3
- package/dist/components/empty-state/empty-state.d.ts +1 -1
- package/dist/components/field/field-skeleton.js +1 -1
- package/dist/components/field/field.stories.js +1 -1
- package/dist/components/file-upload/file-upload-skeleton.js +1 -1
- package/dist/components/flex/flex.d.ts +7 -5
- package/dist/components/flex/flex.js +2 -2
- package/dist/components/flex/index.d.ts +1 -1
- package/dist/components/flex/index.js +1 -1
- package/dist/components/grid/grid.d.ts +24 -0
- package/dist/components/grid/grid.js +136 -0
- package/dist/components/grid/grid.stories.d.ts +8 -0
- package/dist/components/grid/grid.stories.js +31 -0
- package/dist/components/grid/index.d.ts +1 -0
- package/dist/components/grid/index.js +1 -0
- package/dist/components/group/group.d.ts +2 -2
- package/dist/components/group/group.js +1 -1
- package/dist/components/group/index.d.ts +1 -1
- package/dist/components/group/index.js +1 -1
- package/dist/components/header/header-skeleton.js +1 -1
- package/dist/components/header/header.d.ts +3 -3
- package/dist/components/header/header.js +17 -31
- package/dist/components/header/index.d.ts +1 -1
- package/dist/components/heading/heading.d.ts +4 -2
- package/dist/components/heading/heading.js +3 -7
- package/dist/components/heading/index.d.ts +1 -1
- package/dist/components/heading/index.js +1 -1
- package/dist/components/indicator/index.d.ts +1 -0
- package/dist/components/indicator/index.js +1 -0
- package/dist/components/indicator/indicator.d.ts +30 -0
- package/dist/components/indicator/indicator.js +89 -0
- package/dist/components/indicator/indicator.stories.d.ts +10 -0
- package/dist/components/indicator/indicator.stories.js +75 -0
- package/dist/components/input/input.js +1 -1
- package/dist/components/input/input.stories.js +1 -1
- package/dist/components/input-group/input-group.stories.js +1 -1
- package/dist/components/kbd/index.d.ts +1 -0
- package/dist/components/kbd/index.js +1 -0
- package/dist/components/kbd/kbd.d.ts +6 -0
- package/dist/components/kbd/kbd.js +13 -0
- package/dist/components/kbd/kbd.stories.d.ts +9 -0
- package/dist/components/kbd/kbd.stories.js +28 -0
- package/dist/components/label/label.stories.js +1 -1
- package/dist/components/list/list-skeleton.js +2 -2
- package/dist/components/list/list.js +1 -1
- package/dist/components/list/list.stories.js +1 -1
- package/dist/components/list/list.types.d.ts +2 -2
- package/dist/components/loading-overlay/index.d.ts +1 -0
- package/dist/components/loading-overlay/index.js +1 -0
- package/dist/components/loading-overlay/loading-overlay.d.ts +19 -0
- package/dist/components/loading-overlay/loading-overlay.js +19 -0
- package/dist/components/loading-overlay/loading-overlay.stories.d.ts +8 -0
- package/dist/components/loading-overlay/loading-overlay.stories.js +46 -0
- package/dist/components/metric-card/metric-card-skeleton.js +2 -2
- package/dist/components/metric-card/metric-card.js +1 -1
- package/dist/components/multi-select/multi-select-skeleton.js +1 -1
- package/dist/components/multi-select/multi-select.stories.js +1 -1
- package/dist/components/nav-link/index.d.ts +1 -0
- package/dist/components/nav-link/index.js +1 -0
- package/dist/components/nav-link/nav-link.d.ts +26 -0
- package/dist/components/nav-link/nav-link.js +26 -0
- package/dist/components/nav-link/nav-link.stories.d.ts +9 -0
- package/dist/components/nav-link/nav-link.stories.js +37 -0
- package/dist/components/navigation/navigation-skeleton.js +1 -1
- package/dist/components/number-input/index.d.ts +1 -0
- package/dist/components/number-input/index.js +1 -0
- package/dist/components/number-input/number-input.d.ts +40 -0
- package/dist/components/number-input/number-input.js +69 -0
- package/dist/components/number-input/number-input.stories.d.ts +11 -0
- package/dist/components/number-input/number-input.stories.js +54 -0
- package/dist/components/overlay/index.d.ts +1 -0
- package/dist/components/overlay/index.js +1 -0
- package/dist/components/overlay/overlay.d.ts +22 -0
- package/dist/components/overlay/overlay.js +45 -0
- package/dist/components/overlay/overlay.stories.d.ts +9 -0
- package/dist/components/overlay/overlay.stories.js +47 -0
- package/dist/components/page-transition/page-transition.stories.js +1 -1
- package/dist/components/pagination/index.d.ts +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/pagination-skeleton.js +1 -1
- package/dist/components/pagination/pagination.d.ts +44 -28
- package/dist/components/pagination/pagination.js +53 -79
- package/dist/components/pagination/pagination.stories.d.ts +1 -0
- package/dist/components/pagination/pagination.stories.js +31 -5
- package/dist/components/paper/index.d.ts +1 -0
- package/dist/components/paper/index.js +1 -0
- package/dist/components/paper/paper.d.ts +12 -0
- package/dist/components/paper/paper.js +39 -0
- package/dist/components/paper/paper.stories.d.ts +7 -0
- package/dist/components/paper/paper.stories.js +30 -0
- package/dist/components/password-strength-indicator/password-strength-indicator.stories.js +1 -1
- package/dist/components/popover/popover-skeleton.js +1 -1
- package/dist/components/popover/popover.stories.js +2 -2
- package/dist/components/progress/index.d.ts +1 -1
- package/dist/components/progress/progress.d.ts +1 -1
- package/dist/components/progress/progress.stories.js +1 -1
- package/dist/components/radio-group/radio-group-skeleton.js +1 -1
- package/dist/components/radio-group/radio-group.stories.js +1 -1
- package/dist/components/resizable/resizable.stories.js +8 -8
- package/dist/components/ring-progress/index.d.ts +1 -0
- package/dist/components/ring-progress/index.js +1 -0
- package/dist/components/ring-progress/ring-progress.d.ts +24 -0
- package/dist/components/ring-progress/ring-progress.js +20 -0
- package/dist/components/ring-progress/ring-progress.stories.d.ts +9 -0
- package/dist/components/ring-progress/ring-progress.stories.js +46 -0
- package/dist/components/scroll-area/scroll-area.stories.js +26 -26
- package/dist/components/segmented-control/index.d.ts +1 -0
- package/dist/components/segmented-control/index.js +1 -0
- package/dist/components/segmented-control/segmented-control.d.ts +19 -0
- package/dist/components/segmented-control/segmented-control.js +46 -0
- package/dist/components/segmented-control/segmented-control.stories.d.ts +10 -0
- package/dist/components/segmented-control/segmented-control.stories.js +53 -0
- package/dist/components/select/select.js +1 -1
- package/dist/components/select/select.stories.js +1 -1
- package/dist/components/separator/separator.stories.js +1 -1
- package/dist/components/session-card/session-card-skeleton.js +2 -2
- package/dist/components/session-card/session-card.js +1 -1
- package/dist/components/sidebar/sidebar-skeleton.js +2 -2
- package/dist/components/skeleton/index.d.ts +3 -3
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/skeleton/skeleton.types.d.ts +0 -249
- package/dist/components/slider/index.d.ts +1 -1
- package/dist/components/slider/slider.js +1 -1
- package/dist/components/slider/slider.stories.js +1 -1
- package/dist/components/social-login-button/social-login-button.js +6 -6
- package/dist/components/sparkline-chart/sparkline-chart.js +6 -3
- package/dist/components/sparkline-chart/sparkline-chart.stories.js +1 -1
- package/dist/components/spinner/spinner.d.ts +1 -1
- package/dist/components/spoiler/index.d.ts +1 -0
- package/dist/components/spoiler/index.js +1 -0
- package/dist/components/spoiler/spoiler.d.ts +14 -0
- package/dist/components/spoiler/spoiler.js +20 -0
- package/dist/components/spoiler/spoiler.stories.d.ts +8 -0
- package/dist/components/spoiler/spoiler.stories.js +35 -0
- package/dist/components/stack/index.d.ts +1 -1
- package/dist/components/stack/index.js +1 -1
- package/dist/components/stack/stack.d.ts +2 -2
- package/dist/components/stack/stack.js +1 -1
- package/dist/components/steps/steps-skeleton.js +1 -1
- package/dist/components/steps/steps.js +7 -5
- package/dist/components/steps/steps.stories.js +6 -2
- package/dist/components/switch/index.d.ts +1 -1
- package/dist/components/switch/switch.js +1 -1
- package/dist/components/switch/switch.stories.js +1 -1
- package/dist/components/table/table-skeleton.js +2 -2
- package/dist/components/table/table.js +4 -3
- package/dist/components/table/table.stories.js +10 -7
- package/dist/components/tabs/tabs-skeleton.js +1 -1
- package/dist/components/tabs/tabs.d.ts +3 -3
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/tabs/tabs.stories.js +5 -5
- package/dist/components/text/index.d.ts +1 -1
- package/dist/components/text/index.js +1 -1
- package/dist/components/text/text.d.ts +7 -5
- package/dist/components/text/text.js +2 -2
- package/dist/components/text/text.stories.js +34 -3
- package/dist/components/textarea/textarea.js +1 -1
- package/dist/components/textarea/textarea.stories.js +1 -1
- package/dist/components/timeline/index.d.ts +1 -0
- package/dist/components/timeline/index.js +1 -0
- package/dist/components/timeline/timeline.d.ts +35 -0
- package/dist/components/timeline/timeline.js +36 -0
- package/dist/components/timeline/timeline.stories.d.ts +7 -0
- package/dist/components/timeline/timeline.stories.js +21 -0
- package/dist/components/toast/toast.js +6 -6
- package/dist/components/toggle/toggle.stories.js +1 -1
- package/dist/components/tooltip/tooltip.stories.js +1 -1
- package/dist/components/user-menu-dropdown/user-menu-dropdown.js +1 -1
- package/dist/config/tailwind-base.d.ts +10 -0
- package/dist/config/tailwind-base.js +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +25 -10
- package/dist/lib/animations.js +94 -94
- package/dist/primitives/command/Command.js +2 -1
- package/dist/styles/globals.css +415 -82
- package/package.json +101 -24
|
@@ -7,11 +7,35 @@ const meta = {
|
|
|
7
7
|
argTypes: {
|
|
8
8
|
size: {
|
|
9
9
|
control: "select",
|
|
10
|
-
options: [
|
|
10
|
+
options: [
|
|
11
|
+
"xs",
|
|
12
|
+
"sm",
|
|
13
|
+
"base",
|
|
14
|
+
"lg",
|
|
15
|
+
"xl",
|
|
16
|
+
"2xl",
|
|
17
|
+
"3xl",
|
|
18
|
+
"4xl",
|
|
19
|
+
"5xl",
|
|
20
|
+
"6xl",
|
|
21
|
+
"7xl",
|
|
22
|
+
"8xl",
|
|
23
|
+
"9xl",
|
|
24
|
+
],
|
|
11
25
|
},
|
|
12
26
|
weight: {
|
|
13
27
|
control: "select",
|
|
14
|
-
options: [
|
|
28
|
+
options: [
|
|
29
|
+
"thin",
|
|
30
|
+
"extralight",
|
|
31
|
+
"light",
|
|
32
|
+
"normal",
|
|
33
|
+
"medium",
|
|
34
|
+
"semibold",
|
|
35
|
+
"bold",
|
|
36
|
+
"extrabold",
|
|
37
|
+
"black",
|
|
38
|
+
],
|
|
15
39
|
},
|
|
16
40
|
align: {
|
|
17
41
|
control: "select",
|
|
@@ -19,7 +43,14 @@ const meta = {
|
|
|
19
43
|
},
|
|
20
44
|
color: {
|
|
21
45
|
control: "select",
|
|
22
|
-
options: [
|
|
46
|
+
options: [
|
|
47
|
+
"default",
|
|
48
|
+
"muted",
|
|
49
|
+
"primary",
|
|
50
|
+
"secondary",
|
|
51
|
+
"destructive",
|
|
52
|
+
"accent",
|
|
53
|
+
],
|
|
23
54
|
},
|
|
24
55
|
truncate: {
|
|
25
56
|
control: "boolean",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from "../../lib/utils";
|
|
3
|
-
import { Skeleton } from "../skeleton
|
|
3
|
+
import { Skeleton } from "../skeleton";
|
|
4
4
|
function Textarea({ className, isLoading = false, rows, ...props }) {
|
|
5
5
|
if (isLoading) {
|
|
6
6
|
return (_jsx(Skeleton, { className: cn("min-h-[80px] w-full rounded-md", className), style: { height: rows ? `${rows * 1.5}rem` : undefined } }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Label } from "../label";
|
|
3
|
-
import { Skeleton } from "../skeleton
|
|
3
|
+
import { Skeleton } from "../skeleton";
|
|
4
4
|
import { Textarea } from "./textarea";
|
|
5
5
|
const meta = {
|
|
6
6
|
title: "Forms/Textarea",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./timeline";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./timeline";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface TimelineProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/** Active item index */
|
|
4
|
+
active?: number;
|
|
5
|
+
/** Bullet size in px */
|
|
6
|
+
bulletSize?: number;
|
|
7
|
+
/** Line width in px */
|
|
8
|
+
lineWidth?: number;
|
|
9
|
+
/** Reverse active direction */
|
|
10
|
+
reverseActive?: boolean;
|
|
11
|
+
/** Color of the active items (class name) */
|
|
12
|
+
activeClass?: string;
|
|
13
|
+
/** Align items */
|
|
14
|
+
align?: "right" | "left";
|
|
15
|
+
}
|
|
16
|
+
export interface TimelineItemProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
17
|
+
/** Bullet content */
|
|
18
|
+
bullet?: React.ReactNode;
|
|
19
|
+
/** Item title */
|
|
20
|
+
title?: React.ReactNode;
|
|
21
|
+
/** Line variant */
|
|
22
|
+
lineVariant?: "solid" | "dashed" | "dotted";
|
|
23
|
+
/** Internal prop: index */
|
|
24
|
+
__index?: number;
|
|
25
|
+
/** Internal prop: active state */
|
|
26
|
+
__active?: boolean;
|
|
27
|
+
/** Internal prop: line active state */
|
|
28
|
+
__lineActive?: boolean;
|
|
29
|
+
/** Internal prop: bullet size */
|
|
30
|
+
__bulletSize?: number;
|
|
31
|
+
/** Internal prop: line width */
|
|
32
|
+
__lineWidth?: number;
|
|
33
|
+
}
|
|
34
|
+
export declare const TimelineItem: React.ForwardRefExoticComponent<TimelineItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
export declare const Timeline: React.ForwardRefExoticComponent<TimelineProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../../lib/utils";
|
|
4
|
+
export const TimelineItem = React.forwardRef(({ className, bullet, title, children, lineVariant = "solid", __index, __active, __lineActive, __bulletSize = 20, __lineWidth = 4, ...props }, ref) => {
|
|
5
|
+
return (_jsxs("div", { ref: ref, className: cn("relative pl-8 pb-8 last:pb-0", className), style: { paddingLeft: __bulletSize + 12 }, ...props, children: [_jsx("div", { className: cn("absolute top-0 bottom-0 border-l border-muted transition-colors", __lineActive && "border-primary", lineVariant === "dashed" && "border-dashed", lineVariant === "dotted" && "border-dotted"), style: {
|
|
6
|
+
left: (__bulletSize - __lineWidth) / 2,
|
|
7
|
+
width: __lineWidth,
|
|
8
|
+
borderLeftWidth: __lineWidth,
|
|
9
|
+
} }), _jsx("div", { className: cn("absolute top-0 flex items-center justify-center rounded-full border bg-background text-xs font-medium transition-colors", __active
|
|
10
|
+
? "border-primary bg-primary text-primary-foreground"
|
|
11
|
+
: "border-muted text-muted-foreground"), style: {
|
|
12
|
+
width: __bulletSize,
|
|
13
|
+
height: __bulletSize,
|
|
14
|
+
left: 0,
|
|
15
|
+
borderWidth: __lineWidth / 2,
|
|
16
|
+
}, children: bullet }), _jsxs("div", { className: "flex flex-col -mt-1", children: [title && _jsx("div", { className: "font-semibold text-sm mb-1", children: title }), _jsx("div", { className: "text-muted-foreground text-sm", children: children })] })] }));
|
|
17
|
+
});
|
|
18
|
+
TimelineItem.displayName = "TimelineItem";
|
|
19
|
+
export const Timeline = React.forwardRef(({ className, children, active = -1, reverseActive = false, bulletSize = 20, lineWidth = 4, ...props }, ref) => {
|
|
20
|
+
const items = React.Children.toArray(children);
|
|
21
|
+
return (_jsx("div", { ref: ref, className: cn("flex flex-col", className), ...props, children: items.map((item, index) => {
|
|
22
|
+
if (React.isValidElement(item)) {
|
|
23
|
+
return React.cloneElement(item, {
|
|
24
|
+
__index: index,
|
|
25
|
+
__active: active >= index ||
|
|
26
|
+
(reverseActive && active >= items.length - 1 - index),
|
|
27
|
+
__lineActive: active > index ||
|
|
28
|
+
(reverseActive && active > items.length - 1 - index),
|
|
29
|
+
__bulletSize: bulletSize,
|
|
30
|
+
__lineWidth: lineWidth,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
return item;
|
|
34
|
+
}) }));
|
|
35
|
+
});
|
|
36
|
+
Timeline.displayName = "Timeline";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Timeline } from "./timeline";
|
|
3
|
+
declare const meta: Meta<typeof Timeline>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Timeline>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const CustomBullets: Story;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Check, GitCommit, GitPullRequest, MessageSquare } from "lucide-react";
|
|
3
|
+
import { Timeline, TimelineItem } from "./timeline";
|
|
4
|
+
const meta = {
|
|
5
|
+
title: "Components/Timeline",
|
|
6
|
+
component: Timeline,
|
|
7
|
+
tags: ["autodocs"],
|
|
8
|
+
argTypes: {
|
|
9
|
+
active: { control: "number" },
|
|
10
|
+
bulletSize: { control: "number" },
|
|
11
|
+
lineWidth: { control: "number" },
|
|
12
|
+
reverseActive: { control: "boolean" },
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
export const Default = {
|
|
17
|
+
render: (args) => (_jsxs(Timeline, { active: 1, ...args, children: [_jsxs(TimelineItem, { bullet: _jsx(GitCommit, { size: 12 }), title: "New Branch", children: ["You created a new branch ", _jsx("b", { children: "fix/timeline" })] }), _jsx(TimelineItem, { bullet: _jsx(GitPullRequest, { size: 12 }), title: "Pull Request", children: "You created a pull request" }), _jsxs(TimelineItem, { bullet: _jsx(MessageSquare, { size: 12 }), title: "Code Review", children: [_jsx("b", { children: "Robert" }), " commented on your changes"] }), _jsx(TimelineItem, { bullet: _jsx(Check, { size: 12 }), title: "Merged", children: "Pull request merged" })] })),
|
|
18
|
+
};
|
|
19
|
+
export const CustomBullets = {
|
|
20
|
+
render: () => (_jsxs(Timeline, { active: 2, bulletSize: 24, lineWidth: 2, children: [_jsx(TimelineItem, { title: "Ordered 1", children: "Order placed" }), _jsx(TimelineItem, { title: "Ordered 2", children: "Order shipped" }), _jsx(TimelineItem, { title: "Ordered 3", children: "Order delivered" })] })),
|
|
21
|
+
};
|
|
@@ -3,12 +3,12 @@ import { Toaster as Sonner } from "sonner";
|
|
|
3
3
|
const Toast = ({ ...props }) => {
|
|
4
4
|
return (_jsx(Sonner, { className: "toaster group", closeButton: true, toastOptions: {
|
|
5
5
|
classNames: {
|
|
6
|
-
toast:
|
|
7
|
-
description:
|
|
8
|
-
actionButton:
|
|
9
|
-
cancelButton:
|
|
10
|
-
icon:
|
|
11
|
-
closeButton:
|
|
6
|
+
toast: "group toast group-[.toaster]:bg-popover group-[.toaster]:text-foreground group-[.toaster]:border data-[type=error]:!border-destructive data-[type=success]:!border-success data-[type=warning]:!border-warning data-[type=info]:!border-info data-[type=success]:[&_[data-icon]]:!text-success data-[type=error]:[&_[data-icon]]:!text-destructive data-[type=warning]:[&_[data-icon]]:!text-warning data-[type=info]:[&_[data-icon]]:!text-info",
|
|
7
|
+
description: "group-[.toast]:text-muted-foreground",
|
|
8
|
+
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground group-data-[type=success]:!bg-success group-data-[type=success]:!text-success-foreground group-data-[type=error]:!bg-destructive group-data-[type=error]:!text-destructive-foreground group-data-[type=warning]:!bg-warning group-data-[type=warning]:!text-warning-foreground group-data-[type=info]:!bg-info group-data-[type=info]:!text-info-foreground",
|
|
9
|
+
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",
|
|
10
|
+
icon: "group-[.toast]:!text-current",
|
|
11
|
+
closeButton: "group-[.toast]:bg-popover group-[.toast]:border group-[.toast]:hover:bg-accent group-[.toast]:!left-auto group-[.toast]:!-right-4 group-[.toast]:!-top-1 group-data-[type=success]:!border-success group-data-[type=error]:!border-destructive group-data-[type=warning]:!border-warning group-data-[type=info]:!border-info",
|
|
12
12
|
},
|
|
13
13
|
}, ...props }));
|
|
14
14
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Bold, BookmarkIcon, Italic, Underline } from "lucide-react";
|
|
3
|
-
import { Skeleton } from "../skeleton
|
|
3
|
+
import { Skeleton } from "../skeleton";
|
|
4
4
|
import { Toggle } from "./toggle";
|
|
5
5
|
const meta = {
|
|
6
6
|
title: "Forms/Toggle",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button } from "../button";
|
|
3
|
-
import { Skeleton } from "../skeleton
|
|
3
|
+
import { Skeleton } from "../skeleton";
|
|
4
4
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from "./tooltip";
|
|
5
5
|
const meta = {
|
|
6
6
|
title: "Overlay/Tooltip",
|
|
@@ -4,7 +4,7 @@ import { LogOut, Settings, User } from "lucide-react";
|
|
|
4
4
|
import { cn } from "../../lib/utils";
|
|
5
5
|
import { Avatar, AvatarFallback, AvatarImage } from "../avatar";
|
|
6
6
|
import { Button } from "../button";
|
|
7
|
-
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from "../dropdown-menu
|
|
7
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from "../dropdown-menu";
|
|
8
8
|
export function UserMenuDropdown({ user, isOpen, onOpenChange, onLogout, baseUrl = "/admin", className, }) {
|
|
9
9
|
const initials = user.name
|
|
10
10
|
? user.name
|
|
@@ -145,6 +145,16 @@ export declare const baseConfig: {
|
|
|
145
145
|
DEFAULT: string;
|
|
146
146
|
foreground: string;
|
|
147
147
|
};
|
|
148
|
+
brand: {
|
|
149
|
+
readonly google: "#4285F4";
|
|
150
|
+
readonly facebook: "#1877F2";
|
|
151
|
+
readonly twitter: "#1DA1F2";
|
|
152
|
+
readonly github: "#181717";
|
|
153
|
+
readonly discord: "#5865F2";
|
|
154
|
+
readonly linkedin: "#0A66C2";
|
|
155
|
+
readonly apple: "#000000";
|
|
156
|
+
readonly microsoft: "#00A4EF";
|
|
157
|
+
};
|
|
148
158
|
separator: string;
|
|
149
159
|
};
|
|
150
160
|
spacing: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
export * from "./components/accordion";
|
|
2
2
|
export * from "./components/alert";
|
|
3
3
|
export * from "./components/alert-dialog";
|
|
4
|
+
export * from "./components/app-shell";
|
|
4
5
|
export * from "./components/aspect-ratio";
|
|
5
6
|
export * from "./components/avatar";
|
|
6
7
|
export * from "./components/badge";
|
|
7
8
|
export * from "./components/banner";
|
|
9
|
+
export * from "./components/box";
|
|
8
10
|
export * from "./components/breadcrumbs";
|
|
11
|
+
export * from "./components/burger";
|
|
9
12
|
export * from "./components/button";
|
|
10
13
|
export * from "./components/button-group";
|
|
11
14
|
export * from "./components/calendar";
|
|
12
15
|
export * from "./components/card";
|
|
16
|
+
export * from "./components/center";
|
|
13
17
|
export * from "./components/charts";
|
|
14
18
|
export * from "./components/checkbox";
|
|
19
|
+
export * from "./components/code";
|
|
20
|
+
export * from "./components/collapse";
|
|
21
|
+
export * from "./components/color-input";
|
|
15
22
|
export * from "./components/combobox";
|
|
16
23
|
export * from "./components/command";
|
|
17
24
|
export * from "./components/container";
|
|
@@ -27,42 +34,60 @@ export * from "./components/field";
|
|
|
27
34
|
export * from "./components/file-upload";
|
|
28
35
|
export * from "./components/flex";
|
|
29
36
|
export * from "./components/footer";
|
|
37
|
+
export * from "./components/grid";
|
|
30
38
|
export * from "./components/group";
|
|
31
39
|
export * from "./components/header";
|
|
32
40
|
export * from "./components/heading";
|
|
41
|
+
export * from "./components/indicator";
|
|
33
42
|
export * from "./components/input";
|
|
34
43
|
export * from "./components/input-group";
|
|
35
44
|
export * from "./components/input-otp";
|
|
45
|
+
export * from "./components/kbd";
|
|
36
46
|
export * from "./components/label";
|
|
37
47
|
export * from "./components/list";
|
|
38
48
|
export * from "./components/loading";
|
|
49
|
+
export * from "./components/loading-overlay";
|
|
39
50
|
export * from "./components/menubar";
|
|
40
51
|
export * from "./components/metric-card";
|
|
41
52
|
export * from "./components/multi-select";
|
|
53
|
+
export * from "./components/nav-link";
|
|
42
54
|
export * from "./components/navigation";
|
|
43
55
|
export * from "./components/navigation-menu";
|
|
56
|
+
export * from "./components/number-input";
|
|
57
|
+
export * from "./components/overlay";
|
|
44
58
|
export * from "./components/page-transition";
|
|
45
59
|
export * from "./components/pagination";
|
|
60
|
+
export * from "./components/paper";
|
|
46
61
|
export * from "./components/password-strength-indicator";
|
|
47
62
|
export * from "./components/popover";
|
|
48
63
|
export * from "./components/progress";
|
|
49
64
|
export * from "./components/radio-group";
|
|
50
65
|
export * from "./components/resizable";
|
|
66
|
+
export * from "./components/ring-progress";
|
|
51
67
|
export * from "./components/scroll-area";
|
|
68
|
+
export * from "./components/segmented-control";
|
|
52
69
|
export * from "./components/select";
|
|
53
70
|
export * from "./components/separator";
|
|
54
71
|
export * from "./components/session-card";
|
|
55
72
|
export * from "./components/sidebar";
|
|
73
|
+
export * from "./components/skeleton";
|
|
74
|
+
export * from "./components/skip-to-content";
|
|
56
75
|
export * from "./components/slider";
|
|
57
76
|
export * from "./components/social-login-button";
|
|
77
|
+
export * from "./components/social-login-buttons";
|
|
58
78
|
export * from "./components/sparkline-chart";
|
|
79
|
+
export * from "./components/spinner";
|
|
80
|
+
export * from "./components/spoiler";
|
|
59
81
|
export * from "./components/stack";
|
|
82
|
+
export * from "./components/steps";
|
|
60
83
|
export * from "./components/switch";
|
|
61
84
|
export * from "./components/table";
|
|
62
85
|
export * from "./components/tabs";
|
|
63
86
|
export * from "./components/tag-input";
|
|
64
87
|
export * from "./components/text";
|
|
65
88
|
export * from "./components/textarea";
|
|
89
|
+
export * from "./components/timeline";
|
|
66
90
|
export * from "./components/toast";
|
|
91
|
+
export * from "./components/toggle";
|
|
67
92
|
export * from "./components/tooltip";
|
|
68
93
|
export * from "./components/user-menu-dropdown";
|
package/dist/index.js
CHANGED
|
@@ -3,23 +3,29 @@
|
|
|
3
3
|
export * from "./components/accordion";
|
|
4
4
|
export * from "./components/alert";
|
|
5
5
|
export * from "./components/alert-dialog";
|
|
6
|
+
export * from "./components/app-shell";
|
|
6
7
|
export * from "./components/aspect-ratio";
|
|
7
8
|
export * from "./components/avatar";
|
|
8
9
|
export * from "./components/badge";
|
|
9
10
|
export * from "./components/banner";
|
|
11
|
+
export * from "./components/box";
|
|
10
12
|
export * from "./components/breadcrumbs";
|
|
13
|
+
export * from "./components/burger";
|
|
11
14
|
export * from "./components/button";
|
|
12
15
|
export * from "./components/button-group";
|
|
13
16
|
export * from "./components/calendar";
|
|
14
17
|
export * from "./components/card";
|
|
18
|
+
export * from "./components/center";
|
|
15
19
|
export * from "./components/charts";
|
|
16
20
|
export * from "./components/checkbox";
|
|
21
|
+
export * from "./components/code";
|
|
22
|
+
export * from "./components/collapse";
|
|
23
|
+
export * from "./components/color-input";
|
|
17
24
|
export * from "./components/combobox";
|
|
18
25
|
export * from "./components/command";
|
|
19
26
|
export * from "./components/container";
|
|
20
27
|
export * from "./components/data-table";
|
|
21
28
|
export * from "./components/date-picker";
|
|
22
|
-
// export * from "./components/design-system"; // No index
|
|
23
29
|
export * from "./components/dialog";
|
|
24
30
|
export * from "./components/dnd";
|
|
25
31
|
export * from "./components/drawer";
|
|
@@ -30,51 +36,60 @@ export * from "./components/field";
|
|
|
30
36
|
export * from "./components/file-upload";
|
|
31
37
|
export * from "./components/flex";
|
|
32
38
|
export * from "./components/footer";
|
|
39
|
+
export * from "./components/grid";
|
|
33
40
|
export * from "./components/group";
|
|
34
41
|
export * from "./components/header";
|
|
35
42
|
export * from "./components/heading";
|
|
43
|
+
export * from "./components/indicator";
|
|
36
44
|
export * from "./components/input";
|
|
37
45
|
export * from "./components/input-group";
|
|
38
46
|
export * from "./components/input-otp";
|
|
47
|
+
export * from "./components/kbd";
|
|
39
48
|
export * from "./components/label";
|
|
40
49
|
export * from "./components/list";
|
|
41
50
|
export * from "./components/loading";
|
|
51
|
+
export * from "./components/loading-overlay";
|
|
42
52
|
export * from "./components/menubar";
|
|
43
53
|
export * from "./components/metric-card";
|
|
44
54
|
export * from "./components/multi-select";
|
|
55
|
+
export * from "./components/nav-link";
|
|
45
56
|
export * from "./components/navigation";
|
|
46
57
|
export * from "./components/navigation-menu";
|
|
58
|
+
export * from "./components/number-input";
|
|
59
|
+
export * from "./components/overlay";
|
|
47
60
|
export * from "./components/page-transition";
|
|
48
61
|
export * from "./components/pagination";
|
|
62
|
+
export * from "./components/paper";
|
|
49
63
|
export * from "./components/password-strength-indicator";
|
|
50
64
|
export * from "./components/popover";
|
|
51
65
|
export * from "./components/progress";
|
|
52
66
|
export * from "./components/radio-group";
|
|
53
67
|
export * from "./components/resizable";
|
|
68
|
+
export * from "./components/ring-progress";
|
|
54
69
|
export * from "./components/scroll-area";
|
|
70
|
+
export * from "./components/segmented-control";
|
|
55
71
|
export * from "./components/select";
|
|
56
72
|
export * from "./components/separator";
|
|
57
73
|
export * from "./components/session-card";
|
|
58
74
|
export * from "./components/sidebar";
|
|
59
|
-
|
|
75
|
+
export * from "./components/skeleton";
|
|
76
|
+
export * from "./components/skip-to-content";
|
|
60
77
|
export * from "./components/slider";
|
|
61
78
|
export * from "./components/social-login-button";
|
|
79
|
+
export * from "./components/social-login-buttons";
|
|
62
80
|
export * from "./components/sparkline-chart";
|
|
81
|
+
export * from "./components/spinner";
|
|
82
|
+
export * from "./components/spoiler";
|
|
63
83
|
export * from "./components/stack";
|
|
84
|
+
export * from "./components/steps";
|
|
64
85
|
export * from "./components/switch";
|
|
65
86
|
export * from "./components/table";
|
|
66
87
|
export * from "./components/tabs";
|
|
67
88
|
export * from "./components/tag-input";
|
|
68
89
|
export * from "./components/text";
|
|
69
90
|
export * from "./components/textarea";
|
|
91
|
+
export * from "./components/timeline";
|
|
70
92
|
export * from "./components/toast";
|
|
93
|
+
export * from "./components/toggle";
|
|
71
94
|
export * from "./components/tooltip";
|
|
72
95
|
export * from "./components/user-menu-dropdown";
|
|
73
|
-
// Export styles - but styles is a css file, not ts
|
|
74
|
-
// export * from "./styles";
|
|
75
|
-
// Export config - no index
|
|
76
|
-
// export * from "./config";
|
|
77
|
-
// Export lib - no index
|
|
78
|
-
// export * from "./lib";
|
|
79
|
-
// Export primitives - no index
|
|
80
|
-
// export * from "./primitives";
|
package/dist/lib/animations.js
CHANGED
|
@@ -94,100 +94,100 @@ export const transitionClasses = {
|
|
|
94
94
|
* Define the actual CSS keyframes in your global styles or Tailwind config.
|
|
95
95
|
* These values match the keyframes from design tokens.
|
|
96
96
|
*/
|
|
97
|
-
export const keyframesCSS = `
|
|
98
|
-
@keyframes fade-in {
|
|
99
|
-
from { opacity: 0; }
|
|
100
|
-
to { opacity: 1; }
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
@keyframes fade-out {
|
|
104
|
-
from { opacity: 1; }
|
|
105
|
-
to { opacity: 0; }
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
@keyframes slide-in-from-top {
|
|
109
|
-
from { transform: translateY(-100%); }
|
|
110
|
-
to { transform: translateY(0); }
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
@keyframes slide-in-from-bottom {
|
|
114
|
-
from { transform: translateY(100%); }
|
|
115
|
-
to { transform: translateY(0); }
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
@keyframes slide-in-from-left {
|
|
119
|
-
from { transform: translateX(-100%); }
|
|
120
|
-
to { transform: translateX(0); }
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
@keyframes slide-in-from-right {
|
|
124
|
-
from { transform: translateX(100%); }
|
|
125
|
-
to { transform: translateX(0); }
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
@keyframes slide-out-to-top {
|
|
129
|
-
from { transform: translateY(0); }
|
|
130
|
-
to { transform: translateY(-100%); }
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
@keyframes slide-out-to-bottom {
|
|
134
|
-
from { transform: translateY(0); }
|
|
135
|
-
to { transform: translateY(100%); }
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
@keyframes slide-out-to-left {
|
|
139
|
-
from { transform: translateX(0); }
|
|
140
|
-
to { transform: translateX(-100%); }
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
@keyframes slide-out-to-right {
|
|
144
|
-
from { transform: translateX(0); }
|
|
145
|
-
to { transform: translateX(100%); }
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
@keyframes scale-in {
|
|
149
|
-
from { transform: scale(0.95); opacity: 0; }
|
|
150
|
-
to { transform: scale(1); opacity: 1; }
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
@keyframes scale-out {
|
|
154
|
-
from { transform: scale(1); opacity: 1; }
|
|
155
|
-
to { transform: scale(0.95); opacity: 0; }
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
@keyframes expand-vertical {
|
|
159
|
-
from {
|
|
160
|
-
max-height: 0;
|
|
161
|
-
opacity: 0;
|
|
162
|
-
}
|
|
163
|
-
to {
|
|
164
|
-
max-height: var(--max-height, 1000px);
|
|
165
|
-
opacity: 1;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
@keyframes collapse-vertical {
|
|
170
|
-
from {
|
|
171
|
-
max-height: var(--max-height, 1000px);
|
|
172
|
-
opacity: 1;
|
|
173
|
-
}
|
|
174
|
-
to {
|
|
175
|
-
max-height: 0;
|
|
176
|
-
opacity: 0;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/* Respect prefers-reduced-motion */
|
|
181
|
-
@media (prefers-reduced-motion: reduce) {
|
|
182
|
-
*,
|
|
183
|
-
*::before,
|
|
184
|
-
*::after {
|
|
185
|
-
animation-duration: 0.01ms !important;
|
|
186
|
-
animation-iteration-count: 1 !important;
|
|
187
|
-
transition-duration: 0.01ms !important;
|
|
188
|
-
scroll-behavior: auto !important;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
97
|
+
export const keyframesCSS = `
|
|
98
|
+
@keyframes fade-in {
|
|
99
|
+
from { opacity: 0; }
|
|
100
|
+
to { opacity: 1; }
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@keyframes fade-out {
|
|
104
|
+
from { opacity: 1; }
|
|
105
|
+
to { opacity: 0; }
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@keyframes slide-in-from-top {
|
|
109
|
+
from { transform: translateY(-100%); }
|
|
110
|
+
to { transform: translateY(0); }
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@keyframes slide-in-from-bottom {
|
|
114
|
+
from { transform: translateY(100%); }
|
|
115
|
+
to { transform: translateY(0); }
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@keyframes slide-in-from-left {
|
|
119
|
+
from { transform: translateX(-100%); }
|
|
120
|
+
to { transform: translateX(0); }
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@keyframes slide-in-from-right {
|
|
124
|
+
from { transform: translateX(100%); }
|
|
125
|
+
to { transform: translateX(0); }
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@keyframes slide-out-to-top {
|
|
129
|
+
from { transform: translateY(0); }
|
|
130
|
+
to { transform: translateY(-100%); }
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@keyframes slide-out-to-bottom {
|
|
134
|
+
from { transform: translateY(0); }
|
|
135
|
+
to { transform: translateY(100%); }
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@keyframes slide-out-to-left {
|
|
139
|
+
from { transform: translateX(0); }
|
|
140
|
+
to { transform: translateX(-100%); }
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@keyframes slide-out-to-right {
|
|
144
|
+
from { transform: translateX(0); }
|
|
145
|
+
to { transform: translateX(100%); }
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
@keyframes scale-in {
|
|
149
|
+
from { transform: scale(0.95); opacity: 0; }
|
|
150
|
+
to { transform: scale(1); opacity: 1; }
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@keyframes scale-out {
|
|
154
|
+
from { transform: scale(1); opacity: 1; }
|
|
155
|
+
to { transform: scale(0.95); opacity: 0; }
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@keyframes expand-vertical {
|
|
159
|
+
from {
|
|
160
|
+
max-height: 0;
|
|
161
|
+
opacity: 0;
|
|
162
|
+
}
|
|
163
|
+
to {
|
|
164
|
+
max-height: var(--max-height, 1000px);
|
|
165
|
+
opacity: 1;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@keyframes collapse-vertical {
|
|
170
|
+
from {
|
|
171
|
+
max-height: var(--max-height, 1000px);
|
|
172
|
+
opacity: 1;
|
|
173
|
+
}
|
|
174
|
+
to {
|
|
175
|
+
max-height: 0;
|
|
176
|
+
opacity: 0;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* Respect prefers-reduced-motion */
|
|
181
|
+
@media (prefers-reduced-motion: reduce) {
|
|
182
|
+
*,
|
|
183
|
+
*::before,
|
|
184
|
+
*::after {
|
|
185
|
+
animation-duration: 0.01ms !important;
|
|
186
|
+
animation-iteration-count: 1 !important;
|
|
187
|
+
transition-duration: 0.01ms !important;
|
|
188
|
+
scroll-behavior: auto !important;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
191
|
`;
|
|
192
192
|
/**
|
|
193
193
|
* Utility function to build animation class string
|