routelit-client 0.0.2 → 0.0.3

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.
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
3
3
  level?: 1 | 2 | 3 | 4 | 5 | 6;
4
- children: React.ReactNode;
4
+ body: React.ReactNode;
5
5
  }
6
- declare function Heading({ children, level, ...props }: HeadingProps): React.DetailedReactHTMLElement<{
6
+ declare function Heading({ body, level, ...props }: HeadingProps): React.DetailedReactHTMLElement<{
7
7
  defaultChecked?: boolean | undefined;
8
8
  defaultValue?: string | number | readonly string[] | undefined;
9
9
  suppressContentEditableWarning?: boolean | undefined;
@@ -112,6 +112,7 @@ declare function Heading({ children, level, ...props }: HeadingProps): React.Det
112
112
  "aria-valuemin"?: number | undefined;
113
113
  "aria-valuenow"?: number | undefined;
114
114
  "aria-valuetext"?: string | undefined;
115
+ children?: React.ReactNode | undefined;
115
116
  dangerouslySetInnerHTML?: {
116
117
  __html: string | TrustedHTML;
117
118
  } | undefined;
@@ -286,7 +287,7 @@ declare function Heading({ children, level, ...props }: HeadingProps): React.Det
286
287
  onTransitionStart?: React.TransitionEventHandler<HTMLHeadingElement> | undefined;
287
288
  onTransitionStartCapture?: React.TransitionEventHandler<HTMLHeadingElement> | undefined;
288
289
  }, HTMLElement>;
289
- declare function Title({ children, ...props }: HeadingProps): import("react/jsx-runtime").JSX.Element;
290
- declare function Header({ children, ...props }: HeadingProps): import("react/jsx-runtime").JSX.Element;
291
- declare function Subheader({ children, ...props }: HeadingProps): import("react/jsx-runtime").JSX.Element;
290
+ declare function Title({ body, ...props }: HeadingProps): import("react/jsx-runtime").JSX.Element;
291
+ declare function Header({ body, ...props }: HeadingProps): import("react/jsx-runtime").JSX.Element;
292
+ declare function Subheader({ body, ...props }: HeadingProps): import("react/jsx-runtime").JSX.Element;
292
293
  export { Heading, Title, Header, Subheader };
@@ -20693,17 +20693,17 @@ const Expander = ({
20693
20693
  ] });
20694
20694
  };
20695
20695
  Expander.displayName = "Expander";
20696
- function Heading({ children, level = 1, ...props }) {
20697
- return React.createElement(`h${level}`, props, children);
20696
+ function Heading({ body, level = 1, ...props }) {
20697
+ return React.createElement(`h${level}`, props, body);
20698
20698
  }
20699
- function Title({ children, ...props }) {
20700
- return /* @__PURE__ */ jsx(Heading, { level: 1, ...props, children });
20699
+ function Title({ body, ...props }) {
20700
+ return /* @__PURE__ */ jsx(Heading, { level: 1, ...props, body });
20701
20701
  }
20702
- function Header({ children, ...props }) {
20703
- return /* @__PURE__ */ jsx(Heading, { level: 2, ...props, children });
20702
+ function Header({ body, ...props }) {
20703
+ return /* @__PURE__ */ jsx(Heading, { level: 2, ...props, body });
20704
20704
  }
20705
- function Subheader({ children, ...props }) {
20706
- return /* @__PURE__ */ jsx(Heading, { level: 3, ...props, children });
20705
+ function Subheader({ body, ...props }) {
20706
+ return /* @__PURE__ */ jsx(Heading, { level: 3, ...props, body });
20707
20707
  }
20708
20708
  const Checkbox = memo(function Checkbox2({
20709
20709
  label,
@@ -20779,7 +20779,7 @@ const CheckboxGroup = memo(function CheckboxGroup2({
20779
20779
  },
20780
20780
  [dispatchChange, value]
20781
20781
  );
20782
- return /* @__PURE__ */ jsxs(Fragment$1, { children: [
20782
+ return /* @__PURE__ */ jsxs("div", { className: "rl-form-group", children: [
20783
20783
  label && /* @__PURE__ */ jsxs("label", { children: [
20784
20784
  label,
20785
20785
  " ",
@@ -20849,7 +20849,7 @@ function TextInputComponent({
20849
20849
  }
20850
20850
  };
20851
20851
  const required = props.required;
20852
- return /* @__PURE__ */ jsxs(Fragment$1, { children: [
20852
+ return /* @__PURE__ */ jsxs("div", { className: "rl-form-group", children: [
20853
20853
  label && /* @__PURE__ */ jsxs("label", { htmlFor: id, children: [
20854
20854
  label,
20855
20855
  " ",
@@ -20950,7 +20950,7 @@ const Select = memo(function Select2({
20950
20950
  dispatchChange(newValue);
20951
20951
  }
20952
20952
  }
20953
- return /* @__PURE__ */ jsxs(Fragment$1, { children: [
20953
+ return /* @__PURE__ */ jsxs("div", { className: "rl-form-group", children: [
20954
20954
  label && /* @__PURE__ */ jsxs("label", { htmlFor: id, children: [
20955
20955
  label,
20956
20956
  " ",
@@ -21001,7 +21001,7 @@ function TextareaComponent({
21001
21001
  }
21002
21002
  };
21003
21003
  const required = props.required;
21004
- return /* @__PURE__ */ jsxs(Fragment$1, { children: [
21004
+ return /* @__PURE__ */ jsxs("div", { className: "rl-form-group", children: [
21005
21005
  label && /* @__PURE__ */ jsxs("label", { htmlFor: id, children: [
21006
21006
  label,
21007
21007
  " ",