@abgov/web-components 1.0.0-alpha.107 → 1.0.0-alpha.109

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/web-components",
3
- "version": "1.0.0-alpha.107",
3
+ "version": "1.0.0-alpha.109",
4
4
  "description": "Government of Alberta - UI Web components",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -2904,7 +2904,7 @@ function create_if_block_1$8(ctx) {
2904
2904
  };
2905
2905
  }
2906
2906
 
2907
- // (42:2) {#if _deletable}
2907
+ // (44:2) {#if _deletable}
2908
2908
  function create_if_block$e(ctx) {
2909
2909
  let goa_icon;
2910
2910
  let goa_icon_fillcolor_value;
@@ -2918,27 +2918,27 @@ function create_if_block$e(ctx) {
2918
2918
  set_custom_element_data(goa_icon, "theme", "filled");
2919
2919
  set_custom_element_data(goa_icon, "type", "close-circle");
2920
2920
 
2921
- set_custom_element_data(goa_icon, "fillcolor", goa_icon_fillcolor_value = /*_error*/ ctx[4]
2921
+ set_custom_element_data(goa_icon, "fillcolor", goa_icon_fillcolor_value = /*_error*/ ctx[5]
2922
2922
  ? "var(--goa-color-status-emergency)"
2923
- : /*_hovering*/ ctx[3]
2923
+ : /*_hovering*/ ctx[4]
2924
2924
  ? "var(--goa-color-interactive--hover)"
2925
2925
  : "var(--color-gray-600)");
2926
2926
 
2927
- set_custom_element_data(goa_icon, "opacity", goa_icon_opacity_value = /*_error*/ ctx[4] ? /*_hovering*/ ctx[3] ? 1 : 0.5 : 1);
2927
+ set_custom_element_data(goa_icon, "opacity", goa_icon_opacity_value = /*_error*/ ctx[5] ? /*_hovering*/ ctx[4] ? 1 : 0.5 : 1);
2928
2928
  },
2929
2929
  m(target, anchor) {
2930
2930
  insert(target, goa_icon, anchor);
2931
2931
  },
2932
2932
  p(ctx, dirty) {
2933
- if (dirty & /*_error, _hovering*/ 24 && goa_icon_fillcolor_value !== (goa_icon_fillcolor_value = /*_error*/ ctx[4]
2933
+ if (dirty & /*_error, _hovering*/ 48 && goa_icon_fillcolor_value !== (goa_icon_fillcolor_value = /*_error*/ ctx[5]
2934
2934
  ? "var(--goa-color-status-emergency)"
2935
- : /*_hovering*/ ctx[3]
2935
+ : /*_hovering*/ ctx[4]
2936
2936
  ? "var(--goa-color-interactive--hover)"
2937
2937
  : "var(--color-gray-600)")) {
2938
2938
  set_custom_element_data(goa_icon, "fillcolor", goa_icon_fillcolor_value);
2939
2939
  }
2940
2940
 
2941
- if (dirty & /*_error, _hovering*/ 24 && goa_icon_opacity_value !== (goa_icon_opacity_value = /*_error*/ ctx[4] ? /*_hovering*/ ctx[3] ? 1 : 0.5 : 1)) {
2941
+ if (dirty & /*_error, _hovering*/ 48 && goa_icon_opacity_value !== (goa_icon_opacity_value = /*_error*/ ctx[5] ? /*_hovering*/ ctx[4] ? 1 : 0.5 : 1)) {
2942
2942
  set_custom_element_data(goa_icon, "opacity", goa_icon_opacity_value);
2943
2943
  }
2944
2944
  },
@@ -2957,7 +2957,7 @@ function create_fragment$u(ctx) {
2957
2957
  let mounted;
2958
2958
  let dispose;
2959
2959
  let if_block0 = /*leadingicon*/ ctx[0] && create_if_block_1$8(ctx);
2960
- let if_block1 = /*_deletable*/ ctx[5] && create_if_block$e(ctx);
2960
+ let if_block1 = /*_deletable*/ ctx[6] && create_if_block$e(ctx);
2961
2961
 
2962
2962
  return {
2963
2963
  c() {
@@ -2973,8 +2973,9 @@ function create_fragment$u(ctx) {
2973
2973
  attr(div1, "data-testid", "chip");
2974
2974
  attr(div1, "class", "chip");
2975
2975
  attr(div1, "tabindex", "0");
2976
- toggle_class(div1, "deletable", /*_deletable*/ ctx[5]);
2977
- toggle_class(div1, "error", /*_error*/ ctx[4]);
2976
+ toggle_class(div1, "deletable", /*_deletable*/ ctx[6]);
2977
+ toggle_class(div1, "error", /*_error*/ ctx[5]);
2978
+ toggle_class(div1, "variant", /*variant*/ ctx[2]);
2978
2979
  },
2979
2980
  m(target, anchor) {
2980
2981
  insert(target, div1, anchor);
@@ -2984,15 +2985,15 @@ function create_fragment$u(ctx) {
2984
2985
  append(div0, t1);
2985
2986
  append(div1, t2);
2986
2987
  if (if_block1) if_block1.m(div1, null);
2987
- /*div1_binding*/ ctx[9](div1);
2988
+ /*div1_binding*/ ctx[10](div1);
2988
2989
 
2989
2990
  if (!mounted) {
2990
2991
  dispose = [
2991
- listen(div1, "click", /*click_handler*/ ctx[10]),
2992
- listen(div1, "mouseover", /*mouseover_handler*/ ctx[11]),
2993
- listen(div1, "mouseout", /*mouseout_handler*/ ctx[12]),
2994
- listen(div1, "focus", /*focus_handler*/ ctx[13]),
2995
- listen(div1, "blur", /*blur_handler*/ ctx[14])
2992
+ listen(div1, "click", /*click_handler*/ ctx[11]),
2993
+ listen(div1, "mouseover", /*mouseover_handler*/ ctx[12]),
2994
+ listen(div1, "mouseout", /*mouseout_handler*/ ctx[13]),
2995
+ listen(div1, "focus", /*focus_handler*/ ctx[14]),
2996
+ listen(div1, "blur", /*blur_handler*/ ctx[15])
2996
2997
  ];
2997
2998
 
2998
2999
  mounted = true;
@@ -3014,7 +3015,7 @@ function create_fragment$u(ctx) {
3014
3015
 
3015
3016
  if (dirty & /*content*/ 2) set_data(t1, /*content*/ ctx[1]);
3016
3017
 
3017
- if (/*_deletable*/ ctx[5]) {
3018
+ if (/*_deletable*/ ctx[6]) {
3018
3019
  if (if_block1) {
3019
3020
  if_block1.p(ctx, dirty);
3020
3021
  } else {
@@ -3027,12 +3028,16 @@ function create_fragment$u(ctx) {
3027
3028
  if_block1 = null;
3028
3029
  }
3029
3030
 
3030
- if (dirty & /*_deletable*/ 32) {
3031
- toggle_class(div1, "deletable", /*_deletable*/ ctx[5]);
3031
+ if (dirty & /*_deletable*/ 64) {
3032
+ toggle_class(div1, "deletable", /*_deletable*/ ctx[6]);
3032
3033
  }
3033
3034
 
3034
- if (dirty & /*_error*/ 16) {
3035
- toggle_class(div1, "error", /*_error*/ ctx[4]);
3035
+ if (dirty & /*_error*/ 32) {
3036
+ toggle_class(div1, "error", /*_error*/ ctx[5]);
3037
+ }
3038
+
3039
+ if (dirty & /*variant*/ 4) {
3040
+ toggle_class(div1, "variant", /*variant*/ ctx[2]);
3036
3041
  }
3037
3042
  },
3038
3043
  i: noop,
@@ -3041,7 +3046,7 @@ function create_fragment$u(ctx) {
3041
3046
  if (detaching) detach(div1);
3042
3047
  if (if_block0) if_block0.d();
3043
3048
  if (if_block1) if_block1.d();
3044
- /*div1_binding*/ ctx[9](null);
3049
+ /*div1_binding*/ ctx[10](null);
3045
3050
  mounted = false;
3046
3051
  run_all(dispose);
3047
3052
  }
@@ -3053,6 +3058,7 @@ function instance$s($$self, $$props, $$invalidate) {
3053
3058
  let { error = "false" } = $$props;
3054
3059
  let { deletable = "false" } = $$props;
3055
3060
  let { content } = $$props;
3061
+ let { variant } = $$props;
3056
3062
  let el;
3057
3063
  let _hovering = false;
3058
3064
 
@@ -3069,36 +3075,38 @@ function instance$s($$self, $$props, $$invalidate) {
3069
3075
  function div1_binding($$value) {
3070
3076
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
3071
3077
  el = $$value;
3072
- $$invalidate(2, el);
3078
+ $$invalidate(3, el);
3073
3079
  });
3074
3080
  }
3075
3081
 
3076
3082
  const click_handler = e => _deletable && onDelete(e);
3077
- const mouseover_handler = () => $$invalidate(3, _hovering = true);
3078
- const mouseout_handler = () => $$invalidate(3, _hovering = false);
3079
- const focus_handler = () => $$invalidate(3, _hovering = false);
3080
- const blur_handler = () => $$invalidate(3, _hovering = false);
3083
+ const mouseover_handler = () => $$invalidate(4, _hovering = true);
3084
+ const mouseout_handler = () => $$invalidate(4, _hovering = false);
3085
+ const focus_handler = () => $$invalidate(4, _hovering = false);
3086
+ const blur_handler = () => $$invalidate(4, _hovering = false);
3081
3087
 
3082
3088
  $$self.$$set = $$props => {
3083
3089
  if ('leadingicon' in $$props) $$invalidate(0, leadingicon = $$props.leadingicon);
3084
- if ('error' in $$props) $$invalidate(7, error = $$props.error);
3085
- if ('deletable' in $$props) $$invalidate(8, deletable = $$props.deletable);
3090
+ if ('error' in $$props) $$invalidate(8, error = $$props.error);
3091
+ if ('deletable' in $$props) $$invalidate(9, deletable = $$props.deletable);
3086
3092
  if ('content' in $$props) $$invalidate(1, content = $$props.content);
3093
+ if ('variant' in $$props) $$invalidate(2, variant = $$props.variant);
3087
3094
  };
3088
3095
 
3089
3096
  $$self.$$.update = () => {
3090
- if ($$self.$$.dirty & /*error*/ 128) {
3091
- $$invalidate(4, _error = toBoolean(error));
3097
+ if ($$self.$$.dirty & /*error*/ 256) {
3098
+ $$invalidate(5, _error = toBoolean(error));
3092
3099
  }
3093
3100
 
3094
- if ($$self.$$.dirty & /*deletable*/ 256) {
3095
- $$invalidate(5, _deletable = toBoolean(deletable));
3101
+ if ($$self.$$.dirty & /*deletable*/ 512) {
3102
+ $$invalidate(6, _deletable = toBoolean(deletable));
3096
3103
  }
3097
3104
  };
3098
3105
 
3099
3106
  return [
3100
3107
  leadingicon,
3101
3108
  content,
3109
+ variant,
3102
3110
  el,
3103
3111
  _hovering,
3104
3112
  _error,
@@ -3132,9 +3140,10 @@ class Chip extends SvelteElement {
3132
3140
  safe_not_equal,
3133
3141
  {
3134
3142
  leadingicon: 0,
3135
- error: 7,
3136
- deletable: 8,
3137
- content: 1
3143
+ error: 8,
3144
+ deletable: 9,
3145
+ content: 1,
3146
+ variant: 2
3138
3147
  },
3139
3148
  null
3140
3149
  );
@@ -3152,7 +3161,7 @@ class Chip extends SvelteElement {
3152
3161
  }
3153
3162
 
3154
3163
  static get observedAttributes() {
3155
- return ["leadingicon", "error", "deletable", "content"];
3164
+ return ["leadingicon", "error", "deletable", "content", "variant"];
3156
3165
  }
3157
3166
 
3158
3167
  get leadingicon() {
@@ -3165,7 +3174,7 @@ class Chip extends SvelteElement {
3165
3174
  }
3166
3175
 
3167
3176
  get error() {
3168
- return this.$$.ctx[7];
3177
+ return this.$$.ctx[8];
3169
3178
  }
3170
3179
 
3171
3180
  set error(error) {
@@ -3174,7 +3183,7 @@ class Chip extends SvelteElement {
3174
3183
  }
3175
3184
 
3176
3185
  get deletable() {
3177
- return this.$$.ctx[8];
3186
+ return this.$$.ctx[9];
3178
3187
  }
3179
3188
 
3180
3189
  set deletable(deletable) {
@@ -3190,6 +3199,15 @@ class Chip extends SvelteElement {
3190
3199
  this.$$set({ content });
3191
3200
  flush();
3192
3201
  }
3202
+
3203
+ get variant() {
3204
+ return this.$$.ctx[2];
3205
+ }
3206
+
3207
+ set variant(variant) {
3208
+ this.$$set({ variant });
3209
+ flush();
3210
+ }
3193
3211
  }
3194
3212
 
3195
3213
  customElements.define("goa-chip", Chip);
@@ -3782,16 +3800,15 @@ function create_fragment$s(ctx) {
3782
3800
  this.c = noop;
3783
3801
  attr(div0, "class", "title");
3784
3802
  attr(div1, "class", "actions");
3785
- attr(header, "class", header_class_value = "heading--" + /*headingsize*/ ctx[1]);
3803
+ attr(header, "class", header_class_value = "heading--" + /*accent*/ ctx[1]);
3786
3804
  attr(div2, "class", "content");
3787
3805
 
3788
3806
  attr(div3, "class", div3_class_value = `
3789
3807
  goa-container
3790
3808
  goa-container--${/*type*/ ctx[0]}
3791
3809
  padding--${/*padding*/ ctx[2]}
3810
+ accent--${/*accent*/ ctx[1]}
3792
3811
  `);
3793
-
3794
- toggle_class(div3, "colored", /*_colored*/ ctx[3]);
3795
3812
  },
3796
3813
  m(target, anchor) {
3797
3814
  insert(target, div3, anchor);
@@ -3803,21 +3820,18 @@ function create_fragment$s(ctx) {
3803
3820
  append(div3, div2);
3804
3821
  },
3805
3822
  p(ctx, [dirty]) {
3806
- if (dirty & /*headingsize*/ 2 && header_class_value !== (header_class_value = "heading--" + /*headingsize*/ ctx[1])) {
3823
+ if (dirty & /*accent*/ 2 && header_class_value !== (header_class_value = "heading--" + /*accent*/ ctx[1])) {
3807
3824
  attr(header, "class", header_class_value);
3808
3825
  }
3809
3826
 
3810
- if (dirty & /*type, padding*/ 5 && div3_class_value !== (div3_class_value = `
3827
+ if (dirty & /*type, padding, accent*/ 7 && div3_class_value !== (div3_class_value = `
3811
3828
  goa-container
3812
3829
  goa-container--${/*type*/ ctx[0]}
3813
3830
  padding--${/*padding*/ ctx[2]}
3831
+ accent--${/*accent*/ ctx[1]}
3814
3832
  `)) {
3815
3833
  attr(div3, "class", div3_class_value);
3816
3834
  }
3817
-
3818
- if (dirty & /*type, padding, _colored*/ 13) {
3819
- toggle_class(div3, "colored", /*_colored*/ ctx[3]);
3820
- }
3821
3835
  },
3822
3836
  i: noop,
3823
3837
  o: noop,
@@ -3828,32 +3842,23 @@ function create_fragment$s(ctx) {
3828
3842
  }
3829
3843
 
3830
3844
  function instance$q($$self, $$props, $$invalidate) {
3831
- let _colored;
3832
- let { type = 'non-interactive' } = $$props;
3833
- let { colored = "false" } = $$props;
3834
- let { headingsize = 'large' } = $$props;
3845
+ let { type = 'interactive' } = $$props;
3846
+ let { accent = 'filled' } = $$props;
3835
3847
  let { padding = "relaxed" } = $$props;
3836
3848
 
3837
3849
  $$self.$$set = $$props => {
3838
3850
  if ('type' in $$props) $$invalidate(0, type = $$props.type);
3839
- if ('colored' in $$props) $$invalidate(4, colored = $$props.colored);
3840
- if ('headingsize' in $$props) $$invalidate(1, headingsize = $$props.headingsize);
3851
+ if ('accent' in $$props) $$invalidate(1, accent = $$props.accent);
3841
3852
  if ('padding' in $$props) $$invalidate(2, padding = $$props.padding);
3842
3853
  };
3843
3854
 
3844
- $$self.$$.update = () => {
3845
- if ($$self.$$.dirty & /*colored*/ 16) {
3846
- $$invalidate(3, _colored = toBoolean(colored));
3847
- }
3848
- };
3849
-
3850
- return [type, headingsize, padding, _colored, colored];
3855
+ return [type, accent, padding];
3851
3856
  }
3852
3857
 
3853
3858
  class Container extends SvelteElement {
3854
3859
  constructor(options) {
3855
3860
  super();
3856
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family);font-size:var(--fs-base)}.goa-container{margin-bottom:1rem;box-sizing:border-box}.goa-container *{box-sizing:border-box}header{display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:var(--fs-base);border-width:1px;border-style:solid;border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.content{border-bottom:1px solid var(--color-gray-200);border-left:1px solid var(--color-gray-200);border-right:1px solid var(--color-gray-200);border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}.goa-container--non-interactive.colored .content{border-color:var(--color-gray-200);background-color:var(--color-gray-100)}.goa-container--important.colored .content{border-color:var(--goa-color-status-warning);background-color:var(--goa-color-status-warning-50)}.goa-container--error.colored .content{border-color:var(--goa-color-status-emergency);background-color:var(--goa-color-status-emergency-50)}.goa-container--success.colored .content{border-color:var(--goa-color-status-success);background-color:var(--goa-color-status-success-50)}.goa-container--info.colored .content{border-color:var(--goa-color-status-info);background-color:var(--goa-color-status-info-50)}.title,.actions{padding:0.5rem 0}.padding--relaxed header{padding:0 1.5rem}.padding--relaxed .content{padding:1.5rem}.padding--compact header,.padding--compact .content{padding:0 1rem}.padding--compact header{padding:0 1rem}.padding--compact .content{padding:1rem}@media screen and (max-width: 480px){.padding--relaxed header{padding:0 1rem}.padding--relaxed .content{padding:1rem}}.goa-container--non-interactive header{background-color:var(--color-gray-100);border-color:var(--color-gray-200);color:var(--color-black)}.goa-container--interactive header{background-color:var(--goa-color-brand);border-color:var(--goa-color-brand);color:var(--color-white)}.goa-container--info header{background-color:var(--goa-color-status-info);border-color:var(--goa-color-status-info);color:var(--color-white)}.goa-container--error header{background-color:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency);color:var(--color-white)}.goa-container--success header{background-color:var(--goa-color-status-success);border-color:var(--goa-color-status-success);color:var(--color-white)}.goa-container--important header{background-color:var(--goa-color-status-warning);border-color:var(--goa-color-status-warning);color:var(--color-white)}.heading--large{padding:0.5rem 1.5rem;max-height:3rem;min-height:1rem}.heading--large .title{line-height:2rem}.heading--small{height:0.5rem}.heading--none{display:none}.heading--none~.content{border-top:1px solid var(--color-gray-200);border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.heading--small .title,.heading--small .actions{display:none}.actions{display:flex;align-items:center}</style>`;
3861
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family);font-size:var(--fs-base)}.goa-container{margin-bottom:1rem;box-sizing:border-box}.goa-container *{box-sizing:border-box}header{display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:var(--fs-base);border-width:1px;border-style:solid;border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.content{border-bottom:1px solid var(--color-gray-200);border-left:1px solid var(--color-gray-200);border-right:1px solid var(--color-gray-200);border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}.goa-container--non-interactive.accent--filled .content{border-color:var(--color-gray-200);background-color:var(--color-gray-100)}.goa-container--important.accent--filled .content{border-color:var(--goa-color-status-warning);background-color:var(--goa-color-status-warning-50)}.goa-container--error.accent--filled .content{border-color:var(--goa-color-status-emergency);background-color:var(--goa-color-status-emergency-50)}.goa-container--success.accent--filled .content{border-color:var(--goa-color-status-success);background-color:var(--goa-color-status-success-50)}.goa-container--info.accent--filled .content{border-color:var(--goa-color-status-info);background-color:var(--goa-color-status-info-50)}.title,.actions{padding:0.5rem 0}.padding--relaxed header{padding:0 1.5rem}.padding--relaxed .content{padding:1.5rem}.padding--compact header,.padding--compact .content{padding:0 1rem}.padding--compact header{padding:0 1rem}.padding--compact .content{padding:1rem}@media screen and (max-width: 480px){.padding--relaxed header{padding:0 1rem}.padding--relaxed .content{padding:1rem}}.goa-container--non-interactive header{background-color:var(--color-gray-100);border-color:var(--color-gray-200);color:var(--color-black)}.goa-container--interactive header{background-color:var(--goa-color-brand);border-color:var(--goa-color-brand);color:var(--color-white)}.goa-container--info header{background-color:var(--goa-color-status-info);border-color:var(--goa-color-status-info);color:var(--color-white)}.goa-container--error header{background-color:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency);color:var(--color-white)}.goa-container--success header{background-color:var(--goa-color-status-success);border-color:var(--goa-color-status-success);color:var(--color-white)}.goa-container--important header{background-color:var(--goa-color-status-warning);border-color:var(--goa-color-status-warning);color:var(--color-white)}.heading--thick{padding:0.5rem 1.5rem;max-height:3rem;min-height:1rem}.heading--thick .title{line-height:2rem}.heading--thin{height:0.5rem}.heading--filled{display:none}.heading--filled~.content{border-top:1px solid var(--color-gray-200);border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.heading--thin .title,.heading--thin .actions{display:none}.actions{display:flex;align-items:center}</style>`;
3857
3862
 
3858
3863
  init(
3859
3864
  this,
@@ -3865,12 +3870,7 @@ class Container extends SvelteElement {
3865
3870
  instance$q,
3866
3871
  create_fragment$s,
3867
3872
  safe_not_equal,
3868
- {
3869
- type: 0,
3870
- colored: 4,
3871
- headingsize: 1,
3872
- padding: 2
3873
- },
3873
+ { type: 0, accent: 1, padding: 2 },
3874
3874
  null
3875
3875
  );
3876
3876
 
@@ -3887,7 +3887,7 @@ class Container extends SvelteElement {
3887
3887
  }
3888
3888
 
3889
3889
  static get observedAttributes() {
3890
- return ["type", "colored", "headingsize", "padding"];
3890
+ return ["type", "accent", "padding"];
3891
3891
  }
3892
3892
 
3893
3893
  get type() {
@@ -3899,21 +3899,12 @@ class Container extends SvelteElement {
3899
3899
  flush();
3900
3900
  }
3901
3901
 
3902
- get colored() {
3903
- return this.$$.ctx[4];
3904
- }
3905
-
3906
- set colored(colored) {
3907
- this.$$set({ colored });
3908
- flush();
3909
- }
3910
-
3911
- get headingsize() {
3902
+ get accent() {
3912
3903
  return this.$$.ctx[1];
3913
3904
  }
3914
3905
 
3915
- set headingsize(headingsize) {
3916
- this.$$set({ headingsize });
3906
+ set accent(accent) {
3907
+ this.$$set({ accent });
3917
3908
  flush();
3918
3909
  }
3919
3910
 
@@ -4334,7 +4325,7 @@ function create_fragment$r(ctx) {
4334
4325
  };
4335
4326
  }
4336
4327
 
4337
- const MAX_HEIGHT = "300px";
4328
+ const MAX_HEIGHT = "276px";
4338
4329
 
4339
4330
  function instance$p($$self, $$props, $$invalidate) {
4340
4331
  let _disabled;
@@ -11226,10 +11217,69 @@ class TextArea extends SvelteElement {
11226
11217
 
11227
11218
  customElements.define("goa-textarea", TextArea);
11228
11219
 
11229
- /* libs/web-components/src/layouts/two-column-layout/TwoColumnLayout.svelte generated by Svelte v3.49.0 */
11220
+ /* libs/web-components/src/layouts/one-column-layout/OneColumnLayout.svelte generated by Svelte v3.49.0 */
11230
11221
 
11231
11222
  function create_fragment$4(ctx) {
11232
11223
  let div;
11224
+
11225
+ return {
11226
+ c() {
11227
+ div = element("div");
11228
+
11229
+ div.innerHTML = `<section class="header"><slot name="header"></slot></section>
11230
+
11231
+ <main><slot></slot></main>
11232
+
11233
+ <section class="footer"><slot name="footer"></slot></section>`;
11234
+
11235
+ this.c = noop;
11236
+ attr(div, "class", "page");
11237
+ },
11238
+ m(target, anchor) {
11239
+ insert(target, div, anchor);
11240
+ },
11241
+ p: noop,
11242
+ i: noop,
11243
+ o: noop,
11244
+ d(detaching) {
11245
+ if (detaching) detach(div);
11246
+ }
11247
+ };
11248
+ }
11249
+
11250
+ class OneColumnLayout extends SvelteElement {
11251
+ constructor(options) {
11252
+ super();
11253
+ this.shadowRoot.innerHTML = `<style>.page{height:100vh;display:flex;flex-direction:column}.header,.footer{flex:0 0 auto}main{flex:1 1 auto}</style>`;
11254
+
11255
+ init(
11256
+ this,
11257
+ {
11258
+ target: this.shadowRoot,
11259
+ props: attribute_to_object(this.attributes),
11260
+ customElement: true
11261
+ },
11262
+ null,
11263
+ create_fragment$4,
11264
+ safe_not_equal,
11265
+ {},
11266
+ null
11267
+ );
11268
+
11269
+ if (options) {
11270
+ if (options.target) {
11271
+ insert(options.target, this, options.anchor);
11272
+ }
11273
+ }
11274
+ }
11275
+ }
11276
+
11277
+ customElements.define("goa-one-column-layout", OneColumnLayout);
11278
+
11279
+ /* libs/web-components/src/layouts/two-column-layout/TwoColumnLayout.svelte generated by Svelte v3.49.0 */
11280
+
11281
+ function create_fragment$3(ctx) {
11282
+ let div;
11233
11283
  let header;
11234
11284
  let t0;
11235
11285
  let section;
@@ -11312,7 +11362,7 @@ class TwoColumnLayout extends SvelteElement {
11312
11362
  customElement: true
11313
11363
  },
11314
11364
  instance$2,
11315
- create_fragment$4,
11365
+ create_fragment$3,
11316
11366
  safe_not_equal,
11317
11367
  { navcolumnwidth: 0, maxcontentwidth: 1 },
11318
11368
  null
@@ -11357,7 +11407,7 @@ customElements.define("goa-two-column-layout", TwoColumnLayout);
11357
11407
 
11358
11408
  /* libs/web-components/src/layouts/FullScreenNavbarLayout.svelte generated by Svelte v3.49.0 */
11359
11409
 
11360
- function create_fragment$3(ctx) {
11410
+ function create_fragment$2(ctx) {
11361
11411
  let div;
11362
11412
 
11363
11413
  return {
@@ -11406,7 +11456,7 @@ class FullScreenNavbarLayout extends SvelteElement {
11406
11456
  customElement: true
11407
11457
  },
11408
11458
  null,
11409
- create_fragment$3,
11459
+ create_fragment$2,
11410
11460
  safe_not_equal,
11411
11461
  {},
11412
11462
  null
@@ -11470,7 +11520,7 @@ function create_if_block(ctx) {
11470
11520
  };
11471
11521
  }
11472
11522
 
11473
- function create_fragment$2(ctx) {
11523
+ function create_fragment$1(ctx) {
11474
11524
  let goa_container;
11475
11525
  let t0;
11476
11526
  let t1;
@@ -11490,7 +11540,7 @@ function create_fragment$2(ctx) {
11490
11540
  attr(div, "class", "content");
11491
11541
  attr(div, "slot", "");
11492
11542
  set_custom_element_data(goa_container, "type", /*type*/ ctx[3]);
11493
- set_custom_element_data(goa_container, "headingsize", /*headingsize*/ ctx[4]);
11543
+ set_custom_element_data(goa_container, "accent", /*accent*/ ctx[4]);
11494
11544
  },
11495
11545
  m(target, anchor) {
11496
11546
  insert(target, goa_container, anchor);
@@ -11533,8 +11583,8 @@ function create_fragment$2(ctx) {
11533
11583
  set_custom_element_data(goa_container, "type", /*type*/ ctx[3]);
11534
11584
  }
11535
11585
 
11536
- if (dirty & /*headingsize*/ 16) {
11537
- set_custom_element_data(goa_container, "headingsize", /*headingsize*/ ctx[4]);
11586
+ if (dirty & /*accent*/ 16) {
11587
+ set_custom_element_data(goa_container, "accent", /*accent*/ ctx[4]);
11538
11588
  }
11539
11589
  },
11540
11590
  i: noop,
@@ -11552,17 +11602,17 @@ function instance$1($$self, $$props, $$invalidate) {
11552
11602
  let { actions = "" } = $$props;
11553
11603
  let { content } = $$props;
11554
11604
  let { type = "default" } = $$props;
11555
- let { headingsize = "large" } = $$props;
11605
+ let { accent = "thick" } = $$props;
11556
11606
 
11557
11607
  $$self.$$set = $$props => {
11558
11608
  if ('title' in $$props) $$invalidate(0, title = $$props.title);
11559
11609
  if ('actions' in $$props) $$invalidate(1, actions = $$props.actions);
11560
11610
  if ('content' in $$props) $$invalidate(2, content = $$props.content);
11561
11611
  if ('type' in $$props) $$invalidate(3, type = $$props.type);
11562
- if ('headingsize' in $$props) $$invalidate(4, headingsize = $$props.headingsize);
11612
+ if ('accent' in $$props) $$invalidate(4, accent = $$props.accent);
11563
11613
  };
11564
11614
 
11565
- return [title, actions, content, type, headingsize];
11615
+ return [title, actions, content, type, accent];
11566
11616
  }
11567
11617
 
11568
11618
  class ContainerWrapper_test extends SvelteElement {
@@ -11577,14 +11627,14 @@ class ContainerWrapper_test extends SvelteElement {
11577
11627
  customElement: true
11578
11628
  },
11579
11629
  instance$1,
11580
- create_fragment$2,
11630
+ create_fragment$1,
11581
11631
  safe_not_equal,
11582
11632
  {
11583
11633
  title: 0,
11584
11634
  actions: 1,
11585
11635
  content: 2,
11586
11636
  type: 3,
11587
- headingsize: 4
11637
+ accent: 4
11588
11638
  },
11589
11639
  null
11590
11640
  );
@@ -11602,7 +11652,7 @@ class ContainerWrapper_test extends SvelteElement {
11602
11652
  }
11603
11653
 
11604
11654
  static get observedAttributes() {
11605
- return ["title", "actions", "content", "type", "headingsize"];
11655
+ return ["title", "actions", "content", "type", "accent"];
11606
11656
  }
11607
11657
 
11608
11658
  get title() {
@@ -11641,12 +11691,12 @@ class ContainerWrapper_test extends SvelteElement {
11641
11691
  flush();
11642
11692
  }
11643
11693
 
11644
- get headingsize() {
11694
+ get accent() {
11645
11695
  return this.$$.ctx[4];
11646
11696
  }
11647
11697
 
11648
- set headingsize(headingsize) {
11649
- this.$$set({ headingsize });
11698
+ set accent(accent) {
11699
+ this.$$set({ accent });
11650
11700
  flush();
11651
11701
  }
11652
11702
  }
@@ -11655,7 +11705,7 @@ customElements.define("test-container", ContainerWrapper_test);
11655
11705
 
11656
11706
  /* libs/web-components/src/components/divider/Divider.svelte generated by Svelte v3.49.0 */
11657
11707
 
11658
- function create_fragment$1(ctx) {
11708
+ function create_fragment(ctx) {
11659
11709
  let hr;
11660
11710
 
11661
11711
  return {
@@ -11725,7 +11775,7 @@ class Divider extends SvelteElement {
11725
11775
  customElement: true
11726
11776
  },
11727
11777
  instance,
11728
- create_fragment$1,
11778
+ create_fragment,
11729
11779
  safe_not_equal,
11730
11780
  { spacing: 1 },
11731
11781
  null
@@ -11758,62 +11808,3 @@ class Divider extends SvelteElement {
11758
11808
  }
11759
11809
 
11760
11810
  customElements.define("goa-divider", Divider);
11761
-
11762
- /* libs/web-components/src/components/page/Page.svelte generated by Svelte v3.49.0 */
11763
-
11764
- function create_fragment(ctx) {
11765
- let div;
11766
-
11767
- return {
11768
- c() {
11769
- div = element("div");
11770
-
11771
- div.innerHTML = `<section class="header"><slot name="header"></slot></section>
11772
-
11773
- <main><slot></slot></main>
11774
-
11775
- <section class="footer"><slot name="footer"></slot></section>`;
11776
-
11777
- this.c = noop;
11778
- attr(div, "class", "page");
11779
- },
11780
- m(target, anchor) {
11781
- insert(target, div, anchor);
11782
- },
11783
- p: noop,
11784
- i: noop,
11785
- o: noop,
11786
- d(detaching) {
11787
- if (detaching) detach(div);
11788
- }
11789
- };
11790
- }
11791
-
11792
- class Page extends SvelteElement {
11793
- constructor(options) {
11794
- super();
11795
- this.shadowRoot.innerHTML = `<style>.page{height:100vh;display:flex;flex-direction:column}.header,.footer{flex:0 0 auto}main{flex:1 1 auto}</style>`;
11796
-
11797
- init(
11798
- this,
11799
- {
11800
- target: this.shadowRoot,
11801
- props: attribute_to_object(this.attributes),
11802
- customElement: true
11803
- },
11804
- null,
11805
- create_fragment,
11806
- safe_not_equal,
11807
- {},
11808
- null
11809
- );
11810
-
11811
- if (options) {
11812
- if (options.target) {
11813
- insert(options.target, this, options.anchor);
11814
- }
11815
- }
11816
- }
11817
- }
11818
-
11819
- customElements.define("goa-page", Page);