@vaneui/ui 0.0.12 → 0.0.13
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/all.css +10 -44
- package/dist/complex.css +2 -46
- package/dist/components/ui/props/props.d.ts +9 -7
- package/dist/components/utils/componentBuilder.d.ts +2 -2
- package/dist/index.esm.js +11 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +11 -9
- package/dist/index.js.map +1 -1
- package/dist/ui.css +10 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2809,7 +2809,7 @@ function componentBuilder(baseProps, defaultTag, baseClasses) {
|
|
|
2809
2809
|
withSizes: (sizeMap) => withBooleanProps(sizeMap, "md"),
|
|
2810
2810
|
withBreakpoints: (breakpointMap) => withBooleanProps(breakpointMap),
|
|
2811
2811
|
withReverse: (reverseMap) => withBooleanProps(reverseMap),
|
|
2812
|
-
|
|
2812
|
+
withItems: (itemsMap) => withBooleanProps(itemsMap),
|
|
2813
2813
|
withHide: (hideMap) => withBooleanProps(hideMap),
|
|
2814
2814
|
withPosition: (positionMap) => withBooleanProps(positionMap),
|
|
2815
2815
|
withFontWeight: (fontWeight, settings) => withBooleanProps(fontWeight, undefined, settings),
|
|
@@ -2926,13 +2926,15 @@ const Chip = (props) => componentBuilder(props, "span", "rounded-full w-fit h-fi
|
|
|
2926
2926
|
})
|
|
2927
2927
|
.build();
|
|
2928
2928
|
|
|
2929
|
-
const
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2929
|
+
const itemsClasses = {
|
|
2930
|
+
itemsStart: "items-start",
|
|
2931
|
+
itemsEnd: "items-end",
|
|
2932
|
+
itemsCenter: "items-center",
|
|
2933
|
+
itemsBaseline: "items-baseline",
|
|
2934
|
+
itemsStretch: "items-stretch"
|
|
2933
2935
|
};
|
|
2934
2936
|
const Section = (props) => componentBuilder(props, "section", "w-full flex flex-col items-start")
|
|
2935
|
-
.
|
|
2937
|
+
.withItems(itemsClasses)
|
|
2936
2938
|
.withSizes({
|
|
2937
2939
|
xs: "py-6 max-lg:py-4 max-md:py-2",
|
|
2938
2940
|
sm: "py-8 max-lg:py-6 max-md:py-4",
|
|
@@ -2949,7 +2951,7 @@ const Section = (props) => componentBuilder(props, "section", "w-full flex flex-
|
|
|
2949
2951
|
})
|
|
2950
2952
|
.build();
|
|
2951
2953
|
const Container = (props) => componentBuilder(props, "div", "flex flex-col mx-auto w-full")
|
|
2952
|
-
.
|
|
2954
|
+
.withItems(itemsClasses)
|
|
2953
2955
|
.withSizes({
|
|
2954
2956
|
xs: "max-w-3xl gap-2 max-lg:gap-1",
|
|
2955
2957
|
sm: "max-w-4xl gap-4 max-lg:gap-3 max-md:gap-2",
|
|
@@ -2970,14 +2972,14 @@ const Col = (props) => componentBuilder(props, "div", "flex flex-col")
|
|
|
2970
2972
|
.withReverse({
|
|
2971
2973
|
reverse: "flex-col-reverse"
|
|
2972
2974
|
})
|
|
2973
|
-
.
|
|
2975
|
+
.withItems(itemsClasses)
|
|
2974
2976
|
.build();
|
|
2975
2977
|
const Row = (props) => componentBuilder(props, "div", "flex flex-row")
|
|
2976
2978
|
.withGaps({ noGap: "gap-0" }, commonGaps)
|
|
2977
2979
|
.withReverse({
|
|
2978
2980
|
reverse: "flex-row-reverse"
|
|
2979
2981
|
})
|
|
2980
|
-
.
|
|
2982
|
+
.withItems(itemsClasses)
|
|
2981
2983
|
.withBreakpoints({
|
|
2982
2984
|
xsCol: "max-xs:flex-col",
|
|
2983
2985
|
smCol: "max-sm:flex-col",
|