@mirohq/design-system-grid 2.0.9
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/main.js +128 -0
- package/dist/main.js.map +1 -0
- package/dist/module.js +120 -0
- package/dist/module.js.map +1 -0
- package/dist/types.d.ts +810 -0
- package/package.json +38 -0
package/dist/main.js
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var designSystemPrimitive = require('@mirohq/design-system-primitive');
|
|
7
|
+
var designSystemStitches = require('@mirohq/design-system-stitches');
|
|
8
|
+
var designSystemUtils = require('@mirohq/design-system-utils');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
|
+
|
|
14
|
+
const SIZES$1 = designSystemUtils.createConstants(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
|
|
15
|
+
const StyledGrid = designSystemStitches.styled(designSystemPrimitive.Primitive.div, {
|
|
16
|
+
display: "grid",
|
|
17
|
+
variants: {
|
|
18
|
+
align: {
|
|
19
|
+
start: {
|
|
20
|
+
alignItems: "start"
|
|
21
|
+
},
|
|
22
|
+
center: {
|
|
23
|
+
alignItems: "center"
|
|
24
|
+
},
|
|
25
|
+
end: {
|
|
26
|
+
alignItems: "end"
|
|
27
|
+
},
|
|
28
|
+
stretch: {
|
|
29
|
+
alignItems: "stretch"
|
|
30
|
+
},
|
|
31
|
+
baseline: {
|
|
32
|
+
alignItems: "baseline"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
flow: {
|
|
36
|
+
row: {
|
|
37
|
+
gridAutoFlow: "row"
|
|
38
|
+
},
|
|
39
|
+
column: {
|
|
40
|
+
gridAutoFlow: "column"
|
|
41
|
+
},
|
|
42
|
+
dense: {
|
|
43
|
+
gridAutoFlow: "dense"
|
|
44
|
+
},
|
|
45
|
+
rowDense: {
|
|
46
|
+
gridAutoFlow: "row dense"
|
|
47
|
+
},
|
|
48
|
+
columnDense: {
|
|
49
|
+
gridAutoFlow: "column dense"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
gap: designSystemUtils.mapKeysToVariants(designSystemStitches.theme["space-gap"], "gap"),
|
|
53
|
+
gapX: designSystemUtils.mapKeysToVariants(designSystemStitches.theme["space-gap"], "rowGap"),
|
|
54
|
+
gapY: designSystemUtils.mapKeysToVariants(designSystemStitches.theme["space-gap"], "columnGap"),
|
|
55
|
+
columns: designSystemUtils.mapKeysToVariants(SIZES$1, (key) => ({
|
|
56
|
+
gridTemplateColumns: `repeat(${key}, 1fr)`
|
|
57
|
+
})),
|
|
58
|
+
rows: designSystemUtils.mapKeysToVariants(SIZES$1, (key) => ({
|
|
59
|
+
gridTemplateRows: `repeat(${key}, 1fr)`
|
|
60
|
+
})),
|
|
61
|
+
justify: {
|
|
62
|
+
start: {
|
|
63
|
+
justifyContent: "start"
|
|
64
|
+
},
|
|
65
|
+
center: {
|
|
66
|
+
justifyContent: "center"
|
|
67
|
+
},
|
|
68
|
+
end: {
|
|
69
|
+
justifyContent: "end"
|
|
70
|
+
},
|
|
71
|
+
stretch: {
|
|
72
|
+
justifyContent: "stretch"
|
|
73
|
+
},
|
|
74
|
+
between: {
|
|
75
|
+
justifyContent: "space-between"
|
|
76
|
+
},
|
|
77
|
+
around: {
|
|
78
|
+
justifyContent: "space-around"
|
|
79
|
+
},
|
|
80
|
+
evenly: {
|
|
81
|
+
justifyContent: "space-evenly"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
justifyItems: {
|
|
85
|
+
start: {
|
|
86
|
+
justifyItems: "start"
|
|
87
|
+
},
|
|
88
|
+
center: {
|
|
89
|
+
justifyItems: "center"
|
|
90
|
+
},
|
|
91
|
+
end: {
|
|
92
|
+
justifyItems: "end"
|
|
93
|
+
},
|
|
94
|
+
stretch: {
|
|
95
|
+
justifyItems: "stretch"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
const ADDITIONAL_COLUMNS_ROWS_SIZES = designSystemUtils.createConstants(-1);
|
|
102
|
+
const SIZES = { ...ADDITIONAL_COLUMNS_ROWS_SIZES, ...SIZES$1 };
|
|
103
|
+
const StyledItem = designSystemStitches.styled(designSystemPrimitive.Primitive.div, {
|
|
104
|
+
variants: {
|
|
105
|
+
columnStart: designSystemUtils.mapKeysToVariants(SIZES, (key) => ({ gridColumnStart: key })),
|
|
106
|
+
rowStart: designSystemUtils.mapKeysToVariants(SIZES, (key) => ({ gridRowStart: key })),
|
|
107
|
+
columnEnd: designSystemUtils.mapKeysToVariants(SIZES, (key) => ({ gridColumnEnd: key })),
|
|
108
|
+
rowEnd: designSystemUtils.mapKeysToVariants(SIZES, (key) => ({ gridRowEnd: key }))
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
const Item = React__default["default"].forwardRef(
|
|
113
|
+
(props, forwardRef) => /* @__PURE__ */ React__default["default"].createElement(StyledItem, {
|
|
114
|
+
...props,
|
|
115
|
+
ref: forwardRef
|
|
116
|
+
})
|
|
117
|
+
);
|
|
118
|
+
|
|
119
|
+
const Grid = React__default["default"].forwardRef(
|
|
120
|
+
(props, forwardRef) => /* @__PURE__ */ React__default["default"].createElement(StyledGrid, {
|
|
121
|
+
...props,
|
|
122
|
+
ref: forwardRef
|
|
123
|
+
})
|
|
124
|
+
);
|
|
125
|
+
Grid.Item = Item;
|
|
126
|
+
|
|
127
|
+
exports.Grid = Grid;
|
|
128
|
+
//# sourceMappingURL=main.js.map
|
package/dist/main.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.js","sources":["../src/grid.styled.ts","../src/partials/item.styled.ts","../src/partials/item.tsx","../src/grid.tsx"],"sourcesContent":["import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled, theme } from '@mirohq/design-system-stitches'\nimport {\n createConstants,\n mapKeysToVariants,\n} from '@mirohq/design-system-utils'\n\nexport const SIZES = createConstants(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)\n\nexport const StyledGrid = styled(Primitive.div, {\n display: 'grid',\n variants: {\n align: {\n start: {\n alignItems: 'start',\n },\n center: {\n alignItems: 'center',\n },\n end: {\n alignItems: 'end',\n },\n stretch: {\n alignItems: 'stretch',\n },\n baseline: {\n alignItems: 'baseline',\n },\n },\n flow: {\n row: {\n gridAutoFlow: 'row',\n },\n column: {\n gridAutoFlow: 'column',\n },\n dense: {\n gridAutoFlow: 'dense',\n },\n rowDense: {\n gridAutoFlow: 'row dense',\n },\n columnDense: {\n gridAutoFlow: 'column dense',\n },\n },\n gap: mapKeysToVariants(theme['space-gap'], 'gap'),\n gapX: mapKeysToVariants(theme['space-gap'], 'rowGap'),\n gapY: mapKeysToVariants(theme['space-gap'], 'columnGap'),\n columns: mapKeysToVariants(SIZES, key => ({\n gridTemplateColumns: `repeat(${key}, 1fr)`,\n })),\n rows: mapKeysToVariants(SIZES, key => ({\n gridTemplateRows: `repeat(${key}, 1fr)`,\n })),\n justify: {\n start: {\n justifyContent: 'start',\n },\n center: {\n justifyContent: 'center',\n },\n end: {\n justifyContent: 'end',\n },\n stretch: {\n justifyContent: 'stretch',\n },\n between: {\n justifyContent: 'space-between',\n },\n around: {\n justifyContent: 'space-around',\n },\n evenly: {\n justifyContent: 'space-evenly',\n },\n },\n justifyItems: {\n start: {\n justifyItems: 'start',\n },\n center: {\n justifyItems: 'center',\n },\n end: {\n justifyItems: 'end',\n },\n stretch: {\n justifyItems: 'stretch',\n },\n },\n },\n})\n\nexport type StyledGridProps = ComponentPropsWithRef<typeof StyledGrid>\n","import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled } from '@mirohq/design-system-stitches'\nimport {\n mapKeysToVariants,\n createConstants,\n} from '@mirohq/design-system-utils'\n\nimport { SIZES as GRID_SIZES } from '../grid.styled'\n\nconst ADDITIONAL_COLUMNS_ROWS_SIZES = createConstants(-1)\nconst SIZES = { ...ADDITIONAL_COLUMNS_ROWS_SIZES, ...GRID_SIZES }\n\nexport const StyledItem = styled(Primitive.div, {\n variants: {\n columnStart: mapKeysToVariants(SIZES, key => ({ gridColumnStart: key })),\n rowStart: mapKeysToVariants(SIZES, key => ({ gridRowStart: key })),\n columnEnd: mapKeysToVariants(SIZES, key => ({ gridColumnEnd: key })),\n rowEnd: mapKeysToVariants(SIZES, key => ({ gridRowEnd: key })),\n },\n})\n\nexport type StyledItemProps = ComponentPropsWithRef<typeof StyledItem>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledItem } from './item.styled'\nimport type { StyledItemProps } from './item.styled'\n\nexport interface ItemProps extends StyledItemProps {\n /**\n * Determines the grid item's start position within the grid referring to a column number.\n */\n columnStart?: StyledItemProps['columnStart']\n\n /**\n * Determines the grid item's start position within the grid referring to a row number.\n */\n rowStart?: StyledItemProps['rowStart']\n /**\n * Determines the grid item's end position within the grid referring to a column number.\n */\n columnEnd?: StyledItemProps['columnEnd']\n /**\n * Determines the grid item's end position within the grid referring to a row number.\n */\n rowEnd?: StyledItemProps['rowEnd']\n}\n\nexport const Item = React.forwardRef<ElementRef<typeof StyledItem>, ItemProps>(\n (props, forwardRef) => <StyledItem {...props} ref={forwardRef} />\n)\n","import React from 'react'\nimport type { ElementRef, ForwardRefExoticComponent } from 'react'\n\nimport { StyledGrid } from './grid.styled'\nimport type { StyledGridProps } from './grid.styled'\nimport { Item } from './partials/item'\n\nexport interface GridProps extends StyledGridProps {\n /**\n * Defines how elements are aligned along the block (column) axis.\n */\n align?: StyledGridProps['align']\n\n /**\n * Defines how elements are aligned along the inline (row) axis.\n */\n justify?: StyledGridProps['justify']\n\n /**\n * Aligns grid items along the inline (row) axis.\n * This value applies to all grid items inside the container.\n */\n justifyItems?: StyledGridProps['justifyItems']\n\n /**\n * Defines how elements are automatically placed in the grid.\n */\n flow?: StyledGridProps['flow']\n\n /**\n * Defines the width of the gutter between both columns and rows. It uses the\n * [space](/?path=/docs/foundation-spacing--page)\n */\n gap?: StyledGridProps['gap']\n\n /**\n * Defines the width of the gutter between rows. It uses the\n * [space](/?path=/docs/foundation-spacing--page)\n */\n gapX?: StyledGridProps['gapX']\n\n /**\n * Defines the width of the gutter between columns.It uses the\n * [space](/?path=/docs/foundation-spacing--page)\n */\n gapY?: StyledGridProps['gapY']\n\n /**\n * Defines the number of columns in the grid.\n */\n columns?: StyledGridProps['columns']\n\n /**\n * Defines the number of rows in the grid.\n */\n rows?: StyledGridProps['rows']\n}\n\nexport const Grid = React.forwardRef<ElementRef<typeof StyledGrid>, GridProps>(\n (props, forwardRef) => <StyledGrid {...props} ref={forwardRef} />\n) as ForwardRefExoticComponent<GridProps> & Partials\n\n// Partials\n// -----------------------------------------------------------------------------\n\ninterface Partials {\n Item: typeof Item\n}\n\nGrid.Item = Item\n"],"names":["SIZES","createConstants","styled","Primitive","mapKeysToVariants","theme","GRID_SIZES","React"],"mappings":"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"}
|
package/dist/module.js
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Primitive } from '@mirohq/design-system-primitive';
|
|
3
|
+
import { styled, theme } from '@mirohq/design-system-stitches';
|
|
4
|
+
import { createConstants, mapKeysToVariants } from '@mirohq/design-system-utils';
|
|
5
|
+
|
|
6
|
+
const SIZES$1 = createConstants(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
|
|
7
|
+
const StyledGrid = styled(Primitive.div, {
|
|
8
|
+
display: "grid",
|
|
9
|
+
variants: {
|
|
10
|
+
align: {
|
|
11
|
+
start: {
|
|
12
|
+
alignItems: "start"
|
|
13
|
+
},
|
|
14
|
+
center: {
|
|
15
|
+
alignItems: "center"
|
|
16
|
+
},
|
|
17
|
+
end: {
|
|
18
|
+
alignItems: "end"
|
|
19
|
+
},
|
|
20
|
+
stretch: {
|
|
21
|
+
alignItems: "stretch"
|
|
22
|
+
},
|
|
23
|
+
baseline: {
|
|
24
|
+
alignItems: "baseline"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
flow: {
|
|
28
|
+
row: {
|
|
29
|
+
gridAutoFlow: "row"
|
|
30
|
+
},
|
|
31
|
+
column: {
|
|
32
|
+
gridAutoFlow: "column"
|
|
33
|
+
},
|
|
34
|
+
dense: {
|
|
35
|
+
gridAutoFlow: "dense"
|
|
36
|
+
},
|
|
37
|
+
rowDense: {
|
|
38
|
+
gridAutoFlow: "row dense"
|
|
39
|
+
},
|
|
40
|
+
columnDense: {
|
|
41
|
+
gridAutoFlow: "column dense"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
gap: mapKeysToVariants(theme["space-gap"], "gap"),
|
|
45
|
+
gapX: mapKeysToVariants(theme["space-gap"], "rowGap"),
|
|
46
|
+
gapY: mapKeysToVariants(theme["space-gap"], "columnGap"),
|
|
47
|
+
columns: mapKeysToVariants(SIZES$1, (key) => ({
|
|
48
|
+
gridTemplateColumns: `repeat(${key}, 1fr)`
|
|
49
|
+
})),
|
|
50
|
+
rows: mapKeysToVariants(SIZES$1, (key) => ({
|
|
51
|
+
gridTemplateRows: `repeat(${key}, 1fr)`
|
|
52
|
+
})),
|
|
53
|
+
justify: {
|
|
54
|
+
start: {
|
|
55
|
+
justifyContent: "start"
|
|
56
|
+
},
|
|
57
|
+
center: {
|
|
58
|
+
justifyContent: "center"
|
|
59
|
+
},
|
|
60
|
+
end: {
|
|
61
|
+
justifyContent: "end"
|
|
62
|
+
},
|
|
63
|
+
stretch: {
|
|
64
|
+
justifyContent: "stretch"
|
|
65
|
+
},
|
|
66
|
+
between: {
|
|
67
|
+
justifyContent: "space-between"
|
|
68
|
+
},
|
|
69
|
+
around: {
|
|
70
|
+
justifyContent: "space-around"
|
|
71
|
+
},
|
|
72
|
+
evenly: {
|
|
73
|
+
justifyContent: "space-evenly"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
justifyItems: {
|
|
77
|
+
start: {
|
|
78
|
+
justifyItems: "start"
|
|
79
|
+
},
|
|
80
|
+
center: {
|
|
81
|
+
justifyItems: "center"
|
|
82
|
+
},
|
|
83
|
+
end: {
|
|
84
|
+
justifyItems: "end"
|
|
85
|
+
},
|
|
86
|
+
stretch: {
|
|
87
|
+
justifyItems: "stretch"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
const ADDITIONAL_COLUMNS_ROWS_SIZES = createConstants(-1);
|
|
94
|
+
const SIZES = { ...ADDITIONAL_COLUMNS_ROWS_SIZES, ...SIZES$1 };
|
|
95
|
+
const StyledItem = styled(Primitive.div, {
|
|
96
|
+
variants: {
|
|
97
|
+
columnStart: mapKeysToVariants(SIZES, (key) => ({ gridColumnStart: key })),
|
|
98
|
+
rowStart: mapKeysToVariants(SIZES, (key) => ({ gridRowStart: key })),
|
|
99
|
+
columnEnd: mapKeysToVariants(SIZES, (key) => ({ gridColumnEnd: key })),
|
|
100
|
+
rowEnd: mapKeysToVariants(SIZES, (key) => ({ gridRowEnd: key }))
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
const Item = React.forwardRef(
|
|
105
|
+
(props, forwardRef) => /* @__PURE__ */ React.createElement(StyledItem, {
|
|
106
|
+
...props,
|
|
107
|
+
ref: forwardRef
|
|
108
|
+
})
|
|
109
|
+
);
|
|
110
|
+
|
|
111
|
+
const Grid = React.forwardRef(
|
|
112
|
+
(props, forwardRef) => /* @__PURE__ */ React.createElement(StyledGrid, {
|
|
113
|
+
...props,
|
|
114
|
+
ref: forwardRef
|
|
115
|
+
})
|
|
116
|
+
);
|
|
117
|
+
Grid.Item = Item;
|
|
118
|
+
|
|
119
|
+
export { Grid };
|
|
120
|
+
//# sourceMappingURL=module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.js","sources":["../src/grid.styled.ts","../src/partials/item.styled.ts","../src/partials/item.tsx","../src/grid.tsx"],"sourcesContent":["import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled, theme } from '@mirohq/design-system-stitches'\nimport {\n createConstants,\n mapKeysToVariants,\n} from '@mirohq/design-system-utils'\n\nexport const SIZES = createConstants(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)\n\nexport const StyledGrid = styled(Primitive.div, {\n display: 'grid',\n variants: {\n align: {\n start: {\n alignItems: 'start',\n },\n center: {\n alignItems: 'center',\n },\n end: {\n alignItems: 'end',\n },\n stretch: {\n alignItems: 'stretch',\n },\n baseline: {\n alignItems: 'baseline',\n },\n },\n flow: {\n row: {\n gridAutoFlow: 'row',\n },\n column: {\n gridAutoFlow: 'column',\n },\n dense: {\n gridAutoFlow: 'dense',\n },\n rowDense: {\n gridAutoFlow: 'row dense',\n },\n columnDense: {\n gridAutoFlow: 'column dense',\n },\n },\n gap: mapKeysToVariants(theme['space-gap'], 'gap'),\n gapX: mapKeysToVariants(theme['space-gap'], 'rowGap'),\n gapY: mapKeysToVariants(theme['space-gap'], 'columnGap'),\n columns: mapKeysToVariants(SIZES, key => ({\n gridTemplateColumns: `repeat(${key}, 1fr)`,\n })),\n rows: mapKeysToVariants(SIZES, key => ({\n gridTemplateRows: `repeat(${key}, 1fr)`,\n })),\n justify: {\n start: {\n justifyContent: 'start',\n },\n center: {\n justifyContent: 'center',\n },\n end: {\n justifyContent: 'end',\n },\n stretch: {\n justifyContent: 'stretch',\n },\n between: {\n justifyContent: 'space-between',\n },\n around: {\n justifyContent: 'space-around',\n },\n evenly: {\n justifyContent: 'space-evenly',\n },\n },\n justifyItems: {\n start: {\n justifyItems: 'start',\n },\n center: {\n justifyItems: 'center',\n },\n end: {\n justifyItems: 'end',\n },\n stretch: {\n justifyItems: 'stretch',\n },\n },\n },\n})\n\nexport type StyledGridProps = ComponentPropsWithRef<typeof StyledGrid>\n","import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled } from '@mirohq/design-system-stitches'\nimport {\n mapKeysToVariants,\n createConstants,\n} from '@mirohq/design-system-utils'\n\nimport { SIZES as GRID_SIZES } from '../grid.styled'\n\nconst ADDITIONAL_COLUMNS_ROWS_SIZES = createConstants(-1)\nconst SIZES = { ...ADDITIONAL_COLUMNS_ROWS_SIZES, ...GRID_SIZES }\n\nexport const StyledItem = styled(Primitive.div, {\n variants: {\n columnStart: mapKeysToVariants(SIZES, key => ({ gridColumnStart: key })),\n rowStart: mapKeysToVariants(SIZES, key => ({ gridRowStart: key })),\n columnEnd: mapKeysToVariants(SIZES, key => ({ gridColumnEnd: key })),\n rowEnd: mapKeysToVariants(SIZES, key => ({ gridRowEnd: key })),\n },\n})\n\nexport type StyledItemProps = ComponentPropsWithRef<typeof StyledItem>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledItem } from './item.styled'\nimport type { StyledItemProps } from './item.styled'\n\nexport interface ItemProps extends StyledItemProps {\n /**\n * Determines the grid item's start position within the grid referring to a column number.\n */\n columnStart?: StyledItemProps['columnStart']\n\n /**\n * Determines the grid item's start position within the grid referring to a row number.\n */\n rowStart?: StyledItemProps['rowStart']\n /**\n * Determines the grid item's end position within the grid referring to a column number.\n */\n columnEnd?: StyledItemProps['columnEnd']\n /**\n * Determines the grid item's end position within the grid referring to a row number.\n */\n rowEnd?: StyledItemProps['rowEnd']\n}\n\nexport const Item = React.forwardRef<ElementRef<typeof StyledItem>, ItemProps>(\n (props, forwardRef) => <StyledItem {...props} ref={forwardRef} />\n)\n","import React from 'react'\nimport type { ElementRef, ForwardRefExoticComponent } from 'react'\n\nimport { StyledGrid } from './grid.styled'\nimport type { StyledGridProps } from './grid.styled'\nimport { Item } from './partials/item'\n\nexport interface GridProps extends StyledGridProps {\n /**\n * Defines how elements are aligned along the block (column) axis.\n */\n align?: StyledGridProps['align']\n\n /**\n * Defines how elements are aligned along the inline (row) axis.\n */\n justify?: StyledGridProps['justify']\n\n /**\n * Aligns grid items along the inline (row) axis.\n * This value applies to all grid items inside the container.\n */\n justifyItems?: StyledGridProps['justifyItems']\n\n /**\n * Defines how elements are automatically placed in the grid.\n */\n flow?: StyledGridProps['flow']\n\n /**\n * Defines the width of the gutter between both columns and rows. It uses the\n * [space](/?path=/docs/foundation-spacing--page)\n */\n gap?: StyledGridProps['gap']\n\n /**\n * Defines the width of the gutter between rows. It uses the\n * [space](/?path=/docs/foundation-spacing--page)\n */\n gapX?: StyledGridProps['gapX']\n\n /**\n * Defines the width of the gutter between columns.It uses the\n * [space](/?path=/docs/foundation-spacing--page)\n */\n gapY?: StyledGridProps['gapY']\n\n /**\n * Defines the number of columns in the grid.\n */\n columns?: StyledGridProps['columns']\n\n /**\n * Defines the number of rows in the grid.\n */\n rows?: StyledGridProps['rows']\n}\n\nexport const Grid = React.forwardRef<ElementRef<typeof StyledGrid>, GridProps>(\n (props, forwardRef) => <StyledGrid {...props} ref={forwardRef} />\n) as ForwardRefExoticComponent<GridProps> & Partials\n\n// Partials\n// -----------------------------------------------------------------------------\n\ninterface Partials {\n Item: typeof Item\n}\n\nGrid.Item = Item\n"],"names":["SIZES","GRID_SIZES"],"mappings":"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"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,810 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import react__default, { ComponentPropsWithRef } from 'react';
|
|
3
|
+
import * as _mirohq_design_system_stitches from '@mirohq/design-system-stitches';
|
|
4
|
+
import * as _stitches_react_types_css_util from '@stitches/react/types/css-util';
|
|
5
|
+
import * as _mirohq_design_system_primitive from '@mirohq/design-system-primitive';
|
|
6
|
+
import * as _stitches_react_types_styled_component from '@stitches/react/types/styled-component';
|
|
7
|
+
|
|
8
|
+
declare const StyledGrid: react.ForwardRefExoticComponent<Pick<Omit<{
|
|
9
|
+
align?: "end" | "baseline" | "start" | "center" | "stretch" | undefined;
|
|
10
|
+
flow?: "row" | "column" | "dense" | "rowDense" | "columnDense" | undefined;
|
|
11
|
+
gap?: "none" | 200 | 50 | 100 | 300 | "100" | "200" | "300" | "50" | undefined;
|
|
12
|
+
gapX?: "none" | 200 | 50 | 100 | 300 | "100" | "200" | "300" | "50" | undefined;
|
|
13
|
+
gapY?: "none" | 200 | 50 | 100 | 300 | "100" | "200" | "300" | "50" | undefined;
|
|
14
|
+
columns?: "1" | 1 | 4 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | "4" | "2" | "3" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | undefined;
|
|
15
|
+
rows?: "1" | 1 | 4 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | "4" | "2" | "3" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | undefined;
|
|
16
|
+
justify?: "end" | "start" | "center" | "stretch" | "between" | "around" | "evenly" | undefined;
|
|
17
|
+
justifyItems?: "end" | "start" | "center" | "stretch" | undefined;
|
|
18
|
+
}, "rows" | "align" | "justify" | "justifyItems" | "columns" | "gap" | "flow" | "gapX" | "gapY"> & _stitches_react_types_styled_component.TransformProps<{
|
|
19
|
+
align?: "end" | "baseline" | "start" | "center" | "stretch" | undefined;
|
|
20
|
+
flow?: "row" | "column" | "dense" | "rowDense" | "columnDense" | undefined;
|
|
21
|
+
gap?: "none" | 200 | 50 | 100 | 300 | "100" | "200" | "300" | "50" | undefined;
|
|
22
|
+
gapX?: "none" | 200 | 50 | 100 | 300 | "100" | "200" | "300" | "50" | undefined;
|
|
23
|
+
gapY?: "none" | 200 | 50 | 100 | 300 | "100" | "200" | "300" | "50" | undefined;
|
|
24
|
+
columns?: "1" | 1 | 4 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | "4" | "2" | "3" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | undefined;
|
|
25
|
+
rows?: "1" | 1 | 4 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | "4" | "2" | "3" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | undefined;
|
|
26
|
+
justify?: "end" | "start" | "center" | "stretch" | "between" | "around" | "evenly" | undefined;
|
|
27
|
+
justifyItems?: "end" | "start" | "center" | "stretch" | undefined;
|
|
28
|
+
}, {}> & _mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"div">>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
29
|
+
'border-widths': {
|
|
30
|
+
readonly none: 0;
|
|
31
|
+
readonly sm: "1px";
|
|
32
|
+
readonly md: "2px";
|
|
33
|
+
readonly lg: "4px";
|
|
34
|
+
};
|
|
35
|
+
colors: {
|
|
36
|
+
readonly black: any;
|
|
37
|
+
readonly 'blue-10': any;
|
|
38
|
+
readonly 'blue-20': any;
|
|
39
|
+
readonly 'blue-50': any;
|
|
40
|
+
readonly 'blue-60': any;
|
|
41
|
+
readonly 'blue-70': any;
|
|
42
|
+
readonly 'blue-80': any;
|
|
43
|
+
readonly 'gray-20': any;
|
|
44
|
+
readonly 'gray-30': any;
|
|
45
|
+
readonly 'green-70': any;
|
|
46
|
+
readonly 'indigo-20': any;
|
|
47
|
+
readonly 'indigo-30': any;
|
|
48
|
+
readonly 'indigo-50': any;
|
|
49
|
+
readonly 'indigo-70': any;
|
|
50
|
+
readonly 'indigo-90': any;
|
|
51
|
+
readonly 'pink-20': any;
|
|
52
|
+
readonly 'pink-50': any;
|
|
53
|
+
readonly 'red-10': any;
|
|
54
|
+
readonly 'red-20': any;
|
|
55
|
+
readonly 'red-30': any;
|
|
56
|
+
readonly 'red-50': any;
|
|
57
|
+
readonly 'red-60': any;
|
|
58
|
+
readonly transparent: any;
|
|
59
|
+
readonly white: any;
|
|
60
|
+
readonly 'yellow-20': any;
|
|
61
|
+
readonly 'yellow-60': any;
|
|
62
|
+
readonly 'background-cta-active'?: any;
|
|
63
|
+
readonly 'background-cta-disabled'?: any;
|
|
64
|
+
readonly 'background-cta-hover'?: any;
|
|
65
|
+
readonly 'background-cta-idle'?: any;
|
|
66
|
+
readonly 'background-danger-active'?: any;
|
|
67
|
+
readonly 'background-danger-hover'?: any;
|
|
68
|
+
readonly 'background-danger-idle'?: any;
|
|
69
|
+
readonly 'background-default-active'?: any;
|
|
70
|
+
readonly 'background-default-disabled'?: any;
|
|
71
|
+
readonly 'background-default-hover'?: any;
|
|
72
|
+
readonly 'background-default-idle'?: any;
|
|
73
|
+
readonly 'background-default-selected'?: any;
|
|
74
|
+
readonly 'background-default-selected-active'?: any;
|
|
75
|
+
readonly 'background-info-idle'?: any;
|
|
76
|
+
readonly 'background-primary'?: any;
|
|
77
|
+
readonly 'background-secondary'?: any;
|
|
78
|
+
readonly 'background-success-idle'?: any;
|
|
79
|
+
readonly 'background-warning-idle'?: any;
|
|
80
|
+
readonly 'border-cta-idle'?: any;
|
|
81
|
+
readonly 'border-default-active'?: any;
|
|
82
|
+
readonly 'border-default-error'?: any;
|
|
83
|
+
readonly 'border-default-hover'?: any;
|
|
84
|
+
readonly 'border-default-idle'?: any;
|
|
85
|
+
readonly 'border-default-selected'?: any;
|
|
86
|
+
readonly 'canvas-primary'?: any;
|
|
87
|
+
readonly 'divider-default'?: any;
|
|
88
|
+
readonly 'focus-ring-default'?: any;
|
|
89
|
+
readonly 'font-cta-idle'?: any;
|
|
90
|
+
readonly 'font-default-active'?: any;
|
|
91
|
+
readonly 'font-default-disabled'?: any;
|
|
92
|
+
readonly 'font-default-error'?: any;
|
|
93
|
+
readonly 'font-default-hover'?: any;
|
|
94
|
+
readonly 'font-default-idle'?: any;
|
|
95
|
+
readonly 'font-default-selected'?: any;
|
|
96
|
+
readonly 'font-default-visited'?: any;
|
|
97
|
+
readonly 'font-primary'?: any;
|
|
98
|
+
readonly 'font-secondary'?: any;
|
|
99
|
+
readonly 'font-tertiary'?: any;
|
|
100
|
+
readonly 'icon-cta-idle'?: any;
|
|
101
|
+
readonly 'icon-default'?: any;
|
|
102
|
+
readonly 'icon-default-active'?: any;
|
|
103
|
+
readonly 'icon-default-disabled'?: any;
|
|
104
|
+
readonly 'icon-default-error'?: any;
|
|
105
|
+
readonly 'icon-default-hover'?: any;
|
|
106
|
+
readonly 'icon-default-idle'?: any;
|
|
107
|
+
readonly 'icon-default-selected'?: any;
|
|
108
|
+
};
|
|
109
|
+
'font-sizes': {
|
|
110
|
+
readonly 150: "0.75rem";
|
|
111
|
+
readonly 175: "0.875rem";
|
|
112
|
+
readonly 200: "1rem";
|
|
113
|
+
readonly 225: "1.125rem";
|
|
114
|
+
readonly 250: "1.25rem";
|
|
115
|
+
readonly 300: "1.5rem";
|
|
116
|
+
readonly 400: "2rem";
|
|
117
|
+
readonly 500: "2.5rem";
|
|
118
|
+
readonly 600: "3rem";
|
|
119
|
+
readonly 800: "4rem";
|
|
120
|
+
readonly 900: "4.5rem";
|
|
121
|
+
};
|
|
122
|
+
radii: {
|
|
123
|
+
readonly none: 0;
|
|
124
|
+
readonly half: "999em";
|
|
125
|
+
readonly 25: "2px";
|
|
126
|
+
readonly 50: "4px";
|
|
127
|
+
readonly 75: "6px";
|
|
128
|
+
readonly 100: "8px";
|
|
129
|
+
readonly 200: "16px";
|
|
130
|
+
};
|
|
131
|
+
shadows: {
|
|
132
|
+
readonly 50: "0 4px 16px #05003812";
|
|
133
|
+
readonly 100: "0 8px 32px #05003808";
|
|
134
|
+
};
|
|
135
|
+
sizes: {
|
|
136
|
+
readonly number: string;
|
|
137
|
+
readonly 'icon-200': "16px";
|
|
138
|
+
readonly 'icon-300': "24px";
|
|
139
|
+
readonly 'icon-400': "32px";
|
|
140
|
+
};
|
|
141
|
+
space: {
|
|
142
|
+
readonly none: 0;
|
|
143
|
+
readonly 50: "4px";
|
|
144
|
+
readonly 100: "8px";
|
|
145
|
+
readonly 150: "12px";
|
|
146
|
+
readonly 200: "16px";
|
|
147
|
+
readonly 300: "24px";
|
|
148
|
+
readonly 400: "32px";
|
|
149
|
+
readonly 500: "64px";
|
|
150
|
+
readonly 600: "48px";
|
|
151
|
+
readonly 800: "64px";
|
|
152
|
+
readonly 1200: "96px";
|
|
153
|
+
readonly 1600: "128px";
|
|
154
|
+
};
|
|
155
|
+
'space-gap': {
|
|
156
|
+
readonly none: any;
|
|
157
|
+
readonly 50: any;
|
|
158
|
+
readonly 100: any;
|
|
159
|
+
readonly 200: any;
|
|
160
|
+
readonly 300: any;
|
|
161
|
+
};
|
|
162
|
+
'space-inset': {
|
|
163
|
+
readonly none: any;
|
|
164
|
+
readonly 50: any;
|
|
165
|
+
readonly 100: any;
|
|
166
|
+
readonly 150: any;
|
|
167
|
+
readonly 200: any;
|
|
168
|
+
readonly 300: any;
|
|
169
|
+
readonly 400: any;
|
|
170
|
+
readonly 600: any;
|
|
171
|
+
readonly 800: any;
|
|
172
|
+
readonly 1200: any;
|
|
173
|
+
readonly 1600: any;
|
|
174
|
+
};
|
|
175
|
+
'space-offset': {
|
|
176
|
+
readonly none: any;
|
|
177
|
+
readonly 50: any;
|
|
178
|
+
readonly 100: any;
|
|
179
|
+
readonly 150: any;
|
|
180
|
+
readonly 200: any;
|
|
181
|
+
readonly 300: any;
|
|
182
|
+
readonly 400: any;
|
|
183
|
+
readonly 600: any;
|
|
184
|
+
readonly 800: any;
|
|
185
|
+
readonly 1200: any;
|
|
186
|
+
readonly 1600: any;
|
|
187
|
+
readonly 'stacking-none': any;
|
|
188
|
+
readonly 'stacking-100': any;
|
|
189
|
+
readonly 'stacking-200': any;
|
|
190
|
+
readonly 'stacking-300': any;
|
|
191
|
+
readonly 'stacking-400': any;
|
|
192
|
+
readonly 'stacking-500': any;
|
|
193
|
+
readonly 'stacking-800': any;
|
|
194
|
+
};
|
|
195
|
+
'z-indices': {
|
|
196
|
+
readonly dropdownMenu: 100;
|
|
197
|
+
readonly popover: 200;
|
|
198
|
+
readonly tooltip: 300;
|
|
199
|
+
};
|
|
200
|
+
}, {
|
|
201
|
+
readonly background: "colors";
|
|
202
|
+
readonly backgroundColor: "colors";
|
|
203
|
+
readonly backgroundImage: "colors";
|
|
204
|
+
readonly blockSize: "sizes";
|
|
205
|
+
readonly border: "colors";
|
|
206
|
+
readonly borderBlock: "colors";
|
|
207
|
+
readonly borderBlockEnd: "colors";
|
|
208
|
+
readonly borderBlockStart: "colors";
|
|
209
|
+
readonly borderBottom: "colors";
|
|
210
|
+
readonly borderBottomColor: "colors";
|
|
211
|
+
readonly borderBottomLeftRadius: "radii";
|
|
212
|
+
readonly borderBottomRightRadius: "radii";
|
|
213
|
+
readonly borderBottomStyle: "border-styles";
|
|
214
|
+
readonly borderBottomWidth: "border-widths";
|
|
215
|
+
readonly borderColor: "colors";
|
|
216
|
+
readonly borderImage: "colors";
|
|
217
|
+
readonly borderInline: "colors";
|
|
218
|
+
readonly borderInlineEnd: "colors";
|
|
219
|
+
readonly borderInlineStart: "colors";
|
|
220
|
+
readonly borderLeft: "colors";
|
|
221
|
+
readonly borderLeftColor: "colors";
|
|
222
|
+
readonly borderLeftStyle: "border-styles";
|
|
223
|
+
readonly borderLeftWidth: "border-widths";
|
|
224
|
+
readonly borderRadius: "radii";
|
|
225
|
+
readonly borderRight: "colors";
|
|
226
|
+
readonly borderRightColor: "colors";
|
|
227
|
+
readonly borderRightStyle: "border-styles";
|
|
228
|
+
readonly borderRightWidth: "border-widths";
|
|
229
|
+
readonly borderStyle: "border-styles";
|
|
230
|
+
readonly borderTop: "colors";
|
|
231
|
+
readonly borderTopColor: "colors";
|
|
232
|
+
readonly borderTopLeftRadius: "radii";
|
|
233
|
+
readonly borderTopRightRadius: "radii";
|
|
234
|
+
readonly borderTopStyle: "border-styles";
|
|
235
|
+
readonly borderTopWidth: "border-widths";
|
|
236
|
+
readonly borderWidth: "border-widths";
|
|
237
|
+
readonly bottom: "space";
|
|
238
|
+
readonly boxShadow: "shadows";
|
|
239
|
+
readonly caretColor: "colors";
|
|
240
|
+
readonly color: "colors";
|
|
241
|
+
readonly columnGap: "space-gap";
|
|
242
|
+
readonly columnRuleColor: "colors";
|
|
243
|
+
readonly fill: "colors";
|
|
244
|
+
readonly flexBasis: "sizes";
|
|
245
|
+
readonly fontFamily: "fonts";
|
|
246
|
+
readonly fontSize: "font-sizes";
|
|
247
|
+
readonly fontWeight: "font-weights";
|
|
248
|
+
readonly gap: "space-gap";
|
|
249
|
+
readonly gridColumnGap: "space-gap";
|
|
250
|
+
readonly gridGap: "space-gap";
|
|
251
|
+
readonly gridRowGap: "space-gap";
|
|
252
|
+
readonly gridTemplateColumns: "sizes";
|
|
253
|
+
readonly gridTemplateRows: "sizes";
|
|
254
|
+
readonly height: "sizes";
|
|
255
|
+
readonly inlineSize: "sizes";
|
|
256
|
+
readonly inset: "space-inset";
|
|
257
|
+
readonly insetBlock: "space-inset";
|
|
258
|
+
readonly insetBlockEnd: "space-inset";
|
|
259
|
+
readonly insetBlockStart: "space-inset";
|
|
260
|
+
readonly insetInline: "space-inset";
|
|
261
|
+
readonly insetInlineEnd: "space-inset";
|
|
262
|
+
readonly insetInlineStart: "space-inset";
|
|
263
|
+
readonly left: "space";
|
|
264
|
+
readonly letterSpacing: "letter-spacings";
|
|
265
|
+
readonly lineHeight: "line-heights";
|
|
266
|
+
readonly margin: "space-offset";
|
|
267
|
+
readonly marginBlock: "space-offset";
|
|
268
|
+
readonly marginBlockEnd: "space-offset";
|
|
269
|
+
readonly marginBlockStart: "space-offset";
|
|
270
|
+
readonly marginBottom: "space-offset";
|
|
271
|
+
readonly marginInline: "space-offset";
|
|
272
|
+
readonly marginInlineEnd: "space-offset";
|
|
273
|
+
readonly marginInlineStart: "space-offset";
|
|
274
|
+
readonly marginLeft: "space-offset";
|
|
275
|
+
readonly marginRight: "space-offset";
|
|
276
|
+
readonly marginTop: "space-offset";
|
|
277
|
+
readonly maxBlockSize: "sizes";
|
|
278
|
+
readonly maxHeight: "sizes";
|
|
279
|
+
readonly maxInlineSize: "sizes";
|
|
280
|
+
readonly maxWidth: "sizes";
|
|
281
|
+
readonly minBlockSize: "sizes";
|
|
282
|
+
readonly minHeight: "sizes";
|
|
283
|
+
readonly minInlineSize: "sizes";
|
|
284
|
+
readonly minWidth: "sizes";
|
|
285
|
+
readonly outline: "colors";
|
|
286
|
+
readonly outlineColor: "colors";
|
|
287
|
+
readonly padding: "space-inset";
|
|
288
|
+
readonly paddingBlock: "space-inset";
|
|
289
|
+
readonly paddingBlockEnd: "space-inset";
|
|
290
|
+
readonly paddingBlockStart: "space-inset";
|
|
291
|
+
readonly paddingBottom: "space-inset";
|
|
292
|
+
readonly paddingInline: "space-inset";
|
|
293
|
+
readonly paddingInlineEnd: "space-inset";
|
|
294
|
+
readonly paddingInlineStart: "space-inset";
|
|
295
|
+
readonly paddingLeft: "space-inset";
|
|
296
|
+
readonly paddingRight: "space-inset";
|
|
297
|
+
readonly paddingTop: "space-inset";
|
|
298
|
+
readonly right: "space";
|
|
299
|
+
readonly rowGap: "space-gap";
|
|
300
|
+
readonly scrollMargin: "space-offset";
|
|
301
|
+
readonly scrollMarginBlock: "space-offset";
|
|
302
|
+
readonly scrollMarginBlockEnd: "space-offset";
|
|
303
|
+
readonly scrollMarginBlockStart: "space-offset";
|
|
304
|
+
readonly scrollMarginBottom: "space-offset";
|
|
305
|
+
readonly scrollMarginInline: "space-offset";
|
|
306
|
+
readonly scrollMarginInlineEnd: "space-offset";
|
|
307
|
+
readonly scrollMarginInlineStart: "space-offset";
|
|
308
|
+
readonly scrollMarginLeft: "space-offset";
|
|
309
|
+
readonly scrollMarginRight: "space-offset";
|
|
310
|
+
readonly scrollMarginTop: "space-offset";
|
|
311
|
+
readonly scrollPadding: "space-inset";
|
|
312
|
+
readonly scrollPaddingBlock: "space-inset";
|
|
313
|
+
readonly scrollPaddingBlockEnd: "space-inset";
|
|
314
|
+
readonly scrollPaddingBlockStart: "space-inset";
|
|
315
|
+
readonly scrollPaddingBottom: "space-inset";
|
|
316
|
+
readonly scrollPaddingInline: "space-inset";
|
|
317
|
+
readonly scrollPaddingInlineEnd: "space-inset";
|
|
318
|
+
readonly scrollPaddingInlineStart: "space-inset";
|
|
319
|
+
readonly scrollPaddingLeft: "space-inset";
|
|
320
|
+
readonly scrollPaddingRight: "space-inset";
|
|
321
|
+
readonly scrollPaddingTop: "space-inset";
|
|
322
|
+
readonly stroke: "colors";
|
|
323
|
+
readonly textDecorationColor: "colors";
|
|
324
|
+
readonly textShadow: "shadows";
|
|
325
|
+
readonly top: "space";
|
|
326
|
+
readonly transition: "transitions";
|
|
327
|
+
readonly width: "sizes";
|
|
328
|
+
readonly zIndex: "z-indices";
|
|
329
|
+
}, {
|
|
330
|
+
paddingX: (value: {
|
|
331
|
+
readonly [$$PropertyValue]: "padding";
|
|
332
|
+
}) => {
|
|
333
|
+
paddingLeft: {
|
|
334
|
+
readonly [$$PropertyValue]: "padding";
|
|
335
|
+
};
|
|
336
|
+
paddingRight: {
|
|
337
|
+
readonly [$$PropertyValue]: "padding";
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
paddingY: (value: {
|
|
341
|
+
readonly [$$PropertyValue]: "padding";
|
|
342
|
+
}) => {
|
|
343
|
+
paddingTop: {
|
|
344
|
+
readonly [$$PropertyValue]: "padding";
|
|
345
|
+
};
|
|
346
|
+
paddingBottom: {
|
|
347
|
+
readonly [$$PropertyValue]: "padding";
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
marginX: (value: {
|
|
351
|
+
readonly [$$PropertyValue]: "margin";
|
|
352
|
+
}) => {
|
|
353
|
+
marginLeft: {
|
|
354
|
+
readonly [$$PropertyValue]: "margin";
|
|
355
|
+
};
|
|
356
|
+
marginRight: {
|
|
357
|
+
readonly [$$PropertyValue]: "margin";
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
marginY: (value: {
|
|
361
|
+
readonly [$$PropertyValue]: "margin";
|
|
362
|
+
}) => {
|
|
363
|
+
marginTop: {
|
|
364
|
+
readonly [$$PropertyValue]: "margin";
|
|
365
|
+
};
|
|
366
|
+
marginBottom: {
|
|
367
|
+
readonly [$$PropertyValue]: "margin";
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
}>>> & _mirohq_design_system_stitches.CustomStylesProps, "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "rows" | "align" | "justify" | "asChild" | "justifyItems" | "columns" | "gap" | "flow" | keyof _mirohq_design_system_stitches.CustomStylesProps | "gapX" | "gapY"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"div">>, {
|
|
371
|
+
align?: "end" | "baseline" | "start" | "center" | "stretch" | undefined;
|
|
372
|
+
flow?: "row" | "column" | "dense" | "rowDense" | "columnDense" | undefined;
|
|
373
|
+
gap?: "none" | 200 | 50 | 100 | 300 | "100" | "200" | "300" | "50" | undefined;
|
|
374
|
+
gapX?: "none" | 200 | 50 | 100 | 300 | "100" | "200" | "300" | "50" | undefined;
|
|
375
|
+
gapY?: "none" | 200 | 50 | 100 | 300 | "100" | "200" | "300" | "50" | undefined;
|
|
376
|
+
columns?: "1" | 1 | 4 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | "4" | "2" | "3" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | undefined;
|
|
377
|
+
rows?: "1" | 1 | 4 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | "4" | "2" | "3" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | undefined;
|
|
378
|
+
justify?: "end" | "start" | "center" | "stretch" | "between" | "around" | "evenly" | undefined;
|
|
379
|
+
justifyItems?: "end" | "start" | "center" | "stretch" | undefined;
|
|
380
|
+
}, {}>;
|
|
381
|
+
declare type StyledGridProps = ComponentPropsWithRef<typeof StyledGrid>;
|
|
382
|
+
|
|
383
|
+
declare const StyledItem: react.ForwardRefExoticComponent<Pick<Omit<{
|
|
384
|
+
columnStart?: "1" | 1 | 4 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -1 | "4" | "2" | "3" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "-1" | undefined;
|
|
385
|
+
rowStart?: "1" | 1 | 4 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -1 | "4" | "2" | "3" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "-1" | undefined;
|
|
386
|
+
columnEnd?: "1" | 1 | 4 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -1 | "4" | "2" | "3" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "-1" | undefined;
|
|
387
|
+
rowEnd?: "1" | 1 | 4 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -1 | "4" | "2" | "3" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "-1" | undefined;
|
|
388
|
+
}, "columnStart" | "rowStart" | "columnEnd" | "rowEnd"> & _stitches_react_types_styled_component.TransformProps<{
|
|
389
|
+
columnStart?: "1" | 1 | 4 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -1 | "4" | "2" | "3" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "-1" | undefined;
|
|
390
|
+
rowStart?: "1" | 1 | 4 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -1 | "4" | "2" | "3" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "-1" | undefined;
|
|
391
|
+
columnEnd?: "1" | 1 | 4 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -1 | "4" | "2" | "3" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "-1" | undefined;
|
|
392
|
+
rowEnd?: "1" | 1 | 4 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -1 | "4" | "2" | "3" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "-1" | undefined;
|
|
393
|
+
}, {}> & _mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"div">>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
394
|
+
'border-widths': {
|
|
395
|
+
readonly none: 0;
|
|
396
|
+
readonly sm: "1px";
|
|
397
|
+
readonly md: "2px";
|
|
398
|
+
readonly lg: "4px";
|
|
399
|
+
};
|
|
400
|
+
colors: {
|
|
401
|
+
readonly black: any;
|
|
402
|
+
readonly 'blue-10': any;
|
|
403
|
+
readonly 'blue-20': any;
|
|
404
|
+
readonly 'blue-50': any;
|
|
405
|
+
readonly 'blue-60': any;
|
|
406
|
+
readonly 'blue-70': any;
|
|
407
|
+
readonly 'blue-80': any;
|
|
408
|
+
readonly 'gray-20': any;
|
|
409
|
+
readonly 'gray-30': any;
|
|
410
|
+
readonly 'green-70': any;
|
|
411
|
+
readonly 'indigo-20': any;
|
|
412
|
+
readonly 'indigo-30': any;
|
|
413
|
+
readonly 'indigo-50': any;
|
|
414
|
+
readonly 'indigo-70': any;
|
|
415
|
+
readonly 'indigo-90': any;
|
|
416
|
+
readonly 'pink-20': any;
|
|
417
|
+
readonly 'pink-50': any;
|
|
418
|
+
readonly 'red-10': any;
|
|
419
|
+
readonly 'red-20': any;
|
|
420
|
+
readonly 'red-30': any;
|
|
421
|
+
readonly 'red-50': any;
|
|
422
|
+
readonly 'red-60': any;
|
|
423
|
+
readonly transparent: any;
|
|
424
|
+
readonly white: any;
|
|
425
|
+
readonly 'yellow-20': any;
|
|
426
|
+
readonly 'yellow-60': any;
|
|
427
|
+
readonly 'background-cta-active'?: any;
|
|
428
|
+
readonly 'background-cta-disabled'?: any;
|
|
429
|
+
readonly 'background-cta-hover'?: any;
|
|
430
|
+
readonly 'background-cta-idle'?: any;
|
|
431
|
+
readonly 'background-danger-active'?: any;
|
|
432
|
+
readonly 'background-danger-hover'?: any;
|
|
433
|
+
readonly 'background-danger-idle'?: any;
|
|
434
|
+
readonly 'background-default-active'?: any;
|
|
435
|
+
readonly 'background-default-disabled'?: any;
|
|
436
|
+
readonly 'background-default-hover'?: any;
|
|
437
|
+
readonly 'background-default-idle'?: any;
|
|
438
|
+
readonly 'background-default-selected'?: any;
|
|
439
|
+
readonly 'background-default-selected-active'?: any;
|
|
440
|
+
readonly 'background-info-idle'?: any;
|
|
441
|
+
readonly 'background-primary'?: any;
|
|
442
|
+
readonly 'background-secondary'?: any;
|
|
443
|
+
readonly 'background-success-idle'?: any;
|
|
444
|
+
readonly 'background-warning-idle'?: any;
|
|
445
|
+
readonly 'border-cta-idle'?: any;
|
|
446
|
+
readonly 'border-default-active'?: any;
|
|
447
|
+
readonly 'border-default-error'?: any;
|
|
448
|
+
readonly 'border-default-hover'?: any;
|
|
449
|
+
readonly 'border-default-idle'?: any;
|
|
450
|
+
readonly 'border-default-selected'?: any;
|
|
451
|
+
readonly 'canvas-primary'?: any;
|
|
452
|
+
readonly 'divider-default'?: any;
|
|
453
|
+
readonly 'focus-ring-default'?: any;
|
|
454
|
+
readonly 'font-cta-idle'?: any;
|
|
455
|
+
readonly 'font-default-active'?: any;
|
|
456
|
+
readonly 'font-default-disabled'?: any;
|
|
457
|
+
readonly 'font-default-error'?: any;
|
|
458
|
+
readonly 'font-default-hover'?: any;
|
|
459
|
+
readonly 'font-default-idle'?: any;
|
|
460
|
+
readonly 'font-default-selected'?: any;
|
|
461
|
+
readonly 'font-default-visited'?: any;
|
|
462
|
+
readonly 'font-primary'?: any;
|
|
463
|
+
readonly 'font-secondary'?: any;
|
|
464
|
+
readonly 'font-tertiary'?: any;
|
|
465
|
+
readonly 'icon-cta-idle'?: any;
|
|
466
|
+
readonly 'icon-default'?: any;
|
|
467
|
+
readonly 'icon-default-active'?: any;
|
|
468
|
+
readonly 'icon-default-disabled'?: any;
|
|
469
|
+
readonly 'icon-default-error'?: any;
|
|
470
|
+
readonly 'icon-default-hover'?: any;
|
|
471
|
+
readonly 'icon-default-idle'?: any;
|
|
472
|
+
readonly 'icon-default-selected'?: any;
|
|
473
|
+
};
|
|
474
|
+
'font-sizes': {
|
|
475
|
+
readonly 150: "0.75rem";
|
|
476
|
+
readonly 175: "0.875rem";
|
|
477
|
+
readonly 200: "1rem";
|
|
478
|
+
readonly 225: "1.125rem";
|
|
479
|
+
readonly 250: "1.25rem";
|
|
480
|
+
readonly 300: "1.5rem";
|
|
481
|
+
readonly 400: "2rem";
|
|
482
|
+
readonly 500: "2.5rem";
|
|
483
|
+
readonly 600: "3rem";
|
|
484
|
+
readonly 800: "4rem";
|
|
485
|
+
readonly 900: "4.5rem";
|
|
486
|
+
};
|
|
487
|
+
radii: {
|
|
488
|
+
readonly none: 0;
|
|
489
|
+
readonly half: "999em";
|
|
490
|
+
readonly 25: "2px";
|
|
491
|
+
readonly 50: "4px";
|
|
492
|
+
readonly 75: "6px";
|
|
493
|
+
readonly 100: "8px";
|
|
494
|
+
readonly 200: "16px";
|
|
495
|
+
};
|
|
496
|
+
shadows: {
|
|
497
|
+
readonly 50: "0 4px 16px #05003812";
|
|
498
|
+
readonly 100: "0 8px 32px #05003808";
|
|
499
|
+
};
|
|
500
|
+
sizes: {
|
|
501
|
+
readonly number: string;
|
|
502
|
+
readonly 'icon-200': "16px";
|
|
503
|
+
readonly 'icon-300': "24px";
|
|
504
|
+
readonly 'icon-400': "32px";
|
|
505
|
+
};
|
|
506
|
+
space: {
|
|
507
|
+
readonly none: 0;
|
|
508
|
+
readonly 50: "4px";
|
|
509
|
+
readonly 100: "8px";
|
|
510
|
+
readonly 150: "12px";
|
|
511
|
+
readonly 200: "16px";
|
|
512
|
+
readonly 300: "24px";
|
|
513
|
+
readonly 400: "32px";
|
|
514
|
+
readonly 500: "64px";
|
|
515
|
+
readonly 600: "48px";
|
|
516
|
+
readonly 800: "64px";
|
|
517
|
+
readonly 1200: "96px";
|
|
518
|
+
readonly 1600: "128px";
|
|
519
|
+
};
|
|
520
|
+
'space-gap': {
|
|
521
|
+
readonly none: any;
|
|
522
|
+
readonly 50: any;
|
|
523
|
+
readonly 100: any;
|
|
524
|
+
readonly 200: any;
|
|
525
|
+
readonly 300: any;
|
|
526
|
+
};
|
|
527
|
+
'space-inset': {
|
|
528
|
+
readonly none: any;
|
|
529
|
+
readonly 50: any;
|
|
530
|
+
readonly 100: any;
|
|
531
|
+
readonly 150: any;
|
|
532
|
+
readonly 200: any;
|
|
533
|
+
readonly 300: any;
|
|
534
|
+
readonly 400: any;
|
|
535
|
+
readonly 600: any;
|
|
536
|
+
readonly 800: any;
|
|
537
|
+
readonly 1200: any;
|
|
538
|
+
readonly 1600: any;
|
|
539
|
+
};
|
|
540
|
+
'space-offset': {
|
|
541
|
+
readonly none: any;
|
|
542
|
+
readonly 50: any;
|
|
543
|
+
readonly 100: any;
|
|
544
|
+
readonly 150: any;
|
|
545
|
+
readonly 200: any;
|
|
546
|
+
readonly 300: any;
|
|
547
|
+
readonly 400: any;
|
|
548
|
+
readonly 600: any;
|
|
549
|
+
readonly 800: any;
|
|
550
|
+
readonly 1200: any;
|
|
551
|
+
readonly 1600: any;
|
|
552
|
+
readonly 'stacking-none': any;
|
|
553
|
+
readonly 'stacking-100': any;
|
|
554
|
+
readonly 'stacking-200': any;
|
|
555
|
+
readonly 'stacking-300': any;
|
|
556
|
+
readonly 'stacking-400': any;
|
|
557
|
+
readonly 'stacking-500': any;
|
|
558
|
+
readonly 'stacking-800': any;
|
|
559
|
+
};
|
|
560
|
+
'z-indices': {
|
|
561
|
+
readonly dropdownMenu: 100;
|
|
562
|
+
readonly popover: 200;
|
|
563
|
+
readonly tooltip: 300;
|
|
564
|
+
};
|
|
565
|
+
}, {
|
|
566
|
+
readonly background: "colors";
|
|
567
|
+
readonly backgroundColor: "colors";
|
|
568
|
+
readonly backgroundImage: "colors";
|
|
569
|
+
readonly blockSize: "sizes";
|
|
570
|
+
readonly border: "colors";
|
|
571
|
+
readonly borderBlock: "colors";
|
|
572
|
+
readonly borderBlockEnd: "colors";
|
|
573
|
+
readonly borderBlockStart: "colors";
|
|
574
|
+
readonly borderBottom: "colors";
|
|
575
|
+
readonly borderBottomColor: "colors";
|
|
576
|
+
readonly borderBottomLeftRadius: "radii";
|
|
577
|
+
readonly borderBottomRightRadius: "radii";
|
|
578
|
+
readonly borderBottomStyle: "border-styles";
|
|
579
|
+
readonly borderBottomWidth: "border-widths";
|
|
580
|
+
readonly borderColor: "colors";
|
|
581
|
+
readonly borderImage: "colors";
|
|
582
|
+
readonly borderInline: "colors";
|
|
583
|
+
readonly borderInlineEnd: "colors";
|
|
584
|
+
readonly borderInlineStart: "colors";
|
|
585
|
+
readonly borderLeft: "colors";
|
|
586
|
+
readonly borderLeftColor: "colors";
|
|
587
|
+
readonly borderLeftStyle: "border-styles";
|
|
588
|
+
readonly borderLeftWidth: "border-widths";
|
|
589
|
+
readonly borderRadius: "radii";
|
|
590
|
+
readonly borderRight: "colors";
|
|
591
|
+
readonly borderRightColor: "colors";
|
|
592
|
+
readonly borderRightStyle: "border-styles";
|
|
593
|
+
readonly borderRightWidth: "border-widths";
|
|
594
|
+
readonly borderStyle: "border-styles";
|
|
595
|
+
readonly borderTop: "colors";
|
|
596
|
+
readonly borderTopColor: "colors";
|
|
597
|
+
readonly borderTopLeftRadius: "radii";
|
|
598
|
+
readonly borderTopRightRadius: "radii";
|
|
599
|
+
readonly borderTopStyle: "border-styles";
|
|
600
|
+
readonly borderTopWidth: "border-widths";
|
|
601
|
+
readonly borderWidth: "border-widths";
|
|
602
|
+
readonly bottom: "space";
|
|
603
|
+
readonly boxShadow: "shadows";
|
|
604
|
+
readonly caretColor: "colors";
|
|
605
|
+
readonly color: "colors";
|
|
606
|
+
readonly columnGap: "space-gap";
|
|
607
|
+
readonly columnRuleColor: "colors";
|
|
608
|
+
readonly fill: "colors";
|
|
609
|
+
readonly flexBasis: "sizes";
|
|
610
|
+
readonly fontFamily: "fonts";
|
|
611
|
+
readonly fontSize: "font-sizes";
|
|
612
|
+
readonly fontWeight: "font-weights";
|
|
613
|
+
readonly gap: "space-gap";
|
|
614
|
+
readonly gridColumnGap: "space-gap";
|
|
615
|
+
readonly gridGap: "space-gap";
|
|
616
|
+
readonly gridRowGap: "space-gap";
|
|
617
|
+
readonly gridTemplateColumns: "sizes";
|
|
618
|
+
readonly gridTemplateRows: "sizes";
|
|
619
|
+
readonly height: "sizes";
|
|
620
|
+
readonly inlineSize: "sizes";
|
|
621
|
+
readonly inset: "space-inset";
|
|
622
|
+
readonly insetBlock: "space-inset";
|
|
623
|
+
readonly insetBlockEnd: "space-inset";
|
|
624
|
+
readonly insetBlockStart: "space-inset";
|
|
625
|
+
readonly insetInline: "space-inset";
|
|
626
|
+
readonly insetInlineEnd: "space-inset";
|
|
627
|
+
readonly insetInlineStart: "space-inset";
|
|
628
|
+
readonly left: "space";
|
|
629
|
+
readonly letterSpacing: "letter-spacings";
|
|
630
|
+
readonly lineHeight: "line-heights";
|
|
631
|
+
readonly margin: "space-offset";
|
|
632
|
+
readonly marginBlock: "space-offset";
|
|
633
|
+
readonly marginBlockEnd: "space-offset";
|
|
634
|
+
readonly marginBlockStart: "space-offset";
|
|
635
|
+
readonly marginBottom: "space-offset";
|
|
636
|
+
readonly marginInline: "space-offset";
|
|
637
|
+
readonly marginInlineEnd: "space-offset";
|
|
638
|
+
readonly marginInlineStart: "space-offset";
|
|
639
|
+
readonly marginLeft: "space-offset";
|
|
640
|
+
readonly marginRight: "space-offset";
|
|
641
|
+
readonly marginTop: "space-offset";
|
|
642
|
+
readonly maxBlockSize: "sizes";
|
|
643
|
+
readonly maxHeight: "sizes";
|
|
644
|
+
readonly maxInlineSize: "sizes";
|
|
645
|
+
readonly maxWidth: "sizes";
|
|
646
|
+
readonly minBlockSize: "sizes";
|
|
647
|
+
readonly minHeight: "sizes";
|
|
648
|
+
readonly minInlineSize: "sizes";
|
|
649
|
+
readonly minWidth: "sizes";
|
|
650
|
+
readonly outline: "colors";
|
|
651
|
+
readonly outlineColor: "colors";
|
|
652
|
+
readonly padding: "space-inset";
|
|
653
|
+
readonly paddingBlock: "space-inset";
|
|
654
|
+
readonly paddingBlockEnd: "space-inset";
|
|
655
|
+
readonly paddingBlockStart: "space-inset";
|
|
656
|
+
readonly paddingBottom: "space-inset";
|
|
657
|
+
readonly paddingInline: "space-inset";
|
|
658
|
+
readonly paddingInlineEnd: "space-inset";
|
|
659
|
+
readonly paddingInlineStart: "space-inset";
|
|
660
|
+
readonly paddingLeft: "space-inset";
|
|
661
|
+
readonly paddingRight: "space-inset";
|
|
662
|
+
readonly paddingTop: "space-inset";
|
|
663
|
+
readonly right: "space";
|
|
664
|
+
readonly rowGap: "space-gap";
|
|
665
|
+
readonly scrollMargin: "space-offset";
|
|
666
|
+
readonly scrollMarginBlock: "space-offset";
|
|
667
|
+
readonly scrollMarginBlockEnd: "space-offset";
|
|
668
|
+
readonly scrollMarginBlockStart: "space-offset";
|
|
669
|
+
readonly scrollMarginBottom: "space-offset";
|
|
670
|
+
readonly scrollMarginInline: "space-offset";
|
|
671
|
+
readonly scrollMarginInlineEnd: "space-offset";
|
|
672
|
+
readonly scrollMarginInlineStart: "space-offset";
|
|
673
|
+
readonly scrollMarginLeft: "space-offset";
|
|
674
|
+
readonly scrollMarginRight: "space-offset";
|
|
675
|
+
readonly scrollMarginTop: "space-offset";
|
|
676
|
+
readonly scrollPadding: "space-inset";
|
|
677
|
+
readonly scrollPaddingBlock: "space-inset";
|
|
678
|
+
readonly scrollPaddingBlockEnd: "space-inset";
|
|
679
|
+
readonly scrollPaddingBlockStart: "space-inset";
|
|
680
|
+
readonly scrollPaddingBottom: "space-inset";
|
|
681
|
+
readonly scrollPaddingInline: "space-inset";
|
|
682
|
+
readonly scrollPaddingInlineEnd: "space-inset";
|
|
683
|
+
readonly scrollPaddingInlineStart: "space-inset";
|
|
684
|
+
readonly scrollPaddingLeft: "space-inset";
|
|
685
|
+
readonly scrollPaddingRight: "space-inset";
|
|
686
|
+
readonly scrollPaddingTop: "space-inset";
|
|
687
|
+
readonly stroke: "colors";
|
|
688
|
+
readonly textDecorationColor: "colors";
|
|
689
|
+
readonly textShadow: "shadows";
|
|
690
|
+
readonly top: "space";
|
|
691
|
+
readonly transition: "transitions";
|
|
692
|
+
readonly width: "sizes";
|
|
693
|
+
readonly zIndex: "z-indices";
|
|
694
|
+
}, {
|
|
695
|
+
paddingX: (value: {
|
|
696
|
+
readonly [$$PropertyValue]: "padding";
|
|
697
|
+
}) => {
|
|
698
|
+
paddingLeft: {
|
|
699
|
+
readonly [$$PropertyValue]: "padding";
|
|
700
|
+
};
|
|
701
|
+
paddingRight: {
|
|
702
|
+
readonly [$$PropertyValue]: "padding";
|
|
703
|
+
};
|
|
704
|
+
};
|
|
705
|
+
paddingY: (value: {
|
|
706
|
+
readonly [$$PropertyValue]: "padding";
|
|
707
|
+
}) => {
|
|
708
|
+
paddingTop: {
|
|
709
|
+
readonly [$$PropertyValue]: "padding";
|
|
710
|
+
};
|
|
711
|
+
paddingBottom: {
|
|
712
|
+
readonly [$$PropertyValue]: "padding";
|
|
713
|
+
};
|
|
714
|
+
};
|
|
715
|
+
marginX: (value: {
|
|
716
|
+
readonly [$$PropertyValue]: "margin";
|
|
717
|
+
}) => {
|
|
718
|
+
marginLeft: {
|
|
719
|
+
readonly [$$PropertyValue]: "margin";
|
|
720
|
+
};
|
|
721
|
+
marginRight: {
|
|
722
|
+
readonly [$$PropertyValue]: "margin";
|
|
723
|
+
};
|
|
724
|
+
};
|
|
725
|
+
marginY: (value: {
|
|
726
|
+
readonly [$$PropertyValue]: "margin";
|
|
727
|
+
}) => {
|
|
728
|
+
marginTop: {
|
|
729
|
+
readonly [$$PropertyValue]: "margin";
|
|
730
|
+
};
|
|
731
|
+
marginBottom: {
|
|
732
|
+
readonly [$$PropertyValue]: "margin";
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
}>>> & _mirohq_design_system_stitches.CustomStylesProps, "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "asChild" | keyof _mirohq_design_system_stitches.CustomStylesProps | "columnStart" | "rowStart" | "columnEnd" | "rowEnd"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"div">>, {
|
|
736
|
+
columnStart?: "1" | 1 | 4 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -1 | "4" | "2" | "3" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "-1" | undefined;
|
|
737
|
+
rowStart?: "1" | 1 | 4 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -1 | "4" | "2" | "3" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "-1" | undefined;
|
|
738
|
+
columnEnd?: "1" | 1 | 4 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -1 | "4" | "2" | "3" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "-1" | undefined;
|
|
739
|
+
rowEnd?: "1" | 1 | 4 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -1 | "4" | "2" | "3" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "-1" | undefined;
|
|
740
|
+
}, {}>;
|
|
741
|
+
declare type StyledItemProps = ComponentPropsWithRef<typeof StyledItem>;
|
|
742
|
+
|
|
743
|
+
interface ItemProps extends StyledItemProps {
|
|
744
|
+
/**
|
|
745
|
+
* Determines the grid item's start position within the grid referring to a column number.
|
|
746
|
+
*/
|
|
747
|
+
columnStart?: StyledItemProps['columnStart'];
|
|
748
|
+
/**
|
|
749
|
+
* Determines the grid item's start position within the grid referring to a row number.
|
|
750
|
+
*/
|
|
751
|
+
rowStart?: StyledItemProps['rowStart'];
|
|
752
|
+
/**
|
|
753
|
+
* Determines the grid item's end position within the grid referring to a column number.
|
|
754
|
+
*/
|
|
755
|
+
columnEnd?: StyledItemProps['columnEnd'];
|
|
756
|
+
/**
|
|
757
|
+
* Determines the grid item's end position within the grid referring to a row number.
|
|
758
|
+
*/
|
|
759
|
+
rowEnd?: StyledItemProps['rowEnd'];
|
|
760
|
+
}
|
|
761
|
+
declare const Item: react__default.ForwardRefExoticComponent<Pick<ItemProps, "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "asChild" | "css" | "UNSAFE_style" | "columnStart" | "rowStart" | "columnEnd" | "rowEnd"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
762
|
+
|
|
763
|
+
interface GridProps extends StyledGridProps {
|
|
764
|
+
/**
|
|
765
|
+
* Defines how elements are aligned along the block (column) axis.
|
|
766
|
+
*/
|
|
767
|
+
align?: StyledGridProps['align'];
|
|
768
|
+
/**
|
|
769
|
+
* Defines how elements are aligned along the inline (row) axis.
|
|
770
|
+
*/
|
|
771
|
+
justify?: StyledGridProps['justify'];
|
|
772
|
+
/**
|
|
773
|
+
* Aligns grid items along the inline (row) axis.
|
|
774
|
+
* This value applies to all grid items inside the container.
|
|
775
|
+
*/
|
|
776
|
+
justifyItems?: StyledGridProps['justifyItems'];
|
|
777
|
+
/**
|
|
778
|
+
* Defines how elements are automatically placed in the grid.
|
|
779
|
+
*/
|
|
780
|
+
flow?: StyledGridProps['flow'];
|
|
781
|
+
/**
|
|
782
|
+
* Defines the width of the gutter between both columns and rows. It uses the
|
|
783
|
+
* [space](/?path=/docs/foundation-spacing--page)
|
|
784
|
+
*/
|
|
785
|
+
gap?: StyledGridProps['gap'];
|
|
786
|
+
/**
|
|
787
|
+
* Defines the width of the gutter between rows. It uses the
|
|
788
|
+
* [space](/?path=/docs/foundation-spacing--page)
|
|
789
|
+
*/
|
|
790
|
+
gapX?: StyledGridProps['gapX'];
|
|
791
|
+
/**
|
|
792
|
+
* Defines the width of the gutter between columns.It uses the
|
|
793
|
+
* [space](/?path=/docs/foundation-spacing--page)
|
|
794
|
+
*/
|
|
795
|
+
gapY?: StyledGridProps['gapY'];
|
|
796
|
+
/**
|
|
797
|
+
* Defines the number of columns in the grid.
|
|
798
|
+
*/
|
|
799
|
+
columns?: StyledGridProps['columns'];
|
|
800
|
+
/**
|
|
801
|
+
* Defines the number of rows in the grid.
|
|
802
|
+
*/
|
|
803
|
+
rows?: StyledGridProps['rows'];
|
|
804
|
+
}
|
|
805
|
+
declare const Grid: react__default.ForwardRefExoticComponent<GridProps> & Partials;
|
|
806
|
+
interface Partials {
|
|
807
|
+
Item: typeof Item;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
export { Grid, ItemProps as GridItemProps, GridProps };
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mirohq/design-system-grid",
|
|
3
|
+
"version": "2.0.9",
|
|
4
|
+
"description": "",
|
|
5
|
+
"author": "Miro",
|
|
6
|
+
"source": "src/index.ts",
|
|
7
|
+
"main": "dist/main.js",
|
|
8
|
+
"module": "dist/module.js",
|
|
9
|
+
"types": "dist/types.d.ts",
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"require": "./dist/main.js",
|
|
14
|
+
"import": "./dist/module.js",
|
|
15
|
+
"types": "./dist/types.d.ts"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"@stitches/react": "^1.2.8",
|
|
26
|
+
"react": "^16.14 || ^17"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@mirohq/design-system-primitive": "^1.0.4",
|
|
30
|
+
"@mirohq/design-system-utils": "^0.10.0",
|
|
31
|
+
"@mirohq/design-system-stitches": "^2.0.8"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "rollup -c ../../../rollup.config.js",
|
|
35
|
+
"clean": "rm -rf dist",
|
|
36
|
+
"prebuild": "pnpm clean"
|
|
37
|
+
}
|
|
38
|
+
}
|