@abgov/react-components 4.0.0-alpha.34 → 4.0.0-alpha.35

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/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * IMPORTANT: Do NOT export experimental components in this file.
3
3
  */
4
4
  import '@abgov/web-components';
5
- import { GoABadge, GoAInfoBadge, GoAEmergencyBadge, GoASuccessBadge, GoAWarningBadge } from './lib/badge/badge';
5
+ import { GoABadge, GoAInfoBadge, GoAEmergencyBadge, GoASuccessBadge, GoAImportantBadge } from './lib/badge/badge';
6
6
  import { GoAInput, GoAInputText, GoAInputPassword, GoAInputDate, GoAInputTime, GoAInputDateTime, GoAInputEmail, GoAInputSearch, GoAInputUrl, GoAInputTel, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputRange } from './lib/input/input';
7
7
  import { GoAAppHeader } from './lib/app-header/app-header';
8
8
  import { GoAButton } from './lib/button/button';
@@ -37,4 +37,4 @@ export * from './lib/page/page';
37
37
  export * from './lib/divider/divider';
38
38
  export type { GoAIconType };
39
39
  export type { GoABadgeType };
40
- export { GoAAppHeader, GoABadge, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoAChip, GoACircularProgress, GoAContainer, GoADropdown, GoADropdownOption, GoAEmergencyBadge, GoAFlexRow, GoAFormItem, GoAHeroBanner, GoAHeroBannerActions, GoAIcon, GoAIconButton, GoAInfoBadge, GoAInput, GoAInputDate, GoAInputDateTime, GoAInputEmail, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputPassword, GoAInputRange, GoAInputSearch, GoAInputTel, GoAInputText, GoAInputTime, GoAInputUrl, GoAMicrositeHeader, GoAModal, GoANotification, GoAPageBlock, GoARadioGroup, GoARadioItem, GoASkeleton, GoASpinner, GoASuccessBadge, GoATextArea, GoAWarningBadge, };
40
+ export { GoAAppHeader, GoABadge, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoAChip, GoACircularProgress, GoAContainer, GoADropdown, GoADropdownOption, GoAEmergencyBadge, GoAFlexRow, GoAFormItem, GoAHeroBanner, GoAHeroBannerActions, GoAIcon, GoAIconButton, GoAInfoBadge, GoAInput, GoAInputDate, GoAInputDateTime, GoAInputEmail, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputPassword, GoAInputRange, GoAInputSearch, GoAInputTel, GoAInputText, GoAInputTime, GoAInputUrl, GoAMicrositeHeader, GoAModal, GoANotification, GoAPageBlock, GoARadioGroup, GoARadioItem, GoASkeleton, GoASpinner, GoASuccessBadge, GoATextArea, GoAImportantBadge, };
@@ -1,15 +1,14 @@
1
1
  import React, { FC } from 'react';
2
- import { GoAIconType } from '../icons';
3
- export declare type GoABadgeType = 'information' | 'success' | 'warning' | 'emergency' | 'dark' | 'midtone' | 'light' | 'inactive';
2
+ export declare type GoABadgeType = 'information' | 'success' | 'important' | 'emergency' | 'dark' | 'midtone' | 'light';
4
3
  interface GoABadgeProps {
5
4
  type: GoABadgeType;
6
- icon?: GoAIconType;
5
+ icon?: boolean;
7
6
  content?: string;
8
7
  testId?: string;
9
8
  }
10
9
  interface WCProps {
11
10
  type: GoABadgeType;
12
- icon?: GoAIconType;
11
+ icon?: boolean;
13
12
  content?: string;
14
13
  testid?: string;
15
14
  }
