@lawkit/ui 0.1.35 → 0.1.36
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.
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const stack: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
2
|
+
direction: {
|
|
3
|
+
row: {
|
|
4
|
+
flexDirection: "row";
|
|
5
|
+
};
|
|
6
|
+
column: {
|
|
7
|
+
flexDirection: "column";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
align: {
|
|
11
|
+
start: {
|
|
12
|
+
alignItems: "flex-start";
|
|
13
|
+
};
|
|
14
|
+
center: {
|
|
15
|
+
alignItems: "center";
|
|
16
|
+
};
|
|
17
|
+
end: {
|
|
18
|
+
alignItems: "flex-end";
|
|
19
|
+
};
|
|
20
|
+
stretch: {
|
|
21
|
+
alignItems: "stretch";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
justify: {
|
|
25
|
+
start: {
|
|
26
|
+
justifyContent: "flex-start";
|
|
27
|
+
};
|
|
28
|
+
center: {
|
|
29
|
+
justifyContent: "center";
|
|
30
|
+
};
|
|
31
|
+
end: {
|
|
32
|
+
justifyContent: "flex-end";
|
|
33
|
+
};
|
|
34
|
+
between: {
|
|
35
|
+
justifyContent: "space-between";
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { themeVars } from '../../../../tokens/src';
|
|
3
|
+
export type StackGap = keyof typeof themeVars.spacing;
|
|
4
|
+
export type StackAlign = "start" | "center" | "end" | "stretch";
|
|
5
|
+
export type StackJustify = "start" | "center" | "end" | "between";
|
|
6
|
+
export interface HStackProps extends HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
/** 자식 간격 (디자인 토큰 기반: x1=4px ~ x6=24px) */
|
|
8
|
+
gap?: StackGap;
|
|
9
|
+
/** 교차축 정렬 (alignItems) */
|
|
10
|
+
align?: StackAlign;
|
|
11
|
+
/** 주축 정렬 (justifyContent) */
|
|
12
|
+
justify?: StackJustify;
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export type VStackProps = HStackProps;
|
|
16
|
+
export declare function HStack({ gap, align, justify, className, style, children, ...rest }: HStackProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function VStack({ gap, align, justify, className, style, children, ...rest }: VStackProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -20,6 +20,8 @@ export { ChipsNavigation } from './components/ChipsNavigation';
|
|
|
20
20
|
export type { ChipsNavigationProps, ChipsNavigationItem, } from './components/ChipsNavigation';
|
|
21
21
|
export { Card, CardHeader, CardBody, CardFooter } from './components/Card';
|
|
22
22
|
export type { CardProps } from './components/Card';
|
|
23
|
+
export { HStack, VStack } from './components/Stack';
|
|
24
|
+
export type { HStackProps, VStackProps, StackGap, StackAlign, StackJustify, } from './components/Stack';
|
|
23
25
|
export { Collapse, CollapseGroup } from './components/Collapse';
|
|
24
26
|
export type { CollapseProps, CollapseVariant, CollapseGroupProps, } from './components/Collapse';
|
|
25
27
|
export { Dropdown } from './components/Dropdown';
|