@vinyasa/layout 1.0.19
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/README.md +164 -0
- package/dist/cjs/aspect-ratio.cjs +271 -0
- package/dist/cjs/box.cjs +268 -0
- package/dist/cjs/center.cjs +457 -0
- package/dist/cjs/center.css +80 -0
- package/dist/cjs/container.cjs +275 -0
- package/dist/cjs/container.css +31 -0
- package/dist/cjs/divider.cjs +389 -0
- package/dist/cjs/divider.css +16 -0
- package/dist/cjs/flex.cjs +425 -0
- package/dist/cjs/flex.css +80 -0
- package/dist/cjs/grid.cjs +419 -0
- package/dist/cjs/grid.css +84 -0
- package/dist/cjs/index.cjs +1806 -0
- package/dist/cjs/index.css +302 -0
- package/dist/cjs/inline.cjs +456 -0
- package/dist/cjs/inline.css +80 -0
- package/dist/cjs/portal.cjs +67 -0
- package/dist/cjs/scroll-area.cjs +303 -0
- package/dist/cjs/scroll-area.css +59 -0
- package/dist/cjs/spacer.cjs +137 -0
- package/dist/cjs/spacer.css +4 -0
- package/dist/cjs/stack.cjs +456 -0
- package/dist/cjs/stack.css +80 -0
- package/dist/cjs/surface.cjs +390 -0
- package/dist/cjs/surface.css +28 -0
- package/dist/esm/207.css +80 -0
- package/dist/esm/207.js +88 -0
- package/dist/esm/474.js +76 -0
- package/dist/esm/953.js +87 -0
- package/dist/esm/aspect-ratio.js +36 -0
- package/dist/esm/box.js +35 -0
- package/dist/esm/center.js +14 -0
- package/dist/esm/components/aspect-ratio/AspectRatio.d.ts +11 -0
- package/dist/esm/components/aspect-ratio/index.d.ts +3 -0
- package/dist/esm/components/box/Box.d.ts +5 -0
- package/dist/esm/components/box/index.d.ts +3 -0
- package/dist/esm/components/center/Center.d.ts +4 -0
- package/dist/esm/components/center/index.d.ts +3 -0
- package/dist/esm/components/container/Container.css.d.ts +1 -0
- package/dist/esm/components/container/Container.d.ts +11 -0
- package/dist/esm/components/container/index.d.ts +3 -0
- package/dist/esm/components/divider/Divider.css.d.ts +12 -0
- package/dist/esm/components/divider/Divider.d.ts +16 -0
- package/dist/esm/components/divider/index.d.ts +3 -0
- package/dist/esm/components/flex/Flex.css.d.ts +69 -0
- package/dist/esm/components/flex/Flex.d.ts +14 -0
- package/dist/esm/components/flex/index.d.ts +3 -0
- package/dist/esm/components/grid/Grid.css.d.ts +70 -0
- package/dist/esm/components/grid/Grid.d.ts +23 -0
- package/dist/esm/components/grid/index.d.ts +3 -0
- package/dist/esm/components/inline/Inline.d.ts +4 -0
- package/dist/esm/components/inline/index.d.ts +3 -0
- package/dist/esm/components/portal/Portal.d.ts +11 -0
- package/dist/esm/components/portal/index.d.ts +3 -0
- package/dist/esm/components/scroll-area/ScrollArea.css.d.ts +5 -0
- package/dist/esm/components/scroll-area/ScrollArea.d.ts +29 -0
- package/dist/esm/components/scroll-area/index.d.ts +3 -0
- package/dist/esm/components/spacer/Spacer.css.d.ts +1 -0
- package/dist/esm/components/spacer/Spacer.d.ts +4 -0
- package/dist/esm/components/spacer/index.d.ts +3 -0
- package/dist/esm/components/stack/Stack.d.ts +4 -0
- package/dist/esm/components/stack/index.d.ts +3 -0
- package/dist/esm/components/surface/Surface.css.d.ts +24 -0
- package/dist/esm/components/surface/Surface.d.ts +11 -0
- package/dist/esm/components/surface/index.d.ts +3 -0
- package/dist/esm/container.css +30 -0
- package/dist/esm/container.js +40 -0
- package/dist/esm/divider.css +16 -0
- package/dist/esm/divider.js +67 -0
- package/dist/esm/flex.js +4 -0
- package/dist/esm/grid.css +84 -0
- package/dist/esm/grid.js +88 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +13 -0
- package/dist/esm/inline.js +13 -0
- package/dist/esm/polymorphic.d.ts +5 -0
- package/dist/esm/portal.js +14 -0
- package/dist/esm/scroll-area.css +58 -0
- package/dist/esm/scroll-area.js +68 -0
- package/dist/esm/spacer.css +4 -0
- package/dist/esm/spacer.js +18 -0
- package/dist/esm/spacing.d.ts +19 -0
- package/dist/esm/stack.js +13 -0
- package/dist/esm/surface.css +28 -0
- package/dist/esm/surface.js +64 -0
- package/package.json +153 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import "./container.css";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import { resolveSpacingStyle } from "./474.js";
|
|
5
|
+
var container = 'n27f480';
|
|
6
|
+
const Container = /*#__PURE__*/ forwardRef(({ as: Component = 'div', maxWidth, m, mt, mr, mb, ml, mx, my, p, pt, pr, pb, pl, px, py, className, style, children, ...rest }, ref)=>{
|
|
7
|
+
const classes = className ? `${container} ${className}` : container;
|
|
8
|
+
const spacingStyle = resolveSpacingStyle({
|
|
9
|
+
m,
|
|
10
|
+
mt,
|
|
11
|
+
mr,
|
|
12
|
+
mb,
|
|
13
|
+
ml,
|
|
14
|
+
mx,
|
|
15
|
+
my,
|
|
16
|
+
p,
|
|
17
|
+
pt,
|
|
18
|
+
pr,
|
|
19
|
+
pb,
|
|
20
|
+
pl,
|
|
21
|
+
px,
|
|
22
|
+
py
|
|
23
|
+
});
|
|
24
|
+
return /*#__PURE__*/ jsx(Component, {
|
|
25
|
+
ref: ref,
|
|
26
|
+
className: classes,
|
|
27
|
+
style: {
|
|
28
|
+
...spacingStyle,
|
|
29
|
+
maxWidth,
|
|
30
|
+
...style
|
|
31
|
+
},
|
|
32
|
+
...rest,
|
|
33
|
+
children: children
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
Container.displayName = 'Container';
|
|
37
|
+
const container_Container = Container;
|
|
38
|
+
const components_container = container_Container;
|
|
39
|
+
export default components_container;
|
|
40
|
+
export { components_container as Container };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
._187x3450 {
|
|
2
|
+
background-color: var(--vinyasa-border-color-default);
|
|
3
|
+
border: none;
|
|
4
|
+
flex-shrink: 0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
._187x3451 {
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: var(--vinyasa-border-width-thin);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
._187x3452 {
|
|
13
|
+
width: var(--vinyasa-border-width-thin);
|
|
14
|
+
height: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import "./divider.css";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import { createRuntimeFn } from "./953.js";
|
|
5
|
+
import { resolveSpacingStyle } from "./474.js";
|
|
6
|
+
var divider = createRuntimeFn({
|
|
7
|
+
defaultClassName: '_187x3450',
|
|
8
|
+
variantClassNames: {
|
|
9
|
+
orientation: {
|
|
10
|
+
horizontal: '_187x3451',
|
|
11
|
+
vertical: '_187x3452'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
orientation: 'horizontal'
|
|
16
|
+
},
|
|
17
|
+
compoundVariants: []
|
|
18
|
+
});
|
|
19
|
+
const Divider = /*#__PURE__*/ forwardRef(({ orientation = 'horizontal', decorative = false, m, mt, mr, mb, ml, mx, my, p, pt, pr, pb, pl, px, py, className, style, ...rest }, ref)=>{
|
|
20
|
+
const classes = className ? `${divider({
|
|
21
|
+
orientation
|
|
22
|
+
})} ${className}` : divider({
|
|
23
|
+
orientation
|
|
24
|
+
});
|
|
25
|
+
const computedStyle = {
|
|
26
|
+
...resolveSpacingStyle({
|
|
27
|
+
m,
|
|
28
|
+
mt,
|
|
29
|
+
mr,
|
|
30
|
+
mb,
|
|
31
|
+
ml,
|
|
32
|
+
mx,
|
|
33
|
+
my,
|
|
34
|
+
p,
|
|
35
|
+
pt,
|
|
36
|
+
pr,
|
|
37
|
+
pb,
|
|
38
|
+
pl,
|
|
39
|
+
px,
|
|
40
|
+
py
|
|
41
|
+
}),
|
|
42
|
+
...style
|
|
43
|
+
};
|
|
44
|
+
if ('vertical' === orientation) return /*#__PURE__*/ jsx("div", {
|
|
45
|
+
ref: ref,
|
|
46
|
+
...decorative ? {
|
|
47
|
+
'aria-hidden': true
|
|
48
|
+
} : {
|
|
49
|
+
role: 'separator',
|
|
50
|
+
'aria-orientation': 'vertical'
|
|
51
|
+
},
|
|
52
|
+
className: classes,
|
|
53
|
+
style: computedStyle,
|
|
54
|
+
...rest
|
|
55
|
+
});
|
|
56
|
+
return /*#__PURE__*/ jsx("hr", {
|
|
57
|
+
ref: ref,
|
|
58
|
+
className: classes,
|
|
59
|
+
style: computedStyle,
|
|
60
|
+
...rest
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
Divider.displayName = 'Divider';
|
|
64
|
+
const divider_Divider = Divider;
|
|
65
|
+
const components_divider = divider_Divider;
|
|
66
|
+
export default components_divider;
|
|
67
|
+
export { components_divider as Divider };
|
package/dist/esm/flex.js
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
.w86wcg0 {
|
|
2
|
+
display: grid;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.w86wcg1 {
|
|
6
|
+
gap: var(--vinyasa-space1);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.w86wcg2 {
|
|
10
|
+
gap: var(--vinyasa-space2);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.w86wcg3 {
|
|
14
|
+
gap: var(--vinyasa-space3);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.w86wcg4 {
|
|
18
|
+
gap: var(--vinyasa-space4);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.w86wcg5 {
|
|
22
|
+
gap: var(--vinyasa-space5);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.w86wcg6 {
|
|
26
|
+
gap: var(--vinyasa-space6);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.w86wcg7 {
|
|
30
|
+
align-items: flex-start;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.w86wcg8 {
|
|
34
|
+
align-items: center;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.w86wcg9 {
|
|
38
|
+
align-items: flex-end;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.w86wcga {
|
|
42
|
+
align-items: stretch;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.w86wcgb {
|
|
46
|
+
justify-content: flex-start;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.w86wcgc {
|
|
50
|
+
justify-content: center;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.w86wcgd {
|
|
54
|
+
justify-content: flex-end;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.w86wcge {
|
|
58
|
+
justify-content: space-between;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.w86wcgf {
|
|
62
|
+
justify-content: space-around;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.w86wcgg {
|
|
66
|
+
grid-auto-flow: row;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.w86wcgh {
|
|
70
|
+
grid-auto-flow: column;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.w86wcgi {
|
|
74
|
+
grid-auto-flow: dense;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.w86wcgj {
|
|
78
|
+
grid-auto-flow: row dense;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.w86wcgk {
|
|
82
|
+
grid-auto-flow: column dense;
|
|
83
|
+
}
|
|
84
|
+
|
package/dist/esm/grid.js
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import "./grid.css";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import { createRuntimeFn } from "./953.js";
|
|
5
|
+
import { resolveSpacingStyle } from "./474.js";
|
|
6
|
+
var grid = createRuntimeFn({
|
|
7
|
+
defaultClassName: 'w86wcg0',
|
|
8
|
+
variantClassNames: {
|
|
9
|
+
gap: {
|
|
10
|
+
1: 'w86wcg1',
|
|
11
|
+
2: 'w86wcg2',
|
|
12
|
+
3: 'w86wcg3',
|
|
13
|
+
4: 'w86wcg4',
|
|
14
|
+
5: 'w86wcg5',
|
|
15
|
+
6: 'w86wcg6'
|
|
16
|
+
},
|
|
17
|
+
align: {
|
|
18
|
+
start: 'w86wcg7',
|
|
19
|
+
center: 'w86wcg8',
|
|
20
|
+
end: 'w86wcg9',
|
|
21
|
+
stretch: 'w86wcga'
|
|
22
|
+
},
|
|
23
|
+
justify: {
|
|
24
|
+
start: 'w86wcgb',
|
|
25
|
+
center: 'w86wcgc',
|
|
26
|
+
end: 'w86wcgd',
|
|
27
|
+
between: 'w86wcge',
|
|
28
|
+
around: 'w86wcgf'
|
|
29
|
+
},
|
|
30
|
+
flow: {
|
|
31
|
+
row: 'w86wcgg',
|
|
32
|
+
column: 'w86wcgh',
|
|
33
|
+
dense: 'w86wcgi',
|
|
34
|
+
'row-dense': 'w86wcgj',
|
|
35
|
+
'column-dense': 'w86wcgk'
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
defaultVariants: {},
|
|
39
|
+
compoundVariants: []
|
|
40
|
+
});
|
|
41
|
+
const Grid = /*#__PURE__*/ forwardRef(({ as: Component = 'div', columns, rows, gap, align, justify, flow, m, mt, mr, mb, ml, mx, my, p, pt, pr, pb, pl, px, py, className, style, children, ...rest }, ref)=>{
|
|
42
|
+
const classes = className ? `${grid({
|
|
43
|
+
gap,
|
|
44
|
+
align,
|
|
45
|
+
justify,
|
|
46
|
+
flow
|
|
47
|
+
})} ${className}` : grid({
|
|
48
|
+
gap,
|
|
49
|
+
align,
|
|
50
|
+
justify,
|
|
51
|
+
flow
|
|
52
|
+
});
|
|
53
|
+
const gridTemplateColumns = 'number' == typeof columns ? `repeat(${String(columns)}, 1fr)` : columns;
|
|
54
|
+
const gridTemplateRows = 'number' == typeof rows ? `repeat(${String(rows)}, 1fr)` : rows;
|
|
55
|
+
const spacingStyle = resolveSpacingStyle({
|
|
56
|
+
m,
|
|
57
|
+
mt,
|
|
58
|
+
mr,
|
|
59
|
+
mb,
|
|
60
|
+
ml,
|
|
61
|
+
mx,
|
|
62
|
+
my,
|
|
63
|
+
p,
|
|
64
|
+
pt,
|
|
65
|
+
pr,
|
|
66
|
+
pb,
|
|
67
|
+
pl,
|
|
68
|
+
px,
|
|
69
|
+
py
|
|
70
|
+
});
|
|
71
|
+
return /*#__PURE__*/ jsx(Component, {
|
|
72
|
+
ref: ref,
|
|
73
|
+
className: classes,
|
|
74
|
+
style: {
|
|
75
|
+
...spacingStyle,
|
|
76
|
+
gridTemplateColumns,
|
|
77
|
+
gridTemplateRows,
|
|
78
|
+
...style
|
|
79
|
+
},
|
|
80
|
+
...rest,
|
|
81
|
+
children: children
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
Grid.displayName = 'Grid';
|
|
85
|
+
const grid_Grid = Grid;
|
|
86
|
+
const components_grid = grid_Grid;
|
|
87
|
+
export default components_grid;
|
|
88
|
+
export { components_grid as Grid };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { default as AspectRatio, type AspectRatioProps } from './components/aspect-ratio';
|
|
2
|
+
export { default as Box, type BoxProps } from './components/box';
|
|
3
|
+
export { default as Center, type CenterProps } from './components/center';
|
|
4
|
+
export { default as Container, type ContainerProps } from './components/container';
|
|
5
|
+
export { default as Divider, type DividerProps } from './components/divider';
|
|
6
|
+
export { default as Flex, type FlexProps } from './components/flex';
|
|
7
|
+
export { default as Grid, type GridProps } from './components/grid';
|
|
8
|
+
export { default as Inline, type InlineProps } from './components/inline';
|
|
9
|
+
export { default as Portal, type PortalProps } from './components/portal';
|
|
10
|
+
export { default as ScrollArea, type ScrollAreaProps } from './components/scroll-area';
|
|
11
|
+
export { default as Spacer, type SpacerProps } from './components/spacer';
|
|
12
|
+
export { default as Stack, type StackProps } from './components/stack';
|
|
13
|
+
export { default as Surface, type SurfaceProps } from './components/surface';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { AspectRatio } from "./aspect-ratio.js";
|
|
2
|
+
export { Box } from "./box.js";
|
|
3
|
+
export { Center } from "./center.js";
|
|
4
|
+
export { Container } from "./container.js";
|
|
5
|
+
export { Divider } from "./divider.js";
|
|
6
|
+
export { Flex } from "./flex.js";
|
|
7
|
+
export { Grid } from "./grid.js";
|
|
8
|
+
export { Inline } from "./inline.js";
|
|
9
|
+
export { Portal } from "./portal.js";
|
|
10
|
+
export { ScrollArea } from "./scroll-area.js";
|
|
11
|
+
export { Spacer } from "./spacer.js";
|
|
12
|
+
export { Stack } from "./stack.js";
|
|
13
|
+
export { Surface } from "./surface.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { flex_Flex } from "./207.js";
|
|
4
|
+
const Inline = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(flex_Flex, {
|
|
5
|
+
ref: ref,
|
|
6
|
+
direction: "row",
|
|
7
|
+
...props
|
|
8
|
+
}));
|
|
9
|
+
Inline.displayName = 'Inline';
|
|
10
|
+
const inline_Inline = Inline;
|
|
11
|
+
const inline = inline_Inline;
|
|
12
|
+
export default inline;
|
|
13
|
+
export { inline as Inline };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useSyncExternalStore } from "react";
|
|
2
|
+
import { createPortal } from "react-dom";
|
|
3
|
+
const noop = ()=>void 0;
|
|
4
|
+
const emptySubscribe = ()=>noop;
|
|
5
|
+
const Portal = ({ children, container })=>{
|
|
6
|
+
const mounted = useSyncExternalStore(emptySubscribe, ()=>true, ()=>false);
|
|
7
|
+
if (!mounted) return null;
|
|
8
|
+
return /*#__PURE__*/ createPortal(children, container ?? document.body);
|
|
9
|
+
};
|
|
10
|
+
Portal.displayName = 'Portal';
|
|
11
|
+
const portal_Portal = Portal;
|
|
12
|
+
const portal = portal_Portal;
|
|
13
|
+
export default portal;
|
|
14
|
+
export { portal as Portal };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
._1mtpkkv0 {
|
|
2
|
+
position: relative;
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
._1mtpkkv1 {
|
|
7
|
+
border-radius: inherit;
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
._1mtpkkv2 {
|
|
13
|
+
-webkit-user-select: none;
|
|
14
|
+
user-select: none;
|
|
15
|
+
touch-action: none;
|
|
16
|
+
background: var(--vinyasa-border-color-default);
|
|
17
|
+
transition: background var(--vinyasa-motion-duration-fast) var(--vinyasa-motion-easing-standard);
|
|
18
|
+
padding: 2px;
|
|
19
|
+
display: flex;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
._1mtpkkv2[data-orientation="vertical"] {
|
|
23
|
+
width: 10px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
._1mtpkkv2[data-orientation="horizontal"] {
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
height: 10px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
._1mtpkkv3 {
|
|
32
|
+
border-radius: var(--vinyasa-radius-full);
|
|
33
|
+
background: var(--vinyasa-border-color-default);
|
|
34
|
+
transition: background var(--vinyasa-motion-duration-fast) var(--vinyasa-motion-easing-standard);
|
|
35
|
+
flex: 1;
|
|
36
|
+
position: relative;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
._1mtpkkv3:hover {
|
|
40
|
+
background: var(--vinyasa-on-secondary);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
._1mtpkkv3:before {
|
|
44
|
+
content: "";
|
|
45
|
+
width: 100%;
|
|
46
|
+
min-width: 44px;
|
|
47
|
+
height: 100%;
|
|
48
|
+
min-height: 44px;
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: 50%;
|
|
51
|
+
left: 50%;
|
|
52
|
+
transform: translate(-50%, -50%);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
._1mtpkkv4 {
|
|
56
|
+
background: var(--vinyasa-border-color-default);
|
|
57
|
+
}
|
|
58
|
+
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import "./scroll-area.css";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import { resolveSpacingStyle } from "./474.js";
|
|
5
|
+
import * as __rspack_external__radix_ui_react_scroll_area_93228e9e from "@radix-ui/react-scroll-area";
|
|
6
|
+
var corner = '_1mtpkkv4';
|
|
7
|
+
var root = '_1mtpkkv0';
|
|
8
|
+
var scrollbar = '_1mtpkkv2';
|
|
9
|
+
var thumb = '_1mtpkkv3';
|
|
10
|
+
var viewport = '_1mtpkkv1';
|
|
11
|
+
const ScrollArea = /*#__PURE__*/ forwardRef(({ maxHeight, maxWidth, m, mt, mr, mb, ml, mx, my, p, pt, pr, pb, pl, px, py, className, style, children, ...rest }, ref)=>{
|
|
12
|
+
const classes = className ? `${root} ${className}` : root;
|
|
13
|
+
const computedStyle = {
|
|
14
|
+
...resolveSpacingStyle({
|
|
15
|
+
m,
|
|
16
|
+
mt,
|
|
17
|
+
mr,
|
|
18
|
+
mb,
|
|
19
|
+
ml,
|
|
20
|
+
mx,
|
|
21
|
+
my,
|
|
22
|
+
p,
|
|
23
|
+
pt,
|
|
24
|
+
pr,
|
|
25
|
+
pb,
|
|
26
|
+
pl,
|
|
27
|
+
px,
|
|
28
|
+
py
|
|
29
|
+
}),
|
|
30
|
+
height: maxHeight,
|
|
31
|
+
width: maxWidth,
|
|
32
|
+
...style
|
|
33
|
+
};
|
|
34
|
+
return /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_scroll_area_93228e9e.Root, {
|
|
35
|
+
ref: ref,
|
|
36
|
+
className: classes,
|
|
37
|
+
style: computedStyle,
|
|
38
|
+
...rest,
|
|
39
|
+
children: [
|
|
40
|
+
/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_scroll_area_93228e9e.Viewport, {
|
|
41
|
+
className: viewport,
|
|
42
|
+
children: children
|
|
43
|
+
}),
|
|
44
|
+
/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_scroll_area_93228e9e.Scrollbar, {
|
|
45
|
+
className: scrollbar,
|
|
46
|
+
orientation: "vertical",
|
|
47
|
+
children: /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_scroll_area_93228e9e.Thumb, {
|
|
48
|
+
className: thumb
|
|
49
|
+
})
|
|
50
|
+
}),
|
|
51
|
+
/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_scroll_area_93228e9e.Scrollbar, {
|
|
52
|
+
className: scrollbar,
|
|
53
|
+
orientation: "horizontal",
|
|
54
|
+
children: /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_scroll_area_93228e9e.Thumb, {
|
|
55
|
+
className: thumb
|
|
56
|
+
})
|
|
57
|
+
}),
|
|
58
|
+
/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_scroll_area_93228e9e.Corner, {
|
|
59
|
+
className: corner
|
|
60
|
+
})
|
|
61
|
+
]
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
ScrollArea.displayName = 'ScrollArea';
|
|
65
|
+
const scroll_area_ScrollArea = ScrollArea;
|
|
66
|
+
const scroll_area = scroll_area_ScrollArea;
|
|
67
|
+
export default scroll_area;
|
|
68
|
+
export { scroll_area as ScrollArea };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "./spacer.css";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
var spacer = '_9riydv0';
|
|
5
|
+
const Spacer = /*#__PURE__*/ forwardRef(({ className, ...rest }, ref)=>{
|
|
6
|
+
const classes = className ? `${spacer} ${className}` : spacer;
|
|
7
|
+
return /*#__PURE__*/ jsx("div", {
|
|
8
|
+
ref: ref,
|
|
9
|
+
"aria-hidden": "true",
|
|
10
|
+
className: classes,
|
|
11
|
+
...rest
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
Spacer.displayName = 'Spacer';
|
|
15
|
+
const spacer_Spacer = Spacer;
|
|
16
|
+
const components_spacer = spacer_Spacer;
|
|
17
|
+
export default components_spacer;
|
|
18
|
+
export { components_spacer as Spacer };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
export type SpaceScale = 1 | 2 | 3 | 4 | 5 | 6;
|
|
3
|
+
export interface SpacingProps {
|
|
4
|
+
m?: SpaceScale;
|
|
5
|
+
mt?: SpaceScale;
|
|
6
|
+
mr?: SpaceScale;
|
|
7
|
+
mb?: SpaceScale;
|
|
8
|
+
ml?: SpaceScale;
|
|
9
|
+
mx?: SpaceScale;
|
|
10
|
+
my?: SpaceScale;
|
|
11
|
+
p?: SpaceScale;
|
|
12
|
+
pt?: SpaceScale;
|
|
13
|
+
pr?: SpaceScale;
|
|
14
|
+
pb?: SpaceScale;
|
|
15
|
+
pl?: SpaceScale;
|
|
16
|
+
px?: SpaceScale;
|
|
17
|
+
py?: SpaceScale;
|
|
18
|
+
}
|
|
19
|
+
export declare const resolveSpacingStyle: (props: SpacingProps) => CSSProperties;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { flex_Flex } from "./207.js";
|
|
4
|
+
const Stack = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(flex_Flex, {
|
|
5
|
+
ref: ref,
|
|
6
|
+
direction: "column",
|
|
7
|
+
...props
|
|
8
|
+
}));
|
|
9
|
+
Stack.displayName = 'Stack';
|
|
10
|
+
const stack_Stack = Stack;
|
|
11
|
+
const stack = stack_Stack;
|
|
12
|
+
export default stack;
|
|
13
|
+
export { stack as Stack };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
._1b2xjv10 {
|
|
2
|
+
background-color: var(--vinyasa-secondary);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
._1b2xjv11 {
|
|
6
|
+
border-radius: var(--vinyasa-radius-sm);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
._1b2xjv12 {
|
|
10
|
+
border-radius: var(--vinyasa-radius-md);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
._1b2xjv13 {
|
|
14
|
+
border-radius: var(--vinyasa-radius-full);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
._1b2xjv14 {
|
|
18
|
+
box-shadow: var(--vinyasa-elevation-raised);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
._1b2xjv15 {
|
|
22
|
+
box-shadow: var(--vinyasa-elevation-overlay);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
._1b2xjv16 {
|
|
26
|
+
box-shadow: var(--vinyasa-elevation-modal);
|
|
27
|
+
}
|
|
28
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import "./surface.css";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import { createRuntimeFn } from "./953.js";
|
|
5
|
+
import { resolveSpacingStyle } from "./474.js";
|
|
6
|
+
var surface = createRuntimeFn({
|
|
7
|
+
defaultClassName: '_1b2xjv10',
|
|
8
|
+
variantClassNames: {
|
|
9
|
+
radius: {
|
|
10
|
+
sm: '_1b2xjv11',
|
|
11
|
+
md: '_1b2xjv12',
|
|
12
|
+
full: '_1b2xjv13'
|
|
13
|
+
},
|
|
14
|
+
elevation: {
|
|
15
|
+
raised: '_1b2xjv14',
|
|
16
|
+
overlay: '_1b2xjv15',
|
|
17
|
+
modal: '_1b2xjv16'
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: {
|
|
21
|
+
radius: 'md'
|
|
22
|
+
},
|
|
23
|
+
compoundVariants: []
|
|
24
|
+
});
|
|
25
|
+
const Surface = /*#__PURE__*/ forwardRef(({ as: Component = 'div', radius, elevation, m, mt, mr, mb, ml, mx, my, p, pt, pr, pb, pl, px, py, className, style, children, ...rest }, ref)=>{
|
|
26
|
+
const classes = className ? `${surface({
|
|
27
|
+
radius,
|
|
28
|
+
elevation
|
|
29
|
+
})} ${className}` : surface({
|
|
30
|
+
radius,
|
|
31
|
+
elevation
|
|
32
|
+
});
|
|
33
|
+
const spacingStyle = resolveSpacingStyle({
|
|
34
|
+
m,
|
|
35
|
+
mt,
|
|
36
|
+
mr,
|
|
37
|
+
mb,
|
|
38
|
+
ml,
|
|
39
|
+
mx,
|
|
40
|
+
my,
|
|
41
|
+
p,
|
|
42
|
+
pt,
|
|
43
|
+
pr,
|
|
44
|
+
pb,
|
|
45
|
+
pl,
|
|
46
|
+
px,
|
|
47
|
+
py
|
|
48
|
+
});
|
|
49
|
+
return /*#__PURE__*/ jsx(Component, {
|
|
50
|
+
ref: ref,
|
|
51
|
+
className: classes,
|
|
52
|
+
style: {
|
|
53
|
+
...spacingStyle,
|
|
54
|
+
...style
|
|
55
|
+
},
|
|
56
|
+
...rest,
|
|
57
|
+
children: children
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
Surface.displayName = 'Surface';
|
|
61
|
+
const surface_Surface = Surface;
|
|
62
|
+
const components_surface = surface_Surface;
|
|
63
|
+
export default components_surface;
|
|
64
|
+
export { components_surface as Surface };
|