@citygross/components_v2 0.0.33 → 0.0.34
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/cssUtils/utils.d.ts +6 -0
- package/dist/cssUtils/utils.js +14 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -2
- package/package.json +2 -2
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { styleVariants } from '@vanilla-extract/css';
|
|
2
|
+
|
|
3
|
+
declare const spacingsToCssMapper: (fn: typeof styleVariants, css: string, unit?: string) => Record<"xxxs" | "xxs" | "xxs2" | "xs" | "xs2" | "sm" | "sm2" | "md" | "lg" | "xl" | "xxl", string>;
|
|
4
|
+
declare const customToCssMapper: (fn: typeof styleVariants, css: string, unit: string, customSizes: any) => Record<string | number | symbol, string>;
|
|
5
|
+
|
|
6
|
+
export { customToCssMapper, spacingsToCssMapper };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { spacings } from '@citygross/design-tokens_v2';
|
|
2
|
+
|
|
3
|
+
const spacingsToCssMapper = (fn, css, unit = "px") => fn(spacings, (spacing) => [
|
|
4
|
+
{
|
|
5
|
+
[css]: `${spacing}${unit}`
|
|
6
|
+
}
|
|
7
|
+
]);
|
|
8
|
+
const customToCssMapper = (fn, css, unit = "px", customSizes) => fn(customSizes, (spacing) => [
|
|
9
|
+
{
|
|
10
|
+
[css]: `${spacing}${unit}`
|
|
11
|
+
}
|
|
12
|
+
]);
|
|
13
|
+
|
|
14
|
+
export { customToCssMapper, spacingsToCssMapper };
|
package/dist/index.d.ts
CHANGED
|
@@ -27,7 +27,8 @@ export { BodyText, TBodyText } from './typography/BodyText/BodyText.js';
|
|
|
27
27
|
export { H1, TH1 } from './typography/H1/H1.js';
|
|
28
28
|
export { H2, TH2 } from './typography/H2/H2.js';
|
|
29
29
|
export { H3, TH3 } from './typography/H3/H3.js';
|
|
30
|
-
export {
|
|
30
|
+
export { TBodyTextSizeKeys, TTextAlign, TTextDecoration, bodyTextSize, fontFamily, fontSize, fontWeight, lineHeight, textAlign, textDecoration } from './cssUtils/typography.css.js';
|
|
31
31
|
export { backgroundColor, color, hoverBackgroundColor, hoverColor } from './cssUtils/color.css.js';
|
|
32
|
+
export { borderColor, borderRadius } from './cssUtils/border.css.js';
|
|
32
33
|
export { margin, marginBottomDynamic, marginHorizontal, marginVertical, padding, paddingHorizontal, paddingVertical } from './cssUtils/spacings.css.js';
|
|
33
|
-
export {
|
|
34
|
+
export { customToCssMapper, spacingsToCssMapper } from './cssUtils/utils.js';
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,8 @@ export { BodyText } from './typography/BodyText/BodyText.js';
|
|
|
27
27
|
export { H1 } from './typography/H1/H1.js';
|
|
28
28
|
export { H2 } from './typography/H2/H2.js';
|
|
29
29
|
export { H3 } from './typography/H3/H3.js';
|
|
30
|
-
export {
|
|
30
|
+
export { bodyTextSize, fontFamily, fontSize, fontWeight, lineHeight, textAlign, textDecoration } from './cssUtils/typography.css.vanilla.js';
|
|
31
31
|
export { backgroundColor, color, hoverBackgroundColor, hoverColor } from './cssUtils/color.css.vanilla.js';
|
|
32
|
+
export { borderColor, borderRadius } from './cssUtils/border.css.vanilla.js';
|
|
32
33
|
export { margin, marginBottomDynamic, marginHorizontal, marginVertical, padding, paddingHorizontal, paddingVertical } from './cssUtils/spacings.css.vanilla.js';
|
|
33
|
-
export {
|
|
34
|
+
export { customToCssMapper, spacingsToCssMapper } from './cssUtils/utils.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citygross/components_v2",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.34",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"react-slick": "^0.30.1",
|
|
80
80
|
"slick-carousel": "^1.8.1"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "c0379ab17b29845e12ebeddcbb49a659fedbf4df"
|
|
83
83
|
}
|