@abgov/react-components 4.0.0-alpha.61 → 4.0.0-alpha.63
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 +1 -2
- package/lib/button/button.d.ts +1 -1
- package/lib/container/container.d.ts +3 -5
- package/lib/one-column-layout/one-column-layout.d.ts +13 -0
- package/package.json +1 -1
- package/react-components.esm.js +103 -132
- package/react-components.umd.js +103 -133
- package/lib/page/page.d.ts +0 -13
package/index.d.ts
CHANGED
|
@@ -26,8 +26,7 @@ export * from './lib/microsite-header/microsite-header';
|
|
|
26
26
|
export * from './lib/modal/modal';
|
|
27
27
|
export * from './lib/notification/notification';
|
|
28
28
|
export * from './lib/page-block/page-block';
|
|
29
|
-
export * from './lib/
|
|
30
|
-
export * from './lib/page/page';
|
|
29
|
+
export * from './lib/one-column-layout/one-column-layout';
|
|
31
30
|
export * from './lib/radio-group/radio-group';
|
|
32
31
|
export * from './lib/skeleton/skeleton';
|
|
33
32
|
export * from './lib/spinner/spinner';
|
package/lib/button/button.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React, { FC, ReactNode } from 'react';
|
|
2
2
|
declare type ContainerType = 'interactive' | 'non-interactive' | 'info' | 'error' | 'success' | 'warning';
|
|
3
|
-
declare type
|
|
3
|
+
declare type Accent = 'thick' | 'thin' | 'filled';
|
|
4
4
|
declare type ContainerPadding = "relaxed" | "compact";
|
|
5
5
|
interface WCProps {
|
|
6
6
|
type?: ContainerType;
|
|
7
|
-
|
|
8
|
-
colored?: boolean;
|
|
7
|
+
accent?: Accent;
|
|
9
8
|
padding?: ContainerPadding;
|
|
10
9
|
}
|
|
11
10
|
declare global {
|
|
@@ -16,10 +15,9 @@ declare global {
|
|
|
16
15
|
}
|
|
17
16
|
}
|
|
18
17
|
interface Props {
|
|
19
|
-
|
|
18
|
+
accent?: Accent;
|
|
20
19
|
type?: ContainerType;
|
|
21
20
|
title?: ReactNode;
|
|
22
|
-
colored?: boolean;
|
|
23
21
|
padding?: ContainerPadding;
|
|
24
22
|
actions?: ReactNode;
|
|
25
23
|
children?: ReactNode;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
declare global {
|
|
3
|
+
namespace JSX {
|
|
4
|
+
interface IntrinsicElements {
|
|
5
|
+
'goa-one-column-layout': React.HTMLAttributes<HTMLElement>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export interface PageProps {
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function GoAOneColumnLayout(props: PageProps): JSX.Element;
|
|
13
|
+
export default GoAOneColumnLayout;
|
package/package.json
CHANGED
package/react-components.esm.js
CHANGED
|
@@ -4513,7 +4513,7 @@ function create_fragment$s(ctx) {
|
|
|
4513
4513
|
attr(div0, "class", "title");
|
|
4514
4514
|
attr(div1, "class", "actions");
|
|
4515
4515
|
attr(header, "class", header_class_value = "heading--" +
|
|
4516
|
-
/*
|
|
4516
|
+
/*accent*/
|
|
4517
4517
|
ctx[1]);
|
|
4518
4518
|
attr(div2, "class", "content");
|
|
4519
4519
|
attr(div3, "class", div3_class_value = `
|
|
@@ -4524,10 +4524,10 @@ function create_fragment$s(ctx) {
|
|
|
4524
4524
|
padding--${
|
|
4525
4525
|
/*padding*/
|
|
4526
4526
|
ctx[2]}
|
|
4527
|
+
accent--${
|
|
4528
|
+
/*accent*/
|
|
4529
|
+
ctx[1]}
|
|
4527
4530
|
`);
|
|
4528
|
-
toggle_class(div3, "colored",
|
|
4529
|
-
/*_colored*/
|
|
4530
|
-
ctx[3]);
|
|
4531
4531
|
},
|
|
4532
4532
|
|
|
4533
4533
|
m(target, anchor) {
|
|
@@ -4542,16 +4542,16 @@ function create_fragment$s(ctx) {
|
|
|
4542
4542
|
|
|
4543
4543
|
p(ctx, [dirty]) {
|
|
4544
4544
|
if (dirty &
|
|
4545
|
-
/*
|
|
4545
|
+
/*accent*/
|
|
4546
4546
|
2 && header_class_value !== (header_class_value = "heading--" +
|
|
4547
|
-
/*
|
|
4547
|
+
/*accent*/
|
|
4548
4548
|
ctx[1])) {
|
|
4549
4549
|
attr(header, "class", header_class_value);
|
|
4550
4550
|
}
|
|
4551
4551
|
|
|
4552
4552
|
if (dirty &
|
|
4553
|
-
/*type, padding*/
|
|
4554
|
-
|
|
4553
|
+
/*type, padding, accent*/
|
|
4554
|
+
7 && div3_class_value !== (div3_class_value = `
|
|
4555
4555
|
goa-container
|
|
4556
4556
|
goa-container--${
|
|
4557
4557
|
/*type*/
|
|
@@ -4559,17 +4559,12 @@ function create_fragment$s(ctx) {
|
|
|
4559
4559
|
padding--${
|
|
4560
4560
|
/*padding*/
|
|
4561
4561
|
ctx[2]}
|
|
4562
|
+
accent--${
|
|
4563
|
+
/*accent*/
|
|
4564
|
+
ctx[1]}
|
|
4562
4565
|
`)) {
|
|
4563
4566
|
attr(div3, "class", div3_class_value);
|
|
4564
4567
|
}
|
|
4565
|
-
|
|
4566
|
-
if (dirty &
|
|
4567
|
-
/*type, padding, _colored*/
|
|
4568
|
-
13) {
|
|
4569
|
-
toggle_class(div3, "colored",
|
|
4570
|
-
/*_colored*/
|
|
4571
|
-
ctx[3]);
|
|
4572
|
-
}
|
|
4573
4568
|
},
|
|
4574
4569
|
|
|
4575
4570
|
i: noop,
|
|
@@ -4583,16 +4578,11 @@ function create_fragment$s(ctx) {
|
|
|
4583
4578
|
}
|
|
4584
4579
|
|
|
4585
4580
|
function instance$q($$self, $$props, $$invalidate) {
|
|
4586
|
-
let _colored;
|
|
4587
|
-
|
|
4588
4581
|
let {
|
|
4589
|
-
type = '
|
|
4582
|
+
type = 'interactive'
|
|
4590
4583
|
} = $$props;
|
|
4591
4584
|
let {
|
|
4592
|
-
|
|
4593
|
-
} = $$props;
|
|
4594
|
-
let {
|
|
4595
|
-
headingsize = 'large'
|
|
4585
|
+
accent = 'filled'
|
|
4596
4586
|
} = $$props;
|
|
4597
4587
|
let {
|
|
4598
4588
|
padding = "relaxed"
|
|
@@ -4600,34 +4590,24 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
|
4600
4590
|
|
|
4601
4591
|
$$self.$$set = $$props => {
|
|
4602
4592
|
if ('type' in $$props) $$invalidate(0, type = $$props.type);
|
|
4603
|
-
if ('
|
|
4604
|
-
if ('headingsize' in $$props) $$invalidate(1, headingsize = $$props.headingsize);
|
|
4593
|
+
if ('accent' in $$props) $$invalidate(1, accent = $$props.accent);
|
|
4605
4594
|
if ('padding' in $$props) $$invalidate(2, padding = $$props.padding);
|
|
4606
4595
|
};
|
|
4607
4596
|
|
|
4608
|
-
|
|
4609
|
-
if ($$self.$$.dirty &
|
|
4610
|
-
/*colored*/
|
|
4611
|
-
16) {
|
|
4612
|
-
$$invalidate(3, _colored = toBoolean(colored));
|
|
4613
|
-
}
|
|
4614
|
-
};
|
|
4615
|
-
|
|
4616
|
-
return [type, headingsize, padding, _colored, colored];
|
|
4597
|
+
return [type, accent, padding];
|
|
4617
4598
|
}
|
|
4618
4599
|
|
|
4619
4600
|
class Container extends SvelteElement {
|
|
4620
4601
|
constructor(options) {
|
|
4621
4602
|
super();
|
|
4622
|
-
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.
|
|
4603
|
+
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>`;
|
|
4623
4604
|
init(this, {
|
|
4624
4605
|
target: this.shadowRoot,
|
|
4625
4606
|
props: attribute_to_object(this.attributes),
|
|
4626
4607
|
customElement: true
|
|
4627
4608
|
}, instance$q, create_fragment$s, safe_not_equal, {
|
|
4628
4609
|
type: 0,
|
|
4629
|
-
|
|
4630
|
-
headingsize: 1,
|
|
4610
|
+
accent: 1,
|
|
4631
4611
|
padding: 2
|
|
4632
4612
|
}, null);
|
|
4633
4613
|
|
|
@@ -4644,7 +4624,7 @@ class Container extends SvelteElement {
|
|
|
4644
4624
|
}
|
|
4645
4625
|
|
|
4646
4626
|
static get observedAttributes() {
|
|
4647
|
-
return ["type", "
|
|
4627
|
+
return ["type", "accent", "padding"];
|
|
4648
4628
|
}
|
|
4649
4629
|
|
|
4650
4630
|
get type() {
|
|
@@ -4658,24 +4638,13 @@ class Container extends SvelteElement {
|
|
|
4658
4638
|
flush();
|
|
4659
4639
|
}
|
|
4660
4640
|
|
|
4661
|
-
get
|
|
4662
|
-
return this.$$.ctx[4];
|
|
4663
|
-
}
|
|
4664
|
-
|
|
4665
|
-
set colored(colored) {
|
|
4666
|
-
this.$$set({
|
|
4667
|
-
colored
|
|
4668
|
-
});
|
|
4669
|
-
flush();
|
|
4670
|
-
}
|
|
4671
|
-
|
|
4672
|
-
get headingsize() {
|
|
4641
|
+
get accent() {
|
|
4673
4642
|
return this.$$.ctx[1];
|
|
4674
4643
|
}
|
|
4675
4644
|
|
|
4676
|
-
set
|
|
4645
|
+
set accent(accent) {
|
|
4677
4646
|
this.$$set({
|
|
4678
|
-
|
|
4647
|
+
accent
|
|
4679
4648
|
});
|
|
4680
4649
|
flush();
|
|
4681
4650
|
}
|
|
@@ -5316,7 +5285,7 @@ function create_fragment$r(ctx) {
|
|
|
5316
5285
|
};
|
|
5317
5286
|
}
|
|
5318
5287
|
|
|
5319
|
-
const MAX_HEIGHT = "
|
|
5288
|
+
const MAX_HEIGHT = "276px";
|
|
5320
5289
|
|
|
5321
5290
|
function instance$p($$self, $$props, $$invalidate) {
|
|
5322
5291
|
let _disabled;
|
|
@@ -13551,9 +13520,60 @@ class TextArea extends SvelteElement {
|
|
|
13551
13520
|
}
|
|
13552
13521
|
|
|
13553
13522
|
customElements.define("goa-textarea", TextArea);
|
|
13554
|
-
/* libs/web-components/src/layouts/
|
|
13523
|
+
/* libs/web-components/src/layouts/one-column-layout/OneColumnLayout.svelte generated by Svelte v3.49.0 */
|
|
13555
13524
|
|
|
13556
13525
|
function create_fragment$4(ctx) {
|
|
13526
|
+
let div;
|
|
13527
|
+
return {
|
|
13528
|
+
c() {
|
|
13529
|
+
div = element("div");
|
|
13530
|
+
div.innerHTML = `<section class="header"><slot name="header"></slot></section>
|
|
13531
|
+
|
|
13532
|
+
<main><slot></slot></main>
|
|
13533
|
+
|
|
13534
|
+
<section class="footer"><slot name="footer"></slot></section>`;
|
|
13535
|
+
this.c = noop;
|
|
13536
|
+
attr(div, "class", "page");
|
|
13537
|
+
},
|
|
13538
|
+
|
|
13539
|
+
m(target, anchor) {
|
|
13540
|
+
insert(target, div, anchor);
|
|
13541
|
+
},
|
|
13542
|
+
|
|
13543
|
+
p: noop,
|
|
13544
|
+
i: noop,
|
|
13545
|
+
o: noop,
|
|
13546
|
+
|
|
13547
|
+
d(detaching) {
|
|
13548
|
+
if (detaching) detach(div);
|
|
13549
|
+
}
|
|
13550
|
+
|
|
13551
|
+
};
|
|
13552
|
+
}
|
|
13553
|
+
|
|
13554
|
+
class OneColumnLayout extends SvelteElement {
|
|
13555
|
+
constructor(options) {
|
|
13556
|
+
super();
|
|
13557
|
+
this.shadowRoot.innerHTML = `<style>.page{height:100vh;display:flex;flex-direction:column}.header,.footer{flex:0 0 auto}main{flex:1 1 auto}</style>`;
|
|
13558
|
+
init(this, {
|
|
13559
|
+
target: this.shadowRoot,
|
|
13560
|
+
props: attribute_to_object(this.attributes),
|
|
13561
|
+
customElement: true
|
|
13562
|
+
}, null, create_fragment$4, safe_not_equal, {}, null);
|
|
13563
|
+
|
|
13564
|
+
if (options) {
|
|
13565
|
+
if (options.target) {
|
|
13566
|
+
insert(options.target, this, options.anchor);
|
|
13567
|
+
}
|
|
13568
|
+
}
|
|
13569
|
+
}
|
|
13570
|
+
|
|
13571
|
+
}
|
|
13572
|
+
|
|
13573
|
+
customElements.define("goa-one-column-layout", OneColumnLayout);
|
|
13574
|
+
/* libs/web-components/src/layouts/two-column-layout/TwoColumnLayout.svelte generated by Svelte v3.49.0 */
|
|
13575
|
+
|
|
13576
|
+
function create_fragment$3(ctx) {
|
|
13557
13577
|
let div;
|
|
13558
13578
|
let header;
|
|
13559
13579
|
let t0;
|
|
@@ -13647,7 +13667,7 @@ class TwoColumnLayout extends SvelteElement {
|
|
|
13647
13667
|
target: this.shadowRoot,
|
|
13648
13668
|
props: attribute_to_object(this.attributes),
|
|
13649
13669
|
customElement: true
|
|
13650
|
-
}, instance$2, create_fragment$
|
|
13670
|
+
}, instance$2, create_fragment$3, safe_not_equal, {
|
|
13651
13671
|
navcolumnwidth: 0,
|
|
13652
13672
|
maxcontentwidth: 1
|
|
13653
13673
|
}, null);
|
|
@@ -13695,7 +13715,7 @@ class TwoColumnLayout extends SvelteElement {
|
|
|
13695
13715
|
customElements.define("goa-two-column-layout", TwoColumnLayout);
|
|
13696
13716
|
/* libs/web-components/src/layouts/FullScreenNavbarLayout.svelte generated by Svelte v3.49.0 */
|
|
13697
13717
|
|
|
13698
|
-
function create_fragment$
|
|
13718
|
+
function create_fragment$2(ctx) {
|
|
13699
13719
|
let div;
|
|
13700
13720
|
return {
|
|
13701
13721
|
c() {
|
|
@@ -13739,7 +13759,7 @@ class FullScreenNavbarLayout extends SvelteElement {
|
|
|
13739
13759
|
target: this.shadowRoot,
|
|
13740
13760
|
props: attribute_to_object(this.attributes),
|
|
13741
13761
|
customElement: true
|
|
13742
|
-
}, null, create_fragment$
|
|
13762
|
+
}, null, create_fragment$2, safe_not_equal, {}, null);
|
|
13743
13763
|
|
|
13744
13764
|
if (options) {
|
|
13745
13765
|
if (options.target) {
|
|
@@ -13818,7 +13838,7 @@ function create_if_block(ctx) {
|
|
|
13818
13838
|
};
|
|
13819
13839
|
}
|
|
13820
13840
|
|
|
13821
|
-
function create_fragment$
|
|
13841
|
+
function create_fragment$1(ctx) {
|
|
13822
13842
|
let goa_container;
|
|
13823
13843
|
let t0;
|
|
13824
13844
|
let t1;
|
|
@@ -13843,8 +13863,8 @@ function create_fragment$2(ctx) {
|
|
|
13843
13863
|
set_custom_element_data(goa_container, "type",
|
|
13844
13864
|
/*type*/
|
|
13845
13865
|
ctx[3]);
|
|
13846
|
-
set_custom_element_data(goa_container, "
|
|
13847
|
-
/*
|
|
13866
|
+
set_custom_element_data(goa_container, "accent",
|
|
13867
|
+
/*accent*/
|
|
13848
13868
|
ctx[4]);
|
|
13849
13869
|
},
|
|
13850
13870
|
|
|
@@ -13906,10 +13926,10 @@ function create_fragment$2(ctx) {
|
|
|
13906
13926
|
}
|
|
13907
13927
|
|
|
13908
13928
|
if (dirty &
|
|
13909
|
-
/*
|
|
13929
|
+
/*accent*/
|
|
13910
13930
|
16) {
|
|
13911
|
-
set_custom_element_data(goa_container, "
|
|
13912
|
-
/*
|
|
13931
|
+
set_custom_element_data(goa_container, "accent",
|
|
13932
|
+
/*accent*/
|
|
13913
13933
|
ctx[4]);
|
|
13914
13934
|
}
|
|
13915
13935
|
},
|
|
@@ -13940,7 +13960,7 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
13940
13960
|
type = "default"
|
|
13941
13961
|
} = $$props;
|
|
13942
13962
|
let {
|
|
13943
|
-
|
|
13963
|
+
accent = "thick"
|
|
13944
13964
|
} = $$props;
|
|
13945
13965
|
|
|
13946
13966
|
$$self.$$set = $$props => {
|
|
@@ -13948,10 +13968,10 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
13948
13968
|
if ('actions' in $$props) $$invalidate(1, actions = $$props.actions);
|
|
13949
13969
|
if ('content' in $$props) $$invalidate(2, content = $$props.content);
|
|
13950
13970
|
if ('type' in $$props) $$invalidate(3, type = $$props.type);
|
|
13951
|
-
if ('
|
|
13971
|
+
if ('accent' in $$props) $$invalidate(4, accent = $$props.accent);
|
|
13952
13972
|
};
|
|
13953
13973
|
|
|
13954
|
-
return [title, actions, content, type,
|
|
13974
|
+
return [title, actions, content, type, accent];
|
|
13955
13975
|
}
|
|
13956
13976
|
|
|
13957
13977
|
class ContainerWrapper_test extends SvelteElement {
|
|
@@ -13961,12 +13981,12 @@ class ContainerWrapper_test extends SvelteElement {
|
|
|
13961
13981
|
target: this.shadowRoot,
|
|
13962
13982
|
props: attribute_to_object(this.attributes),
|
|
13963
13983
|
customElement: true
|
|
13964
|
-
}, instance$1, create_fragment$
|
|
13984
|
+
}, instance$1, create_fragment$1, safe_not_equal, {
|
|
13965
13985
|
title: 0,
|
|
13966
13986
|
actions: 1,
|
|
13967
13987
|
content: 2,
|
|
13968
13988
|
type: 3,
|
|
13969
|
-
|
|
13989
|
+
accent: 4
|
|
13970
13990
|
}, null);
|
|
13971
13991
|
|
|
13972
13992
|
if (options) {
|
|
@@ -13982,7 +14002,7 @@ class ContainerWrapper_test extends SvelteElement {
|
|
|
13982
14002
|
}
|
|
13983
14003
|
|
|
13984
14004
|
static get observedAttributes() {
|
|
13985
|
-
return ["title", "actions", "content", "type", "
|
|
14005
|
+
return ["title", "actions", "content", "type", "accent"];
|
|
13986
14006
|
}
|
|
13987
14007
|
|
|
13988
14008
|
get title() {
|
|
@@ -14029,13 +14049,13 @@ class ContainerWrapper_test extends SvelteElement {
|
|
|
14029
14049
|
flush();
|
|
14030
14050
|
}
|
|
14031
14051
|
|
|
14032
|
-
get
|
|
14052
|
+
get accent() {
|
|
14033
14053
|
return this.$$.ctx[4];
|
|
14034
14054
|
}
|
|
14035
14055
|
|
|
14036
|
-
set
|
|
14056
|
+
set accent(accent) {
|
|
14037
14057
|
this.$$set({
|
|
14038
|
-
|
|
14058
|
+
accent
|
|
14039
14059
|
});
|
|
14040
14060
|
flush();
|
|
14041
14061
|
}
|
|
@@ -14045,7 +14065,7 @@ class ContainerWrapper_test extends SvelteElement {
|
|
|
14045
14065
|
customElements.define("test-container", ContainerWrapper_test);
|
|
14046
14066
|
/* libs/web-components/src/components/divider/Divider.svelte generated by Svelte v3.49.0 */
|
|
14047
14067
|
|
|
14048
|
-
function create_fragment
|
|
14068
|
+
function create_fragment(ctx) {
|
|
14049
14069
|
let hr;
|
|
14050
14070
|
return {
|
|
14051
14071
|
c() {
|
|
@@ -14125,7 +14145,7 @@ class Divider extends SvelteElement {
|
|
|
14125
14145
|
target: this.shadowRoot,
|
|
14126
14146
|
props: attribute_to_object(this.attributes),
|
|
14127
14147
|
customElement: true
|
|
14128
|
-
}, instance, create_fragment
|
|
14148
|
+
}, instance, create_fragment, safe_not_equal, {
|
|
14129
14149
|
spacing: 1
|
|
14130
14150
|
}, null);
|
|
14131
14151
|
|
|
@@ -14159,57 +14179,6 @@ class Divider extends SvelteElement {
|
|
|
14159
14179
|
}
|
|
14160
14180
|
|
|
14161
14181
|
customElements.define("goa-divider", Divider);
|
|
14162
|
-
/* libs/web-components/src/components/page/Page.svelte generated by Svelte v3.49.0 */
|
|
14163
|
-
|
|
14164
|
-
function create_fragment(ctx) {
|
|
14165
|
-
let div;
|
|
14166
|
-
return {
|
|
14167
|
-
c() {
|
|
14168
|
-
div = element("div");
|
|
14169
|
-
div.innerHTML = `<section class="header"><slot name="header"></slot></section>
|
|
14170
|
-
|
|
14171
|
-
<main><slot></slot></main>
|
|
14172
|
-
|
|
14173
|
-
<section class="footer"><slot name="footer"></slot></section>`;
|
|
14174
|
-
this.c = noop;
|
|
14175
|
-
attr(div, "class", "page");
|
|
14176
|
-
},
|
|
14177
|
-
|
|
14178
|
-
m(target, anchor) {
|
|
14179
|
-
insert(target, div, anchor);
|
|
14180
|
-
},
|
|
14181
|
-
|
|
14182
|
-
p: noop,
|
|
14183
|
-
i: noop,
|
|
14184
|
-
o: noop,
|
|
14185
|
-
|
|
14186
|
-
d(detaching) {
|
|
14187
|
-
if (detaching) detach(div);
|
|
14188
|
-
}
|
|
14189
|
-
|
|
14190
|
-
};
|
|
14191
|
-
}
|
|
14192
|
-
|
|
14193
|
-
class Page extends SvelteElement {
|
|
14194
|
-
constructor(options) {
|
|
14195
|
-
super();
|
|
14196
|
-
this.shadowRoot.innerHTML = `<style>.page{height:100vh;display:flex;flex-direction:column}.header,.footer{flex:0 0 auto}main{flex:1 1 auto}</style>`;
|
|
14197
|
-
init(this, {
|
|
14198
|
-
target: this.shadowRoot,
|
|
14199
|
-
props: attribute_to_object(this.attributes),
|
|
14200
|
-
customElement: true
|
|
14201
|
-
}, null, create_fragment, safe_not_equal, {}, null);
|
|
14202
|
-
|
|
14203
|
-
if (options) {
|
|
14204
|
-
if (options.target) {
|
|
14205
|
-
insert(options.target, this, options.anchor);
|
|
14206
|
-
}
|
|
14207
|
-
}
|
|
14208
|
-
}
|
|
14209
|
-
|
|
14210
|
-
}
|
|
14211
|
-
|
|
14212
|
-
customElements.define("goa-page", Page);
|
|
14213
14182
|
|
|
14214
14183
|
const GoAAppHeader = ({
|
|
14215
14184
|
heading,
|
|
@@ -14348,6 +14317,10 @@ const GoAButton = ({
|
|
|
14348
14317
|
return;
|
|
14349
14318
|
}
|
|
14350
14319
|
|
|
14320
|
+
if (!onClick) {
|
|
14321
|
+
return;
|
|
14322
|
+
}
|
|
14323
|
+
|
|
14351
14324
|
const current = el.current;
|
|
14352
14325
|
|
|
14353
14326
|
const listener = e => {
|
|
@@ -14477,9 +14450,8 @@ const GoACircularProgress = ({
|
|
|
14477
14450
|
};
|
|
14478
14451
|
|
|
14479
14452
|
const GoAContainer = ({
|
|
14480
|
-
|
|
14453
|
+
accent,
|
|
14481
14454
|
title,
|
|
14482
|
-
colored: _colored = false,
|
|
14483
14455
|
padding,
|
|
14484
14456
|
children,
|
|
14485
14457
|
actions,
|
|
@@ -14488,8 +14460,7 @@ const GoAContainer = ({
|
|
|
14488
14460
|
return jsxs("goa-container", Object.assign({
|
|
14489
14461
|
type: type,
|
|
14490
14462
|
padding: padding,
|
|
14491
|
-
|
|
14492
|
-
colored: _colored
|
|
14463
|
+
accent: accent
|
|
14493
14464
|
}, {
|
|
14494
14465
|
children: [title && jsx("div", Object.assign({
|
|
14495
14466
|
slot: "title"
|
|
@@ -15009,8 +14980,8 @@ const GoAPageBlock = props => {
|
|
|
15009
14980
|
}), void 0);
|
|
15010
14981
|
};
|
|
15011
14982
|
|
|
15012
|
-
function
|
|
15013
|
-
return jsx("goa-
|
|
14983
|
+
function GoAOneColumnLayout(props) {
|
|
14984
|
+
return jsx("goa-one-column-layout", {
|
|
15014
14985
|
children: props.children
|
|
15015
14986
|
}, void 0);
|
|
15016
14987
|
}
|
|
@@ -15178,4 +15149,4 @@ function GoATwoColumnLayout(props) {
|
|
|
15178
15149
|
}), void 0);
|
|
15179
15150
|
}
|
|
15180
15151
|
|
|
15181
|
-
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,
|
|
15152
|
+
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, GoAOneColumnLayout, GoAPageBlock, GoARadioGroup, GoARadioItem, GoASkeleton, GoASpinner, GoASuccessBadge, GoATextArea, GoATwoColumnLayout };
|
package/react-components.umd.js
CHANGED
|
@@ -4555,7 +4555,7 @@
|
|
|
4555
4555
|
attr(div0, "class", "title");
|
|
4556
4556
|
attr(div1, "class", "actions");
|
|
4557
4557
|
attr(header, "class", header_class_value = "heading--" +
|
|
4558
|
-
/*
|
|
4558
|
+
/*accent*/
|
|
4559
4559
|
ctx[1]);
|
|
4560
4560
|
attr(div2, "class", "content");
|
|
4561
4561
|
attr(div3, "class", div3_class_value = `
|
|
@@ -4566,10 +4566,10 @@
|
|
|
4566
4566
|
padding--${
|
|
4567
4567
|
/*padding*/
|
|
4568
4568
|
ctx[2]}
|
|
4569
|
+
accent--${
|
|
4570
|
+
/*accent*/
|
|
4571
|
+
ctx[1]}
|
|
4569
4572
|
`);
|
|
4570
|
-
toggle_class(div3, "colored",
|
|
4571
|
-
/*_colored*/
|
|
4572
|
-
ctx[3]);
|
|
4573
4573
|
},
|
|
4574
4574
|
|
|
4575
4575
|
m(target, anchor) {
|
|
@@ -4584,16 +4584,16 @@
|
|
|
4584
4584
|
|
|
4585
4585
|
p(ctx, [dirty]) {
|
|
4586
4586
|
if (dirty &
|
|
4587
|
-
/*
|
|
4587
|
+
/*accent*/
|
|
4588
4588
|
2 && header_class_value !== (header_class_value = "heading--" +
|
|
4589
|
-
/*
|
|
4589
|
+
/*accent*/
|
|
4590
4590
|
ctx[1])) {
|
|
4591
4591
|
attr(header, "class", header_class_value);
|
|
4592
4592
|
}
|
|
4593
4593
|
|
|
4594
4594
|
if (dirty &
|
|
4595
|
-
/*type, padding*/
|
|
4596
|
-
|
|
4595
|
+
/*type, padding, accent*/
|
|
4596
|
+
7 && div3_class_value !== (div3_class_value = `
|
|
4597
4597
|
goa-container
|
|
4598
4598
|
goa-container--${
|
|
4599
4599
|
/*type*/
|
|
@@ -4601,17 +4601,12 @@
|
|
|
4601
4601
|
padding--${
|
|
4602
4602
|
/*padding*/
|
|
4603
4603
|
ctx[2]}
|
|
4604
|
+
accent--${
|
|
4605
|
+
/*accent*/
|
|
4606
|
+
ctx[1]}
|
|
4604
4607
|
`)) {
|
|
4605
4608
|
attr(div3, "class", div3_class_value);
|
|
4606
4609
|
}
|
|
4607
|
-
|
|
4608
|
-
if (dirty &
|
|
4609
|
-
/*type, padding, _colored*/
|
|
4610
|
-
13) {
|
|
4611
|
-
toggle_class(div3, "colored",
|
|
4612
|
-
/*_colored*/
|
|
4613
|
-
ctx[3]);
|
|
4614
|
-
}
|
|
4615
4610
|
},
|
|
4616
4611
|
|
|
4617
4612
|
i: noop,
|
|
@@ -4625,16 +4620,11 @@
|
|
|
4625
4620
|
}
|
|
4626
4621
|
|
|
4627
4622
|
function instance$q($$self, $$props, $$invalidate) {
|
|
4628
|
-
let _colored;
|
|
4629
|
-
|
|
4630
4623
|
let {
|
|
4631
|
-
type = '
|
|
4624
|
+
type = 'interactive'
|
|
4632
4625
|
} = $$props;
|
|
4633
4626
|
let {
|
|
4634
|
-
|
|
4635
|
-
} = $$props;
|
|
4636
|
-
let {
|
|
4637
|
-
headingsize = 'large'
|
|
4627
|
+
accent = 'filled'
|
|
4638
4628
|
} = $$props;
|
|
4639
4629
|
let {
|
|
4640
4630
|
padding = "relaxed"
|
|
@@ -4642,34 +4632,24 @@
|
|
|
4642
4632
|
|
|
4643
4633
|
$$self.$$set = $$props => {
|
|
4644
4634
|
if ('type' in $$props) $$invalidate(0, type = $$props.type);
|
|
4645
|
-
if ('
|
|
4646
|
-
if ('headingsize' in $$props) $$invalidate(1, headingsize = $$props.headingsize);
|
|
4635
|
+
if ('accent' in $$props) $$invalidate(1, accent = $$props.accent);
|
|
4647
4636
|
if ('padding' in $$props) $$invalidate(2, padding = $$props.padding);
|
|
4648
4637
|
};
|
|
4649
4638
|
|
|
4650
|
-
|
|
4651
|
-
if ($$self.$$.dirty &
|
|
4652
|
-
/*colored*/
|
|
4653
|
-
16) {
|
|
4654
|
-
$$invalidate(3, _colored = toBoolean(colored));
|
|
4655
|
-
}
|
|
4656
|
-
};
|
|
4657
|
-
|
|
4658
|
-
return [type, headingsize, padding, _colored, colored];
|
|
4639
|
+
return [type, accent, padding];
|
|
4659
4640
|
}
|
|
4660
4641
|
|
|
4661
4642
|
class Container extends SvelteElement {
|
|
4662
4643
|
constructor(options) {
|
|
4663
4644
|
super();
|
|
4664
|
-
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.
|
|
4645
|
+
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>`;
|
|
4665
4646
|
init(this, {
|
|
4666
4647
|
target: this.shadowRoot,
|
|
4667
4648
|
props: attribute_to_object(this.attributes),
|
|
4668
4649
|
customElement: true
|
|
4669
4650
|
}, instance$q, create_fragment$s, safe_not_equal, {
|
|
4670
4651
|
type: 0,
|
|
4671
|
-
|
|
4672
|
-
headingsize: 1,
|
|
4652
|
+
accent: 1,
|
|
4673
4653
|
padding: 2
|
|
4674
4654
|
}, null);
|
|
4675
4655
|
|
|
@@ -4686,7 +4666,7 @@
|
|
|
4686
4666
|
}
|
|
4687
4667
|
|
|
4688
4668
|
static get observedAttributes() {
|
|
4689
|
-
return ["type", "
|
|
4669
|
+
return ["type", "accent", "padding"];
|
|
4690
4670
|
}
|
|
4691
4671
|
|
|
4692
4672
|
get type() {
|
|
@@ -4700,24 +4680,13 @@
|
|
|
4700
4680
|
flush();
|
|
4701
4681
|
}
|
|
4702
4682
|
|
|
4703
|
-
get
|
|
4704
|
-
return this.$$.ctx[4];
|
|
4705
|
-
}
|
|
4706
|
-
|
|
4707
|
-
set colored(colored) {
|
|
4708
|
-
this.$$set({
|
|
4709
|
-
colored
|
|
4710
|
-
});
|
|
4711
|
-
flush();
|
|
4712
|
-
}
|
|
4713
|
-
|
|
4714
|
-
get headingsize() {
|
|
4683
|
+
get accent() {
|
|
4715
4684
|
return this.$$.ctx[1];
|
|
4716
4685
|
}
|
|
4717
4686
|
|
|
4718
|
-
set
|
|
4687
|
+
set accent(accent) {
|
|
4719
4688
|
this.$$set({
|
|
4720
|
-
|
|
4689
|
+
accent
|
|
4721
4690
|
});
|
|
4722
4691
|
flush();
|
|
4723
4692
|
}
|
|
@@ -5358,7 +5327,7 @@
|
|
|
5358
5327
|
};
|
|
5359
5328
|
}
|
|
5360
5329
|
|
|
5361
|
-
const MAX_HEIGHT = "
|
|
5330
|
+
const MAX_HEIGHT = "276px";
|
|
5362
5331
|
|
|
5363
5332
|
function instance$p($$self, $$props, $$invalidate) {
|
|
5364
5333
|
const showMenu = _async(function () {
|
|
@@ -13600,9 +13569,60 @@
|
|
|
13600
13569
|
}
|
|
13601
13570
|
|
|
13602
13571
|
customElements.define("goa-textarea", TextArea);
|
|
13603
|
-
/* libs/web-components/src/layouts/
|
|
13572
|
+
/* libs/web-components/src/layouts/one-column-layout/OneColumnLayout.svelte generated by Svelte v3.49.0 */
|
|
13604
13573
|
|
|
13605
13574
|
function create_fragment$4(ctx) {
|
|
13575
|
+
let div;
|
|
13576
|
+
return {
|
|
13577
|
+
c() {
|
|
13578
|
+
div = element("div");
|
|
13579
|
+
div.innerHTML = `<section class="header"><slot name="header"></slot></section>
|
|
13580
|
+
|
|
13581
|
+
<main><slot></slot></main>
|
|
13582
|
+
|
|
13583
|
+
<section class="footer"><slot name="footer"></slot></section>`;
|
|
13584
|
+
this.c = noop;
|
|
13585
|
+
attr(div, "class", "page");
|
|
13586
|
+
},
|
|
13587
|
+
|
|
13588
|
+
m(target, anchor) {
|
|
13589
|
+
insert(target, div, anchor);
|
|
13590
|
+
},
|
|
13591
|
+
|
|
13592
|
+
p: noop,
|
|
13593
|
+
i: noop,
|
|
13594
|
+
o: noop,
|
|
13595
|
+
|
|
13596
|
+
d(detaching) {
|
|
13597
|
+
if (detaching) detach(div);
|
|
13598
|
+
}
|
|
13599
|
+
|
|
13600
|
+
};
|
|
13601
|
+
}
|
|
13602
|
+
|
|
13603
|
+
class OneColumnLayout extends SvelteElement {
|
|
13604
|
+
constructor(options) {
|
|
13605
|
+
super();
|
|
13606
|
+
this.shadowRoot.innerHTML = `<style>.page{height:100vh;display:flex;flex-direction:column}.header,.footer{flex:0 0 auto}main{flex:1 1 auto}</style>`;
|
|
13607
|
+
init(this, {
|
|
13608
|
+
target: this.shadowRoot,
|
|
13609
|
+
props: attribute_to_object(this.attributes),
|
|
13610
|
+
customElement: true
|
|
13611
|
+
}, null, create_fragment$4, safe_not_equal, {}, null);
|
|
13612
|
+
|
|
13613
|
+
if (options) {
|
|
13614
|
+
if (options.target) {
|
|
13615
|
+
insert(options.target, this, options.anchor);
|
|
13616
|
+
}
|
|
13617
|
+
}
|
|
13618
|
+
}
|
|
13619
|
+
|
|
13620
|
+
}
|
|
13621
|
+
|
|
13622
|
+
customElements.define("goa-one-column-layout", OneColumnLayout);
|
|
13623
|
+
/* libs/web-components/src/layouts/two-column-layout/TwoColumnLayout.svelte generated by Svelte v3.49.0 */
|
|
13624
|
+
|
|
13625
|
+
function create_fragment$3(ctx) {
|
|
13606
13626
|
let div;
|
|
13607
13627
|
let header;
|
|
13608
13628
|
let t0;
|
|
@@ -13696,7 +13716,7 @@
|
|
|
13696
13716
|
target: this.shadowRoot,
|
|
13697
13717
|
props: attribute_to_object(this.attributes),
|
|
13698
13718
|
customElement: true
|
|
13699
|
-
}, instance$2, create_fragment$
|
|
13719
|
+
}, instance$2, create_fragment$3, safe_not_equal, {
|
|
13700
13720
|
navcolumnwidth: 0,
|
|
13701
13721
|
maxcontentwidth: 1
|
|
13702
13722
|
}, null);
|
|
@@ -13744,7 +13764,7 @@
|
|
|
13744
13764
|
customElements.define("goa-two-column-layout", TwoColumnLayout);
|
|
13745
13765
|
/* libs/web-components/src/layouts/FullScreenNavbarLayout.svelte generated by Svelte v3.49.0 */
|
|
13746
13766
|
|
|
13747
|
-
function create_fragment$
|
|
13767
|
+
function create_fragment$2(ctx) {
|
|
13748
13768
|
let div;
|
|
13749
13769
|
return {
|
|
13750
13770
|
c() {
|
|
@@ -13788,7 +13808,7 @@
|
|
|
13788
13808
|
target: this.shadowRoot,
|
|
13789
13809
|
props: attribute_to_object(this.attributes),
|
|
13790
13810
|
customElement: true
|
|
13791
|
-
}, null, create_fragment$
|
|
13811
|
+
}, null, create_fragment$2, safe_not_equal, {}, null);
|
|
13792
13812
|
|
|
13793
13813
|
if (options) {
|
|
13794
13814
|
if (options.target) {
|
|
@@ -13867,7 +13887,7 @@
|
|
|
13867
13887
|
};
|
|
13868
13888
|
}
|
|
13869
13889
|
|
|
13870
|
-
function create_fragment$
|
|
13890
|
+
function create_fragment$1(ctx) {
|
|
13871
13891
|
let goa_container;
|
|
13872
13892
|
let t0;
|
|
13873
13893
|
let t1;
|
|
@@ -13892,8 +13912,8 @@
|
|
|
13892
13912
|
set_custom_element_data(goa_container, "type",
|
|
13893
13913
|
/*type*/
|
|
13894
13914
|
ctx[3]);
|
|
13895
|
-
set_custom_element_data(goa_container, "
|
|
13896
|
-
/*
|
|
13915
|
+
set_custom_element_data(goa_container, "accent",
|
|
13916
|
+
/*accent*/
|
|
13897
13917
|
ctx[4]);
|
|
13898
13918
|
},
|
|
13899
13919
|
|
|
@@ -13955,10 +13975,10 @@
|
|
|
13955
13975
|
}
|
|
13956
13976
|
|
|
13957
13977
|
if (dirty &
|
|
13958
|
-
/*
|
|
13978
|
+
/*accent*/
|
|
13959
13979
|
16) {
|
|
13960
|
-
set_custom_element_data(goa_container, "
|
|
13961
|
-
/*
|
|
13980
|
+
set_custom_element_data(goa_container, "accent",
|
|
13981
|
+
/*accent*/
|
|
13962
13982
|
ctx[4]);
|
|
13963
13983
|
}
|
|
13964
13984
|
},
|
|
@@ -13989,7 +14009,7 @@
|
|
|
13989
14009
|
type = "default"
|
|
13990
14010
|
} = $$props;
|
|
13991
14011
|
let {
|
|
13992
|
-
|
|
14012
|
+
accent = "thick"
|
|
13993
14013
|
} = $$props;
|
|
13994
14014
|
|
|
13995
14015
|
$$self.$$set = $$props => {
|
|
@@ -13997,10 +14017,10 @@
|
|
|
13997
14017
|
if ('actions' in $$props) $$invalidate(1, actions = $$props.actions);
|
|
13998
14018
|
if ('content' in $$props) $$invalidate(2, content = $$props.content);
|
|
13999
14019
|
if ('type' in $$props) $$invalidate(3, type = $$props.type);
|
|
14000
|
-
if ('
|
|
14020
|
+
if ('accent' in $$props) $$invalidate(4, accent = $$props.accent);
|
|
14001
14021
|
};
|
|
14002
14022
|
|
|
14003
|
-
return [title, actions, content, type,
|
|
14023
|
+
return [title, actions, content, type, accent];
|
|
14004
14024
|
}
|
|
14005
14025
|
|
|
14006
14026
|
class ContainerWrapper_test extends SvelteElement {
|
|
@@ -14010,12 +14030,12 @@
|
|
|
14010
14030
|
target: this.shadowRoot,
|
|
14011
14031
|
props: attribute_to_object(this.attributes),
|
|
14012
14032
|
customElement: true
|
|
14013
|
-
}, instance$1, create_fragment$
|
|
14033
|
+
}, instance$1, create_fragment$1, safe_not_equal, {
|
|
14014
14034
|
title: 0,
|
|
14015
14035
|
actions: 1,
|
|
14016
14036
|
content: 2,
|
|
14017
14037
|
type: 3,
|
|
14018
|
-
|
|
14038
|
+
accent: 4
|
|
14019
14039
|
}, null);
|
|
14020
14040
|
|
|
14021
14041
|
if (options) {
|
|
@@ -14031,7 +14051,7 @@
|
|
|
14031
14051
|
}
|
|
14032
14052
|
|
|
14033
14053
|
static get observedAttributes() {
|
|
14034
|
-
return ["title", "actions", "content", "type", "
|
|
14054
|
+
return ["title", "actions", "content", "type", "accent"];
|
|
14035
14055
|
}
|
|
14036
14056
|
|
|
14037
14057
|
get title() {
|
|
@@ -14078,13 +14098,13 @@
|
|
|
14078
14098
|
flush();
|
|
14079
14099
|
}
|
|
14080
14100
|
|
|
14081
|
-
get
|
|
14101
|
+
get accent() {
|
|
14082
14102
|
return this.$$.ctx[4];
|
|
14083
14103
|
}
|
|
14084
14104
|
|
|
14085
|
-
set
|
|
14105
|
+
set accent(accent) {
|
|
14086
14106
|
this.$$set({
|
|
14087
|
-
|
|
14107
|
+
accent
|
|
14088
14108
|
});
|
|
14089
14109
|
flush();
|
|
14090
14110
|
}
|
|
@@ -14094,7 +14114,7 @@
|
|
|
14094
14114
|
customElements.define("test-container", ContainerWrapper_test);
|
|
14095
14115
|
/* libs/web-components/src/components/divider/Divider.svelte generated by Svelte v3.49.0 */
|
|
14096
14116
|
|
|
14097
|
-
function create_fragment
|
|
14117
|
+
function create_fragment(ctx) {
|
|
14098
14118
|
let hr;
|
|
14099
14119
|
return {
|
|
14100
14120
|
c() {
|
|
@@ -14174,7 +14194,7 @@
|
|
|
14174
14194
|
target: this.shadowRoot,
|
|
14175
14195
|
props: attribute_to_object(this.attributes),
|
|
14176
14196
|
customElement: true
|
|
14177
|
-
}, instance, create_fragment
|
|
14197
|
+
}, instance, create_fragment, safe_not_equal, {
|
|
14178
14198
|
spacing: 1
|
|
14179
14199
|
}, null);
|
|
14180
14200
|
|
|
@@ -14208,57 +14228,6 @@
|
|
|
14208
14228
|
}
|
|
14209
14229
|
|
|
14210
14230
|
customElements.define("goa-divider", Divider);
|
|
14211
|
-
/* libs/web-components/src/components/page/Page.svelte generated by Svelte v3.49.0 */
|
|
14212
|
-
|
|
14213
|
-
function create_fragment(ctx) {
|
|
14214
|
-
let div;
|
|
14215
|
-
return {
|
|
14216
|
-
c() {
|
|
14217
|
-
div = element("div");
|
|
14218
|
-
div.innerHTML = `<section class="header"><slot name="header"></slot></section>
|
|
14219
|
-
|
|
14220
|
-
<main><slot></slot></main>
|
|
14221
|
-
|
|
14222
|
-
<section class="footer"><slot name="footer"></slot></section>`;
|
|
14223
|
-
this.c = noop;
|
|
14224
|
-
attr(div, "class", "page");
|
|
14225
|
-
},
|
|
14226
|
-
|
|
14227
|
-
m(target, anchor) {
|
|
14228
|
-
insert(target, div, anchor);
|
|
14229
|
-
},
|
|
14230
|
-
|
|
14231
|
-
p: noop,
|
|
14232
|
-
i: noop,
|
|
14233
|
-
o: noop,
|
|
14234
|
-
|
|
14235
|
-
d(detaching) {
|
|
14236
|
-
if (detaching) detach(div);
|
|
14237
|
-
}
|
|
14238
|
-
|
|
14239
|
-
};
|
|
14240
|
-
}
|
|
14241
|
-
|
|
14242
|
-
class Page extends SvelteElement {
|
|
14243
|
-
constructor(options) {
|
|
14244
|
-
super();
|
|
14245
|
-
this.shadowRoot.innerHTML = `<style>.page{height:100vh;display:flex;flex-direction:column}.header,.footer{flex:0 0 auto}main{flex:1 1 auto}</style>`;
|
|
14246
|
-
init(this, {
|
|
14247
|
-
target: this.shadowRoot,
|
|
14248
|
-
props: attribute_to_object(this.attributes),
|
|
14249
|
-
customElement: true
|
|
14250
|
-
}, null, create_fragment, safe_not_equal, {}, null);
|
|
14251
|
-
|
|
14252
|
-
if (options) {
|
|
14253
|
-
if (options.target) {
|
|
14254
|
-
insert(options.target, this, options.anchor);
|
|
14255
|
-
}
|
|
14256
|
-
}
|
|
14257
|
-
}
|
|
14258
|
-
|
|
14259
|
-
}
|
|
14260
|
-
|
|
14261
|
-
customElements.define("goa-page", Page);
|
|
14262
14231
|
|
|
14263
14232
|
/*! *****************************************************************************
|
|
14264
14233
|
Copyright (c) Microsoft Corporation.
|
|
@@ -14429,6 +14398,10 @@
|
|
|
14429
14398
|
return;
|
|
14430
14399
|
}
|
|
14431
14400
|
|
|
14401
|
+
if (!onClick) {
|
|
14402
|
+
return;
|
|
14403
|
+
}
|
|
14404
|
+
|
|
14432
14405
|
var current = el.current;
|
|
14433
14406
|
|
|
14434
14407
|
var listener = function listener(e) {
|
|
@@ -14558,10 +14531,8 @@
|
|
|
14558
14531
|
};
|
|
14559
14532
|
|
|
14560
14533
|
var GoAContainer = function GoAContainer(_a) {
|
|
14561
|
-
var
|
|
14534
|
+
var accent = _a.accent,
|
|
14562
14535
|
title = _a.title,
|
|
14563
|
-
_b = _a.colored,
|
|
14564
|
-
colored = _b === void 0 ? false : _b,
|
|
14565
14536
|
padding = _a.padding,
|
|
14566
14537
|
children = _a.children,
|
|
14567
14538
|
actions = _a.actions,
|
|
@@ -14569,8 +14540,7 @@
|
|
|
14569
14540
|
return jsxRuntime.jsxs("goa-container", __assign({
|
|
14570
14541
|
type: type,
|
|
14571
14542
|
padding: padding,
|
|
14572
|
-
|
|
14573
|
-
colored: colored
|
|
14543
|
+
accent: accent
|
|
14574
14544
|
}, {
|
|
14575
14545
|
children: [title && jsxRuntime.jsx("div", __assign({
|
|
14576
14546
|
slot: "title"
|
|
@@ -15048,8 +15018,8 @@
|
|
|
15048
15018
|
}), void 0);
|
|
15049
15019
|
};
|
|
15050
15020
|
|
|
15051
|
-
function
|
|
15052
|
-
return jsxRuntime.jsx("goa-
|
|
15021
|
+
function GoAOneColumnLayout(props) {
|
|
15022
|
+
return jsxRuntime.jsx("goa-one-column-layout", {
|
|
15053
15023
|
children: props.children
|
|
15054
15024
|
}, void 0);
|
|
15055
15025
|
}
|
|
@@ -15257,7 +15227,7 @@
|
|
|
15257
15227
|
exports.GoAMicrositeHeader = GoAMicrositeHeader;
|
|
15258
15228
|
exports.GoAModal = GoAModal;
|
|
15259
15229
|
exports.GoANotification = GoANotification;
|
|
15260
|
-
exports.
|
|
15230
|
+
exports.GoAOneColumnLayout = GoAOneColumnLayout;
|
|
15261
15231
|
exports.GoAPageBlock = GoAPageBlock;
|
|
15262
15232
|
exports.GoARadioGroup = GoARadioGroup;
|
|
15263
15233
|
exports.GoARadioItem = GoARadioItem;
|
package/lib/page/page.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
declare global {
|
|
3
|
-
namespace JSX {
|
|
4
|
-
interface IntrinsicElements {
|
|
5
|
-
'goa-page': React.HTMLAttributes<HTMLElement>;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
export interface PageProps {
|
|
10
|
-
children?: ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export declare function GoAPage(props: PageProps): JSX.Element;
|
|
13
|
-
export default GoAPage;
|