@vitus-labs/coolgrid 0.76.0 → 0.79.0
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/lib/analysis/vitus-labs-coolgrid.js.html +1 -1
- package/lib/analysis/vitus-labs-coolgrid.module.js.html +1 -1
- package/lib/analysis/vitus-labs-coolgrid.native.js.html +6638 -0
- package/lib/index.d.ts +1 -1
- package/lib/types/Col/component.d.ts.map +1 -1
- package/lib/types/Container/component.d.ts.map +1 -1
- package/lib/types/Row/component.d.ts.map +1 -1
- package/lib/types/context/ContainerContext.d.ts +1 -1
- package/lib/types/context/RowContext.d.ts +1 -1
- package/lib/types/types.d.ts +1 -1
- package/lib/types/types.d.ts.map +1 -1
- package/lib/vitus-labs-coolgrid.js +37 -10
- package/lib/vitus-labs-coolgrid.js.map +1 -1
- package/lib/vitus-labs-coolgrid.module.js +51 -16
- package/lib/vitus-labs-coolgrid.module.js.map +1 -1
- package/lib/vitus-labs-coolgrid.native.js +288 -0
- package/lib/vitus-labs-coolgrid.native.js.map +1 -0
- package/package.json +9 -9
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { context, makeItResponsive, value, extendCss, ALIGN_CONTENT_MAP_X } from '@vitus-labs/unistyle';
|
|
2
|
+
export { Provider } from '@vitus-labs/unistyle';
|
|
3
|
+
import React, { createContext, useContext, useMemo } from 'react';
|
|
4
|
+
import { omit, pick, get, config } from '@vitus-labs/core';
|
|
5
|
+
|
|
6
|
+
const PKG_NAME = '@vitus-labs/coolgrid';
|
|
7
|
+
/* eslint-disable import/prefer-default-export */
|
|
8
|
+
const CONTEXT_KEYS = [
|
|
9
|
+
// 'breakpoints',
|
|
10
|
+
// 'rootSize',
|
|
11
|
+
'columns',
|
|
12
|
+
'size',
|
|
13
|
+
'gap',
|
|
14
|
+
'padding',
|
|
15
|
+
'gutter',
|
|
16
|
+
'colCss',
|
|
17
|
+
'colComponent',
|
|
18
|
+
'rowCss',
|
|
19
|
+
'rowComponent',
|
|
20
|
+
'contentAlignX',
|
|
21
|
+
];
|
|
22
|
+
|
|
23
|
+
const isNumber = (value) => Number.isFinite(value);
|
|
24
|
+
const hasValue = (value) => isNumber(value) && value > 0;
|
|
25
|
+
const isVisible = (value) => (isNumber(value) && value !== 0) || value === undefined;
|
|
26
|
+
const omitCtxKeys = (props) => omit(props, CONTEXT_KEYS);
|
|
27
|
+
|
|
28
|
+
var ContainerContext = createContext({});
|
|
29
|
+
|
|
30
|
+
const pickThemeProps = (props, keywords) => pick(props, keywords);
|
|
31
|
+
const getGridContext = (props = {}, theme = {}) => ({
|
|
32
|
+
columns: (get(props, 'columns') ||
|
|
33
|
+
get(theme, 'grid.columns') ||
|
|
34
|
+
get(theme, 'coolgrid.columns')),
|
|
35
|
+
containerWidth: (get(props, 'width') ||
|
|
36
|
+
get(theme, 'grid.container') ||
|
|
37
|
+
get(theme, 'coolgrid.container')),
|
|
38
|
+
});
|
|
39
|
+
const useGridContext = (props) => {
|
|
40
|
+
const { theme } = useContext(context);
|
|
41
|
+
const ctxProps = pickThemeProps(props, CONTEXT_KEYS);
|
|
42
|
+
const gridContext = getGridContext(ctxProps, theme);
|
|
43
|
+
return { ...gridContext, ...ctxProps };
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const styles$2 = ({ theme: t, css, rootSize }) => css `
|
|
47
|
+
max-width: ${value(t.width, rootSize)};
|
|
48
|
+
${extendCss(t.extraStyles)};
|
|
49
|
+
`;
|
|
50
|
+
var Styled$2 = config.styled(config.component) `
|
|
51
|
+
${false };
|
|
52
|
+
|
|
53
|
+
display: flex;
|
|
54
|
+
width: 100%;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
margin-right: auto;
|
|
57
|
+
margin-left: auto;
|
|
58
|
+
|
|
59
|
+
${makeItResponsive({
|
|
60
|
+
key: '$coolgrid',
|
|
61
|
+
styles: styles$2,
|
|
62
|
+
css: config.css,
|
|
63
|
+
normalize: true,
|
|
64
|
+
})};
|
|
65
|
+
`;
|
|
66
|
+
|
|
67
|
+
const Component$2 = ({ children, component, css, width, ...props }) => {
|
|
68
|
+
const { containerWidth = {}, ...ctx } = useGridContext(props);
|
|
69
|
+
const context = useMemo(() => ctx, [ctx]);
|
|
70
|
+
let finalWidth = containerWidth;
|
|
71
|
+
if (width) {
|
|
72
|
+
// @ts-ignore
|
|
73
|
+
finalWidth = typeof width === 'function' ? width(containerWidth) : width;
|
|
74
|
+
}
|
|
75
|
+
const finalProps = useMemo(() => ({
|
|
76
|
+
$coolgrid: {
|
|
77
|
+
width: finalWidth,
|
|
78
|
+
extraStyles: css,
|
|
79
|
+
},
|
|
80
|
+
}), [finalWidth, css]);
|
|
81
|
+
const getDevProps = () => {
|
|
82
|
+
const result = {};
|
|
83
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
84
|
+
result['data-coolgrid'] = 'container';
|
|
85
|
+
}
|
|
86
|
+
return result;
|
|
87
|
+
};
|
|
88
|
+
return (React.createElement(Styled$2, { ...omitCtxKeys(props), as: component, ...finalProps, ...getDevProps() },
|
|
89
|
+
React.createElement(ContainerContext.Provider, { value: context }, children)));
|
|
90
|
+
};
|
|
91
|
+
const name$2 = `${PKG_NAME}/Container`;
|
|
92
|
+
Component$2.displayName = name$2;
|
|
93
|
+
Component$2.pkgName = PKG_NAME;
|
|
94
|
+
Component$2.VITUS_LABS__COMPONENT = name$2;
|
|
95
|
+
|
|
96
|
+
var RowContext = createContext({});
|
|
97
|
+
|
|
98
|
+
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
99
|
+
const spacingStyles$1 = ({ gap, gutter }, { rootSize }) => {
|
|
100
|
+
if (!isNumber(gap))
|
|
101
|
+
return '';
|
|
102
|
+
const getValue = (param) => value(param, rootSize);
|
|
103
|
+
const spacingX = (gap / 2) * -1;
|
|
104
|
+
const spacingY = isNumber(gutter) ? gutter - gap / 2 : gap / 2;
|
|
105
|
+
return config.css `
|
|
106
|
+
margin: ${getValue(spacingY)} ${getValue(spacingX)};
|
|
107
|
+
`;
|
|
108
|
+
};
|
|
109
|
+
const contentAlign = (align) => {
|
|
110
|
+
if (!align)
|
|
111
|
+
return '';
|
|
112
|
+
return config.css `
|
|
113
|
+
justify-content: ${ALIGN_CONTENT_MAP_X[align]};
|
|
114
|
+
`;
|
|
115
|
+
};
|
|
116
|
+
const styles$1 = ({ theme, css, rootSize }) => {
|
|
117
|
+
const { gap, gutter, contentAlignX, extraStyles } = theme;
|
|
118
|
+
return css `
|
|
119
|
+
${spacingStyles$1({ gap, gutter }, { rootSize })};
|
|
120
|
+
${contentAlign(contentAlignX)};
|
|
121
|
+
${extendCss(extraStyles)};
|
|
122
|
+
`;
|
|
123
|
+
};
|
|
124
|
+
var Styled$1 = config.styled(config.component) `
|
|
125
|
+
${false };
|
|
126
|
+
|
|
127
|
+
display: flex;
|
|
128
|
+
flex-wrap: wrap;
|
|
129
|
+
align-self: stretch;
|
|
130
|
+
flex-direction: row;
|
|
131
|
+
|
|
132
|
+
${makeItResponsive({
|
|
133
|
+
key: '$coolgrid',
|
|
134
|
+
styles: styles$1,
|
|
135
|
+
css: config.css,
|
|
136
|
+
normalize: true,
|
|
137
|
+
})};
|
|
138
|
+
`;
|
|
139
|
+
|
|
140
|
+
const Component$1 = ({ children, component, css, contentAlignX: rowAlignX, ...props }) => {
|
|
141
|
+
const parentCtx = useContext(ContainerContext);
|
|
142
|
+
const { columns, gap, gutter, rowComponent, rowCss, contentAlignX, ...ctx } = useGridContext({ ...parentCtx, ...props });
|
|
143
|
+
const context = useMemo(() => ({ ...ctx, columns, gap, gutter }), [ctx, columns, gap, gutter]);
|
|
144
|
+
const finalComponent = useMemo(() => component || rowComponent, [component, rowComponent]);
|
|
145
|
+
const finalProps = useMemo(() => ({
|
|
146
|
+
$coolgrid: {
|
|
147
|
+
contentAlignX: rowAlignX || contentAlignX,
|
|
148
|
+
columns,
|
|
149
|
+
gap,
|
|
150
|
+
gutter,
|
|
151
|
+
extraStyles: css || rowCss,
|
|
152
|
+
},
|
|
153
|
+
}), [rowAlignX, contentAlignX, columns, gap, gutter, css, rowCss]);
|
|
154
|
+
const getDevProps = () => {
|
|
155
|
+
const result = {};
|
|
156
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
157
|
+
result['data-coolgrid'] = 'row';
|
|
158
|
+
}
|
|
159
|
+
return result;
|
|
160
|
+
};
|
|
161
|
+
return (React.createElement(Styled$1, { ...omitCtxKeys(props), as: finalComponent, ...finalProps, ...getDevProps() },
|
|
162
|
+
React.createElement(RowContext.Provider, { value: context }, children)));
|
|
163
|
+
};
|
|
164
|
+
const name$1 = `${PKG_NAME}/Row`;
|
|
165
|
+
Component$1.displayName = name$1;
|
|
166
|
+
Component$1.pkgName = PKG_NAME;
|
|
167
|
+
Component$1.VITUS_LABS__COMPONENT = name$1;
|
|
168
|
+
|
|
169
|
+
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
170
|
+
const hasWidth = (size, columns) => hasValue(size) && hasValue(columns);
|
|
171
|
+
const widthStyles = ({ size, columns, gap, RNparentWidth }, { rootSize }) => {
|
|
172
|
+
if (!hasWidth(size, columns)) {
|
|
173
|
+
return '';
|
|
174
|
+
}
|
|
175
|
+
// calculate % of width
|
|
176
|
+
const width = (RNparentWidth / columns) * size;
|
|
177
|
+
const hasGap = hasValue(gap);
|
|
178
|
+
// eslint-disable-next-line no-nested-ternary
|
|
179
|
+
const val = hasGap
|
|
180
|
+
? width - gap
|
|
181
|
+
: width;
|
|
182
|
+
return config.css `
|
|
183
|
+
flex-grow: 0;
|
|
184
|
+
flex-shrink: 0;
|
|
185
|
+
max-width: ${value(val, rootSize)};
|
|
186
|
+
flex-basis: ${value(val, rootSize)};
|
|
187
|
+
`;
|
|
188
|
+
};
|
|
189
|
+
const spacingStyles = (type, param, rootSize) => {
|
|
190
|
+
if (!isNumber(param)) {
|
|
191
|
+
return '';
|
|
192
|
+
}
|
|
193
|
+
const finalStyle = `${type}: ${value(param / 2, rootSize)}`;
|
|
194
|
+
return config.css `
|
|
195
|
+
${finalStyle};
|
|
196
|
+
`;
|
|
197
|
+
};
|
|
198
|
+
const styles = ({ theme, css, rootSize, }) => {
|
|
199
|
+
const { size, columns, gap, padding, extraStyles, RNparentWidth } = theme;
|
|
200
|
+
const renderStyles = isVisible(size);
|
|
201
|
+
if (renderStyles) {
|
|
202
|
+
return css `
|
|
203
|
+
left: initial;
|
|
204
|
+
position: relative;
|
|
205
|
+
${widthStyles({ size, columns, gap, RNparentWidth }, { rootSize })};
|
|
206
|
+
${spacingStyles('padding', padding, rootSize)};
|
|
207
|
+
${spacingStyles('margin', gap, rootSize)};
|
|
208
|
+
${extendCss(extraStyles)};
|
|
209
|
+
`;
|
|
210
|
+
}
|
|
211
|
+
return css `
|
|
212
|
+
left: -9999px;
|
|
213
|
+
position: fixed;
|
|
214
|
+
margin: 0;
|
|
215
|
+
padding: 0;
|
|
216
|
+
`;
|
|
217
|
+
};
|
|
218
|
+
var Styled = config.styled(config.component) `
|
|
219
|
+
${false };
|
|
220
|
+
|
|
221
|
+
position: relative;
|
|
222
|
+
display: flex;
|
|
223
|
+
flex-basis: 0;
|
|
224
|
+
flex-grow: 1;
|
|
225
|
+
flex-direction: column;
|
|
226
|
+
justify-content: stretch;
|
|
227
|
+
|
|
228
|
+
${makeItResponsive({
|
|
229
|
+
key: '$coolgrid',
|
|
230
|
+
styles,
|
|
231
|
+
css: config.css,
|
|
232
|
+
normalize: true,
|
|
233
|
+
})};
|
|
234
|
+
`;
|
|
235
|
+
|
|
236
|
+
const Component = ({ children, component, css, ...props }) => {
|
|
237
|
+
const parentCtx = useContext(RowContext);
|
|
238
|
+
const { colCss, colComponent, columns, gap, size, padding } = useGridContext({
|
|
239
|
+
...parentCtx,
|
|
240
|
+
...props,
|
|
241
|
+
});
|
|
242
|
+
const finalComponent = useMemo(() => component || colComponent, [component, colComponent]);
|
|
243
|
+
const finalProps = useMemo(() => ({
|
|
244
|
+
$coolgrid: {
|
|
245
|
+
columns,
|
|
246
|
+
gap,
|
|
247
|
+
size,
|
|
248
|
+
padding,
|
|
249
|
+
extraStyles: css || colCss,
|
|
250
|
+
},
|
|
251
|
+
}), [columns, gap, size, padding, css, colCss]);
|
|
252
|
+
const getDevProps = () => {
|
|
253
|
+
const result = {};
|
|
254
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
255
|
+
result['data-coolgrid'] = 'col';
|
|
256
|
+
}
|
|
257
|
+
return result;
|
|
258
|
+
};
|
|
259
|
+
return (React.createElement(Styled, { ...omitCtxKeys(props), as: finalComponent, ...finalProps, ...getDevProps() }, children));
|
|
260
|
+
};
|
|
261
|
+
const name = `${PKG_NAME}/Col`;
|
|
262
|
+
Component.displayName = name;
|
|
263
|
+
Component.pkgName = PKG_NAME;
|
|
264
|
+
Component.VITUS_LABS__COMPONENT = name;
|
|
265
|
+
|
|
266
|
+
var theme = {
|
|
267
|
+
rootSize: 16,
|
|
268
|
+
breakpoints: {
|
|
269
|
+
xs: 0,
|
|
270
|
+
sm: 576,
|
|
271
|
+
md: 768,
|
|
272
|
+
lg: 992,
|
|
273
|
+
xl: 1200,
|
|
274
|
+
},
|
|
275
|
+
grid: {
|
|
276
|
+
columns: 12,
|
|
277
|
+
container: {
|
|
278
|
+
xs: '100%',
|
|
279
|
+
sm: 540,
|
|
280
|
+
md: 720,
|
|
281
|
+
lg: 960,
|
|
282
|
+
xl: 1140,
|
|
283
|
+
},
|
|
284
|
+
},
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
export { Component as Col, Component$2 as Container, Component$1 as Row, theme };
|
|
288
|
+
//# sourceMappingURL=vitus-labs-coolgrid.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitus-labs-coolgrid.native.js","sources":["../src/constants.ts","../src/utils.ts","../src/context/ContainerContext.ts","../src/useContext.tsx","../src/Container/styled.ts","../src/Container/component.tsx","../src/context/RowContext.ts","../src/Row/styled.ts","../src/Row/component.tsx","../src/Col/styled.ts","../src/Col/component.tsx","../src/theme.ts"],"sourcesContent":["export const PKG_NAME = '@vitus-labs/coolgrid'\n\n/* eslint-disable import/prefer-default-export */\nexport const CONTEXT_KEYS = [\n // 'breakpoints',\n // 'rootSize',\n 'columns',\n 'size',\n 'gap',\n 'padding',\n 'gutter',\n 'colCss',\n 'colComponent',\n 'rowCss',\n 'rowComponent',\n 'contentAlignX',\n]\n","import { omit } from '@vitus-labs/core'\nimport { CONTEXT_KEYS } from '~/constants'\n\ntype BoolFunc = (value: any) => boolean\n\nexport const isNumber: BoolFunc = (value) => Number.isFinite(value)\nexport const hasValue: BoolFunc = (value) => isNumber(value) && value > 0\nexport const isVisible: BoolFunc = (value) =>\n (isNumber(value) && value !== 0) || value === undefined\n\ntype HasWidth = (size: any, columns: any) => boolean\nexport const hasWidth: HasWidth = (size, columns) =>\n !!(hasValue(size) && hasValue(columns))\n\ntype OmitCtxKeys = (props?: Record<string, any>) => ReturnType<typeof omit>\nexport const omitCtxKeys: OmitCtxKeys = (props) => omit(props, CONTEXT_KEYS)\n","import { createContext } from 'react'\nimport type { Context } from '~/types'\n\nexport default createContext<Context>({})\n","import { useContext } from 'react'\nimport { get, pick } from '@vitus-labs/core'\nimport { context } from '@vitus-labs/unistyle'\nimport { CONTEXT_KEYS } from '~/constants'\nimport { Obj, ValueType, Context } from '~/types'\n\n// ------------------------------------------\n// pickTheme props\n// ------------------------------------------\nexport type PickThemeProps = <T extends Record<string, unknown>>(\n props: T,\n keywords: Array<keyof T>\n) => ReturnType<typeof pick>\nconst pickThemeProps: PickThemeProps = (props, keywords) =>\n pick(props, keywords)\n\n// ------------------------------------------\n// create grid settings\n// ------------------------------------------\ntype GetGridContext = (\n props: Obj,\n theme: Obj\n) => {\n columns?: ValueType\n containerWidth?: Record<string, number>\n}\n\nexport const getGridContext: GetGridContext = (props = {}, theme = {}) => ({\n columns: (get(props, 'columns') ||\n get(theme, 'grid.columns') ||\n get(theme, 'coolgrid.columns')) as ValueType,\n containerWidth: (get(props, 'width') ||\n get(theme, 'grid.container') ||\n get(theme, 'coolgrid.container')) as Record<string, number>,\n})\n\ntype UseGridContext = (props: Obj) => Context\nconst useGridContext: UseGridContext = (props) => {\n const { theme } = useContext(context)\n const ctxProps = pickThemeProps(props, CONTEXT_KEYS)\n const gridContext = getGridContext(ctxProps, theme as Record<string, unknown>)\n\n return { ...gridContext, ...ctxProps }\n}\n\nexport default useGridContext\n","import { config } from '@vitus-labs/core'\nimport {\n makeItResponsive,\n value,\n extendCss,\n MakeItResponsiveStyles,\n} from '@vitus-labs/unistyle'\nimport { StyledTypes } from '~/types'\n\nconst styles: MakeItResponsiveStyles<\n Pick<StyledTypes, 'width' | 'extraStyles'>\n> = ({ theme: t, css, rootSize }) => css`\n max-width: ${value(t.width, rootSize)};\n ${extendCss(t.extraStyles)};\n`\n\nexport default config.styled<any>(config.component)`\n ${\n __WEB__ &&\n config.css`\n box-sizing: border-box;\n `\n };\n\n display: flex;\n width: 100%;\n flex-direction: column;\n margin-right: auto;\n margin-left: auto;\n\n ${makeItResponsive({\n key: '$coolgrid',\n styles,\n css: config.css,\n normalize: true,\n })};\n`\n","import React, { useMemo } from 'react'\nimport { PKG_NAME } from '~/constants'\nimport { omitCtxKeys } from '~/utils'\nimport Context from '~/context/ContainerContext'\nimport useGridContext from '~/useContext'\nimport type { ElementType } from '~/types'\nimport Styled from './styled'\n\nconst Component: ElementType<['containerWidth']> = ({\n children,\n component,\n css,\n width,\n ...props\n}) => {\n const { containerWidth = {}, ...ctx } = useGridContext(props)\n const context = useMemo(() => ctx, [ctx])\n\n let finalWidth = containerWidth\n if (width) {\n // @ts-ignore\n finalWidth = typeof width === 'function' ? width(containerWidth) : width\n }\n\n const finalProps = useMemo(\n () => ({\n $coolgrid: {\n width: finalWidth,\n extraStyles: css,\n },\n }),\n [finalWidth, css]\n )\n\n const getDevProps = () => {\n const result = {}\n if (process.env.NODE_ENV !== 'production') {\n result['data-coolgrid'] = 'container'\n }\n\n return result\n }\n\n return (\n <Styled\n {...omitCtxKeys(props)}\n as={component}\n {...finalProps}\n {...getDevProps()}\n >\n <Context.Provider value={context}>{children}</Context.Provider>\n </Styled>\n )\n}\n\nconst name = `${PKG_NAME}/Container`\n\nComponent.displayName = name\nComponent.pkgName = PKG_NAME\nComponent.VITUS_LABS__COMPONENT = name\n\nexport default Component\n","import { createContext } from 'react'\nimport type { Context } from '~/types'\n\nexport default createContext<Context>({})\n","/* eslint-disable @typescript-eslint/no-non-null-assertion */\nimport { config } from '@vitus-labs/core'\nimport {\n makeItResponsive,\n value,\n extendCss,\n ALIGN_CONTENT_MAP_X,\n MakeItResponsiveStyles,\n} from '@vitus-labs/unistyle'\nimport { isNumber } from '~/utils'\nimport { CssOutput, StyledTypes } from '~/types'\n\ntype SpacingStyles = (\n props: Pick<StyledTypes, 'gap' | 'gutter'>,\n { rootSize }: { rootSize?: number }\n) => CssOutput\n\nconst spacingStyles: SpacingStyles = ({ gap, gutter }, { rootSize }) => {\n if (!isNumber(gap)) return ''\n\n const getValue = (param) => value(param, rootSize)\n\n const spacingX = (gap! / 2) * -1\n const spacingY = isNumber(gutter) ? gutter! - gap! / 2 : gap! / 2\n\n return config.css`\n margin: ${getValue(spacingY)} ${getValue(spacingX)};\n `\n}\n\nconst contentAlign = (align?: StyledTypes['contentAlignX']) => {\n if (!align) return ''\n\n return config.css`\n justify-content: ${ALIGN_CONTENT_MAP_X[align]};\n `\n}\n\nconst styles: MakeItResponsiveStyles<\n Pick<StyledTypes, 'gap' | 'gutter' | 'contentAlignX' | 'extraStyles'>\n> = ({ theme, css, rootSize }) => {\n const { gap, gutter, contentAlignX, extraStyles } = theme\n\n return css`\n ${spacingStyles({ gap, gutter }, { rootSize })};\n ${contentAlign(contentAlignX)};\n ${extendCss(extraStyles)};\n `\n}\n\nexport default config.styled<any>(config.component)`\n ${\n __WEB__ &&\n config.css`\n box-sizing: border-box;\n `\n };\n\n display: flex;\n flex-wrap: wrap;\n align-self: stretch;\n flex-direction: row;\n\n ${makeItResponsive({\n key: '$coolgrid',\n styles,\n css: config.css,\n normalize: true,\n })};\n`\n","import React, { useContext, useMemo } from 'react'\nimport { PKG_NAME } from '~/constants'\nimport { omitCtxKeys } from '~/utils'\nimport useGridContext from '~/useContext'\nimport { ContainerContext, RowContext } from '~/context'\nimport type { ElementType } from '~/types'\nimport Styled from './styled'\n\nconst Component: ElementType<\n ['containerWidth', 'width', 'rowComponent', 'rowCss']\n> = ({ children, component, css, contentAlignX: rowAlignX, ...props }) => {\n const parentCtx = useContext(ContainerContext)\n\n const { columns, gap, gutter, rowComponent, rowCss, contentAlignX, ...ctx } =\n useGridContext({ ...parentCtx, ...props })\n\n const context = useMemo(\n () => ({ ...ctx, columns, gap, gutter }),\n [ctx, columns, gap, gutter]\n )\n\n const finalComponent = useMemo(\n () => component || rowComponent,\n [component, rowComponent]\n )\n\n const finalProps = useMemo(\n () => ({\n $coolgrid: {\n contentAlignX: rowAlignX || contentAlignX,\n columns,\n gap,\n gutter,\n extraStyles: css || rowCss,\n },\n }),\n [rowAlignX, contentAlignX, columns, gap, gutter, css, rowCss]\n )\n\n const getDevProps = () => {\n const result = {}\n if (process.env.NODE_ENV !== 'production') {\n result['data-coolgrid'] = 'row'\n }\n\n return result\n }\n\n return (\n <Styled\n {...omitCtxKeys(props)}\n as={finalComponent}\n {...finalProps}\n {...getDevProps()}\n >\n <RowContext.Provider value={context}>{children}</RowContext.Provider>\n </Styled>\n )\n}\n\nconst name = `${PKG_NAME}/Row`\n\nComponent.displayName = name\nComponent.pkgName = PKG_NAME\nComponent.VITUS_LABS__COMPONENT = name\n\nexport default Component\n","/* eslint-disable @typescript-eslint/no-non-null-assertion */\nimport { config } from '@vitus-labs/core'\nimport {\n makeItResponsive,\n value,\n extendCss,\n MakeItResponsiveStyles,\n} from '@vitus-labs/unistyle'\nimport { hasValue, isVisible, isNumber } from '~/utils'\nimport { CssOutput, StyledTypes } from '~/types'\n\ntype HasWidth = (size?: number, columns?: number) => boolean\n\nconst hasWidth: HasWidth = (size, columns) =>\n hasValue(size) && hasValue(columns)\n\ntype WidthStyles = (\n props: Pick<StyledTypes, 'size' | 'columns' | 'gap' | 'RNparentWidth'>,\n defaults: { rootSize?: number }\n) => CssOutput\n\nconst widthStyles: WidthStyles = (\n { size, columns, gap, RNparentWidth },\n { rootSize }\n) => {\n if (!hasWidth(size, columns)) {\n return ''\n }\n\n // calculate % of width\n const width = __WEB__\n ? (size! / columns!) * 100\n : (RNparentWidth / columns!) * size!\n\n const hasGap = hasValue(gap)\n\n // eslint-disable-next-line no-nested-ternary\n const val = __WEB__\n ? hasGap\n ? `calc(${width}% - ${gap}px)`\n : `${width}%`\n : hasGap\n ? width - gap!\n : width\n\n return config.css`\n flex-grow: 0;\n flex-shrink: 0;\n max-width: ${value(val, rootSize)};\n flex-basis: ${value(val, rootSize)};\n `\n}\n\ntype SpacingStyles = (\n type: 'margin' | 'padding',\n param?: number,\n rootSize?: number\n) => CssOutput\nconst spacingStyles: SpacingStyles = (type, param, rootSize) => {\n if (!isNumber(param)) {\n return ''\n }\n\n const finalStyle = `${type}: ${value(param! / 2, rootSize)}`\n\n return config.css`\n ${finalStyle};\n `\n}\n\nconst styles: MakeItResponsiveStyles<StyledTypes> = ({\n theme,\n css,\n rootSize,\n}) => {\n const { size, columns, gap, padding, extraStyles, RNparentWidth } = theme\n const renderStyles = isVisible(size)\n\n if (renderStyles) {\n return css`\n left: initial;\n position: relative;\n ${widthStyles({ size, columns, gap, RNparentWidth }, { rootSize })};\n ${spacingStyles('padding', padding, rootSize)};\n ${spacingStyles('margin', gap, rootSize)};\n ${extendCss(extraStyles)};\n `\n }\n\n return css`\n left: -9999px;\n position: fixed;\n margin: 0;\n padding: 0;\n `\n}\n\nexport default config.styled<any>(config.component)`\n ${\n __WEB__ &&\n config.css`\n box-sizing: border-box;\n `\n };\n\n position: relative;\n display: flex;\n flex-basis: 0;\n flex-grow: 1;\n flex-direction: column;\n justify-content: stretch;\n\n ${makeItResponsive({\n key: '$coolgrid',\n styles,\n css: config.css,\n normalize: true,\n })};\n`\n","import React, { useContext, useMemo } from 'react'\nimport { PKG_NAME } from '~/constants'\nimport { omitCtxKeys } from '~/utils'\nimport useGridContext from '~/useContext'\nimport { RowContext } from '~/context'\nimport type { ElementType } from '~/types'\nimport Styled from './styled'\n\nconst Component: ElementType<\n [\n 'containerWidth',\n 'width',\n 'rowComponent',\n 'rowCss',\n 'colCss',\n 'colComponent',\n 'columns',\n 'gap',\n 'gutter',\n 'contentAlignX'\n ]\n> = ({ children, component, css, ...props }) => {\n const parentCtx = useContext(RowContext)\n const { colCss, colComponent, columns, gap, size, padding } = useGridContext({\n ...parentCtx,\n ...props,\n })\n\n const finalComponent = useMemo(\n () => component || colComponent,\n [component, colComponent]\n )\n\n const finalProps = useMemo(\n () => ({\n $coolgrid: {\n columns,\n gap,\n size,\n padding,\n extraStyles: css || colCss,\n },\n }),\n [columns, gap, size, padding, css, colCss]\n )\n\n const getDevProps = () => {\n const result = {}\n if (process.env.NODE_ENV !== 'production') {\n result['data-coolgrid'] = 'col'\n }\n\n return result\n }\n\n return (\n <Styled\n {...omitCtxKeys(props)}\n as={finalComponent}\n {...finalProps}\n {...getDevProps()}\n >\n {children}\n </Styled>\n )\n}\n\nconst name = `${PKG_NAME}/Col`\n\nComponent.displayName = name\nComponent.pkgName = PKG_NAME\nComponent.VITUS_LABS__COMPONENT = name\n\nexport default Component\n","export default {\n rootSize: 16,\n breakpoints: {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200,\n },\n grid: {\n columns: 12,\n container: {\n xs: '100%',\n sm: 540,\n md: 720,\n lg: 960,\n xl: 1140,\n },\n },\n} as const\n"],"names":["styles","Component","Styled","Context","name","spacingStyles"],"mappings":";;;;;AAAO,MAAM,QAAQ,GAAG,sBAAsB,CAAA;AAE9C;AACO,MAAM,YAAY,GAAG;;;IAG1B,SAAS;IACT,MAAM;IACN,KAAK;IACL,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,cAAc;IACd,QAAQ;IACR,cAAc;IACd,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C5B,SAAS,CAAC,OAAO,GAAG,QAAQ,CAAA;AAC5B,SAAS,CAAC,qBAAqB,GAAG,IAAI;;ACvEtC,YAAe;AACb,IAAA,QAAQ,EAAE,EAAE;AACZ,IAAA,WAAW,EAAE;AACX,QAAA,EAAE,EAAE,CAAC;AACL,QAAA,EAAE,EAAE,GAAG;AACP,QAAA,EAAE,EAAE,GAAG;AACP,QAAA,EAAE,EAAE,GAAG;AACP,QAAA,EAAE,EAAE,IAAI;AACT,KAAA;AACD,IAAA,IAAI,EAAE;AACJ,QAAA,OAAO,EAAE,EAAE;AACX,QAAA,SAAS,EAAE;AACT,YAAA,EAAE,EAAE,MAAM;AACV,YAAA,EAAE,EAAE,GAAG;AACP,YAAA,EAAE,EAAE,GAAG;AACP,YAAA,EAAE,EAAE,GAAG;AACP,YAAA,EAAE,EAAE,IAAI;AACT,SAAA;AACF,KAAA;CACO;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitus-labs/coolgrid",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.79.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Vit Bokisch <vit@bokisch.cz>",
|
|
6
6
|
"maintainers": [
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
],
|
|
9
9
|
"main": "lib/vitus-labs-coolgrid.js",
|
|
10
10
|
"module": "lib/vitus-labs-coolgrid.module.js",
|
|
11
|
-
"react-native": "lib/vitus-labs-coolgrid.
|
|
11
|
+
"react-native": "lib/vitus-labs-coolgrid.native.js",
|
|
12
12
|
"types": "lib/index.d.ts",
|
|
13
13
|
"files": [
|
|
14
14
|
"lib/"
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"react": ">= 16.8"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@vitus-labs/core": "^0.
|
|
58
|
-
"@vitus-labs/tools-babel": "^0.
|
|
59
|
-
"@vitus-labs/tools-rollup": "^0.
|
|
60
|
-
"@vitus-labs/tools-storybook": "^0.
|
|
61
|
-
"@vitus-labs/tools-typescript": "^0.
|
|
62
|
-
"@vitus-labs/unistyle": "^0.
|
|
57
|
+
"@vitus-labs/core": "^0.79.0",
|
|
58
|
+
"@vitus-labs/tools-babel": "^0.45.0",
|
|
59
|
+
"@vitus-labs/tools-rollup": "^0.45.0",
|
|
60
|
+
"@vitus-labs/tools-storybook": "^0.45.0",
|
|
61
|
+
"@vitus-labs/tools-typescript": "^0.45.0",
|
|
62
|
+
"@vitus-labs/unistyle": "^0.79.0"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "dda2a8b8d07026cd6b7781721ca5b992172246ba"
|
|
65
65
|
}
|