@sillsdev/config-r 1.0.0-alpha.2 → 1.0.0-alpha.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.
@@ -50,15 +50,15 @@ export declare const ConfigrCustomNumberInput: React.FunctionComponent<React.Pro
50
50
  }>>;
51
51
  getErrorMessage?: (data: any) => string | undefined;
52
52
  }>>;
53
- export declare const ConfigrCustomObjectInput: React.FunctionComponent<React.PropsWithChildren<{
53
+ export declare function ConfigrCustomObjectInput<T>(props: React.PropsWithChildren<{
54
54
  path: string;
55
55
  label: string;
56
56
  control: React.FunctionComponent<React.PropsWithChildren<{
57
- value: object;
58
- onChange: (value: object) => void;
57
+ value: T;
58
+ onChange: (value: T) => void;
59
59
  }>>;
60
60
  getErrorMessage?: (data: any) => string | undefined;
61
- }>>;
61
+ }>): import("@emotion/react/jsx-runtime").JSX.Element;
62
62
  export declare const ConfigrSelect: React.FunctionComponent<React.PropsWithChildren<{
63
63
  path: string;
64
64
  label: string;
@@ -3409,7 +3409,8 @@ ko(t, e.path)) ? null : /* @__PURE__ */ x(X.Fragment, { children: e.children })
3409
3409
  control: /* @__PURE__ */ x(e.control, { value: a, onChange: i })
3410
3410
  }
3411
3411
  );
3412
- }, wP = (e) => {
3412
+ };
3413
+ function wP(e) {
3413
3414
  const [t, r, n] = Ot(e.path), { value: a } = r, { setValue: i } = n;
3414
3415
  return /* @__PURE__ */ x(
3415
3416
  at,
@@ -3418,7 +3419,8 @@ ko(t, e.path)) ? null : /* @__PURE__ */ x(X.Fragment, { children: e.children })
3418
3419
  control: /* @__PURE__ */ x(e.control, { value: a, onChange: i })
3419
3420
  }
3420
3421
  );
3421
- }, EP = (e) => {
3422
+ }
3423
+ const EP = (e) => {
3422
3424
  const t = !Xy(!0, e.enableWhen);
3423
3425
  return /* @__PURE__ */ x(
3424
3426
  at,
@@ -81,7 +81,7 @@
81
81
  input {
82
82
  text-align: end;
83
83
  }
84
- `})}),Ub=e=>{const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{value:a,onChange:i})})},zb=e=>{const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{value:a,onChange:i})})},Wb=e=>{const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{value:a,onChange:i})})},Kb=e=>{const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{value:a,onChange:i})})},qb=e=>{const t=!ay(!0,e.enableWhen);return m.jsx(Ye,{...e,disabled:t,control:m.jsx(wr,{name:e.path,disabled:t,component:Qo,sx:{minWidth:180},css:ce.css`
84
+ `})}),Ub=e=>{const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{value:a,onChange:i})})},zb=e=>{const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{value:a,onChange:i})})},Wb=e=>{const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{value:a,onChange:i})})};function Kb(e){const[t,r,n]=yt(e.path),{value:a}=r,{setValue:i}=n;return m.jsx(Ye,{...e,control:m.jsx(e.control,{value:a,onChange:i})})}const qb=e=>{const t=!ay(!0,e.enableWhen);return m.jsx(Ye,{...e,disabled:t,control:m.jsx(wr,{name:e.path,disabled:t,component:Qo,sx:{minWidth:180},css:ce.css`
85
85
  .MuiSelect-select {
86
86
  padding: 3px !important;
87
87
  padding-left: 9px !important;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sillsdev/config-r",
3
- "version": "1.0.0-alpha.2",
3
+ "version": "1.0.0-alpha.3",
4
4
  "license": "MIT",
5
5
  "packageManager": "yarn@1.22.19",
6
6
  "keywords": [