@abgov/react-components 4.0.0-alpha.60 → 4.0.0-alpha.61

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.0.0-alpha.60",
3
+ "version": "4.0.0-alpha.61",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -1328,6 +1328,10 @@ function toBoolean(value) {
1328
1328
 
1329
1329
  return !!value;
1330
1330
  }
1331
+
1332
+ function fromBoolean(value) {
1333
+ return value ? "true" : "false";
1334
+ }
1331
1335
  /* libs/web-components/src/components/badge/Badge.svelte generated by Svelte v3.49.0 */
1332
1336
 
1333
1337
 
@@ -2985,7 +2989,7 @@ function create_if_block_1$9(ctx) {
2985
2989
  }
2986
2990
 
2987
2991
  };
2988
- } // (49:4) {#if isIndeterminate}
2992
+ } // (51:4) {#if isIndeterminate}
2989
2993
 
2990
2994
 
2991
2995
  function create_if_block$f(ctx) {
@@ -3256,8 +3260,10 @@ function instance$t($$self, $$props, $$invalidate) {
3256
3260
  // out of sync with the events.
3257
3261
  const newCheckStatus = !isChecked;
3258
3262
 
3259
- const _value = newCheckStatus ? `${value || "checked"}` : "";
3263
+ const _value = newCheckStatus ? `${value || "checked"}` : ""; // set the local state
3264
+
3260
3265
 
3266
+ $$invalidate(9, checked = fromBoolean(newCheckStatus));
3261
3267
  e.target.dispatchEvent(new CustomEvent("_change", {
3262
3268
  composed: true,
3263
3269
  detail: {
@@ -1369,6 +1369,10 @@
1369
1369
 
1370
1370
  return !!value;
1371
1371
  }
1372
+
1373
+ function fromBoolean(value) {
1374
+ return value ? "true" : "false";
1375
+ }
1372
1376
  /* libs/web-components/src/components/badge/Badge.svelte generated by Svelte v3.49.0 */
1373
1377
 
1374
1378
 
@@ -3026,7 +3030,7 @@
3026
3030
  }
3027
3031
 
3028
3032
  };
3029
- } // (49:4) {#if isIndeterminate}
3033
+ } // (51:4) {#if isIndeterminate}
3030
3034
 
3031
3035
 
3032
3036
  function create_if_block$f(ctx) {
@@ -3297,8 +3301,10 @@
3297
3301
  // out of sync with the events.
3298
3302
  const newCheckStatus = !isChecked;
3299
3303
 
3300
- const _value = newCheckStatus ? `${value || "checked"}` : "";
3304
+ const _value = newCheckStatus ? `${value || "checked"}` : ""; // set the local state
3305
+
3301
3306
 
3307
+ $$invalidate(9, checked = fromBoolean(newCheckStatus));
3302
3308
  e.target.dispatchEvent(new CustomEvent("_change", {
3303
3309
  composed: true,
3304
3310
  detail: {