@abgov/react-components 4.0.0-alpha.139 → 4.0.0-alpha.140
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 +1 -1
- package/react-components.esm.js +12 -9
- package/react-components.umd.js +15 -11
package/package.json
CHANGED
package/react-components.esm.js
CHANGED
|
@@ -13034,7 +13034,7 @@ function create_if_block$a(ctx) {
|
|
|
13034
13034
|
}
|
|
13035
13035
|
|
|
13036
13036
|
};
|
|
13037
|
-
} // (
|
|
13037
|
+
} // (137:8) {#if calloutvariant !== null}
|
|
13038
13038
|
|
|
13039
13039
|
|
|
13040
13040
|
function create_if_block_3$4(ctx) {
|
|
@@ -13093,7 +13093,7 @@ function create_if_block_3$4(ctx) {
|
|
|
13093
13093
|
}
|
|
13094
13094
|
|
|
13095
13095
|
};
|
|
13096
|
-
} // (
|
|
13096
|
+
} // (150:14) {:else}
|
|
13097
13097
|
|
|
13098
13098
|
|
|
13099
13099
|
function create_else_block$4(ctx) {
|
|
@@ -13115,7 +13115,7 @@ function create_else_block$4(ctx) {
|
|
|
13115
13115
|
}
|
|
13116
13116
|
|
|
13117
13117
|
};
|
|
13118
|
-
} // (
|
|
13118
|
+
} // (148:14) {#if heading}
|
|
13119
13119
|
|
|
13120
13120
|
|
|
13121
13121
|
function create_if_block_2$4(ctx) {
|
|
@@ -13144,7 +13144,7 @@ function create_if_block_2$4(ctx) {
|
|
|
13144
13144
|
}
|
|
13145
13145
|
|
|
13146
13146
|
};
|
|
13147
|
-
} // (
|
|
13147
|
+
} // (154:12) {#if _isClosable}
|
|
13148
13148
|
|
|
13149
13149
|
|
|
13150
13150
|
function create_if_block_1$4(ctx) {
|
|
@@ -13253,8 +13253,6 @@ function create_fragment$k(ctx) {
|
|
|
13253
13253
|
function instance$i($$self, $$props, $$invalidate) {
|
|
13254
13254
|
let _isClosable;
|
|
13255
13255
|
|
|
13256
|
-
let _isOpen;
|
|
13257
|
-
|
|
13258
13256
|
let _transitionTime;
|
|
13259
13257
|
|
|
13260
13258
|
let _iconType;
|
|
@@ -13284,9 +13282,14 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
13284
13282
|
let _headerEl = null; // Type verification
|
|
13285
13283
|
|
|
13286
13284
|
const [CALLOUT_VARIANT, validateCalloutVariant] = typeValidator("Callout variant", ["emergency", "important", "information", "success", "event"]);
|
|
13287
|
-
const [Transitions, validateTransition] = typeValidator("Modal transition", ["fast", "slow", "none"]); //
|
|
13285
|
+
const [Transitions, validateTransition] = typeValidator("Modal transition", ["fast", "slow", "none"]); // Moving the reactive var into a timeout prevents accessing null stylesheet
|
|
13286
|
+
// reference to allow for creation of the @keyframes for the in:fade and out:fade transitions.
|
|
13287
|
+
// DDIDS-1288
|
|
13288
13288
|
|
|
13289
|
-
|
|
13289
|
+
let _isOpen = false; // Hooks
|
|
13290
|
+
|
|
13291
|
+
onMount(async () => {
|
|
13292
|
+
await tick();
|
|
13290
13293
|
validateCalloutVariant(calloutvariant);
|
|
13291
13294
|
validateTransition(transition);
|
|
13292
13295
|
}); // Functions
|
|
@@ -13388,7 +13391,7 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
13388
13391
|
if ($$self.$$.dirty &
|
|
13389
13392
|
/*open*/
|
|
13390
13393
|
2) {
|
|
13391
|
-
$$invalidate(7, _isOpen = toBoolean(open));
|
|
13394
|
+
setTimeout(() => $$invalidate(7, _isOpen = toBoolean(open)), 1);
|
|
13392
13395
|
}
|
|
13393
13396
|
|
|
13394
13397
|
if ($$self.$$.dirty &
|
package/react-components.umd.js
CHANGED
|
@@ -13080,7 +13080,7 @@
|
|
|
13080
13080
|
}
|
|
13081
13081
|
|
|
13082
13082
|
};
|
|
13083
|
-
} // (
|
|
13083
|
+
} // (137:8) {#if calloutvariant !== null}
|
|
13084
13084
|
|
|
13085
13085
|
|
|
13086
13086
|
function create_if_block_3$4(ctx) {
|
|
@@ -13139,7 +13139,7 @@
|
|
|
13139
13139
|
}
|
|
13140
13140
|
|
|
13141
13141
|
};
|
|
13142
|
-
} // (
|
|
13142
|
+
} // (150:14) {:else}
|
|
13143
13143
|
|
|
13144
13144
|
|
|
13145
13145
|
function create_else_block$4(ctx) {
|
|
@@ -13161,7 +13161,7 @@
|
|
|
13161
13161
|
}
|
|
13162
13162
|
|
|
13163
13163
|
};
|
|
13164
|
-
} // (
|
|
13164
|
+
} // (148:14) {#if heading}
|
|
13165
13165
|
|
|
13166
13166
|
|
|
13167
13167
|
function create_if_block_2$4(ctx) {
|
|
@@ -13190,7 +13190,7 @@
|
|
|
13190
13190
|
}
|
|
13191
13191
|
|
|
13192
13192
|
};
|
|
13193
|
-
} // (
|
|
13193
|
+
} // (154:12) {#if _isClosable}
|
|
13194
13194
|
|
|
13195
13195
|
|
|
13196
13196
|
function create_if_block_1$4(ctx) {
|
|
@@ -13299,8 +13299,6 @@
|
|
|
13299
13299
|
function instance$i($$self, $$props, $$invalidate) {
|
|
13300
13300
|
let _isClosable;
|
|
13301
13301
|
|
|
13302
|
-
let _isOpen;
|
|
13303
|
-
|
|
13304
13302
|
let _transitionTime;
|
|
13305
13303
|
|
|
13306
13304
|
let _iconType;
|
|
@@ -13330,11 +13328,17 @@
|
|
|
13330
13328
|
let _headerEl = null; // Type verification
|
|
13331
13329
|
|
|
13332
13330
|
const [CALLOUT_VARIANT, validateCalloutVariant] = typeValidator("Callout variant", ["emergency", "important", "information", "success", "event"]);
|
|
13333
|
-
const [Transitions, validateTransition] = typeValidator("Modal transition", ["fast", "slow", "none"]); //
|
|
13331
|
+
const [Transitions, validateTransition] = typeValidator("Modal transition", ["fast", "slow", "none"]); // Moving the reactive var into a timeout prevents accessing null stylesheet
|
|
13332
|
+
// reference to allow for creation of the @keyframes for the in:fade and out:fade transitions.
|
|
13333
|
+
// DDIDS-1288
|
|
13334
13334
|
|
|
13335
|
-
|
|
13336
|
-
|
|
13337
|
-
|
|
13335
|
+
let _isOpen = false; // Hooks
|
|
13336
|
+
|
|
13337
|
+
onMount(function () {
|
|
13338
|
+
return _call(tick, function () {
|
|
13339
|
+
validateCalloutVariant(calloutvariant);
|
|
13340
|
+
validateTransition(transition);
|
|
13341
|
+
});
|
|
13338
13342
|
}); // Functions
|
|
13339
13343
|
|
|
13340
13344
|
function close(e) {
|
|
@@ -13434,7 +13438,7 @@
|
|
|
13434
13438
|
if ($$self.$$.dirty &
|
|
13435
13439
|
/*open*/
|
|
13436
13440
|
2) {
|
|
13437
|
-
$$invalidate(7, _isOpen = toBoolean(open));
|
|
13441
|
+
setTimeout(() => $$invalidate(7, _isOpen = toBoolean(open)), 1);
|
|
13438
13442
|
}
|
|
13439
13443
|
|
|
13440
13444
|
if ($$self.$$.dirty &
|