@lateralus-ai/shipping-ui 2.0.0-dev.0 → 2.0.0-dev.10
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/EmptyState.d.ts +1 -1
- package/dist/components/Entry.d.ts +27 -7
- package/dist/components/Modal.d.ts +36 -0
- package/dist/components/Tabs.d.ts +23 -8
- package/dist/components/index.d.ts +3 -2
- package/dist/index.cjs +32 -32
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +4406 -3917
- package/dist/patterns/Search/ResultRow.d.ts +16 -7
- package/dist/patterns/Search/SearchModal.d.ts +84 -2
- package/dist/patterns/Search/index.d.ts +2 -2
- package/dist/primitives/Badge.d.ts +7 -4
- package/dist/primitives/Button.d.ts +17 -8
- package/dist/primitives/button-styles.d.ts +4 -0
- package/dist/primitives/index.d.ts +4 -2
- package/dist/style.css +1 -1
- package/dist/tailwind-theme.d.ts +4 -4
- package/dist/theme-entry-BUK3MJUJ.mjs +261 -0
- package/dist/theme-entry-ygTpGaNC.js +1 -0
- package/dist/theme-entry.d.ts +2 -0
- package/dist/theme.cjs +1 -0
- package/dist/theme.d.ts +2 -0
- package/dist/theme.esm.js +5 -0
- package/package.json +10 -3
- package/src/components/EmptyState.tsx +2 -2
- package/src/components/Entry.tsx +119 -45
- package/src/components/Modal.tsx +141 -0
- package/src/components/Tabs.tsx +146 -48
- package/src/components/index.ts +43 -13
- package/src/icons/arrow-paths.ts +8 -8
- package/src/icons/chevron-paths.ts +17 -17
- package/src/icons/icons-data.ts +656 -656
- package/src/index.ts +76 -50
- package/src/patterns/Search/ResultRow.tsx +44 -52
- package/src/patterns/Search/SearchModal.tsx +310 -88
- package/src/patterns/Search/index.ts +31 -5
- package/src/patterns/Sidebar/assets/logo-compliance-mark.png +5 -5
- package/src/patterns/Sidebar/assets/logo-compliance-mask.png +13 -13
- package/src/patterns/Sidebar/assets/logo-compliance.svg +17 -17
- package/src/patterns/Sidebar/assets/logo-technical-avatar.svg +17 -17
- package/src/patterns/Sidebar/assets/logo-technical-mark.png +5 -5
- package/src/patterns/Sidebar/assets/logo-technical.svg +16 -16
- package/src/patterns/Skeleton/Skeleton.tsx +56 -57
- package/src/primitives/Badge.tsx +20 -10
- package/src/primitives/Button.tsx +201 -37
- package/src/primitives/button-styles.ts +92 -0
- package/src/primitives/index.ts +7 -2
- package/src/stories/canvases/ButtonsCanvas.tsx +94 -44
- package/src/stories/canvases/ButtonsMatrixCanvas.tsx +8 -7
- package/src/stories/canvases/ContentCanvas.tsx +157 -88
- package/src/stories/canvases/SearchCanvas.tsx +150 -65
- package/src/stories/canvases/figma-buttons-layout.ts +83 -0
- package/src/stories/canvases/helpers.tsx +26 -43
- package/src/stories/components/Buttons.stories.tsx +11 -11
- package/src/stories/components/Chat.stories.tsx +11 -11
- package/src/stories/components/Content.stories.tsx +11 -11
- package/src/stories/components/Core.stories.tsx +11 -11
- package/src/stories/components/DomainForms.stories.tsx +11 -11
- package/src/stories/components/Filters.stories.tsx +11 -11
- package/src/stories/components/Forms.stories.tsx +11 -11
- package/src/stories/components/Icons.stories.tsx +11 -11
- package/src/stories/components/Illustrations.stories.tsx +11 -11
- package/src/stories/components/Library.stories.tsx +11 -11
- package/src/stories/components/Modals.stories.tsx +11 -11
- package/src/stories/components/Report.stories.tsx +11 -11
- package/src/stories/components/ReportLayout.stories.tsx +11 -11
- package/src/stories/components/Search.stories.tsx +11 -11
- package/src/stories/components/Settings.stories.tsx +11 -11
- package/src/stories/components/Ships.stories.tsx +11 -11
- package/src/stories/components/SidebarLayouts.stories.tsx +11 -11
- package/src/stories/components/Skeletons.stories.tsx +11 -11
- package/src/stories/components/Workflows.stories.tsx +11 -11
- package/src/stories/style-guide/Buttons.stories.tsx +11 -11
- package/src/stories/style-guide/ColorTokens.stories.tsx +11 -11
- package/src/stories/style-guide/Colors.stories.tsx +11 -11
- package/src/stories/style-guide/RaiseLevels.stories.tsx +11 -11
- package/src/stories/style-guide/Typography.stories.tsx +11 -11
- package/src/tailwind-theme.ts +4 -4
- package/src/theme-entry.ts +2 -0
- package/tailwind.config.ts +12 -0
|
@@ -1,65 +1,150 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<
|
|
40
|
-
|
|
41
|
-
</
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
1
|
+
import {
|
|
2
|
+
Pill,
|
|
3
|
+
PillInfo,
|
|
4
|
+
ResultRow,
|
|
5
|
+
SearchModalPanel,
|
|
6
|
+
SectionHeader,
|
|
7
|
+
} from "../../patterns/Search";
|
|
8
|
+
import {
|
|
9
|
+
FigmaContent,
|
|
10
|
+
FigmaGrid,
|
|
11
|
+
FigmaPage,
|
|
12
|
+
FigmaSection,
|
|
13
|
+
FigmaVariant,
|
|
14
|
+
} from "../_layout";
|
|
15
|
+
import { FIGMA_WIDTHS } from "./figma-widths";
|
|
16
|
+
|
|
17
|
+
const recentItems = [
|
|
18
|
+
{ variant: "report" as const, title: "Engine Room Oil Leak" },
|
|
19
|
+
{ variant: "chat" as const, title: "Low Water Pressure on Board" },
|
|
20
|
+
{
|
|
21
|
+
variant: "chat" as const,
|
|
22
|
+
title: "Generator Vibrating Excessively",
|
|
23
|
+
state: "active" as const,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
variant: "issue" as const,
|
|
27
|
+
title:
|
|
28
|
+
"Intermittent Flickering of Navigation Lights Possibly Due to Bulb Failure or Signal Unit Errors",
|
|
29
|
+
},
|
|
30
|
+
];
|
|
31
|
+
|
|
32
|
+
const resultItems = [
|
|
33
|
+
{
|
|
34
|
+
variant: "report" as const,
|
|
35
|
+
title: "Persistent Engine Room Oil Leak",
|
|
36
|
+
subtitle: (
|
|
37
|
+
<>
|
|
38
|
+
We’ve got a persistent oil leak from the{" "}
|
|
39
|
+
<span className="text-caption-2-em text-display-on-light-primary">
|
|
40
|
+
fuel pump
|
|
41
|
+
</span>
|
|
42
|
+
. I’ve tightened what I could, but it keeps seeping.
|
|
43
|
+
</>
|
|
44
|
+
),
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
variant: "chat" as const,
|
|
48
|
+
title: "Ballast Pump Not Starting",
|
|
49
|
+
subtitle: (
|
|
50
|
+
<>
|
|
51
|
+
The{" "}
|
|
52
|
+
<span className="text-caption-2-em text-display-on-light-primary">
|
|
53
|
+
fuel pump
|
|
54
|
+
</span>{" "}
|
|
55
|
+
won’t start consistently. Sometimes it works, sometimes it doesn’t.
|
|
56
|
+
</>
|
|
57
|
+
),
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
variant: "issue" as const,
|
|
61
|
+
title:
|
|
62
|
+
"Excessive Rust on Fuel Pump and Piping with Unclear Material Specifications and Corrosion Protection Measures",
|
|
63
|
+
subtitle: "Created by Jake Silva on March 28",
|
|
64
|
+
state: "active" as const,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
variant: "report" as const,
|
|
68
|
+
title: "Engine Room Oil Leak",
|
|
69
|
+
subtitle: (
|
|
70
|
+
<>
|
|
71
|
+
We’ve spotted a steady oil leak near the{" "}
|
|
72
|
+
<span className="text-caption-2-em text-display-on-light-primary">
|
|
73
|
+
fuel pump
|
|
74
|
+
</span>
|
|
75
|
+
. Not sure if it’s a gasket or a cracked line.
|
|
76
|
+
</>
|
|
77
|
+
),
|
|
78
|
+
},
|
|
79
|
+
];
|
|
80
|
+
|
|
81
|
+
export const SearchCanvas = () => (
|
|
82
|
+
<FigmaPage title="Search" width={FIGMA_WIDTHS.search}>
|
|
83
|
+
<FigmaContent>
|
|
84
|
+
<FigmaSection label="Pill">
|
|
85
|
+
<FigmaGrid gap={16}>
|
|
86
|
+
<Pill>All</Pill>
|
|
87
|
+
<Pill state="active">Reports</Pill>
|
|
88
|
+
<Pill size="small">Issues</Pill>
|
|
89
|
+
<Pill size="small" state="active">
|
|
90
|
+
Chats
|
|
91
|
+
</Pill>
|
|
92
|
+
</FigmaGrid>
|
|
93
|
+
</FigmaSection>
|
|
94
|
+
|
|
95
|
+
<FigmaSection label="Pill Info">
|
|
96
|
+
<FigmaGrid gap={16}>
|
|
97
|
+
<PillInfo />
|
|
98
|
+
<PillInfo type="completed" />
|
|
99
|
+
</FigmaGrid>
|
|
100
|
+
</FigmaSection>
|
|
101
|
+
|
|
102
|
+
<FigmaSection label="Result Row">
|
|
103
|
+
<div className="max-w-xl space-y-2">
|
|
104
|
+
<ResultRow />
|
|
105
|
+
<ResultRow
|
|
106
|
+
variant="chat"
|
|
107
|
+
title="Port state control discussion"
|
|
108
|
+
subtitle="2 days ago"
|
|
109
|
+
/>
|
|
110
|
+
<ResultRow
|
|
111
|
+
variant="issue"
|
|
112
|
+
title="Critical valve malfunction"
|
|
113
|
+
subtitle="Open · High priority"
|
|
114
|
+
/>
|
|
115
|
+
</div>
|
|
116
|
+
</FigmaSection>
|
|
117
|
+
|
|
118
|
+
<FigmaSection label="Section Header">
|
|
119
|
+
<div className="max-w-xl">
|
|
120
|
+
<SectionHeader label="Reports" />
|
|
121
|
+
</div>
|
|
122
|
+
</FigmaSection>
|
|
123
|
+
|
|
124
|
+
<FigmaSection label="Search Modal">
|
|
125
|
+
<FigmaGrid gap={32}>
|
|
126
|
+
<FigmaVariant label="Idle">
|
|
127
|
+
<div className="w-[700px] overflow-hidden rounded-xl border border-divider-primary bg-background-primary shadow-raise3">
|
|
128
|
+
<SearchModalPanel state="idle" recentItems={recentItems} />
|
|
129
|
+
</div>
|
|
130
|
+
</FigmaVariant>
|
|
131
|
+
<FigmaVariant label="Loading">
|
|
132
|
+
<div className="w-[700px] overflow-hidden rounded-xl border border-divider-primary bg-background-primary shadow-raise3">
|
|
133
|
+
<SearchModalPanel state="loading" query="fuel pump" />
|
|
134
|
+
</div>
|
|
135
|
+
</FigmaVariant>
|
|
136
|
+
<FigmaVariant label="Results">
|
|
137
|
+
<div className="w-[700px] overflow-hidden rounded-xl border border-divider-primary bg-background-primary shadow-raise3">
|
|
138
|
+
<SearchModalPanel
|
|
139
|
+
state="results"
|
|
140
|
+
query="fuel pump"
|
|
141
|
+
filter="all"
|
|
142
|
+
resultItems={resultItems}
|
|
143
|
+
/>
|
|
144
|
+
</div>
|
|
145
|
+
</FigmaVariant>
|
|
146
|
+
</FigmaGrid>
|
|
147
|
+
</FigmaSection>
|
|
148
|
+
</FigmaContent>
|
|
149
|
+
</FigmaPage>
|
|
150
|
+
);
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/** Figma Buttons > Content > Button frame — 414×312, slots 106×40 */
|
|
2
|
+
|
|
3
|
+
export const FIGMA_BUTTONS_GRID = {
|
|
4
|
+
width: 414,
|
|
5
|
+
height: 312,
|
|
6
|
+
} as const;
|
|
7
|
+
|
|
8
|
+
export type ButtonVisualState = "idle" | "hover" | "disabled";
|
|
9
|
+
|
|
10
|
+
export type ButtonGridSlot = {
|
|
11
|
+
hierarchy:
|
|
12
|
+
| "primary"
|
|
13
|
+
| "secondary"
|
|
14
|
+
| "tertiary"
|
|
15
|
+
| "quaternary"
|
|
16
|
+
| "destructive";
|
|
17
|
+
visualState: ButtonVisualState;
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
width: number;
|
|
21
|
+
height: number;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const BUTTON_WIDTH = 106;
|
|
25
|
+
const BUTTON_HEIGHT = 40;
|
|
26
|
+
const COLUMN_X = [24, 154, 284] as const;
|
|
27
|
+
const ROW_Y = [24, 80, 136, 192, 248] as const;
|
|
28
|
+
|
|
29
|
+
const hierarchies = [
|
|
30
|
+
"primary",
|
|
31
|
+
"secondary",
|
|
32
|
+
"tertiary",
|
|
33
|
+
"quaternary",
|
|
34
|
+
"destructive",
|
|
35
|
+
] as const;
|
|
36
|
+
|
|
37
|
+
const visualStates: ButtonVisualState[] = ["idle", "hover", "disabled"];
|
|
38
|
+
|
|
39
|
+
export const FIGMA_BUTTON_SLOTS: ButtonGridSlot[] = hierarchies.flatMap(
|
|
40
|
+
(hierarchy, rowIndex) =>
|
|
41
|
+
visualStates.map((visualState, columnIndex) => ({
|
|
42
|
+
hierarchy,
|
|
43
|
+
visualState,
|
|
44
|
+
x: COLUMN_X[columnIndex],
|
|
45
|
+
y: ROW_Y[rowIndex],
|
|
46
|
+
width: BUTTON_WIDTH,
|
|
47
|
+
height: BUTTON_HEIGHT,
|
|
48
|
+
})),
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
export type ButtonVariantSlot = {
|
|
52
|
+
hierarchy: (typeof hierarchies)[number];
|
|
53
|
+
variant: "noIcon" | "noDropdown";
|
|
54
|
+
x: number;
|
|
55
|
+
y: number;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const VARIANT_COLUMN_X = [414, 544] as const;
|
|
59
|
+
|
|
60
|
+
/** Extra canvas slots — excluded from `data-figma-buttons-grid` visual clip */
|
|
61
|
+
export const BUTTON_VARIANT_SLOTS: ButtonVariantSlot[] = hierarchies.flatMap(
|
|
62
|
+
(hierarchy, rowIndex) => [
|
|
63
|
+
{
|
|
64
|
+
hierarchy,
|
|
65
|
+
variant: "noIcon" as const,
|
|
66
|
+
x: VARIANT_COLUMN_X[0],
|
|
67
|
+
y: ROW_Y[rowIndex],
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
hierarchy,
|
|
71
|
+
variant: "noDropdown" as const,
|
|
72
|
+
x: VARIANT_COLUMN_X[1],
|
|
73
|
+
y: ROW_Y[rowIndex],
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
export const FIGMA_BUTTONS_CANVAS = {
|
|
79
|
+
figmaGridWidth: FIGMA_BUTTONS_GRID.width,
|
|
80
|
+
figmaGridHeight: FIGMA_BUTTONS_GRID.height,
|
|
81
|
+
width: VARIANT_COLUMN_X[1] + BUTTON_WIDTH + 24,
|
|
82
|
+
height: FIGMA_BUTTONS_GRID.height,
|
|
83
|
+
} as const;
|
|
@@ -2,11 +2,15 @@ import type { ReactNode } from "react";
|
|
|
2
2
|
import { colorScales } from "../../tokens/colors";
|
|
3
3
|
import { cn } from "../../utils/cn";
|
|
4
4
|
|
|
5
|
-
type ButtonHierarchy =
|
|
6
|
-
|
|
5
|
+
type ButtonHierarchy =
|
|
6
|
+
| "primary"
|
|
7
|
+
| "secondary"
|
|
8
|
+
| "tertiary"
|
|
9
|
+
| "quaternary"
|
|
10
|
+
| "destructive";
|
|
7
11
|
type VisualState = "idle" | "hover" | "disabled";
|
|
8
12
|
|
|
9
|
-
const
|
|
13
|
+
const hierarchyStyles: Record<ButtonHierarchy, Record<VisualState, string>> = {
|
|
10
14
|
primary: {
|
|
11
15
|
idle: "bg-action-primary-idle text-action-primary-on-idle",
|
|
12
16
|
hover: "bg-action-primary-hover text-action-primary-on-hover",
|
|
@@ -14,8 +18,9 @@ const actionStyles: Record<ButtonHierarchy, Record<VisualState, string>> = {
|
|
|
14
18
|
},
|
|
15
19
|
secondary: {
|
|
16
20
|
idle: "border border-divider-primary bg-action-secondary-idle text-action-secondary-on-idle",
|
|
17
|
-
hover: "border border-divider-
|
|
18
|
-
disabled:
|
|
21
|
+
hover: "border border-divider-secondary bg-action-secondary-hover text-action-secondary-on-hover",
|
|
22
|
+
disabled:
|
|
23
|
+
"border border-divider-primary bg-action-secondary-disabled text-action-secondary-on-disabled",
|
|
19
24
|
},
|
|
20
25
|
tertiary: {
|
|
21
26
|
idle: "bg-action-tertiary-idle text-action-tertiary-on-idle",
|
|
@@ -25,58 +30,36 @@ const actionStyles: Record<ButtonHierarchy, Record<VisualState, string>> = {
|
|
|
25
30
|
quaternary: {
|
|
26
31
|
idle: "bg-action-quaternary-idle text-action-quaternary-on-idle",
|
|
27
32
|
hover: "bg-action-quaternary-hover text-action-quaternary-on-hover",
|
|
28
|
-
disabled:
|
|
33
|
+
disabled:
|
|
34
|
+
"bg-action-quaternary-disabled text-action-quaternary-on-disabled",
|
|
29
35
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const destructiveStyles: Record<ButtonHierarchy, Record<VisualState, string>> = {
|
|
33
|
-
primary: {
|
|
36
|
+
destructive: {
|
|
34
37
|
idle: "bg-action-destructive-idle text-action-destructive-on-idle",
|
|
35
38
|
hover: "bg-action-destructive-hover text-action-destructive-on-hover",
|
|
36
|
-
disabled:
|
|
37
|
-
|
|
38
|
-
secondary: {
|
|
39
|
-
idle: "border border-red-300 bg-grey-50 text-red-500",
|
|
40
|
-
hover: "border border-red-300 bg-red-50 text-red-700",
|
|
41
|
-
disabled: "border border-red-300 bg-grey-50 text-red-300",
|
|
42
|
-
},
|
|
43
|
-
tertiary: {
|
|
44
|
-
idle: "bg-white text-red-500",
|
|
45
|
-
hover: "bg-red-50 text-red-700",
|
|
46
|
-
disabled: "bg-white text-red-300",
|
|
47
|
-
},
|
|
48
|
-
quaternary: {
|
|
49
|
-
idle: "bg-white text-red-500",
|
|
50
|
-
hover: "bg-grey-100 text-red-700",
|
|
51
|
-
disabled: "bg-white text-red-300",
|
|
39
|
+
disabled:
|
|
40
|
+
"bg-action-destructive-disabled text-action-destructive-on-disabled",
|
|
52
41
|
},
|
|
53
42
|
};
|
|
54
43
|
|
|
55
44
|
export const ButtonSnapshot = ({
|
|
56
45
|
hierarchy,
|
|
57
|
-
outcome = "action",
|
|
58
46
|
visualState = "idle",
|
|
59
47
|
children = "Button",
|
|
60
48
|
}: {
|
|
61
49
|
hierarchy: ButtonHierarchy;
|
|
62
|
-
outcome?: ButtonOutcome;
|
|
63
50
|
visualState?: VisualState;
|
|
64
51
|
children?: ReactNode;
|
|
65
|
-
}) =>
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
{children}
|
|
77
|
-
</span>
|
|
78
|
-
);
|
|
79
|
-
};
|
|
52
|
+
}) => (
|
|
53
|
+
<span
|
|
54
|
+
className={cn(
|
|
55
|
+
"inline-flex min-h-10 min-w-[94px] items-center justify-center rounded-control px-2 text-caption-1 tracking-[0.32px]",
|
|
56
|
+
visualState === "disabled" && "cursor-not-allowed",
|
|
57
|
+
hierarchyStyles[hierarchy][visualState],
|
|
58
|
+
)}
|
|
59
|
+
>
|
|
60
|
+
{children}
|
|
61
|
+
</span>
|
|
62
|
+
);
|
|
80
63
|
|
|
81
64
|
export const IconButtonSnapshot = ({
|
|
82
65
|
hierarchy = "tertiary",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { ButtonsCanvas } from "../canvases/ButtonsCanvas";
|
|
3
|
-
|
|
4
|
-
const meta: Meta = {
|
|
5
|
-
title: "Components/Buttons",
|
|
6
|
-
parameters: { layout: "fullscreen" },
|
|
7
|
-
};
|
|
8
|
-
export default meta;
|
|
9
|
-
|
|
10
|
-
type Story = StoryObj;
|
|
11
|
-
export const Canvas: Story = { render: () => <ButtonsCanvas /> };
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { ButtonsCanvas } from "../canvases/ButtonsCanvas";
|
|
3
|
+
|
|
4
|
+
const meta: Meta = {
|
|
5
|
+
title: "Components/Buttons",
|
|
6
|
+
parameters: { layout: "fullscreen" },
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
|
|
10
|
+
type Story = StoryObj;
|
|
11
|
+
export const Canvas: Story = { render: () => <ButtonsCanvas /> };
|
|
12
12
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { ChatCanvas } from "../canvases/ChatCanvas";
|
|
3
|
-
|
|
4
|
-
const meta: Meta = {
|
|
5
|
-
title: "Components/Chat",
|
|
6
|
-
parameters: { layout: "fullscreen" },
|
|
7
|
-
};
|
|
8
|
-
export default meta;
|
|
9
|
-
|
|
10
|
-
type Story = StoryObj;
|
|
11
|
-
export const Canvas: Story = { render: () => <ChatCanvas /> };
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { ChatCanvas } from "../canvases/ChatCanvas";
|
|
3
|
+
|
|
4
|
+
const meta: Meta = {
|
|
5
|
+
title: "Components/Chat",
|
|
6
|
+
parameters: { layout: "fullscreen" },
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
|
|
10
|
+
type Story = StoryObj;
|
|
11
|
+
export const Canvas: Story = { render: () => <ChatCanvas /> };
|
|
12
12
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { ContentCanvas } from "../canvases/ContentCanvas";
|
|
3
|
-
|
|
4
|
-
const meta: Meta = {
|
|
5
|
-
title: "Components/Content",
|
|
6
|
-
parameters: { layout: "fullscreen" },
|
|
7
|
-
};
|
|
8
|
-
export default meta;
|
|
9
|
-
|
|
10
|
-
type Story = StoryObj;
|
|
11
|
-
export const Canvas: Story = { render: () => <ContentCanvas /> };
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { ContentCanvas } from "../canvases/ContentCanvas";
|
|
3
|
+
|
|
4
|
+
const meta: Meta = {
|
|
5
|
+
title: "Components/Content",
|
|
6
|
+
parameters: { layout: "fullscreen" },
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
|
|
10
|
+
type Story = StoryObj;
|
|
11
|
+
export const Canvas: Story = { render: () => <ContentCanvas /> };
|
|
12
12
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { CoreCanvas } from "../canvases/CoreCanvas";
|
|
3
|
-
|
|
4
|
-
const meta: Meta = {
|
|
5
|
-
title: "Components/Core",
|
|
6
|
-
parameters: { layout: "fullscreen" },
|
|
7
|
-
};
|
|
8
|
-
export default meta;
|
|
9
|
-
|
|
10
|
-
type Story = StoryObj;
|
|
11
|
-
export const Canvas: Story = { render: () => <CoreCanvas /> };
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { CoreCanvas } from "../canvases/CoreCanvas";
|
|
3
|
+
|
|
4
|
+
const meta: Meta = {
|
|
5
|
+
title: "Components/Core",
|
|
6
|
+
parameters: { layout: "fullscreen" },
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
|
|
10
|
+
type Story = StoryObj;
|
|
11
|
+
export const Canvas: Story = { render: () => <CoreCanvas /> };
|
|
12
12
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { DomainFormsCanvas } from "../canvases/DomainFormsCanvas";
|
|
3
|
-
|
|
4
|
-
const meta: Meta = {
|
|
5
|
-
title: "Components/Domain Forms",
|
|
6
|
-
parameters: { layout: "fullscreen" },
|
|
7
|
-
};
|
|
8
|
-
export default meta;
|
|
9
|
-
|
|
10
|
-
type Story = StoryObj;
|
|
11
|
-
export const Canvas: Story = { render: () => <DomainFormsCanvas /> };
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { DomainFormsCanvas } from "../canvases/DomainFormsCanvas";
|
|
3
|
+
|
|
4
|
+
const meta: Meta = {
|
|
5
|
+
title: "Components/Domain Forms",
|
|
6
|
+
parameters: { layout: "fullscreen" },
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
|
|
10
|
+
type Story = StoryObj;
|
|
11
|
+
export const Canvas: Story = { render: () => <DomainFormsCanvas /> };
|
|
12
12
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { FiltersCanvas } from "../canvases/FiltersCanvas";
|
|
3
|
-
|
|
4
|
-
const meta: Meta = {
|
|
5
|
-
title: "Components/Filters",
|
|
6
|
-
parameters: { layout: "fullscreen" },
|
|
7
|
-
};
|
|
8
|
-
export default meta;
|
|
9
|
-
|
|
10
|
-
type Story = StoryObj;
|
|
11
|
-
export const Canvas: Story = { render: () => <FiltersCanvas /> };
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { FiltersCanvas } from "../canvases/FiltersCanvas";
|
|
3
|
+
|
|
4
|
+
const meta: Meta = {
|
|
5
|
+
title: "Components/Filters",
|
|
6
|
+
parameters: { layout: "fullscreen" },
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
|
|
10
|
+
type Story = StoryObj;
|
|
11
|
+
export const Canvas: Story = { render: () => <FiltersCanvas /> };
|
|
12
12
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { FormsCanvas } from "../canvases/FormsCanvas";
|
|
3
|
-
|
|
4
|
-
const meta: Meta = {
|
|
5
|
-
title: "Components/Forms",
|
|
6
|
-
parameters: { layout: "fullscreen" },
|
|
7
|
-
};
|
|
8
|
-
export default meta;
|
|
9
|
-
|
|
10
|
-
type Story = StoryObj;
|
|
11
|
-
export const Canvas: Story = { render: () => <FormsCanvas /> };
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { FormsCanvas } from "../canvases/FormsCanvas";
|
|
3
|
+
|
|
4
|
+
const meta: Meta = {
|
|
5
|
+
title: "Components/Forms",
|
|
6
|
+
parameters: { layout: "fullscreen" },
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
|
|
10
|
+
type Story = StoryObj;
|
|
11
|
+
export const Canvas: Story = { render: () => <FormsCanvas /> };
|
|
12
12
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { IconsCanvas } from "../canvases/IconsCanvas";
|
|
3
|
-
|
|
4
|
-
const meta: Meta = {
|
|
5
|
-
title: "Components/Icons",
|
|
6
|
-
parameters: { layout: "fullscreen" },
|
|
7
|
-
};
|
|
8
|
-
export default meta;
|
|
9
|
-
|
|
10
|
-
type Story = StoryObj;
|
|
11
|
-
export const Canvas: Story = { render: () => <IconsCanvas /> };
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { IconsCanvas } from "../canvases/IconsCanvas";
|
|
3
|
+
|
|
4
|
+
const meta: Meta = {
|
|
5
|
+
title: "Components/Icons",
|
|
6
|
+
parameters: { layout: "fullscreen" },
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
|
|
10
|
+
type Story = StoryObj;
|
|
11
|
+
export const Canvas: Story = { render: () => <IconsCanvas /> };
|
|
12
12
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { IllustrationsCanvas } from "../canvases/IllustrationsCanvas";
|
|
3
|
-
|
|
4
|
-
const meta: Meta = {
|
|
5
|
-
title: "Components/Illustrations",
|
|
6
|
-
parameters: { layout: "fullscreen" },
|
|
7
|
-
};
|
|
8
|
-
export default meta;
|
|
9
|
-
|
|
10
|
-
type Story = StoryObj;
|
|
11
|
-
export const Canvas: Story = { render: () => <IllustrationsCanvas /> };
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { IllustrationsCanvas } from "../canvases/IllustrationsCanvas";
|
|
3
|
+
|
|
4
|
+
const meta: Meta = {
|
|
5
|
+
title: "Components/Illustrations",
|
|
6
|
+
parameters: { layout: "fullscreen" },
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
|
|
10
|
+
type Story = StoryObj;
|
|
11
|
+
export const Canvas: Story = { render: () => <IllustrationsCanvas /> };
|
|
12
12
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { LibraryCanvas } from "../canvases/LibraryCanvas";
|
|
3
|
-
|
|
4
|
-
const meta: Meta = {
|
|
5
|
-
title: "Components/Library",
|
|
6
|
-
parameters: { layout: "fullscreen" },
|
|
7
|
-
};
|
|
8
|
-
export default meta;
|
|
9
|
-
|
|
10
|
-
type Story = StoryObj;
|
|
11
|
-
export const Canvas: Story = { render: () => <LibraryCanvas /> };
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { LibraryCanvas } from "../canvases/LibraryCanvas";
|
|
3
|
+
|
|
4
|
+
const meta: Meta = {
|
|
5
|
+
title: "Components/Library",
|
|
6
|
+
parameters: { layout: "fullscreen" },
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
|
|
10
|
+
type Story = StoryObj;
|
|
11
|
+
export const Canvas: Story = { render: () => <LibraryCanvas /> };
|
|
12
12
|
|