rechtspilot-ui 0.0.37 → 0.0.38

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.
@@ -6,14 +6,11 @@ export declare const Label: import('styled-components/dist/types').IStyledCompon
6
6
  export declare const FormInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
7
7
  type InputProps = {
8
8
  label: string;
9
- value?: string;
10
- type?: React.HTMLInputTypeAttribute;
11
9
  currency?: boolean;
12
- onChange: (e: string) => void;
13
- onBlur?: () => void;
10
+ onChange: (value: string) => void;
14
11
  tooltipText?: string;
15
12
  error?: string;
16
13
  helperText?: string;
17
- };
14
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'>;
18
15
  export default function Input({ label, value, type, currency, onChange, onBlur, tooltipText, error, helperText, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
19
16
  export {};
package/dist/index.es.js CHANGED
@@ -1111,7 +1111,7 @@ function Bu({ variant: e = "primary", dark: t }) {
1111
1111
  }
1112
1112
  }, r = () => t ? T.neutral["0-A8"] : T.neutral["800-A8"];
1113
1113
  return /* @__PURE__ */ p.jsxs(Wu, { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1114
- /* @__PURE__ */ p.jsx("circle", { cx: "12", cy: "12", r: "8", stroke: r(), "stroke-opacity": "0.08", "stroke-width": "3" }),
1114
+ /* @__PURE__ */ p.jsx("circle", { cx: "12", cy: "12", r: "8", stroke: r(), strokeOpacity: "0.08", strokeWidth: "3" }),
1115
1115
  /* @__PURE__ */ p.jsx(
1116
1116
  "path",
1117
1117
  {
@@ -7067,7 +7067,7 @@ const ug = lg, dg = (e, t) => (n) => ug(e, n == null ? void 0 : n.class, n == nu
7067
7067
  Gc.displayName = Vc.displayName;
7068
7068
  const pg = dg(
7069
7069
  "group pointer-events-auto relative flex w-full items-center overflow-hidden pr-8 transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-bottom-full data-[state=open]:slide-in-from-bottom-full"
7070
- ), qc = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(Hc, { ref: n, className: oe(pg(), e), ...t }));
7070
+ ), qc = c.forwardRef(({ className: e, testId: t, ...n }, r) => /* @__PURE__ */ p.jsx(Hc, { "data-testid": t, ref: r, className: oe(pg(), e), ...n }));
7071
7071
  qc.displayName = Hc.displayName;
7072
7072
  const hg = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
7073
7073
  Yc,
@@ -7139,14 +7139,14 @@ const Wr = {
7139
7139
  function Ov() {
7140
7140
  const { toasts: e } = Nm();
7141
7141
  return /* @__PURE__ */ p.jsxs(fg, { children: [
7142
- e.map(function({ id: t, title: n, description: r, variant: o = "info", ...s }) {
7143
- return /* @__PURE__ */ p.jsxs(mg, { $variant: o, ...s, children: [
7144
- /* @__PURE__ */ p.jsx(vg, { children: /* @__PURE__ */ p.jsx(xg, { variant: o }) }),
7142
+ e.map(function({ id: t, title: n, description: r, testId: o, variant: s = "info", ...i }) {
7143
+ return /* @__PURE__ */ p.jsxs(mg, { $variant: s, testId: o, ...i, children: [
7144
+ /* @__PURE__ */ p.jsx(vg, { children: /* @__PURE__ */ p.jsx(xg, { variant: s }) }),
7145
7145
  /* @__PURE__ */ p.jsxs(gg, { children: [
7146
7146
  n && /* @__PURE__ */ p.jsx(yg, { children: n }),
7147
7147
  r && /* @__PURE__ */ p.jsx(wg, { children: r })
7148
7148
  ] }),
7149
- /* @__PURE__ */ p.jsx(Zc, { color: Wr[o].color })
7149
+ /* @__PURE__ */ p.jsx(Zc, { color: Wr[s].color })
7150
7150
  ] }, t);
7151
7151
  }),
7152
7152
  /* @__PURE__ */ p.jsx(Gc, {})
@@ -3,7 +3,9 @@ import * as ToastPrimitives from '@radix-ui/react-toast';
3
3
  import * as React from 'react';
4
4
  declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
5
5
  declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
6
- declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: import('class-variance-authority/dist/types').ClassProp | undefined) => string> & React.RefAttributes<HTMLLIElement>>;
6
+ declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: import('class-variance-authority/dist/types').ClassProp | undefined) => string> & {
7
+ testId?: string;
8
+ } & React.RefAttributes<HTMLLIElement>>;
7
9
  declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
8
10
  declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
9
11
  declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rechtspilot-ui",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "type": "module",
5
5
  "description": "Rechtspilot UI Library",
6
6
  "module": "dist/index.es.js",