react-better-html 1.1.85 → 1.1.87
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/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -47,11 +47,11 @@ type DivProps<Value> = {
|
|
|
47
47
|
type DivComponentType = {
|
|
48
48
|
<Value>(props: ComponentPropWithRef<HTMLDivElement, DivProps<Value>>): React.ReactElement;
|
|
49
49
|
row: <Value>(props: ComponentPropWithRef<HTMLDivElement, OmitProps<DivProps<Value>, "display" | "flexDirection"> & {
|
|
50
|
-
|
|
50
|
+
flexReverse?: boolean;
|
|
51
51
|
invertFlexDirection?: boolean;
|
|
52
52
|
}>) => React.ReactElement;
|
|
53
53
|
column: <Value>(props: ComponentPropWithRef<HTMLDivElement, OmitProps<DivProps<Value>, "display" | "flexDirection"> & {
|
|
54
|
-
|
|
54
|
+
flexReverse?: boolean;
|
|
55
55
|
invertFlexDirection?: boolean;
|
|
56
56
|
}>) => React.ReactElement;
|
|
57
57
|
grid: <Value>(props: ComponentPropWithRef<HTMLDivElement, OmitProps<DivProps<Value>, "display">>) => React.ReactElement;
|
package/dist/index.d.ts
CHANGED
|
@@ -47,11 +47,11 @@ type DivProps<Value> = {
|
|
|
47
47
|
type DivComponentType = {
|
|
48
48
|
<Value>(props: ComponentPropWithRef<HTMLDivElement, DivProps<Value>>): React.ReactElement;
|
|
49
49
|
row: <Value>(props: ComponentPropWithRef<HTMLDivElement, OmitProps<DivProps<Value>, "display" | "flexDirection"> & {
|
|
50
|
-
|
|
50
|
+
flexReverse?: boolean;
|
|
51
51
|
invertFlexDirection?: boolean;
|
|
52
52
|
}>) => React.ReactElement;
|
|
53
53
|
column: <Value>(props: ComponentPropWithRef<HTMLDivElement, OmitProps<DivProps<Value>, "display" | "flexDirection"> & {
|
|
54
|
-
|
|
54
|
+
flexReverse?: boolean;
|
|
55
55
|
invertFlexDirection?: boolean;
|
|
56
56
|
}>) => React.ReactElement;
|
|
57
57
|
grid: <Value>(props: ComponentPropWithRef<HTMLDivElement, OmitProps<DivProps<Value>, "display">>) => React.ReactElement;
|
package/dist/index.js
CHANGED
|
@@ -2269,8 +2269,8 @@ var DivComponent = (0, import_react3.forwardRef)(function Div({ value, as, isTab
|
|
|
2269
2269
|
}
|
|
2270
2270
|
);
|
|
2271
2271
|
});
|
|
2272
|
-
DivComponent.row = (0, import_react3.forwardRef)(function Row({
|
|
2273
|
-
const reverseSuffix =
|
|
2272
|
+
DivComponent.row = (0, import_react3.forwardRef)(function Row({ flexReverse, invertFlexDirection, ...props }, ref) {
|
|
2273
|
+
const reverseSuffix = flexReverse ? "-reverse" : "";
|
|
2274
2274
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
2275
2275
|
DivComponent,
|
|
2276
2276
|
{
|
|
@@ -2281,13 +2281,13 @@ DivComponent.row = (0, import_react3.forwardRef)(function Row({ reverse, invertF
|
|
|
2281
2281
|
}
|
|
2282
2282
|
);
|
|
2283
2283
|
});
|
|
2284
|
-
DivComponent.column = (0, import_react3.forwardRef)(function Column({
|
|
2285
|
-
const reverseSuffix =
|
|
2284
|
+
DivComponent.column = (0, import_react3.forwardRef)(function Column({ flexReverse, invertFlexDirection, ...props }, ref) {
|
|
2285
|
+
const reverseSuffix = flexReverse ? "-reverse" : "";
|
|
2286
2286
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
2287
2287
|
DivComponent,
|
|
2288
2288
|
{
|
|
2289
2289
|
display: "flex",
|
|
2290
|
-
flexDirection: (invertFlexDirection ? "
|
|
2290
|
+
flexDirection: (invertFlexDirection ? "row" : "column") + reverseSuffix,
|
|
2291
2291
|
ref,
|
|
2292
2292
|
...props
|
|
2293
2293
|
}
|