react-better-html 1.1.83 → 1.1.85

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.mjs CHANGED
@@ -2194,11 +2194,29 @@ var DivComponent = forwardRef(function Div({ value, as, isTabAccessed, onClickWi
2194
2194
  }
2195
2195
  );
2196
2196
  });
2197
- DivComponent.row = forwardRef(function Row({ invertFlexDirection, ...props }, ref) {
2198
- return /* @__PURE__ */ jsx2(DivComponent, { display: "flex", flexDirection: invertFlexDirection ? "column" : "row", ref, ...props });
2197
+ DivComponent.row = forwardRef(function Row({ reverse, invertFlexDirection, ...props }, ref) {
2198
+ const reverseSuffix = reverse ? "-reverse" : "";
2199
+ return /* @__PURE__ */ jsx2(
2200
+ DivComponent,
2201
+ {
2202
+ display: "flex",
2203
+ flexDirection: (invertFlexDirection ? "column" : "row") + reverseSuffix,
2204
+ ref,
2205
+ ...props
2206
+ }
2207
+ );
2199
2208
  });
2200
- DivComponent.column = forwardRef(function Column({ invertFlexDirection, ...props }, ref) {
2201
- return /* @__PURE__ */ jsx2(DivComponent, { display: "flex", flexDirection: invertFlexDirection ? "row" : "column", ref, ...props });
2209
+ DivComponent.column = forwardRef(function Column({ reverse, invertFlexDirection, ...props }, ref) {
2210
+ const reverseSuffix = reverse ? "-reverse" : "";
2211
+ return /* @__PURE__ */ jsx2(
2212
+ DivComponent,
2213
+ {
2214
+ display: "flex",
2215
+ flexDirection: (invertFlexDirection ? "column" : "row") + reverseSuffix,
2216
+ ref,
2217
+ ...props
2218
+ }
2219
+ );
2202
2220
  });
2203
2221
  DivComponent.grid = forwardRef(function Grid(props, ref) {
2204
2222
  return /* @__PURE__ */ jsx2(DivComponent, { display: "grid", ref, ...props });
@@ -2991,7 +3009,7 @@ var Modal_default = Modal2;
2991
3009
  // src/components/PageHolder.tsx
2992
3010
  import { memo as memo10 } from "react";
2993
3011
  import { jsx as jsx10 } from "react/jsx-runtime";
2994
- function PageHolder({ noMaxContentWidth, children }) {
3012
+ function PageHolder({ noMaxContentWidth, children, ...props }) {
2995
3013
  const theme2 = useTheme();
2996
3014
  const { app } = useBetterHtmlContextInternal();
2997
3015
  return /* @__PURE__ */ jsx10(
@@ -3002,6 +3020,7 @@ function PageHolder({ noMaxContentWidth, children }) {
3002
3020
  maxWidth: !noMaxContentWidth ? app.contentMaxWidth : void 0,
3003
3021
  margin: "0px auto",
3004
3022
  padding: theme2.styles.space,
3023
+ ...props,
3005
3024
  children
3006
3025
  }
3007
3026
  );
@@ -5170,6 +5189,7 @@ var InputElement = styled8.input.withConfig({
5170
5189
  &[type="time"] {
5171
5190
  // min-height: 46px;
5172
5191
  -webkit-appearance: none;
5192
+ -moz-appearance: textfield;
5173
5193
 
5174
5194
  &::-webkit-calendar-picker-indicator {
5175
5195
  display: none;
@@ -6603,12 +6623,19 @@ var TabsComponent = forwardRef12(function Tabs({ tabs, name, accentColor, style
6603
6623
  block: "nearest"
6604
6624
  });
6605
6625
  }, [selectedTab]);
6626
+ useEffect9(() => {
6627
+ return () => {
6628
+ componentsState.tabs.setTabGroups(
6629
+ (oldValue) => oldValue.filter((item) => item.name !== (name ?? defaultTabName))
6630
+ );
6631
+ };
6632
+ }, []);
6606
6633
  useImperativeHandle2(
6607
6634
  ref,
6608
6635
  () => {
6609
6636
  return {
6610
6637
  selectedTab,
6611
- setSelectedTab: onClickTab
6638
+ selectTab: onClickTab
6612
6639
  };
6613
6640
  },
6614
6641
  [selectedTab, onClickTab]
@@ -6679,7 +6706,7 @@ var TabsComponent = forwardRef12(function Tabs({ tabs, name, accentColor, style
6679
6706
  }
6680
6707
  )
6681
6708
  ] }),
6682
- /* @__PURE__ */ jsx21(Div_default, { width: "100%", children })
6709
+ children && /* @__PURE__ */ jsx21(Div_default, { width: "100%", children })
6683
6710
  ] });
6684
6711
  });
6685
6712
  TabsComponent.content = function Content({ tab, tabWithDot, tabsGroupName, isInitialTab, children }) {