@abgov/react-components 4.0.0-alpha.145 → 4.0.0-alpha.147
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/lib/callout/callout.d.ts +4 -1
- package/package.json +1 -1
- package/react-components.esm.js +98 -15
- package/react-components.umd.js +99 -15
package/lib/callout/callout.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
3
|
declare type CalloutType = "important" | "information" | "event" | "success" | "emergency";
|
|
4
|
+
declare type CalloutSize = "medium" | "large";
|
|
4
5
|
interface WCProps extends Margins {
|
|
5
6
|
heading?: string;
|
|
6
7
|
type?: CalloutType;
|
|
8
|
+
size?: CalloutSize;
|
|
7
9
|
}
|
|
8
10
|
declare global {
|
|
9
11
|
namespace JSX {
|
|
@@ -15,8 +17,9 @@ declare global {
|
|
|
15
17
|
export interface CalloutProps extends Margins {
|
|
16
18
|
heading?: string;
|
|
17
19
|
type?: CalloutType;
|
|
20
|
+
size?: CalloutSize;
|
|
18
21
|
testId?: string;
|
|
19
22
|
children?: React.ReactNode;
|
|
20
23
|
}
|
|
21
|
-
export declare const GoACallout: ({ heading, type, testId, children, mt, mr, mb, ml, }: CalloutProps) => JSX.Element;
|
|
24
|
+
export declare const GoACallout: ({ heading, type, size, testId, children, mt, mr, mb, ml, }: CalloutProps) => JSX.Element;
|
|
22
25
|
export default GoACallout;
|
package/package.json
CHANGED
package/react-components.esm.js
CHANGED
|
@@ -3356,6 +3356,9 @@ function create_if_block$l(ctx) {
|
|
|
3356
3356
|
t = text(
|
|
3357
3357
|
/*heading*/
|
|
3358
3358
|
ctx[5]);
|
|
3359
|
+
toggle_class(h3, "medium",
|
|
3360
|
+
/*isMediumCallout*/
|
|
3361
|
+
ctx[9]);
|
|
3359
3362
|
},
|
|
3360
3363
|
|
|
3361
3364
|
m(target, anchor) {
|
|
@@ -3369,6 +3372,14 @@ function create_if_block$l(ctx) {
|
|
|
3369
3372
|
32) set_data(t,
|
|
3370
3373
|
/*heading*/
|
|
3371
3374
|
ctx[5]);
|
|
3375
|
+
|
|
3376
|
+
if (dirty &
|
|
3377
|
+
/*isMediumCallout*/
|
|
3378
|
+
512) {
|
|
3379
|
+
toggle_class(h3, "medium",
|
|
3380
|
+
/*isMediumCallout*/
|
|
3381
|
+
ctx[9]);
|
|
3382
|
+
}
|
|
3372
3383
|
},
|
|
3373
3384
|
|
|
3374
3385
|
d(detaching) {
|
|
@@ -3389,6 +3400,11 @@ function create_fragment$K(ctx) {
|
|
|
3389
3400
|
let t1;
|
|
3390
3401
|
let slot;
|
|
3391
3402
|
let div_style_value;
|
|
3403
|
+
let mounted;
|
|
3404
|
+
let dispose;
|
|
3405
|
+
add_render_callback(
|
|
3406
|
+
/*onwindowresize*/
|
|
3407
|
+
ctx[12]);
|
|
3392
3408
|
let if_block =
|
|
3393
3409
|
/*heading*/
|
|
3394
3410
|
ctx[5] && create_if_block$l(ctx);
|
|
@@ -3405,7 +3421,10 @@ function create_fragment$K(ctx) {
|
|
|
3405
3421
|
this.c = noop;
|
|
3406
3422
|
set_custom_element_data(goa_icon, "type",
|
|
3407
3423
|
/*iconType*/
|
|
3408
|
-
ctx[
|
|
3424
|
+
ctx[10]);
|
|
3425
|
+
set_custom_element_data(goa_icon, "size",
|
|
3426
|
+
/*iconSize*/
|
|
3427
|
+
ctx[8]);
|
|
3409
3428
|
set_custom_element_data(goa_icon, "inverted", goa_icon_inverted_value =
|
|
3410
3429
|
/*type*/
|
|
3411
3430
|
ctx[4] === "important" ? "false" : "true");
|
|
@@ -3426,6 +3445,9 @@ function create_fragment$K(ctx) {
|
|
|
3426
3445
|
attr(div, "data-testid",
|
|
3427
3446
|
/*testid*/
|
|
3428
3447
|
ctx[6]);
|
|
3448
|
+
toggle_class(div, "medium",
|
|
3449
|
+
/*isMediumCallout*/
|
|
3450
|
+
ctx[9]);
|
|
3429
3451
|
},
|
|
3430
3452
|
|
|
3431
3453
|
m(target, anchor) {
|
|
@@ -3437,15 +3459,30 @@ function create_fragment$K(ctx) {
|
|
|
3437
3459
|
if (if_block) if_block.m(span1, null);
|
|
3438
3460
|
append(span1, t1);
|
|
3439
3461
|
append(span1, slot);
|
|
3462
|
+
|
|
3463
|
+
if (!mounted) {
|
|
3464
|
+
dispose = listen(window, "resize",
|
|
3465
|
+
/*onwindowresize*/
|
|
3466
|
+
ctx[12]);
|
|
3467
|
+
mounted = true;
|
|
3468
|
+
}
|
|
3440
3469
|
},
|
|
3441
3470
|
|
|
3442
3471
|
p(ctx, [dirty]) {
|
|
3443
3472
|
if (dirty &
|
|
3444
3473
|
/*iconType*/
|
|
3445
|
-
|
|
3474
|
+
1024) {
|
|
3446
3475
|
set_custom_element_data(goa_icon, "type",
|
|
3447
3476
|
/*iconType*/
|
|
3448
|
-
ctx[
|
|
3477
|
+
ctx[10]);
|
|
3478
|
+
}
|
|
3479
|
+
|
|
3480
|
+
if (dirty &
|
|
3481
|
+
/*iconSize*/
|
|
3482
|
+
256) {
|
|
3483
|
+
set_custom_element_data(goa_icon, "size",
|
|
3484
|
+
/*iconSize*/
|
|
3485
|
+
ctx[8]);
|
|
3449
3486
|
}
|
|
3450
3487
|
|
|
3451
3488
|
if (dirty &
|
|
@@ -3500,6 +3537,14 @@ function create_fragment$K(ctx) {
|
|
|
3500
3537
|
/*testid*/
|
|
3501
3538
|
ctx[6]);
|
|
3502
3539
|
}
|
|
3540
|
+
|
|
3541
|
+
if (dirty &
|
|
3542
|
+
/*isMediumCallout*/
|
|
3543
|
+
512) {
|
|
3544
|
+
toggle_class(div, "medium",
|
|
3545
|
+
/*isMediumCallout*/
|
|
3546
|
+
ctx[9]);
|
|
3547
|
+
}
|
|
3503
3548
|
},
|
|
3504
3549
|
|
|
3505
3550
|
i: noop,
|
|
@@ -3508,14 +3553,18 @@ function create_fragment$K(ctx) {
|
|
|
3508
3553
|
d(detaching) {
|
|
3509
3554
|
if (detaching) detach(div);
|
|
3510
3555
|
if (if_block) if_block.d();
|
|
3556
|
+
mounted = false;
|
|
3557
|
+
dispose();
|
|
3511
3558
|
}
|
|
3512
3559
|
|
|
3513
3560
|
};
|
|
3514
3561
|
}
|
|
3515
3562
|
|
|
3516
3563
|
function instance$E($$self, $$props, $$invalidate) {
|
|
3564
|
+
let isMediumCallout;
|
|
3517
3565
|
let iconType;
|
|
3518
3566
|
const [Types, validateType] = typeValidator("Callout type", ["emergency", "important", "information", "event", "success"], true);
|
|
3567
|
+
const [CalloutSizes, validateCalloutSize] = typeValidator("Callout size", ["medium", "large"]);
|
|
3519
3568
|
let {
|
|
3520
3569
|
mt = null
|
|
3521
3570
|
} = $$props;
|
|
@@ -3528,6 +3577,9 @@ function instance$E($$self, $$props, $$invalidate) {
|
|
|
3528
3577
|
let {
|
|
3529
3578
|
ml = null
|
|
3530
3579
|
} = $$props;
|
|
3580
|
+
let {
|
|
3581
|
+
size = "large"
|
|
3582
|
+
} = $$props;
|
|
3531
3583
|
let {
|
|
3532
3584
|
type
|
|
3533
3585
|
} = $$props;
|
|
@@ -3537,35 +3589,52 @@ function instance$E($$self, $$props, $$invalidate) {
|
|
|
3537
3589
|
let {
|
|
3538
3590
|
testid = ""
|
|
3539
3591
|
} = $$props;
|
|
3592
|
+
let screenSize = 0;
|
|
3593
|
+
let iconSize = "medium";
|
|
3540
3594
|
onMount(() => {
|
|
3541
|
-
|
|
3595
|
+
validateCalloutSize(size);
|
|
3596
|
+
setTimeout(() => {
|
|
3597
|
+
validateType(type);
|
|
3598
|
+
$$invalidate(8, iconSize = isMediumCallout ? "small" : "medium");
|
|
3599
|
+
});
|
|
3542
3600
|
});
|
|
3543
3601
|
|
|
3602
|
+
function onwindowresize() {
|
|
3603
|
+
$$invalidate(7, screenSize = window.innerWidth);
|
|
3604
|
+
}
|
|
3605
|
+
|
|
3544
3606
|
$$self.$$set = $$props => {
|
|
3545
3607
|
if ('mt' in $$props) $$invalidate(0, mt = $$props.mt);
|
|
3546
3608
|
if ('mr' in $$props) $$invalidate(1, mr = $$props.mr);
|
|
3547
3609
|
if ('mb' in $$props) $$invalidate(2, mb = $$props.mb);
|
|
3548
3610
|
if ('ml' in $$props) $$invalidate(3, ml = $$props.ml);
|
|
3611
|
+
if ('size' in $$props) $$invalidate(11, size = $$props.size);
|
|
3549
3612
|
if ('type' in $$props) $$invalidate(4, type = $$props.type);
|
|
3550
3613
|
if ('heading' in $$props) $$invalidate(5, heading = $$props.heading);
|
|
3551
3614
|
if ('testid' in $$props) $$invalidate(6, testid = $$props.testid);
|
|
3552
3615
|
};
|
|
3553
3616
|
|
|
3554
3617
|
$$self.$$.update = () => {
|
|
3618
|
+
if ($$self.$$.dirty &
|
|
3619
|
+
/*screenSize, size*/
|
|
3620
|
+
2176) {
|
|
3621
|
+
$$invalidate(9, isMediumCallout = screenSize < 640 || size === "medium");
|
|
3622
|
+
}
|
|
3623
|
+
|
|
3555
3624
|
if ($$self.$$.dirty &
|
|
3556
3625
|
/*type*/
|
|
3557
3626
|
16) {
|
|
3558
|
-
$$invalidate(
|
|
3627
|
+
$$invalidate(10, iconType = type === "emergency" ? "warning" : type === "important" ? "alert-circle" : type === "information" ? "information-circle" : type === "success" ? "checkmark-circle" : type === "event" ? "calendar" : "");
|
|
3559
3628
|
}
|
|
3560
3629
|
};
|
|
3561
3630
|
|
|
3562
|
-
return [mt, mr, mb, ml, type, heading, testid, iconType];
|
|
3631
|
+
return [mt, mr, mb, ml, type, heading, testid, screenSize, iconSize, isMediumCallout, iconType, size, onwindowresize];
|
|
3563
3632
|
}
|
|
3564
3633
|
|
|
3565
3634
|
class Callout extends SvelteElement {
|
|
3566
3635
|
constructor(options) {
|
|
3567
3636
|
super();
|
|
3568
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.notification{display:flex;align-items:stretch;
|
|
3637
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.notification{display:flex;align-items:stretch;overflow:hidden;font:var(--goa-typography-body-m)}h3{font-size:var(--goa-font-size-7);line-height:var(--goa-line-height-2);font-weight:var(--goa-font-weight-regular);margin-top:var(--goa-space-none);margin-bottom:var(--goa-space-m)}.emergency{background-color:var(--goa-color-emergency-default)}.important{background-color:var(--goa-color-warning-default)}.information{background-color:var(--goa-color-info-default)}.event{background-color:var(--goa-color-info-default)}.success{background-color:var(--goa-color-success-default)}.icon{text-align:center;padding-top:var(--goa-space-l);padding-left:var(--goa-space-s);padding-right:var(--goa-space-s)}.content{flex:1 1 auto;background-color:var(--goa-color-greyscale-100);padding:var(--goa-space-l)}.notification.medium{font:var(--goa-typography-body-s);max-width:22rem}h3.medium{font:var(--goa-typography-heading-xs);margin-bottom:var(--goa-space-2xs)}.notification.medium .content{padding:var(--goa-space-s);margin-top:calc(-1 * var(--goa-space-3xs))}.notification.medium .icon{padding-top:var(--goa-space-s);padding-left:var(--goa-space-2xs);padding-right:var(--goa-space-2xs)}</style>`;
|
|
3569
3638
|
init(this, {
|
|
3570
3639
|
target: this.shadowRoot,
|
|
3571
3640
|
props: attribute_to_object(this.attributes),
|
|
@@ -3575,6 +3644,7 @@ class Callout extends SvelteElement {
|
|
|
3575
3644
|
mr: 1,
|
|
3576
3645
|
mb: 2,
|
|
3577
3646
|
ml: 3,
|
|
3647
|
+
size: 11,
|
|
3578
3648
|
type: 4,
|
|
3579
3649
|
heading: 5,
|
|
3580
3650
|
testid: 6
|
|
@@ -3593,7 +3663,7 @@ class Callout extends SvelteElement {
|
|
|
3593
3663
|
}
|
|
3594
3664
|
|
|
3595
3665
|
static get observedAttributes() {
|
|
3596
|
-
return ["mt", "mr", "mb", "ml", "type", "heading", "testid"];
|
|
3666
|
+
return ["mt", "mr", "mb", "ml", "size", "type", "heading", "testid"];
|
|
3597
3667
|
}
|
|
3598
3668
|
|
|
3599
3669
|
get mt() {
|
|
@@ -3640,6 +3710,17 @@ class Callout extends SvelteElement {
|
|
|
3640
3710
|
flush();
|
|
3641
3711
|
}
|
|
3642
3712
|
|
|
3713
|
+
get size() {
|
|
3714
|
+
return this.$$.ctx[11];
|
|
3715
|
+
}
|
|
3716
|
+
|
|
3717
|
+
set size(size) {
|
|
3718
|
+
this.$$set({
|
|
3719
|
+
size
|
|
3720
|
+
});
|
|
3721
|
+
flush();
|
|
3722
|
+
}
|
|
3723
|
+
|
|
3643
3724
|
get type() {
|
|
3644
3725
|
return this.$$.ctx[4];
|
|
3645
3726
|
}
|
|
@@ -10881,7 +10962,7 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
10881
10962
|
|
|
10882
10963
|
const _iconOverrides = {
|
|
10883
10964
|
pencil: `<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M16.1442 5.47956L12.5355 1.87088L13.7196 0.686776C14.0391 0.367257 14.4385 0.212197 14.9178 0.221594C15.3971 0.230992 15.7965 0.39545 16.116 0.714969L17.3283 1.92726C17.6478 2.24678 17.8076 2.64148 17.8076 3.11136C17.8076 3.58124 17.6478 3.97594 17.3283 4.29546L16.1442 5.47956ZM1.03951 17.8424C0.795173 17.8424 0.593125 17.7626 0.433365 17.6028C0.273605 17.443 0.193726 17.241 0.193726 16.9966V14.5721C0.193726 14.4593 0.212521 14.356 0.250112 14.262C0.287702 14.168 0.353485 14.074 0.447461 13.9801L11.4689 2.93435L15.0776 6.54303L4.05615 17.5887C3.96217 17.6827 3.8682 17.7485 3.77422 17.7861C3.68024 17.8236 3.57687 17.8424 3.4641 17.8424H1.03951Z" fill="currentcolor"/> </svg>`,
|
|
10884
|
-
checkmark: `<svg width="18" height="14" viewBox="0 0 18 14" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M6.20129 11.5368L15.9974 0.341265C16.3611 -0.0743717 16.9929 -0.116489 17.4085 0.247193C17.8241 0.610875 17.8663 1.24264 17.5026 1.65827L7.00258 13.6583C6.82032 13.8666 6.5599 13.99 6.28328 13.9992C6.00666 14.0084 5.7386 13.9026 5.54289 13.7069L1.04289 9.20688C0.652369 8.81635 0.652369 8.18319 1.04289 7.79266C1.43342 7.40214 2.06658 7.40214 2.45711 7.79266L6.20129 11.5368Z" fill="
|
|
10965
|
+
checkmark: `<svg width="18" height="14" viewBox="0 0 18 14" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M6.20129 11.5368L15.9974 0.341265C16.3611 -0.0743717 16.9929 -0.116489 17.4085 0.247193C17.8241 0.610875 17.8663 1.24264 17.5026 1.65827L7.00258 13.6583C6.82032 13.8666 6.5599 13.99 6.28328 13.9992C6.00666 14.0084 5.7386 13.9026 5.54289 13.7069L1.04289 9.20688C0.652369 8.81635 0.652369 8.18319 1.04289 7.79266C1.43342 7.40214 2.06658 7.40214 2.45711 7.79266L6.20129 11.5368Z" fill="currentcolor"/> </svg>`,
|
|
10885
10966
|
remove: `<svg width="16" height="20" viewBox="0 0 16 1" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M1.5 -0.000244141C0.947715 -0.000244141 0.5 0.447471 0.5 0.999756C0.5 1.55204 0.947715 1.99976 1.5 1.99976H15C15.5523 1.99976 16 1.55204 16 0.999756C16 0.447471 15.5523 -0.000244141 15 -0.000244141H1.5Z" fill="currentcolor"/> </svg>`,
|
|
10886
10967
|
"goa-file": `<svg width="39" height="48" viewBox="0 0 39 48" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0_1357_108691)"> <path d="M38.741 14C38.541 13.07 38.081 12.22 37.401 11.54L36.861 11L27.861 2L27.321 1.46C26.641 0.78 25.781 0.32 24.861 0.12C24.511 0.04 24.151 0 23.791 0H5.86096C3.10096 0 0.860962 2.24 0.860962 5V43C0.860962 45.76 3.10096 48 5.86096 48H33.861C36.621 48 38.861 45.76 38.861 43V15.07C38.861 14.71 38.811 14.35 38.741 14ZM35.041 12H29.871C28.221 12 26.871 10.65 26.871 9V3.83L35.041 12ZM36.871 43C36.871 44.65 35.521 46 33.871 46H5.87097C4.22097 46 2.87097 44.65 2.87097 43V5C2.87097 3.35 4.22097 2 5.87097 2H23.801C24.171 2 24.531 2.07 24.871 2.2V9C24.871 11.76 27.111 14 29.871 14H36.671C36.801 14.34 36.871 14.7 36.871 15.07V43Z" fill="currentcolor"/> </g> <defs> <clipPath id="clip0_1357_108691"><rect width="38" height="48" fill="white" transform="translate(0.861328)"/></clipPath></defs></svg>`,
|
|
10887
10968
|
"goa-text": `<svg width="39" height="48" viewBox="0 0 39 48" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M38.7953 14C38.5953 13.07 38.1353 12.22 37.4553 11.54L36.9153 11L27.9153 2L27.3753 1.46C26.6953 0.78 25.8353 0.32 24.9153 0.12C24.5653 0.04 24.2053 0 23.8453 0H5.91528C3.15528 0 0.915283 2.24 0.915283 5V43C0.915283 45.76 3.15528 48 5.91528 48H33.9153C36.6753 48 38.9153 45.76 38.9153 43V15.07C38.9153 14.71 38.8653 14.35 38.7953 14ZM35.0953 12H29.9253C28.2753 12 26.9253 10.65 26.9253 9V3.83L35.0953 12ZM36.9253 43C36.9253 44.65 35.5753 46 33.9253 46H5.91528C4.26528 46 2.91528 44.65 2.91528 43V5C2.91528 3.35 4.26528 2 5.91528 2H23.8453C24.2153 2 24.5753 2.07 24.9153 2.2V9C24.9153 11.76 27.1553 14 29.9153 14H36.7153C36.8453 14.34 36.9153 14.7 36.9153 15.07V43H36.9253Z" fill="currentcolor"/> <path d="M27.9153 34H11.9153C11.363 34 10.9153 34.4477 10.9153 35C10.9153 35.5523 11.363 36 11.9153 36H27.9153C28.4676 36 28.9153 35.5523 28.9153 35C28.9153 34.4477 28.4676 34 27.9153 34Z" fill="currentcolor"/> <path d="M27.9153 26H11.9153C11.363 26 10.9153 26.4477 10.9153 27C10.9153 27.5523 11.363 28 11.9153 28H27.9153C28.4676 28 28.9153 27.5523 28.9153 27C28.9153 26.4477 28.4676 26 27.9153 26Z" fill="currentcolor"/> </svg>`,
|
|
@@ -10925,7 +11006,7 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
10925
11006
|
class Icon extends SvelteElement {
|
|
10926
11007
|
constructor(options) {
|
|
10927
11008
|
super();
|
|
10928
|
-
this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center}ion-icon{pointer-events:none;width:100%;height:100%}.goa-icon{fill:var(--fill-color);color:var(--fill-color);opacity:var(--opacity);display:inline-flex;align-items:center;justify-content:center}.goa-icon:hover ion-icon{fill:var(--hover-color);color:var(--hover-color)}.goa-icon--small{width:1.25rem;height:1.25rem}.goa-icon--medium{width:1.5rem;height:1.5rem}.goa-icon--large{width:2rem;height:2rem}.goa-icon--xlarge{width:2.5rem;height:2.5rem}.goa-icon:has(.icon-override){height:fit-content}.icon-override{display:flex;flex-direction:column;align-items:center}.
|
|
11009
|
+
this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center}ion-icon{pointer-events:none;width:100%;height:100%}.goa-icon{fill:var(--fill-color);color:var(--fill-color);opacity:var(--opacity);display:inline-flex;align-items:center;justify-content:center}.goa-icon:hover ion-icon{fill:var(--hover-color);color:var(--hover-color)}.goa-icon--small{width:1.25rem;height:1.25rem}.goa-icon--medium{width:1.5rem;height:1.5rem}.goa-icon--large{width:2rem;height:2rem}.goa-icon--xlarge{width:2.5rem;height:2.5rem}.goa-icon:has(.icon-override){height:fit-content}.icon-override{display:flex;flex-direction:column;align-items:center}.inverted *{color:#fff;fill:#fff}</style>`;
|
|
10929
11010
|
init(this, {
|
|
10930
11011
|
target: this.shadowRoot,
|
|
10931
11012
|
props: attribute_to_object(this.attributes),
|
|
@@ -19376,7 +19457,7 @@ function create_else_block$1(ctx) {
|
|
|
19376
19457
|
}
|
|
19377
19458
|
|
|
19378
19459
|
};
|
|
19379
|
-
} // (
|
|
19460
|
+
} // (158:38)
|
|
19380
19461
|
|
|
19381
19462
|
|
|
19382
19463
|
function create_if_block_3$2(ctx) {
|
|
@@ -19398,7 +19479,7 @@ function create_if_block_3$2(ctx) {
|
|
|
19398
19479
|
}
|
|
19399
19480
|
|
|
19400
19481
|
};
|
|
19401
|
-
} // (
|
|
19482
|
+
} // (156:36)
|
|
19402
19483
|
|
|
19403
19484
|
|
|
19404
19485
|
function create_if_block_2$2(ctx) {
|
|
@@ -19421,7 +19502,7 @@ function create_if_block_2$2(ctx) {
|
|
|
19421
19502
|
}
|
|
19422
19503
|
|
|
19423
19504
|
};
|
|
19424
|
-
} // (
|
|
19505
|
+
} // (154:4) {#if _isCurrent}
|
|
19425
19506
|
|
|
19426
19507
|
|
|
19427
19508
|
function create_if_block_1$2(ctx) {
|
|
@@ -19443,7 +19524,7 @@ function create_if_block_1$2(ctx) {
|
|
|
19443
19524
|
}
|
|
19444
19525
|
|
|
19445
19526
|
};
|
|
19446
|
-
} // (
|
|
19527
|
+
} // (166:4) {#if status === "incomplete"}
|
|
19447
19528
|
|
|
19448
19529
|
|
|
19449
19530
|
function create_if_block$2(ctx) {
|
|
@@ -19794,7 +19875,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
19794
19875
|
class FormStep extends SvelteElement {
|
|
19795
19876
|
constructor(options) {
|
|
19796
19877
|
super();
|
|
19797
|
-
this.shadowRoot.innerHTML = `<style>input[type=checkbox]{position:absolute;left:-9999px}[role="listitem"]{display:flex;box-sizing:border-box;height:100%;text-align:center;flex-direction:column;align-items:center;padding:var(--goa-space-l)}[role="listitem"]:not([aria-disabled="true"]):not([aria-current="step"]):focus-within,[role="listitem"]:not([aria-disabled="true"]):not([aria-current="step"]):focus,[role="listitem"]:not([aria-disabled="true"]):not([aria-current="step"]):active{outline:var(--goa-color-interactive-focus) solid var(--goa-border-width-l)}[role="listitem"]:not([aria-disabled="true"]):not([aria-current="step"]):hover{background-color:rgba(0,0,0,0.05);cursor:pointer}.status{flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:999px;border:4px solid var(--goa-color-interactive-default);background:var(--goa-color-greyscale-white);height:2.5rem;width:2.5rem}[aria-current="step"] .text{font-weight:var(--goa-font-weight-bold)
|
|
19878
|
+
this.shadowRoot.innerHTML = `<style>input[type=checkbox]{position:absolute;left:-9999px}[role="listitem"]{display:flex;box-sizing:border-box;height:100%;text-align:center;flex-direction:column;align-items:center;padding:var(--goa-space-l)}[role="listitem"]:not([aria-disabled="true"]):not([aria-current="step"]):focus-within,[role="listitem"]:not([aria-disabled="true"]):not([aria-current="step"]):focus,[role="listitem"]:not([aria-disabled="true"]):not([aria-current="step"]):active{outline:var(--goa-color-interactive-focus) solid var(--goa-border-width-l)}[role="listitem"]:not([aria-disabled="true"]):not([aria-current="step"]):hover{background-color:rgba(0,0,0,0.05);cursor:pointer}.status{flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:999px;border:4px solid var(--goa-color-interactive-default);background:var(--goa-color-greyscale-white);height:2.5rem;width:2.5rem}.status>*{fill:var(--fill-color, var(--goa-color-interactive-default));color:var(--fill-color, var(--goa-color-interactive-default))}[aria-current="step"] .text{font-weight:var(--goa-font-weight-bold)
|
|
19798
19879
|
}[data-status=complete] .status{background:var(--goa-color-interactive-default)}[aria-current="step"][data-status=complete] .status{background:var(--goa-color-greyscale-white)}.step-number{margin-bottom:var(--font-valign-fix);font-weight:var(--goa-font-weight-bold);color:var(--goa-color-text-secondary)}[role="listitem"]:not(
|
|
19799
19880
|
[data-status=complete],
|
|
19800
19881
|
[data-status=incomplete],
|
|
@@ -22019,6 +22100,7 @@ const GoAButton = ({
|
|
|
22019
22100
|
const GoACallout = ({
|
|
22020
22101
|
heading,
|
|
22021
22102
|
type: _type = "information",
|
|
22103
|
+
size: _size = "large",
|
|
22022
22104
|
testId,
|
|
22023
22105
|
children,
|
|
22024
22106
|
mt,
|
|
@@ -22029,6 +22111,7 @@ const GoACallout = ({
|
|
|
22029
22111
|
return jsx("goa-callout", Object.assign({
|
|
22030
22112
|
heading: heading,
|
|
22031
22113
|
type: _type,
|
|
22114
|
+
size: _size,
|
|
22032
22115
|
mt: mt,
|
|
22033
22116
|
mr: mr,
|
|
22034
22117
|
mb: mb,
|
package/react-components.umd.js
CHANGED
|
@@ -3397,6 +3397,9 @@
|
|
|
3397
3397
|
t = text(
|
|
3398
3398
|
/*heading*/
|
|
3399
3399
|
ctx[5]);
|
|
3400
|
+
toggle_class(h3, "medium",
|
|
3401
|
+
/*isMediumCallout*/
|
|
3402
|
+
ctx[9]);
|
|
3400
3403
|
},
|
|
3401
3404
|
|
|
3402
3405
|
m(target, anchor) {
|
|
@@ -3410,6 +3413,14 @@
|
|
|
3410
3413
|
32) set_data(t,
|
|
3411
3414
|
/*heading*/
|
|
3412
3415
|
ctx[5]);
|
|
3416
|
+
|
|
3417
|
+
if (dirty &
|
|
3418
|
+
/*isMediumCallout*/
|
|
3419
|
+
512) {
|
|
3420
|
+
toggle_class(h3, "medium",
|
|
3421
|
+
/*isMediumCallout*/
|
|
3422
|
+
ctx[9]);
|
|
3423
|
+
}
|
|
3413
3424
|
},
|
|
3414
3425
|
|
|
3415
3426
|
d(detaching) {
|
|
@@ -3430,6 +3441,11 @@
|
|
|
3430
3441
|
let t1;
|
|
3431
3442
|
let slot;
|
|
3432
3443
|
let div_style_value;
|
|
3444
|
+
let mounted;
|
|
3445
|
+
let dispose;
|
|
3446
|
+
add_render_callback(
|
|
3447
|
+
/*onwindowresize*/
|
|
3448
|
+
ctx[12]);
|
|
3433
3449
|
let if_block =
|
|
3434
3450
|
/*heading*/
|
|
3435
3451
|
ctx[5] && create_if_block$l(ctx);
|
|
@@ -3446,7 +3462,10 @@
|
|
|
3446
3462
|
this.c = noop;
|
|
3447
3463
|
set_custom_element_data(goa_icon, "type",
|
|
3448
3464
|
/*iconType*/
|
|
3449
|
-
ctx[
|
|
3465
|
+
ctx[10]);
|
|
3466
|
+
set_custom_element_data(goa_icon, "size",
|
|
3467
|
+
/*iconSize*/
|
|
3468
|
+
ctx[8]);
|
|
3450
3469
|
set_custom_element_data(goa_icon, "inverted", goa_icon_inverted_value =
|
|
3451
3470
|
/*type*/
|
|
3452
3471
|
ctx[4] === "important" ? "false" : "true");
|
|
@@ -3467,6 +3486,9 @@
|
|
|
3467
3486
|
attr(div, "data-testid",
|
|
3468
3487
|
/*testid*/
|
|
3469
3488
|
ctx[6]);
|
|
3489
|
+
toggle_class(div, "medium",
|
|
3490
|
+
/*isMediumCallout*/
|
|
3491
|
+
ctx[9]);
|
|
3470
3492
|
},
|
|
3471
3493
|
|
|
3472
3494
|
m(target, anchor) {
|
|
@@ -3478,15 +3500,30 @@
|
|
|
3478
3500
|
if (if_block) if_block.m(span1, null);
|
|
3479
3501
|
append(span1, t1);
|
|
3480
3502
|
append(span1, slot);
|
|
3503
|
+
|
|
3504
|
+
if (!mounted) {
|
|
3505
|
+
dispose = listen(window, "resize",
|
|
3506
|
+
/*onwindowresize*/
|
|
3507
|
+
ctx[12]);
|
|
3508
|
+
mounted = true;
|
|
3509
|
+
}
|
|
3481
3510
|
},
|
|
3482
3511
|
|
|
3483
3512
|
p(ctx, [dirty]) {
|
|
3484
3513
|
if (dirty &
|
|
3485
3514
|
/*iconType*/
|
|
3486
|
-
|
|
3515
|
+
1024) {
|
|
3487
3516
|
set_custom_element_data(goa_icon, "type",
|
|
3488
3517
|
/*iconType*/
|
|
3489
|
-
ctx[
|
|
3518
|
+
ctx[10]);
|
|
3519
|
+
}
|
|
3520
|
+
|
|
3521
|
+
if (dirty &
|
|
3522
|
+
/*iconSize*/
|
|
3523
|
+
256) {
|
|
3524
|
+
set_custom_element_data(goa_icon, "size",
|
|
3525
|
+
/*iconSize*/
|
|
3526
|
+
ctx[8]);
|
|
3490
3527
|
}
|
|
3491
3528
|
|
|
3492
3529
|
if (dirty &
|
|
@@ -3541,6 +3578,14 @@
|
|
|
3541
3578
|
/*testid*/
|
|
3542
3579
|
ctx[6]);
|
|
3543
3580
|
}
|
|
3581
|
+
|
|
3582
|
+
if (dirty &
|
|
3583
|
+
/*isMediumCallout*/
|
|
3584
|
+
512) {
|
|
3585
|
+
toggle_class(div, "medium",
|
|
3586
|
+
/*isMediumCallout*/
|
|
3587
|
+
ctx[9]);
|
|
3588
|
+
}
|
|
3544
3589
|
},
|
|
3545
3590
|
|
|
3546
3591
|
i: noop,
|
|
@@ -3549,14 +3594,18 @@
|
|
|
3549
3594
|
d(detaching) {
|
|
3550
3595
|
if (detaching) detach(div);
|
|
3551
3596
|
if (if_block) if_block.d();
|
|
3597
|
+
mounted = false;
|
|
3598
|
+
dispose();
|
|
3552
3599
|
}
|
|
3553
3600
|
|
|
3554
3601
|
};
|
|
3555
3602
|
}
|
|
3556
3603
|
|
|
3557
3604
|
function instance$E($$self, $$props, $$invalidate) {
|
|
3605
|
+
let isMediumCallout;
|
|
3558
3606
|
let iconType;
|
|
3559
3607
|
const [Types, validateType] = typeValidator("Callout type", ["emergency", "important", "information", "event", "success"], true);
|
|
3608
|
+
const [CalloutSizes, validateCalloutSize] = typeValidator("Callout size", ["medium", "large"]);
|
|
3560
3609
|
let {
|
|
3561
3610
|
mt = null
|
|
3562
3611
|
} = $$props;
|
|
@@ -3569,6 +3618,9 @@
|
|
|
3569
3618
|
let {
|
|
3570
3619
|
ml = null
|
|
3571
3620
|
} = $$props;
|
|
3621
|
+
let {
|
|
3622
|
+
size = "large"
|
|
3623
|
+
} = $$props;
|
|
3572
3624
|
let {
|
|
3573
3625
|
type
|
|
3574
3626
|
} = $$props;
|
|
@@ -3578,35 +3630,52 @@
|
|
|
3578
3630
|
let {
|
|
3579
3631
|
testid = ""
|
|
3580
3632
|
} = $$props;
|
|
3633
|
+
let screenSize = 0;
|
|
3634
|
+
let iconSize = "medium";
|
|
3581
3635
|
onMount(() => {
|
|
3582
|
-
|
|
3636
|
+
validateCalloutSize(size);
|
|
3637
|
+
setTimeout(() => {
|
|
3638
|
+
validateType(type);
|
|
3639
|
+
$$invalidate(8, iconSize = isMediumCallout ? "small" : "medium");
|
|
3640
|
+
});
|
|
3583
3641
|
});
|
|
3584
3642
|
|
|
3643
|
+
function onwindowresize() {
|
|
3644
|
+
$$invalidate(7, screenSize = window.innerWidth);
|
|
3645
|
+
}
|
|
3646
|
+
|
|
3585
3647
|
$$self.$$set = $$props => {
|
|
3586
3648
|
if ('mt' in $$props) $$invalidate(0, mt = $$props.mt);
|
|
3587
3649
|
if ('mr' in $$props) $$invalidate(1, mr = $$props.mr);
|
|
3588
3650
|
if ('mb' in $$props) $$invalidate(2, mb = $$props.mb);
|
|
3589
3651
|
if ('ml' in $$props) $$invalidate(3, ml = $$props.ml);
|
|
3652
|
+
if ('size' in $$props) $$invalidate(11, size = $$props.size);
|
|
3590
3653
|
if ('type' in $$props) $$invalidate(4, type = $$props.type);
|
|
3591
3654
|
if ('heading' in $$props) $$invalidate(5, heading = $$props.heading);
|
|
3592
3655
|
if ('testid' in $$props) $$invalidate(6, testid = $$props.testid);
|
|
3593
3656
|
};
|
|
3594
3657
|
|
|
3595
3658
|
$$self.$$.update = () => {
|
|
3659
|
+
if ($$self.$$.dirty &
|
|
3660
|
+
/*screenSize, size*/
|
|
3661
|
+
2176) {
|
|
3662
|
+
$$invalidate(9, isMediumCallout = screenSize < 640 || size === "medium");
|
|
3663
|
+
}
|
|
3664
|
+
|
|
3596
3665
|
if ($$self.$$.dirty &
|
|
3597
3666
|
/*type*/
|
|
3598
3667
|
16) {
|
|
3599
|
-
$$invalidate(
|
|
3668
|
+
$$invalidate(10, iconType = type === "emergency" ? "warning" : type === "important" ? "alert-circle" : type === "information" ? "information-circle" : type === "success" ? "checkmark-circle" : type === "event" ? "calendar" : "");
|
|
3600
3669
|
}
|
|
3601
3670
|
};
|
|
3602
3671
|
|
|
3603
|
-
return [mt, mr, mb, ml, type, heading, testid, iconType];
|
|
3672
|
+
return [mt, mr, mb, ml, type, heading, testid, screenSize, iconSize, isMediumCallout, iconType, size, onwindowresize];
|
|
3604
3673
|
}
|
|
3605
3674
|
|
|
3606
3675
|
class Callout extends SvelteElement {
|
|
3607
3676
|
constructor(options) {
|
|
3608
3677
|
super();
|
|
3609
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.notification{display:flex;align-items:stretch;
|
|
3678
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.notification{display:flex;align-items:stretch;overflow:hidden;font:var(--goa-typography-body-m)}h3{font-size:var(--goa-font-size-7);line-height:var(--goa-line-height-2);font-weight:var(--goa-font-weight-regular);margin-top:var(--goa-space-none);margin-bottom:var(--goa-space-m)}.emergency{background-color:var(--goa-color-emergency-default)}.important{background-color:var(--goa-color-warning-default)}.information{background-color:var(--goa-color-info-default)}.event{background-color:var(--goa-color-info-default)}.success{background-color:var(--goa-color-success-default)}.icon{text-align:center;padding-top:var(--goa-space-l);padding-left:var(--goa-space-s);padding-right:var(--goa-space-s)}.content{flex:1 1 auto;background-color:var(--goa-color-greyscale-100);padding:var(--goa-space-l)}.notification.medium{font:var(--goa-typography-body-s);max-width:22rem}h3.medium{font:var(--goa-typography-heading-xs);margin-bottom:var(--goa-space-2xs)}.notification.medium .content{padding:var(--goa-space-s);margin-top:calc(-1 * var(--goa-space-3xs))}.notification.medium .icon{padding-top:var(--goa-space-s);padding-left:var(--goa-space-2xs);padding-right:var(--goa-space-2xs)}</style>`;
|
|
3610
3679
|
init(this, {
|
|
3611
3680
|
target: this.shadowRoot,
|
|
3612
3681
|
props: attribute_to_object(this.attributes),
|
|
@@ -3616,6 +3685,7 @@
|
|
|
3616
3685
|
mr: 1,
|
|
3617
3686
|
mb: 2,
|
|
3618
3687
|
ml: 3,
|
|
3688
|
+
size: 11,
|
|
3619
3689
|
type: 4,
|
|
3620
3690
|
heading: 5,
|
|
3621
3691
|
testid: 6
|
|
@@ -3634,7 +3704,7 @@
|
|
|
3634
3704
|
}
|
|
3635
3705
|
|
|
3636
3706
|
static get observedAttributes() {
|
|
3637
|
-
return ["mt", "mr", "mb", "ml", "type", "heading", "testid"];
|
|
3707
|
+
return ["mt", "mr", "mb", "ml", "size", "type", "heading", "testid"];
|
|
3638
3708
|
}
|
|
3639
3709
|
|
|
3640
3710
|
get mt() {
|
|
@@ -3681,6 +3751,17 @@
|
|
|
3681
3751
|
flush();
|
|
3682
3752
|
}
|
|
3683
3753
|
|
|
3754
|
+
get size() {
|
|
3755
|
+
return this.$$.ctx[11];
|
|
3756
|
+
}
|
|
3757
|
+
|
|
3758
|
+
set size(size) {
|
|
3759
|
+
this.$$set({
|
|
3760
|
+
size
|
|
3761
|
+
});
|
|
3762
|
+
flush();
|
|
3763
|
+
}
|
|
3764
|
+
|
|
3684
3765
|
get type() {
|
|
3685
3766
|
return this.$$.ctx[4];
|
|
3686
3767
|
}
|
|
@@ -10927,7 +11008,7 @@
|
|
|
10927
11008
|
|
|
10928
11009
|
const _iconOverrides = {
|
|
10929
11010
|
pencil: `<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M16.1442 5.47956L12.5355 1.87088L13.7196 0.686776C14.0391 0.367257 14.4385 0.212197 14.9178 0.221594C15.3971 0.230992 15.7965 0.39545 16.116 0.714969L17.3283 1.92726C17.6478 2.24678 17.8076 2.64148 17.8076 3.11136C17.8076 3.58124 17.6478 3.97594 17.3283 4.29546L16.1442 5.47956ZM1.03951 17.8424C0.795173 17.8424 0.593125 17.7626 0.433365 17.6028C0.273605 17.443 0.193726 17.241 0.193726 16.9966V14.5721C0.193726 14.4593 0.212521 14.356 0.250112 14.262C0.287702 14.168 0.353485 14.074 0.447461 13.9801L11.4689 2.93435L15.0776 6.54303L4.05615 17.5887C3.96217 17.6827 3.8682 17.7485 3.77422 17.7861C3.68024 17.8236 3.57687 17.8424 3.4641 17.8424H1.03951Z" fill="currentcolor"/> </svg>`,
|
|
10930
|
-
checkmark: `<svg width="18" height="14" viewBox="0 0 18 14" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M6.20129 11.5368L15.9974 0.341265C16.3611 -0.0743717 16.9929 -0.116489 17.4085 0.247193C17.8241 0.610875 17.8663 1.24264 17.5026 1.65827L7.00258 13.6583C6.82032 13.8666 6.5599 13.99 6.28328 13.9992C6.00666 14.0084 5.7386 13.9026 5.54289 13.7069L1.04289 9.20688C0.652369 8.81635 0.652369 8.18319 1.04289 7.79266C1.43342 7.40214 2.06658 7.40214 2.45711 7.79266L6.20129 11.5368Z" fill="
|
|
11011
|
+
checkmark: `<svg width="18" height="14" viewBox="0 0 18 14" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M6.20129 11.5368L15.9974 0.341265C16.3611 -0.0743717 16.9929 -0.116489 17.4085 0.247193C17.8241 0.610875 17.8663 1.24264 17.5026 1.65827L7.00258 13.6583C6.82032 13.8666 6.5599 13.99 6.28328 13.9992C6.00666 14.0084 5.7386 13.9026 5.54289 13.7069L1.04289 9.20688C0.652369 8.81635 0.652369 8.18319 1.04289 7.79266C1.43342 7.40214 2.06658 7.40214 2.45711 7.79266L6.20129 11.5368Z" fill="currentcolor"/> </svg>`,
|
|
10931
11012
|
remove: `<svg width="16" height="20" viewBox="0 0 16 1" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M1.5 -0.000244141C0.947715 -0.000244141 0.5 0.447471 0.5 0.999756C0.5 1.55204 0.947715 1.99976 1.5 1.99976H15C15.5523 1.99976 16 1.55204 16 0.999756C16 0.447471 15.5523 -0.000244141 15 -0.000244141H1.5Z" fill="currentcolor"/> </svg>`,
|
|
10932
11013
|
"goa-file": `<svg width="39" height="48" viewBox="0 0 39 48" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0_1357_108691)"> <path d="M38.741 14C38.541 13.07 38.081 12.22 37.401 11.54L36.861 11L27.861 2L27.321 1.46C26.641 0.78 25.781 0.32 24.861 0.12C24.511 0.04 24.151 0 23.791 0H5.86096C3.10096 0 0.860962 2.24 0.860962 5V43C0.860962 45.76 3.10096 48 5.86096 48H33.861C36.621 48 38.861 45.76 38.861 43V15.07C38.861 14.71 38.811 14.35 38.741 14ZM35.041 12H29.871C28.221 12 26.871 10.65 26.871 9V3.83L35.041 12ZM36.871 43C36.871 44.65 35.521 46 33.871 46H5.87097C4.22097 46 2.87097 44.65 2.87097 43V5C2.87097 3.35 4.22097 2 5.87097 2H23.801C24.171 2 24.531 2.07 24.871 2.2V9C24.871 11.76 27.111 14 29.871 14H36.671C36.801 14.34 36.871 14.7 36.871 15.07V43Z" fill="currentcolor"/> </g> <defs> <clipPath id="clip0_1357_108691"><rect width="38" height="48" fill="white" transform="translate(0.861328)"/></clipPath></defs></svg>`,
|
|
10933
11014
|
"goa-text": `<svg width="39" height="48" viewBox="0 0 39 48" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M38.7953 14C38.5953 13.07 38.1353 12.22 37.4553 11.54L36.9153 11L27.9153 2L27.3753 1.46C26.6953 0.78 25.8353 0.32 24.9153 0.12C24.5653 0.04 24.2053 0 23.8453 0H5.91528C3.15528 0 0.915283 2.24 0.915283 5V43C0.915283 45.76 3.15528 48 5.91528 48H33.9153C36.6753 48 38.9153 45.76 38.9153 43V15.07C38.9153 14.71 38.8653 14.35 38.7953 14ZM35.0953 12H29.9253C28.2753 12 26.9253 10.65 26.9253 9V3.83L35.0953 12ZM36.9253 43C36.9253 44.65 35.5753 46 33.9253 46H5.91528C4.26528 46 2.91528 44.65 2.91528 43V5C2.91528 3.35 4.26528 2 5.91528 2H23.8453C24.2153 2 24.5753 2.07 24.9153 2.2V9C24.9153 11.76 27.1553 14 29.9153 14H36.7153C36.8453 14.34 36.9153 14.7 36.9153 15.07V43H36.9253Z" fill="currentcolor"/> <path d="M27.9153 34H11.9153C11.363 34 10.9153 34.4477 10.9153 35C10.9153 35.5523 11.363 36 11.9153 36H27.9153C28.4676 36 28.9153 35.5523 28.9153 35C28.9153 34.4477 28.4676 34 27.9153 34Z" fill="currentcolor"/> <path d="M27.9153 26H11.9153C11.363 26 10.9153 26.4477 10.9153 27C10.9153 27.5523 11.363 28 11.9153 28H27.9153C28.4676 28 28.9153 27.5523 28.9153 27C28.9153 26.4477 28.4676 26 27.9153 26Z" fill="currentcolor"/> </svg>`,
|
|
@@ -10971,7 +11052,7 @@
|
|
|
10971
11052
|
class Icon extends SvelteElement {
|
|
10972
11053
|
constructor(options) {
|
|
10973
11054
|
super();
|
|
10974
|
-
this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center}ion-icon{pointer-events:none;width:100%;height:100%}.goa-icon{fill:var(--fill-color);color:var(--fill-color);opacity:var(--opacity);display:inline-flex;align-items:center;justify-content:center}.goa-icon:hover ion-icon{fill:var(--hover-color);color:var(--hover-color)}.goa-icon--small{width:1.25rem;height:1.25rem}.goa-icon--medium{width:1.5rem;height:1.5rem}.goa-icon--large{width:2rem;height:2rem}.goa-icon--xlarge{width:2.5rem;height:2.5rem}.goa-icon:has(.icon-override){height:fit-content}.icon-override{display:flex;flex-direction:column;align-items:center}.
|
|
11055
|
+
this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center}ion-icon{pointer-events:none;width:100%;height:100%}.goa-icon{fill:var(--fill-color);color:var(--fill-color);opacity:var(--opacity);display:inline-flex;align-items:center;justify-content:center}.goa-icon:hover ion-icon{fill:var(--hover-color);color:var(--hover-color)}.goa-icon--small{width:1.25rem;height:1.25rem}.goa-icon--medium{width:1.5rem;height:1.5rem}.goa-icon--large{width:2rem;height:2rem}.goa-icon--xlarge{width:2.5rem;height:2.5rem}.goa-icon:has(.icon-override){height:fit-content}.icon-override{display:flex;flex-direction:column;align-items:center}.inverted *{color:#fff;fill:#fff}</style>`;
|
|
10975
11056
|
init(this, {
|
|
10976
11057
|
target: this.shadowRoot,
|
|
10977
11058
|
props: attribute_to_object(this.attributes),
|
|
@@ -19428,7 +19509,7 @@
|
|
|
19428
19509
|
}
|
|
19429
19510
|
|
|
19430
19511
|
};
|
|
19431
|
-
} // (
|
|
19512
|
+
} // (158:38)
|
|
19432
19513
|
|
|
19433
19514
|
|
|
19434
19515
|
function create_if_block_3$2(ctx) {
|
|
@@ -19450,7 +19531,7 @@
|
|
|
19450
19531
|
}
|
|
19451
19532
|
|
|
19452
19533
|
};
|
|
19453
|
-
} // (
|
|
19534
|
+
} // (156:36)
|
|
19454
19535
|
|
|
19455
19536
|
|
|
19456
19537
|
function create_if_block_2$2(ctx) {
|
|
@@ -19473,7 +19554,7 @@
|
|
|
19473
19554
|
}
|
|
19474
19555
|
|
|
19475
19556
|
};
|
|
19476
|
-
} // (
|
|
19557
|
+
} // (154:4) {#if _isCurrent}
|
|
19477
19558
|
|
|
19478
19559
|
|
|
19479
19560
|
function create_if_block_1$2(ctx) {
|
|
@@ -19495,7 +19576,7 @@
|
|
|
19495
19576
|
}
|
|
19496
19577
|
|
|
19497
19578
|
};
|
|
19498
|
-
} // (
|
|
19579
|
+
} // (166:4) {#if status === "incomplete"}
|
|
19499
19580
|
|
|
19500
19581
|
|
|
19501
19582
|
function create_if_block$2(ctx) {
|
|
@@ -19846,7 +19927,7 @@
|
|
|
19846
19927
|
class FormStep extends SvelteElement {
|
|
19847
19928
|
constructor(options) {
|
|
19848
19929
|
super();
|
|
19849
|
-
this.shadowRoot.innerHTML = `<style>input[type=checkbox]{position:absolute;left:-9999px}[role="listitem"]{display:flex;box-sizing:border-box;height:100%;text-align:center;flex-direction:column;align-items:center;padding:var(--goa-space-l)}[role="listitem"]:not([aria-disabled="true"]):not([aria-current="step"]):focus-within,[role="listitem"]:not([aria-disabled="true"]):not([aria-current="step"]):focus,[role="listitem"]:not([aria-disabled="true"]):not([aria-current="step"]):active{outline:var(--goa-color-interactive-focus) solid var(--goa-border-width-l)}[role="listitem"]:not([aria-disabled="true"]):not([aria-current="step"]):hover{background-color:rgba(0,0,0,0.05);cursor:pointer}.status{flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:999px;border:4px solid var(--goa-color-interactive-default);background:var(--goa-color-greyscale-white);height:2.5rem;width:2.5rem}[aria-current="step"] .text{font-weight:var(--goa-font-weight-bold)
|
|
19930
|
+
this.shadowRoot.innerHTML = `<style>input[type=checkbox]{position:absolute;left:-9999px}[role="listitem"]{display:flex;box-sizing:border-box;height:100%;text-align:center;flex-direction:column;align-items:center;padding:var(--goa-space-l)}[role="listitem"]:not([aria-disabled="true"]):not([aria-current="step"]):focus-within,[role="listitem"]:not([aria-disabled="true"]):not([aria-current="step"]):focus,[role="listitem"]:not([aria-disabled="true"]):not([aria-current="step"]):active{outline:var(--goa-color-interactive-focus) solid var(--goa-border-width-l)}[role="listitem"]:not([aria-disabled="true"]):not([aria-current="step"]):hover{background-color:rgba(0,0,0,0.05);cursor:pointer}.status{flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:999px;border:4px solid var(--goa-color-interactive-default);background:var(--goa-color-greyscale-white);height:2.5rem;width:2.5rem}.status>*{fill:var(--fill-color, var(--goa-color-interactive-default));color:var(--fill-color, var(--goa-color-interactive-default))}[aria-current="step"] .text{font-weight:var(--goa-font-weight-bold)
|
|
19850
19931
|
}[data-status=complete] .status{background:var(--goa-color-interactive-default)}[aria-current="step"][data-status=complete] .status{background:var(--goa-color-greyscale-white)}.step-number{margin-bottom:var(--font-valign-fix);font-weight:var(--goa-font-weight-bold);color:var(--goa-color-text-secondary)}[role="listitem"]:not(
|
|
19851
19932
|
[data-status=complete],
|
|
19852
19933
|
[data-status=incomplete],
|
|
@@ -22103,6 +22184,8 @@
|
|
|
22103
22184
|
var heading = _a.heading,
|
|
22104
22185
|
_b = _a.type,
|
|
22105
22186
|
type = _b === void 0 ? "information" : _b,
|
|
22187
|
+
_c = _a.size,
|
|
22188
|
+
size = _c === void 0 ? "large" : _c,
|
|
22106
22189
|
testId = _a.testId,
|
|
22107
22190
|
children = _a.children,
|
|
22108
22191
|
mt = _a.mt,
|
|
@@ -22112,6 +22195,7 @@
|
|
|
22112
22195
|
return jsxRuntime.jsx("goa-callout", __assign({
|
|
22113
22196
|
heading: heading,
|
|
22114
22197
|
type: type,
|
|
22198
|
+
size: size,
|
|
22115
22199
|
mt: mt,
|
|
22116
22200
|
mr: mr,
|
|
22117
22201
|
mb: mb,
|