@sillsdev/config-r 1.0.0-alpha.14 → 1.0.0-alpha.15

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/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  ![config-r](https://user-images.githubusercontent.com/8448/147490475-b4d6d3bd-85a5-4ccd-941e-7f6926cc8089.png)
2
2
 
3
- A react library for a settings UI similar to that of Chrome. Uses formik.
3
+ A React library for a settings UI similar to that of Chrome.
4
4
 
5
5
  [![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
6
6
 
7
- > :warning: This is a side project that I work on once in a while, and isn't ready for use yet.
7
+ > :warning: We ship this as part of our [product](https://github.com/BloomBooks/BloomDesktop), but some features (search and nested screens) have not made it to production yet. In addition, we may make visual changes over time. Finally, the only documentation is the code and the storybook stories.
8
8
 
9
9
  ## Screenshots
10
10
 
@@ -18,3 +18,9 @@ A react library for a settings UI similar to that of Chrome. Uses formik.
18
18
  yarn install
19
19
  yarn dev
20
20
  ```
21
+
22
+ ## Installing
23
+
24
+ ```
25
+ npm install @sillsdev/config-r
26
+ ```
@@ -3300,7 +3300,8 @@ Lo(t, e.path)) ? null : /* @__PURE__ */ x(q.Fragment, { children: e.children })
3300
3300
  primaryTypographyProps: { variant: "h4" },
3301
3301
  title: e.path,
3302
3302
  css: he`
3303
- color: ${e.disabled ? No : "unset"};
3303
+ /* no: doing this ends up double-fading the label
3304
+ color: ${e.disabled ? No : "unset"}; */
3304
3305
  ${e.height ? "height:" + e.height : ""}
3305
3306
  ${e.indented && "margin-left: 30px;"}
3306
3307
  user-select: none;
@@ -3472,6 +3473,8 @@ const CP = (e) => {
3472
3473
  name: e.path,
3473
3474
  disabled: t,
3474
3475
  component: au,
3476
+ defaultValue: "",
3477
+ displayEmpty: !0,
3475
3478
  sx: { minWidth: 180 },
3476
3479
  css: he`
3477
3480
  .MuiSelect-select {
@@ -3526,7 +3529,16 @@ const CP = (e) => {
3526
3529
  e = it(e);
3527
3530
  const [t, r, n] = At(e.path);
3528
3531
  (t.value === void 0 || t.value === null) && window.setTimeout(() => n.setValue(!1), 0);
3529
- const a = e.immediateEffect ? /* @__PURE__ */ x(Ar, { component: iu, type: "checkbox", name: e.path, label: e.label, disabled: e.disabled || e.locked }) : /* @__PURE__ */ x(
3532
+ const a = e.immediateEffect ? /* @__PURE__ */ x(
3533
+ Ar,
3534
+ {
3535
+ component: iu,
3536
+ type: "checkbox",
3537
+ name: e.path,
3538
+ label: e.label,
3539
+ disabled: e.disabled || e.locked
3540
+ }
3541
+ ) : /* @__PURE__ */ x(
3530
3542
  Ar,
3531
3543
  {
3532
3544
  component: nu,
@@ -57,7 +57,8 @@
57
57
  flex-direction: column;
58
58
  width: 100%;
59
59
  `,children:[y.jsx(F.ListItemText,{primaryTypographyProps:{variant:"h4"},title:e.path,css:le.css`
60
- color: ${e.disabled?ps:"unset"};
60
+ /* no: doing this ends up double-fading the label
61
+ color: ${e.disabled?ps:"unset"}; */
61
62
  ${e.height?"height:"+e.height:""}
62
63
  ${e.indented&&"margin-left: 30px;"}
63
64
  user-select: none;
@@ -86,7 +87,7 @@
86
87
  input {
87
88
  text-align: end;
88
89
  }
89
- `})})),zb=e=>{e=Xe(e);const[t,r,n]=mt(e.path),{value:a}=r,{setValue:i}=n;return y.jsx(Ye,{...e,control:y.jsx(e.control,{disabled:e.disabled,value:a,onChange:i})})},Wb=e=>{e=Xe(e);const[t,r,n]=mt(e.path),{value:a}=r,{setValue:i}=n;return y.jsx(Ye,{...e,control:y.jsx(e.control,{disabled:e.disabled,value:a,onChange:i})})},Kb=e=>{e=Xe(e);const[t,r,n]=mt(e.path),{value:a}=r,{setValue:i}=n;return y.jsx(Ye,{...e,control:y.jsx(e.control,{disabled:e.disabled,value:a,onChange:i})})};function qb(e){e=Xe(e);const[t,r,n]=mt(e.path),{value:a}=r,{setValue:i}=n;return y.jsx(Ye,{...e,control:y.jsx(e.control,{value:a,disabled:e.disabled,onChange:i})})}const Rb=e=>{e=Xe(e);const t=e.disabled||!sy(!0,e.enableWhen);return y.jsx(Ye,{...e,disabled:t,control:y.jsx(_r,{name:e.path,disabled:t,component:rs,sx:{minWidth:180},css:le.css`
90
+ `})})),zb=e=>{e=Xe(e);const[t,r,n]=mt(e.path),{value:a}=r,{setValue:i}=n;return y.jsx(Ye,{...e,control:y.jsx(e.control,{disabled:e.disabled,value:a,onChange:i})})},Wb=e=>{e=Xe(e);const[t,r,n]=mt(e.path),{value:a}=r,{setValue:i}=n;return y.jsx(Ye,{...e,control:y.jsx(e.control,{disabled:e.disabled,value:a,onChange:i})})},Kb=e=>{e=Xe(e);const[t,r,n]=mt(e.path),{value:a}=r,{setValue:i}=n;return y.jsx(Ye,{...e,control:y.jsx(e.control,{disabled:e.disabled,value:a,onChange:i})})};function qb(e){e=Xe(e);const[t,r,n]=mt(e.path),{value:a}=r,{setValue:i}=n;return y.jsx(Ye,{...e,control:y.jsx(e.control,{value:a,disabled:e.disabled,onChange:i})})}const Rb=e=>{e=Xe(e);const t=e.disabled||!sy(!0,e.enableWhen);return y.jsx(Ye,{...e,disabled:t,control:y.jsx(_r,{name:e.path,disabled:t,component:rs,defaultValue:"",displayEmpty:!0,sx:{minWidth:180},css:le.css`
90
91
  .MuiSelect-select {
91
92
  padding: 3px !important;
92
93
  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.14",
3
+ "version": "1.0.0-alpha.15",
4
4
  "license": "MIT",
5
5
  "packageManager": "yarn@1.22.19",
6
6
  "keywords": [