@@ -23,6 +22,6 @@ declare global {
23
22
  export declare const GoABadge: FC<GoABadgeProps>;
24
23
  export declare const GoAInfoBadge: FC<GoABadgeProps>;
25
24
  export declare const GoASuccessBadge: FC<GoABadgeProps>;
26
- export declare const GoAWarningBadge: FC<GoABadgeProps>;
25
+ export declare const GoAImportantBadge: FC<GoABadgeProps>;
27
26
  export declare const GoAEmergencyBadge: FC<GoABadgeProps>;
28
27
  export {};
@@ -3,7 +3,7 @@ import './button.css';
3
3
  import { GoAIconType } from '../icons';
4
4
  export declare type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'start';
5
5
  export declare type ButtonSize = 'compact' | '';
6
- export declare type ButtonVariant = '' | 'danger';
6
+ export declare type ButtonVariant = '' | 'destructive';
7
7
  interface WCProps {
8
8
  type?: ButtonType;
9
9
  size?: ButtonSize;
@@ -8,12 +8,12 @@ declare global {
8
8
  }
9
9
  export declare type ServiceLevel = 'alpha' | 'beta' | 'live';
10
10
  interface WebComponentProps {
11
- level: ServiceLevel;
11
+ type: ServiceLevel;
12
12
  version?: string;
13
13
  feedbackurl?: string;
14
14
  }
15
15
  export interface HeaderProps {
16
- level: ServiceLevel;
16
+ type: ServiceLevel;
17
17
  version?: string;
18
18
  feedbackUrl?: string;
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.0.0-alpha.34",
3
+ "version": "4.0.0-alpha.35",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -1674,7 +1674,7 @@ function instance$x($$self, $$props, $$invalidate) {
1674
1674
  1) {
1675
1675
  $$invalidate(4, iconType = {
1676
1676
  success: "checkmark-circle",
1677
- warning: "alert-circle",
1677
+ important: "alert-circle",
1678
1678
  information: "information-circle",
1679
1679
  emergency: "warning",
1680
1680
  dark: "information-circle",
@@ -1690,7 +1690,7 @@ function instance$x($$self, $$props, $$invalidate) {
1690
1690
  class Badge extends SvelteElement {
1691
1691
  constructor(options) {
1692
1692
  super();
1693
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-badge{display:inline-flex;align-items:center;border-radius:0.25rem;padding:3px 0.5rem;gap:0.25rem;font-weight:var(--fw-regular);margin:0.25rem}.icon-only{padding:0.25rem}.goa-badge-content{text-transform:capitalize;font-size:var(--fs-sm);line-height:var(--lh-sm);padding-bottom:var(--font-valign-fix)}.goa-badge.badge-information{background-color:var(--color-gray-100);color:var(--goa-color-status-info)}.goa-badge.badge-success{background-color:var(--goa-color-status-success);color:var(--goa-color-text-light)}.goa-badge.badge-warning{background-color:var(--goa-color-status-warning);color:var(--goa-color-text)}.goa-badge.badge-emergency{background-color:var(--goa-color-status-emergency);color:var(--goa-color-text-light)}.goa-badge.badge-dark{background-color:var(--color-black);color:var(--goa-color-text-light)}.goa-badge.badge-midtone{background-color:var(--color-gray-600);color:var(--goa-color-text-light)}.goa-badge.badge-light{background-color:var(--color-white);color:var(--goa-color-text)}</style>`;
1693
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-badge{display:inline-flex;align-items:center;border-radius:0.25rem;padding:3px 0.5rem;gap:0.25rem;font-weight:var(--fw-regular);margin:0.25rem}.icon-only{padding:0.25rem}.goa-badge-content{text-transform:capitalize;font-size:var(--fs-sm);line-height:var(--lh-sm);padding-bottom:var(--font-valign-fix)}.goa-badge.badge-information{background-color:var(--color-gray-100);color:var(--goa-color-status-info)}.goa-badge.badge-success{background-color:var(--goa-color-status-success);color:var(--goa-color-text-light)}.goa-badge.badge-important{background-color:var(--goa-color-status-warning);color:var(--goa-color-text)}.goa-badge.badge-emergency{background-color:var(--goa-color-status-emergency);color:var(--goa-color-text-light)}.goa-badge.badge-dark{background-color:var(--color-black);color:var(--goa-color-text-light)}.goa-badge.badge-midtone{background-color:var(--color-gray-600);color:var(--goa-color-text-light)}.goa-badge.badge-light{background-color:var(--color-white);color:var(--goa-color-text)}</style>`;
1694
1694
  init(this, {
1695
1695
  target: this.shadowRoot,
1696
1696
  props: attribute_to_object(this.attributes),
@@ -9957,7 +9957,7 @@ function create_if_block_3(ctx) {
9957
9957
  div1 = element("div");
9958
9958
  div1.innerHTML = `An official site of the <a href="https://www.alberta.ca/index.aspx">Alberta Government</a>`;
9959
9959
  attr(div0, "class", "service-level service-level--live");
9960
- attr(div1, "data-testid", "level");
9960
+ attr(div1, "data-testid", "type");
9961
9961
  attr(div1, "class", "site-text");
9962
9962
  },
9963
9963
 
@@ -9974,13 +9974,13 @@ function create_if_block_3(ctx) {
9974
9974
  }
9975
9975
 
9976
9976
  };
9977
- } // (34:2) {#if ["alpha", "beta"].includes(level)}
9977
+ } // (34:2) {#if ["alpha", "beta"].includes(type)}
9978
9978
 
9979
9979
 
9980
9980
  function create_if_block_1$3(ctx) {
9981
9981
  let div0;
9982
9982
  let t0_value = capitalize(
9983
- /*level*/
9983
+ /*type*/
9984
9984
  ctx[0]) + "";
9985
9985
  let t0;
9986
9986
  let div0_class_value;
@@ -10003,9 +10003,9 @@ function create_if_block_1$3(ctx) {
10003
10003
  a.textContent = "Alberta Government";
10004
10004
  t4 = text(" service\n ");
10005
10005
  if (if_block) if_block.c();
10006
- attr(div0, "data-testid", "level");
10006
+ attr(div0, "data-testid", "type");
10007
10007
  attr(div0, "class", div0_class_value = "service-level service-level--" +
10008
- /*level*/
10008
+ /*type*/
10009
10009
  ctx[0].toLowerCase());
10010
10010
  attr(a, "href", "https://www.alberta.ca/index.aspx");
10011
10011
  attr(div1, "data-testid", "site-text");
@@ -10025,15 +10025,15 @@ function create_if_block_1$3(ctx) {
10025
10025
 
10026
10026
  p(ctx, dirty) {
10027
10027
  if (dirty &
10028
- /*level*/
10028
+ /*type*/
10029
10029
  1 && t0_value !== (t0_value = capitalize(
10030
- /*level*/
10030
+ /*type*/
10031
10031
  ctx[0]) + "")) set_data(t0, t0_value);
10032
10032
 
10033
10033
  if (dirty &
10034
- /*level*/
10034
+ /*type*/
10035
10035
  1 && div0_class_value !== (div0_class_value = "service-level service-level--" +
10036
- /*level*/
10036
+ /*type*/
10037
10037
  ctx[0].toLowerCase())) {
10038
10038
  attr(div0, "class", div0_class_value);
10039
10039
  }
@@ -10144,13 +10144,13 @@ function create_fragment$c(ctx) {
10144
10144
  let header;
10145
10145
  let t0;
10146
10146
  let show_if = ["alpha", "beta"].includes(
10147
- /*level*/
10147
+ /*type*/
10148
10148
  ctx[0]);
10149
10149
  let t1;
10150
10150
  let div;
10151
10151
  let t2;
10152
10152
  let if_block0 =
10153
- /*level*/
10153
+ /*type*/
10154
10154
  ctx[0] === "live" && create_if_block_3();
10155
10155
  let if_block1 = show_if && create_if_block_1$3(ctx);
10156
10156
  let if_block2 =
@@ -10184,7 +10184,7 @@ function create_fragment$c(ctx) {
10184
10184
 
10185
10185
  p(ctx, [dirty]) {
10186
10186
  if (
10187
- /*level*/
10187
+ /*type*/
10188
10188
  ctx[0] === "live") {
10189
10189
  if (if_block0) ;else {
10190
10190
  if_block0 = create_if_block_3();
@@ -10197,9 +10197,9 @@ function create_fragment$c(ctx) {
10197
10197
  }
10198
10198
 
10199
10199
  if (dirty &
10200
- /*level*/
10200
+ /*type*/
10201
10201
  1) show_if = ["alpha", "beta"].includes(
10202
- /*level*/
10202
+ /*type*/
10203
10203
  ctx[0]);
10204
10204
 
10205
10205
  if (show_if) {
@@ -10251,7 +10251,7 @@ function capitalize(val) {
10251
10251
 
10252
10252
  function instance$a($$self, $$props, $$invalidate) {
10253
10253
  let {
10254
- level
10254
+ type
10255
10255
  } = $$props;
10256
10256
  let {
10257
10257
  version
@@ -10261,24 +10261,24 @@ function instance$a($$self, $$props, $$invalidate) {
10261
10261
  } = $$props;
10262
10262
 
10263
10263
  $$self.$$set = $$props => {
10264
- if ('level' in $$props) $$invalidate(0, level = $$props.level);
10264
+ if ('type' in $$props) $$invalidate(0, type = $$props.type);
10265
10265
  if ('version' in $$props) $$invalidate(1, version = $$props.version);
10266
10266
  if ('feedbackurl' in $$props) $$invalidate(2, feedbackurl = $$props.feedbackurl);
10267
10267
  };
10268
10268
 
10269
- return [level, version, feedbackurl];
10269
+ return [type, version, feedbackurl];
10270
10270
  }
10271
10271
 
10272
10272
  class MicrositeHeader extends SvelteElement {
10273
10273
  constructor(options) {
10274
10274
  super();
10275
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}a{color:var(--goa-color-interactive);cursor:pointer}a:hover{color:var(--goa-color-interactive--hover)}a:focus{outline-width:thin;outline-style:solid;outline-color:var(--goa-color-interactive--hover);outline-offset:0px}.goa-official-site-header{display:flex;font-size:var(--fs-sm);background-color:var(--color-gray-100);align-items:center;justify-content:space-between;padding:0.5rem 1.5rem}@media(max-width: 640px){.goa-official-site-header{padding:0.5rem 1rem;align-items:start}}.spacer{flex:1 1 auto}.version{color:var(--goa-color-text-secondary);padding-left:1rem;line-height:1.25rem}.service-level{font-weight:bold;padding:0.25rem;display:flex;margin-right:1rem;line-height:initial}.service-level--alpha{background-color:var(--goa-color-status-warning);color:var(--goa-color-text)}.service-level--beta{background-color:var(--goa-color-brand);color:var(--goa-color-text-light)}.service-level--live{padding:0}.site-text{color:var(--goa-color-text);line-height:1.25rem}</style>`;
10275
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}a{color:var(--goa-color-interactive);cursor:pointer}a:hover{color:var(--goa-color-interactive--hover)}a:focus{outline-width:thin;outline-style:solid;outline-color:var(--goa-color-interactive--hover);outline-offset:0px}.goa-official-site-header{display:flex;font-size:var(--fs-sm);background-color:var(--color-gray-100);align-items:center;justify-content:space-between;padding:0.5rem 1.5rem}@media(max-width: 640px){.goa-official-site-header{padding:0.5rem 1rem;align-items:start}}.spacer{flex:1 1 auto}.version{color:var(--goa-color-text-secondary);padding-left:1rem;line-height:1.25rem}.service-type{font-weight:bold;padding:0.25rem;display:flex;margin-right:1rem;line-height:initial}.service-type--alpha{background-color:var(--goa-color-status-warning);color:var(--goa-color-text)}.service-type--beta{background-color:var(--goa-color-brand);color:var(--goa-color-text-light)}.service-type--live{padding:0}.site-text{color:var(--goa-color-text);line-height:1.25rem}</style>`;
10276
10276
  init(this, {
10277
10277
  target: this.shadowRoot,
10278
10278
  props: attribute_to_object(this.attributes),
10279
10279
  customElement: true
10280
10280
  }, instance$a, create_fragment$c, safe_not_equal, {
10281
- level: 0,
10281
+ type: 0,
10282
10282
  version: 1,
10283
10283
  feedbackurl: 2
10284
10284
  }, null);
@@ -10296,16 +10296,16 @@ class MicrositeHeader extends SvelteElement {
10296
10296
  }
10297
10297
 
10298
10298
  static get observedAttributes() {
10299
- return ["level", "version", "feedbackurl"];
10299
+ return ["type", "version", "feedbackurl"];
10300
10300
  }
10301
10301
 
10302
- get level() {
10302
+ get type() {
10303
10303
  return this.$$.ctx[0];
10304
10304
  }
10305
10305
 
10306
- set level(level) {
10306
+ set type(type) {
10307
10307
  this.$$set({
10308
- level
10308
+ type
10309
10309
  });
10310
10310
  flush();
10311
10311
  }
@@ -13766,44 +13766,48 @@ const GoABadge = ({
13766
13766
  };
13767
13767
  const GoAInfoBadge = ({
13768
13768
  content,
13769
- testId
13769
+ testId,
13770
+ icon
13770
13771
  }) => {
13771
13772
  return jsx(GoABadge, {
13772
13773
  type: "information",
13773
- icon: "information-circle",
13774
+ icon: icon,
13774
13775
  content: content,
13775
13776
  testId: testId
13776
13777
  }, void 0);
13777
13778
  };
13778
13779
  const GoASuccessBadge = ({
13779
13780
  content,
13780
- testId
13781
+ testId,
13782
+ icon
13781
13783
  }) => {
13782
13784
  return jsx(GoABadge, {
13783
13785
  type: "success",
13784
- icon: "checkmark-circle",
13786
+ icon: icon,
13785
13787
  content: content,
13786
13788
  testId: testId
13787
13789
  }, void 0);
13788
13790
  };
13789
- const GoAWarningBadge = ({
13791
+ const GoAImportantBadge = ({
13790
13792
  content,
13791
- testId
13793
+ testId,
13794
+ icon
13792
13795
  }) => {
13793
13796
  return jsx(GoABadge, {
13794
- type: "warning",
13795
- icon: "warning",
13797
+ type: "important",
13798
+ icon: icon,
13796
13799
  content: content,
13797
13800
  testId: testId
13798
13801
  }, void 0);
13799
13802
  };
13800
13803
  const GoAEmergencyBadge = ({
13801
13804
  content,
13802
- testId
13805
+ testId,
13806
+ icon
13803
13807
  }) => {
13804
13808
  return jsx(GoABadge, {
13805
13809
  type: "emergency",
13806
- icon: "alert-circle",
13810
+ icon: icon,
13807
13811
  content: content,
13808
13812
  testId: testId
13809
13813
  }, void 0);
@@ -14378,12 +14382,12 @@ const GoAIconButton = ({
14378
14382
  };
14379
14383
 
14380
14384
  const GoAMicrositeHeader = ({
14381
- level,
14385
+ type,
14382
14386
  version,
14383
14387
  feedbackUrl
14384
14388
  }) => {
14385
14389
  return jsx("goa-microsite-header", {
14386
- level: level,
14390
+ type: type,
14387
14391
  version: version,
14388
14392
  feedbackurl: feedbackUrl
14389
14393
  }, void 0);
@@ -14648,4 +14652,4 @@ function GoADivider(props) {
14648
14652
  }, void 0);
14649
14653
  }
14650
14654
 
14651
- export { GoAAppFooter, GoAAppFooterMetaSection, GoAAppFooterNavSection, GoAAppHeader, GoABadge, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoAChip, GoACircularProgress, GoAContainer, GoADivider, GoADropdown, GoADropdownOption, GoAEmergencyBadge, GoAFlexCol, GoAFlexRow, GoAFormItem, GoAHeroBanner, GoAHeroBannerActions, GoAIcon, GoAIconButton, GoAInfoBadge, GoAInput, GoAInputDate, GoAInputDateTime, GoAInputEmail, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputPassword, GoAInputRange, GoAInputSearch, GoAInputTel, GoAInputText, GoAInputTime, GoAInputUrl, GoAMicrositeHeader, GoAModal, GoANotification, GoAPage, GoAPageBlock, GoARadioGroup, GoARadioItem, GoASkeleton, GoASpinner, GoASuccessBadge, GoATextArea, GoAWarningBadge };
14655
+ export { GoAAppFooter, GoAAppFooterMetaSection, GoAAppFooterNavSection, GoAAppHeader, GoABadge, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoAChip, GoACircularProgress, GoAContainer, GoADivider, GoADropdown, GoADropdownOption, GoAEmergencyBadge, GoAFlexCol, GoAFlexRow, GoAFormItem, GoAHeroBanner, GoAHeroBannerActions, GoAIcon, GoAIconButton, GoAImportantBadge, GoAInfoBadge, GoAInput, GoAInputDate, GoAInputDateTime, GoAInputEmail, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputPassword, GoAInputRange, GoAInputSearch, GoAInputTel, GoAInputText, GoAInputTime, GoAInputUrl, GoAMicrositeHeader, GoAModal, GoANotification, GoAPage, GoAPageBlock, GoARadioGroup, GoARadioItem, GoASkeleton, GoASpinner, GoASuccessBadge, GoATextArea };
@@ -1730,7 +1730,7 @@
1730
1730
  1) {
1731
1731
  $$invalidate(4, iconType = {
1732
1732
  success: "checkmark-circle",
1733
- warning: "alert-circle",
1733
+ important: "alert-circle",
1734
1734
  information: "information-circle",
1735
1735
  emergency: "warning",
1736
1736
  dark: "information-circle",
@@ -1746,7 +1746,7 @@
1746
1746
  class Badge extends SvelteElement {
1747
1747
  constructor(options) {
1748
1748
  super();
1749
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-badge{display:inline-flex;align-items:center;border-radius:0.25rem;padding:3px 0.5rem;gap:0.25rem;font-weight:var(--fw-regular);margin:0.25rem}.icon-only{padding:0.25rem}.goa-badge-content{text-transform:capitalize;font-size:var(--fs-sm);line-height:var(--lh-sm);padding-bottom:var(--font-valign-fix)}.goa-badge.badge-information{background-color:var(--color-gray-100);color:var(--goa-color-status-info)}.goa-badge.badge-success{background-color:var(--goa-color-status-success);color:var(--goa-color-text-light)}.goa-badge.badge-warning{background-color:var(--goa-color-status-warning);color:var(--goa-color-text)}.goa-badge.badge-emergency{background-color:var(--goa-color-status-emergency);color:var(--goa-color-text-light)}.goa-badge.badge-dark{background-color:var(--color-black);color:var(--goa-color-text-light)}.goa-badge.badge-midtone{background-color:var(--color-gray-600);color:var(--goa-color-text-light)}.goa-badge.badge-light{background-color:var(--color-white);color:var(--goa-color-text)}</style>`;
1749
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-badge{display:inline-flex;align-items:center;border-radius:0.25rem;padding:3px 0.5rem;gap:0.25rem;font-weight:var(--fw-regular);margin:0.25rem}.icon-only{padding:0.25rem}.goa-badge-content{text-transform:capitalize;font-size:var(--fs-sm);line-height:var(--lh-sm);padding-bottom:var(--font-valign-fix)}.goa-badge.badge-information{background-color:var(--color-gray-100);color:var(--goa-color-status-info)}.goa-badge.badge-success{background-color:var(--goa-color-status-success);color:var(--goa-color-text-light)}.goa-badge.badge-important{background-color:var(--goa-color-status-warning);color:var(--goa-color-text)}.goa-badge.badge-emergency{background-color:var(--goa-color-status-emergency);color:var(--goa-color-text-light)}.goa-badge.badge-dark{background-color:var(--color-black);color:var(--goa-color-text-light)}.goa-badge.badge-midtone{background-color:var(--color-gray-600);color:var(--goa-color-text-light)}.goa-badge.badge-light{background-color:var(--color-white);color:var(--goa-color-text)}</style>`;
1750
1750
  init(this, {
1751
1751
  target: this.shadowRoot,
1752
1752
  props: attribute_to_object(this.attributes),
@@ -10003,7 +10003,7 @@
10003
10003
  div1 = element("div");
10004
10004
  div1.innerHTML = `An official site of the <a href="https://www.alberta.ca/index.aspx">Alberta Government</a>`;
10005
10005
  attr(div0, "class", "service-level service-level--live");
10006
- attr(div1, "data-testid", "level");
10006
+ attr(div1, "data-testid", "type");
10007
10007
  attr(div1, "class", "site-text");
10008
10008
  },
10009
10009
 
@@ -10020,13 +10020,13 @@
10020
10020
  }
10021
10021
 
10022
10022
  };
10023
- } // (34:2) {#if ["alpha", "beta"].includes(level)}
10023
+ } // (34:2) {#if ["alpha", "beta"].includes(type)}
10024
10024
 
10025
10025
 
10026
10026
  function create_if_block_1$3(ctx) {
10027
10027
  let div0;
10028
10028
  let t0_value = capitalize(
10029
- /*level*/
10029
+ /*type*/
10030
10030
  ctx[0]) + "";
10031
10031
  let t0;
10032
10032
  let div0_class_value;
@@ -10049,9 +10049,9 @@
10049
10049
  a.textContent = "Alberta Government";
10050
10050
  t4 = text(" service\n ");
10051
10051
  if (if_block) if_block.c();
10052
- attr(div0, "data-testid", "level");
10052
+ attr(div0, "data-testid", "type");
10053
10053
  attr(div0, "class", div0_class_value = "service-level service-level--" +
10054
- /*level*/
10054
+ /*type*/
10055
10055
  ctx[0].toLowerCase());
10056
10056
  attr(a, "href", "https://www.alberta.ca/index.aspx");
10057
10057
  attr(div1, "data-testid", "site-text");
@@ -10071,15 +10071,15 @@
10071
10071
 
10072
10072
  p(ctx, dirty) {
10073
10073
  if (dirty &
10074
- /*level*/
10074
+ /*type*/
10075
10075
  1 && t0_value !== (t0_value = capitalize(
10076
- /*level*/
10076
+ /*type*/
10077
10077
  ctx[0]) + "")) set_data(t0, t0_value);
10078
10078
 
10079
10079
  if (dirty &
10080
- /*level*/
10080
+ /*type*/
10081
10081
  1 && div0_class_value !== (div0_class_value = "service-level service-level--" +
10082
- /*level*/
10082
+ /*type*/
10083
10083
  ctx[0].toLowerCase())) {
10084
10084
  attr(div0, "class", div0_class_value);
10085
10085
  }
@@ -10190,13 +10190,13 @@
10190
10190
  let header;
10191
10191
  let t0;
10192
10192
  let show_if = ["alpha", "beta"].includes(
10193
- /*level*/
10193
+ /*type*/
10194
10194
  ctx[0]);
10195
10195
  let t1;
10196
10196
  let div;
10197
10197
  let t2;
10198
10198
  let if_block0 =
10199
- /*level*/
10199
+ /*type*/
10200
10200
  ctx[0] === "live" && create_if_block_3();
10201
10201
  let if_block1 = show_if && create_if_block_1$3(ctx);
10202
10202
  let if_block2 =
@@ -10230,7 +10230,7 @@
10230
10230
 
10231
10231
  p(ctx, [dirty]) {
10232
10232
  if (
10233
- /*level*/
10233
+ /*type*/
10234
10234
  ctx[0] === "live") {
10235
10235
  if (if_block0) ;else {
10236
10236
  if_block0 = create_if_block_3();
@@ -10243,9 +10243,9 @@
10243
10243
  }
10244
10244
 
10245
10245
  if (dirty &
10246
- /*level*/
10246
+ /*type*/
10247
10247
  1) show_if = ["alpha", "beta"].includes(
10248
- /*level*/
10248
+ /*type*/
10249
10249
  ctx[0]);
10250
10250
 
10251
10251
  if (show_if) {
@@ -10297,7 +10297,7 @@
10297
10297
 
10298
10298
  function instance$a($$self, $$props, $$invalidate) {
10299
10299
  let {
10300
- level
10300
+ type
10301
10301
  } = $$props;
10302
10302
  let {
10303
10303
  version
@@ -10307,24 +10307,24 @@
10307
10307
  } = $$props;
10308
10308
 
10309
10309
  $$self.$$set = $$props => {
10310
- if ('level' in $$props) $$invalidate(0, level = $$props.level);
10310
+ if ('type' in $$props) $$invalidate(0, type = $$props.type);
10311
10311
  if ('version' in $$props) $$invalidate(1, version = $$props.version);
10312
10312
  if ('feedbackurl' in $$props) $$invalidate(2, feedbackurl = $$props.feedbackurl);
10313
10313
  };
10314
10314
 
10315
- return [level, version, feedbackurl];
10315
+ return [type, version, feedbackurl];
10316
10316
  }
10317
10317
 
10318
10318
  class MicrositeHeader extends SvelteElement {
10319
10319
  constructor(options) {
10320
10320
  super();
10321
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}a{color:var(--goa-color-interactive);cursor:pointer}a:hover{color:var(--goa-color-interactive--hover)}a:focus{outline-width:thin;outline-style:solid;outline-color:var(--goa-color-interactive--hover);outline-offset:0px}.goa-official-site-header{display:flex;font-size:var(--fs-sm);background-color:var(--color-gray-100);align-items:center;justify-content:space-between;padding:0.5rem 1.5rem}@media(max-width: 640px){.goa-official-site-header{padding:0.5rem 1rem;align-items:start}}.spacer{flex:1 1 auto}.version{color:var(--goa-color-text-secondary);padding-left:1rem;line-height:1.25rem}.service-level{font-weight:bold;padding:0.25rem;display:flex;margin-right:1rem;line-height:initial}.service-level--alpha{background-color:var(--goa-color-status-warning);color:var(--goa-color-text)}.service-level--beta{background-color:var(--goa-color-brand);color:var(--goa-color-text-light)}.service-level--live{padding:0}.site-text{color:var(--goa-color-text);line-height:1.25rem}</style>`;
10321
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}a{color:var(--goa-color-interactive);cursor:pointer}a:hover{color:var(--goa-color-interactive--hover)}a:focus{outline-width:thin;outline-style:solid;outline-color:var(--goa-color-interactive--hover);outline-offset:0px}.goa-official-site-header{display:flex;font-size:var(--fs-sm);background-color:var(--color-gray-100);align-items:center;justify-content:space-between;padding:0.5rem 1.5rem}@media(max-width: 640px){.goa-official-site-header{padding:0.5rem 1rem;align-items:start}}.spacer{flex:1 1 auto}.version{color:var(--goa-color-text-secondary);padding-left:1rem;line-height:1.25rem}.service-type{font-weight:bold;padding:0.25rem;display:flex;margin-right:1rem;line-height:initial}.service-type--alpha{background-color:var(--goa-color-status-warning);color:var(--goa-color-text)}.service-type--beta{background-color:var(--goa-color-brand);color:var(--goa-color-text-light)}.service-type--live{padding:0}.site-text{color:var(--goa-color-text);line-height:1.25rem}</style>`;
10322
10322
  init(this, {
10323
10323
  target: this.shadowRoot,
10324
10324
  props: attribute_to_object(this.attributes),
10325
10325
  customElement: true
10326
10326
  }, instance$a, create_fragment$c, safe_not_equal, {
10327
- level: 0,
10327
+ type: 0,
10328
10328
  version: 1,
10329
10329
  feedbackurl: 2
10330
10330
  }, null);
@@ -10342,16 +10342,16 @@
10342
10342
  }
10343
10343
 
10344
10344
  static get observedAttributes() {
10345
- return ["level", "version", "feedbackurl"];
10345
+ return ["type", "version", "feedbackurl"];
10346
10346
  }
10347
10347
 
10348
- get level() {
10348
+ get type() {
10349
10349
  return this.$$.ctx[0];
10350
10350
  }
10351
10351
 
10352
- set level(level) {
10352
+ set type(type) {
10353
10353
  this.$$set({
10354
- level
10354
+ type
10355
10355
  });
10356
10356
  flush();
10357
10357
  }
@@ -13813,40 +13813,44 @@
13813
13813
  };
13814
13814
  var GoAInfoBadge = function GoAInfoBadge(_a) {
13815
13815
  var content = _a.content,
13816
- testId = _a.testId;
13816
+ testId = _a.testId,
13817
+ icon = _a.icon;
13817
13818
  return jsxRuntime.jsx(GoABadge, {
13818
13819
  type: "information",
13819
- icon: "information-circle",
13820
+ icon: icon,
13820
13821
  content: content,
13821
13822
  testId: testId
13822
13823
  }, void 0);
13823
13824
  };
13824
13825
  var GoASuccessBadge = function GoASuccessBadge(_a) {
13825
13826
  var content = _a.content,
13826
- testId = _a.testId;
13827
+ testId = _a.testId,
13828
+ icon = _a.icon;
13827
13829
  return jsxRuntime.jsx(GoABadge, {
13828
13830
  type: "success",
13829
- icon: "checkmark-circle",
13831
+ icon: icon,
13830
13832
  content: content,
13831
13833
  testId: testId
13832
13834
  }, void 0);
13833
13835
  };
13834
- var GoAWarningBadge = function GoAWarningBadge(_a) {
13836
+ var GoAImportantBadge = function GoAImportantBadge(_a) {
13835
13837
  var content = _a.content,
13836
- testId = _a.testId;
13838
+ testId = _a.testId,
13839
+ icon = _a.icon;
13837
13840
  return jsxRuntime.jsx(GoABadge, {
13838
- type: "warning",
13839
- icon: "warning",
13841
+ type: "important",
13842
+ icon: icon,
13840
13843
  content: content,
13841
13844
  testId: testId
13842
13845
  }, void 0);
13843
13846
  };
13844
13847
  var GoAEmergencyBadge = function GoAEmergencyBadge(_a) {
13845
13848
  var content = _a.content,
13846
- testId = _a.testId;
13849
+ testId = _a.testId,
13850
+ icon = _a.icon;
13847
13851
  return jsxRuntime.jsx(GoABadge, {
13848
13852
  type: "emergency",
13849
- icon: "alert-circle",
13853
+ icon: icon,
13850
13854
  content: content,
13851
13855
  testId: testId
13852
13856
  }, void 0);
@@ -14430,11 +14434,11 @@
14430
14434
  };
14431
14435
 
14432
14436
  var GoAMicrositeHeader = function GoAMicrositeHeader(_a) {
14433
- var level = _a.level,
14437
+ var type = _a.type,
14434
14438
  version = _a.version,
14435
14439
  feedbackUrl = _a.feedbackUrl;
14436
14440
  return jsxRuntime.jsx("goa-microsite-header", {
14437
- level: level,
14441
+ type: type,
14438
14442
  version: version,
14439
14443
  feedbackurl: feedbackUrl
14440
14444
  }, void 0);
@@ -14716,6 +14720,7 @@
14716
14720
  exports.GoAHeroBannerActions = GoAHeroBannerActions;
14717
14721
  exports.GoAIcon = GoAIcon;
14718
14722
  exports.GoAIconButton = GoAIconButton;
14723
+ exports.GoAImportantBadge = GoAImportantBadge;
14719
14724
  exports.GoAInfoBadge = GoAInfoBadge;
14720
14725
  exports.GoAInput = GoAInput;
14721
14726
  exports.GoAInputDate = GoAInputDate;
@@ -14742,7 +14747,6 @@
14742
14747
  exports.GoASpinner = GoASpinner;
14743
14748
  exports.GoASuccessBadge = GoASuccessBadge;
14744
14749
  exports.GoATextArea = GoATextArea;
14745
- exports.GoAWarningBadge = GoAWarningBadge;
14746
14750
 
14747
14751
  Object.defineProperty(exports, '__esModule', { value: true });
14748
14752