@noctuatech/uswds 0.1.0 → 0.1.3
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/assets/flags/alabama.svg +5 -0
- package/assets/flags/alaska.svg +14 -0
- package/assets/flags/arizona.svg +7 -0
- package/assets/flags/arkansas.svg +15 -0
- package/assets/flags/california.svg +8 -0
- package/assets/flags/colorado.svg +8 -0
- package/assets/flags/connecticut.svg +5 -0
- package/assets/flags/delaware.svg +7 -0
- package/assets/flags/florida.svg +5 -0
- package/assets/flags/georgia.svg +5 -0
- package/assets/flags/hawaii.svg +19 -0
- package/assets/flags/idaho.svg +5 -0
- package/assets/flags/illinois.svg +5 -0
- package/assets/flags/indiana.svg +15 -0
- package/assets/flags/iowa.svg +13 -0
- package/assets/flags/kansas.svg +5 -0
- package/assets/flags/kentucky.svg +16 -0
- package/assets/flags/louisiana.svg +14 -0
- package/assets/flags/maine.svg +12 -0
- package/assets/flags/maryland.svg +14 -0
- package/assets/flags/massachusetts.svg +15 -0
- package/assets/flags/michigan.svg +5 -0
- package/assets/flags/minnesota.svg +15 -0
- package/assets/flags/mississippi.svg +10 -0
- package/assets/flags/missouri.svg +16 -0
- package/assets/flags/montana.svg +11 -0
- package/assets/flags/nebraska.svg +13 -0
- package/assets/flags/nevada.svg +14 -0
- package/assets/flags/new_hampshire.svg +13 -0
- package/assets/flags/new_jersey.svg +13 -0
- package/assets/flags/new_mexico.svg +7 -0
- package/assets/flags/new_york.svg +13 -0
- package/assets/flags/north_carolina.svg +5 -0
- package/assets/flags/north_dakota.svg +13 -0
- package/assets/flags/ohio.svg +16 -0
- package/assets/flags/oklahoma.svg +12 -0
- package/assets/flags/oregon.svg +13 -0
- package/assets/flags/pennsylvania.svg +15 -0
- package/assets/flags/rhode_island.svg +13 -0
- package/assets/flags/south_carolina.svg +11 -0
- package/assets/flags/south_dakota.svg +15 -0
- package/assets/flags/tennessee.svg +13 -0
- package/assets/flags/texas.svg +8 -0
- package/assets/flags/utah.svg +9 -0
- package/assets/flags/vermont.svg +13 -0
- package/assets/flags/virginia.svg +5 -0
- package/assets/flags/washington.svg +5 -0
- package/assets/flags/west_virginia.svg +24 -0
- package/assets/flags/wisconsin.svg +5 -0
- package/assets/flags/wyoming.svg +5 -0
- package/package.json +13 -11
- package/src/lib/combo-box/combo-box-option/combo-box-option.element.ts +32 -13
- package/src/lib/combo-box/combo-box.element.ts +161 -43
- package/src/lib/combo-box/combo-box.stories.ts +202 -56
- package/src/lib/combo-box/combo-box.test.ts +140 -22
- package/target/lib/accordion/accordion.element.js +2 -86
- package/target/lib/accordion/accordion.stories.js +1 -26
- package/target/lib/accordion/accordion.test.js +5 -72
- package/target/lib/alert/alert.element.js +2 -71
- package/target/lib/alert/alert.stories.js +1 -41
- package/target/lib/alert/alert.test.js +1 -9
- package/target/lib/button/button.element.js +2 -142
- package/target/lib/button/button.stories.js +1 -6
- package/target/lib/button/button.test.js +1 -3
- package/target/lib/card/card-body/card-body.element.js +1 -8
- package/target/lib/card/card-footer/card-footer.element.js +1 -6
- package/target/lib/card/card-group/card-group.element.js +1 -12
- package/target/lib/card/card-header/card-header.element.js +1 -16
- package/target/lib/card/card-media/card-media.element.js +2 -33
- package/target/lib/card/card.element.js +1 -32
- package/target/lib/card/card.stories.js +2 -107
- package/target/lib/card/card.test.js +1 -20
- package/target/lib/checkbox/checkbox-group/checkbox-group.element.js +2 -10
- package/target/lib/checkbox/checkbox.element.js +2 -112
- package/target/lib/checkbox/checkbox.stories.js +2 -43
- package/target/lib/checkbox/checkbox.test.js +4 -28
- package/target/lib/collection/collection-item/collection-item.element.js +2 -40
- package/target/lib/collection/collection-item/collection-item.test.js +1 -3
- package/target/lib/collection/collection.element.js +2 -10
- package/target/lib/collection/collection.stories.js +1 -63
- package/target/lib/collection/collection.test.js +1 -3
- package/target/lib/combo-box/combo-box-option/combo-box-option.element.d.ts +0 -1
- package/target/lib/combo-box/combo-box-option/combo-box-option.element.js +21 -12
- package/target/lib/combo-box/combo-box-option/combo-box-option.element.js.map +1 -1
- package/target/lib/combo-box/combo-box.element.d.ts +9 -1
- package/target/lib/combo-box/combo-box.element.js +92 -86
- package/target/lib/combo-box/combo-box.element.js.map +1 -1
- package/target/lib/combo-box/combo-box.stories.js +1 -59
- package/target/lib/combo-box/combo-box.stories.js.map +1 -1
- package/target/lib/combo-box/combo-box.test.js +65 -22
- package/target/lib/combo-box/combo-box.test.js.map +1 -1
- package/target/lib/config/config.element.js +1 -5
- package/target/lib/config/config.test.js +1 -3
- package/target/lib/description/description.element.js +1 -7
- package/target/lib/description/description.test.js +1 -3
- package/target/lib/file-input/file-input-preview/file-input-preview.element.js +2 -61
- package/target/lib/file-input/file-input-preview/file-input-preview.test.js +5 -25
- package/target/lib/file-input/file-input.element.js +2 -82
- package/target/lib/file-input/file-input.stories.js +1 -13
- package/target/lib/file-input/file-input.test.js +2 -16
- package/target/lib/icon/icon.element.js +1 -14
- package/target/lib/icon/icon.stories.js +2 -13
- package/target/lib/input/input.element.js +2 -73
- package/target/lib/input/input.stories.js +2 -12
- package/target/lib/input/input.test.js +4 -24
- package/target/lib/input-mask/input-mask.element.js +1 -5
- package/target/lib/input-mask/input-mask.stories.js +1 -12
- package/target/lib/input-mask/input-mask.test.js +4 -24
- package/target/lib/link/link.element.js +2 -18
- package/target/lib/modal/modal-close/modal-close.element.js +2 -36
- package/target/lib/modal/modal-close/modal-close.test.js +1 -3
- package/target/lib/modal/modal-heading/modal-heading.element.js +2 -24
- package/target/lib/modal/modal-heading/modal-heading.test.js +1 -3
- package/target/lib/modal/modal.element.js +2 -33
- package/target/lib/modal/modal.stories.js +1 -18
- package/target/lib/modal/modal.test.js +1 -11
- package/target/lib/radio/radio-option/radio-option.element.js +2 -16
- package/target/lib/radio/radio-option/radio-option.test.js +1 -5
- package/target/lib/radio/radio.element.js +2 -98
- package/target/lib/radio/radio.stories.js +1 -26
- package/target/lib/radio/radio.test.js +5 -103
- package/target/lib/range-slider/range-slider.element.js +2 -52
- package/target/lib/range-slider/range-slider.test.js +3 -17
- package/target/lib/select/select-option/select-option.element.js +1 -5
- package/target/lib/select/select.element.js +2 -49
- package/target/lib/select/select.stories.js +1 -10
- package/target/lib/select/select.test.js +6 -64
- package/target/lib/side-nav/side-nav-item/side-nav-item.element.js +2 -67
- package/target/lib/side-nav/side-nav.element.js +1 -8
- package/target/lib/side-nav/side-nav.stories.js +1 -39
- package/target/lib/side-nav/side-nav.test.js +2 -78
- package/target/lib/step-indicator/step/step.element.js +2 -96
- package/target/lib/step-indicator/step-indicator.element.js +1 -9
- package/target/lib/step-indicator/step-indicator.stories.js +1 -21
- package/target/lib/step-indicator/step-indicator.test.js +1 -9
- package/target/lib/summary-box/summary-box.element.js +2 -14
- package/target/lib/summary-box/summary-box.stories.js +1 -1
- package/target/lib/summary-box/summary-box.test.js +1 -3
- package/target/lib/tag/tag.element.js +1 -22
- package/target/lib/tag/tag.stories.js +1 -1
- package/target/lib/tag/tag.test.js +1 -3
- package/target/lib/textarea/textarea.element.js +2 -49
- package/target/lib/textarea/textarea.test.js +4 -24
|
@@ -10,117 +10,12 @@ export default meta;
|
|
|
10
10
|
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
|
|
11
11
|
export const Primary = {
|
|
12
12
|
render() {
|
|
13
|
-
return html
|
|
14
|
-
<usa-card-group>
|
|
15
|
-
<usa-card>
|
|
16
|
-
<usa-card-header>Card</usa-card-header>
|
|
17
|
-
|
|
18
|
-
<usa-card-body>
|
|
19
|
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis
|
|
20
|
-
earum tenetur quo cupiditate, eaque qui officia recusandae.
|
|
21
|
-
</usa-card-body>
|
|
22
|
-
|
|
23
|
-
<usa-card-footer>
|
|
24
|
-
<usa-button>Visit Florida Keys</usa-button>
|
|
25
|
-
</usa-card-footer>
|
|
26
|
-
</usa-card>
|
|
27
|
-
|
|
28
|
-
<usa-card>
|
|
29
|
-
<usa-card-media>
|
|
30
|
-
<img src="./img/built-to-grow--alt.jpg" alt="A placeholder image" />
|
|
31
|
-
</usa-card-media>
|
|
32
|
-
|
|
33
|
-
<usa-card-header>Card with media</usa-card-header>
|
|
34
|
-
|
|
35
|
-
<usa-card-body>
|
|
36
|
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis
|
|
37
|
-
earum tenetur quo cupiditate, eaque qui officia recusandae.
|
|
38
|
-
</usa-card-body>
|
|
39
|
-
|
|
40
|
-
<usa-card-footer>
|
|
41
|
-
<usa-button>Visit Florida Keys</usa-button>
|
|
42
|
-
</usa-card-footer>
|
|
43
|
-
</usa-card>
|
|
44
|
-
|
|
45
|
-
<usa-card>
|
|
46
|
-
<usa-card-header>Media with heaer first</usa-card-header>
|
|
47
|
-
|
|
48
|
-
<usa-card-media>
|
|
49
|
-
<img src="./img/built-to-grow--alt.jpg" alt="A placeholder image" />
|
|
50
|
-
</usa-card-media>
|
|
51
|
-
|
|
52
|
-
<usa-card-body>
|
|
53
|
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Tempore
|
|
54
|
-
possimus similique nemo odit doloremque laudantium?
|
|
55
|
-
</usa-card-body>
|
|
56
|
-
|
|
57
|
-
<usa-card-footer>
|
|
58
|
-
<usa-button>Visit Florida Keys</usa-button>
|
|
59
|
-
</usa-card-footer>
|
|
60
|
-
</usa-card>
|
|
61
|
-
|
|
62
|
-
<usa-card>
|
|
63
|
-
<usa-card-media variant="inset">
|
|
64
|
-
<img src="./img/built-to-grow--alt.jpg" alt="A placeholder image" />
|
|
65
|
-
</usa-card-media>
|
|
66
|
-
|
|
67
|
-
<usa-card-header>Inset media</usa-card-header>
|
|
68
|
-
|
|
69
|
-
<usa-card-body>
|
|
70
|
-
Etiam vitae sodales metus. Fusce id orci dignissim, efficitur risus
|
|
71
|
-
eget, tempus odio. Donec lectus ante, auctor eget cursus sed,
|
|
72
|
-
convallis quis magna. Orci varius natoque penatibus et magnis dis
|
|
73
|
-
parturient montes, nascetur ridiculus mus. Mauris mattis tellus
|
|
74
|
-
bibendum aliquet malesuada.
|
|
75
|
-
</usa-card-body>
|
|
76
|
-
|
|
77
|
-
<usa-card-footer>
|
|
78
|
-
<usa-button>Visit Florida Keys</usa-button>
|
|
79
|
-
</usa-card-footer>
|
|
80
|
-
</usa-card>
|
|
81
|
-
</usa-card-group>
|
|
82
|
-
`;
|
|
13
|
+
return html `<usa-card-group><usa-card><usa-card-header>Card</usa-card-header><usa-card-body>Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis earum tenetur quo cupiditate, eaque qui officia recusandae.</usa-card-body><usa-card-footer><usa-button>Visit Florida Keys</usa-button></usa-card-footer></usa-card><usa-card><usa-card-media><img src="./img/built-to-grow--alt.jpg" alt="A placeholder image"></usa-card-media><usa-card-header>Card with media</usa-card-header><usa-card-body>Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis earum tenetur quo cupiditate, eaque qui officia recusandae.</usa-card-body><usa-card-footer><usa-button>Visit Florida Keys</usa-button></usa-card-footer></usa-card><usa-card><usa-card-header>Media with heaer first</usa-card-header><usa-card-media><img src="./img/built-to-grow--alt.jpg" alt="A placeholder image"></usa-card-media><usa-card-body>Lorem ipsum dolor sit amet consectetur adipisicing elit. Tempore possimus similique nemo odit doloremque laudantium?</usa-card-body><usa-card-footer><usa-button>Visit Florida Keys</usa-button></usa-card-footer></usa-card><usa-card><usa-card-media variant="inset"><img src="./img/built-to-grow--alt.jpg" alt="A placeholder image"></usa-card-media><usa-card-header>Inset media</usa-card-header><usa-card-body>Etiam vitae sodales metus. Fusce id orci dignissim, efficitur risus eget, tempus odio. Donec lectus ante, auctor eget cursus sed, convallis quis magna. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Mauris mattis tellus bibendum aliquet malesuada.</usa-card-body><usa-card-footer><usa-button>Visit Florida Keys</usa-button></usa-card-footer></usa-card></usa-card-group>`;
|
|
83
14
|
},
|
|
84
15
|
};
|
|
85
16
|
export const Flag = {
|
|
86
17
|
render() {
|
|
87
|
-
return html
|
|
88
|
-
<usa-card-group variant="flag">
|
|
89
|
-
<usa-card variant="flag">
|
|
90
|
-
<usa-card-media>
|
|
91
|
-
<img src="./img/built-to-grow--alt.jpg" alt="A placeholder image" />
|
|
92
|
-
</usa-card-media>
|
|
93
|
-
|
|
94
|
-
<usa-card-header>Card with media</usa-card-header>
|
|
95
|
-
|
|
96
|
-
<usa-card-body>
|
|
97
|
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis
|
|
98
|
-
earum tenetur quo cupiditate, eaque qui officia recusandae.
|
|
99
|
-
</usa-card-body>
|
|
100
|
-
|
|
101
|
-
<usa-card-footer>
|
|
102
|
-
<usa-button>Visit Florida Keys</usa-button>
|
|
103
|
-
</usa-card-footer>
|
|
104
|
-
</usa-card>
|
|
105
|
-
|
|
106
|
-
<usa-card variant="flag">
|
|
107
|
-
<usa-card-media variant="inset">
|
|
108
|
-
<img src="./img/built-to-grow--alt.jpg" alt="A placeholder image" />
|
|
109
|
-
</usa-card-media>
|
|
110
|
-
|
|
111
|
-
<usa-card-header>Card with media</usa-card-header>
|
|
112
|
-
|
|
113
|
-
<usa-card-body>
|
|
114
|
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis
|
|
115
|
-
earum tenetur quo cupiditate, eaque qui officia recusandae.
|
|
116
|
-
</usa-card-body>
|
|
117
|
-
|
|
118
|
-
<usa-card-footer>
|
|
119
|
-
<usa-button>Visit Florida Keys</usa-button>
|
|
120
|
-
</usa-card-footer>
|
|
121
|
-
</usa-card>
|
|
122
|
-
</usa-card-group>
|
|
123
|
-
`;
|
|
18
|
+
return html `<usa-card-group variant="flag"><usa-card variant="flag"><usa-card-media><img src="./img/built-to-grow--alt.jpg" alt="A placeholder image"></usa-card-media><usa-card-header>Card with media</usa-card-header><usa-card-body>Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis earum tenetur quo cupiditate, eaque qui officia recusandae.</usa-card-body><usa-card-footer><usa-button>Visit Florida Keys</usa-button></usa-card-footer></usa-card><usa-card variant="flag"><usa-card-media variant="inset"><img src="./img/built-to-grow--alt.jpg" alt="A placeholder image"></usa-card-media><usa-card-header>Card with media</usa-card-header><usa-card-body>Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis earum tenetur quo cupiditate, eaque qui officia recusandae.</usa-card-body><usa-card-footer><usa-button>Visit Florida Keys</usa-button></usa-card-footer></usa-card></usa-card-group>`;
|
|
124
19
|
},
|
|
125
20
|
};
|
|
126
21
|
//# sourceMappingURL=card.stories.js.map
|
|
@@ -7,26 +7,7 @@ import "./card-media/card-media.element.js";
|
|
|
7
7
|
import { assert, fixture, html } from "@open-wc/testing";
|
|
8
8
|
describe("usa-card", () => {
|
|
9
9
|
it("should be accessible", async () => {
|
|
10
|
-
const card = await fixture(html
|
|
11
|
-
<usa-card-group>
|
|
12
|
-
<usa-card>
|
|
13
|
-
<usa-card-media>
|
|
14
|
-
<img alt="A placeholder image" />
|
|
15
|
-
</usa-card-media>
|
|
16
|
-
|
|
17
|
-
<usa-card-header>Card with media</usa-card-header>
|
|
18
|
-
|
|
19
|
-
<usa-card-body>
|
|
20
|
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis
|
|
21
|
-
earum tenetur quo cupiditate, eaque qui officia recusandae.
|
|
22
|
-
</usa-card-body>
|
|
23
|
-
|
|
24
|
-
<usa-card-footer>
|
|
25
|
-
<usa-button>Visit Florida Keys</usa-button>
|
|
26
|
-
</usa-card-footer>
|
|
27
|
-
</usa-card>
|
|
28
|
-
</usa-card-group>
|
|
29
|
-
`);
|
|
10
|
+
const card = await fixture(html `<usa-card-group><usa-card><usa-card-media><img alt="A placeholder image"></usa-card-media><usa-card-header>Card with media</usa-card-header><usa-card-body>Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis earum tenetur quo cupiditate, eaque qui officia recusandae.</usa-card-body><usa-card-footer><usa-button>Visit Florida Keys</usa-button></usa-card-footer></usa-card></usa-card-group>`);
|
|
30
11
|
return assert.isAccessible(card);
|
|
31
12
|
});
|
|
32
13
|
});
|
|
@@ -4,16 +4,8 @@ let USACheckboxGroupElement = (() => {
|
|
|
4
4
|
let _classDecorators = [element({
|
|
5
5
|
tagName: "usa-checkbox-group",
|
|
6
6
|
shadowDom: [
|
|
7
|
-
css
|
|
8
|
-
|
|
9
|
-
display: flex;
|
|
10
|
-
gap: 0.75rem;
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
}
|
|
13
|
-
`,
|
|
14
|
-
html `
|
|
15
|
-
<slot></slot>
|
|
16
|
-
`,
|
|
7
|
+
css `:host{display:flex;gap:.75rem;flex-direction:column}`,
|
|
8
|
+
html `<slot></slot>`,
|
|
17
9
|
],
|
|
18
10
|
})];
|
|
19
11
|
let _classDescriptor;
|
|
@@ -4,118 +4,8 @@ let USACheckboxElement = (() => {
|
|
|
4
4
|
let _classDecorators = [element({
|
|
5
5
|
tagName: "usa-checkbox",
|
|
6
6
|
shadowDom: [
|
|
7
|
-
css
|
|
8
|
-
|
|
9
|
-
box-sizing: border-box;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
:host {
|
|
13
|
-
display: inline-block;
|
|
14
|
-
max-width: 30rem;
|
|
15
|
-
position: relative;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:host([tiled]) label {
|
|
19
|
-
background-color: #fff;
|
|
20
|
-
border: 2px solid #c9c9c9;
|
|
21
|
-
border-radius: 0.25rem;
|
|
22
|
-
color: #1b1b1b;
|
|
23
|
-
padding: 0.75rem 1rem 0.75rem 0.75rem;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
label {
|
|
27
|
-
display: inline-flex;
|
|
28
|
-
cursor: pointer;
|
|
29
|
-
font-size: 1.06rem;
|
|
30
|
-
line-height: 1.3;
|
|
31
|
-
width: 100%;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.checkbox {
|
|
35
|
-
background: #fff;
|
|
36
|
-
box-shadow: 0 0 0 2px #1b1b1b;
|
|
37
|
-
display: flex;
|
|
38
|
-
align-items: center;
|
|
39
|
-
justify-content: center;
|
|
40
|
-
height: 1.25rem;
|
|
41
|
-
min-width: 1.25rem;
|
|
42
|
-
max-width: 1.25rem;
|
|
43
|
-
border-radius: 2px;
|
|
44
|
-
position: relative;
|
|
45
|
-
margin-right: 0.75rem;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
input:disabled + .checkbox {
|
|
49
|
-
background-color: #fff;
|
|
50
|
-
box-shadow: 0 0 0 2px #757575;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
input:disabled:is(:checked) + .checkbox {
|
|
54
|
-
background-color: #757575;
|
|
55
|
-
box-shadow: 0 0 0 2px #757575;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
:host([disabled]) label {
|
|
59
|
-
color: #757575;
|
|
60
|
-
cursor: not-allowed;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
input:checked + .checkbox {
|
|
64
|
-
background-color: #005ea2;
|
|
65
|
-
box-shadow: 0 0 0 2px #005ea2;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
input:checked + .checkbox::after {
|
|
69
|
-
content: " ";
|
|
70
|
-
display: block;
|
|
71
|
-
height: 1rem;
|
|
72
|
-
width: 0.5rem;
|
|
73
|
-
border-right: 4px solid rgb(255, 255, 255);
|
|
74
|
-
border-bottom: 4px solid rgb(255, 255, 255);
|
|
75
|
-
transform: rotate(45deg) scale(0.65);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
input {
|
|
79
|
-
position: absolute;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
input:focus + .checkbox {
|
|
83
|
-
outline: 0.25rem solid #2491ff;
|
|
84
|
-
outline-offset: 0.25rem;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.description {
|
|
88
|
-
display: block;
|
|
89
|
-
font-size: 0.93rem;
|
|
90
|
-
margin-top: 0.5rem;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.break {
|
|
94
|
-
flex-basis: 100%;
|
|
95
|
-
height: 0;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
:host([tiled]) label:has(input:checked) {
|
|
99
|
-
background-color: rgba(0, 94, 162, 0.1);
|
|
100
|
-
border-color: #005ea2;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
:host([tiled]) label:has(input:checked:is(:disabled)) {
|
|
104
|
-
background-color: #fff;
|
|
105
|
-
border-color: #757575;
|
|
106
|
-
}
|
|
107
|
-
`,
|
|
108
|
-
html `
|
|
109
|
-
<label>
|
|
110
|
-
<input type="checkbox" tabindex="0"/>
|
|
111
|
-
|
|
112
|
-
<div class="checkbox"></div>
|
|
113
|
-
|
|
114
|
-
<div class="title">
|
|
115
|
-
<slot></slot>
|
|
116
|
-
</div>
|
|
117
|
-
</label>
|
|
118
|
-
`,
|
|
7
|
+
css `*{box-sizing:border-box}:host{display:inline-block;max-width:30rem;position:relative}:host([tiled]) label{background-color:#fff;border:2px solid #c9c9c9;border-radius:.25rem;color:#1b1b1b;padding:.75rem 1rem .75rem .75rem}label{display:inline-flex;cursor:pointer;font-size:1.06rem;line-height:1.3;width:100%}.checkbox{background:#fff;box-shadow:0 0 0 2px #1b1b1b;display:flex;align-items:center;justify-content:center;height:1.25rem;min-width:1.25rem;max-width:1.25rem;border-radius:2px;position:relative;margin-right:.75rem}input:disabled+.checkbox{background-color:#fff;box-shadow:0 0 0 2px #757575}input:disabled:is(:checked)+.checkbox{background-color:#757575;box-shadow:0 0 0 2px #757575}:host([disabled]) label{color:#757575;cursor:not-allowed}input:checked+.checkbox{background-color:#005ea2;box-shadow:0 0 0 2px #005ea2}input:checked+.checkbox::after{content:" ";display:block;height:1rem;width:.5rem;border-right:4px solid #fff;border-bottom:4px solid #fff;transform:rotate(45deg) scale(.65)}input{position:absolute}input:focus+.checkbox{outline:.25rem solid #2491ff;outline-offset:.25rem}.description{display:block;font-size:.93rem;margin-top:.5rem}.break{flex-basis:100%;height:0}:host([tiled]) label:has(input:checked){background-color:rgba(0,94,162,.1);border-color:#005ea2}:host([tiled]) label:has(input:checked:is(:disabled)){background-color:#fff;border-color:#757575}`,
|
|
8
|
+
html `<label><input type="checkbox" tabindex="0"><div class="checkbox"></div><div class="title"><slot></slot></div></label>`,
|
|
119
9
|
],
|
|
120
10
|
})];
|
|
121
11
|
let _classDescriptor;
|
|
@@ -10,53 +10,12 @@ export default meta;
|
|
|
10
10
|
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
|
|
11
11
|
export const Primary = {
|
|
12
12
|
render() {
|
|
13
|
-
return html
|
|
14
|
-
<usa-checkbox-group>
|
|
15
|
-
<legend class="usa-legend">Select any historical figure</legend>
|
|
16
|
-
|
|
17
|
-
<usa-checkbox name="historical-figure" value="sojurner-truth">
|
|
18
|
-
Sojourner Truth
|
|
19
|
-
</usa-checkbox>
|
|
20
|
-
|
|
21
|
-
<usa-checkbox name="historical-figure" value="frederick-douglass">
|
|
22
|
-
Frederick Douglass
|
|
23
|
-
</usa-checkbox>
|
|
24
|
-
|
|
25
|
-
<usa-checkbox name="historical-figure" value="booker-t-washington">
|
|
26
|
-
Booker T. Washington
|
|
27
|
-
</usa-checkbox>
|
|
28
|
-
|
|
29
|
-
<usa-checkbox name="historical-figure" value="gw-carver" disabled>
|
|
30
|
-
George Washington Carver
|
|
31
|
-
</usa-checkbox>
|
|
32
|
-
</usa-checkbox-group>
|
|
33
|
-
`;
|
|
13
|
+
return html `<usa-checkbox-group><legend class="usa-legend">Select any historical figure</legend><usa-checkbox name="historical-figure" value="sojurner-truth">Sojourner Truth</usa-checkbox><usa-checkbox name="historical-figure" value="frederick-douglass">Frederick Douglass</usa-checkbox><usa-checkbox name="historical-figure" value="booker-t-washington">Booker T. Washington</usa-checkbox><usa-checkbox name="historical-figure" value="gw-carver" disabled="disabled">George Washington Carver</usa-checkbox></usa-checkbox-group>`;
|
|
34
14
|
},
|
|
35
15
|
};
|
|
36
16
|
export const Tiled = {
|
|
37
17
|
render() {
|
|
38
|
-
return html
|
|
39
|
-
<usa-checkbox-group>
|
|
40
|
-
<legend class="usa-legend">Select any historical figure</legend>
|
|
41
|
-
|
|
42
|
-
<usa-checkbox name="historical-figure" value="sojurner-truth" tiled>
|
|
43
|
-
Sojourner Truth
|
|
44
|
-
<usa-description>This is optional text that can be used to describe the label in more detail.</usa-description>
|
|
45
|
-
</usa-checkbox>
|
|
46
|
-
|
|
47
|
-
<usa-checkbox name="historical-figure" value="frederick-douglass" tiled>
|
|
48
|
-
Frederick Douglass
|
|
49
|
-
</usa-checkbox>
|
|
50
|
-
|
|
51
|
-
<usa-checkbox name="historical-figure" value="booker-t-washington" tiled>
|
|
52
|
-
Booker T. Washington
|
|
53
|
-
</usa-checkbox>
|
|
54
|
-
|
|
55
|
-
<usa-checkbox name="historical-figure" value="gw-carver" tiled disabled>
|
|
56
|
-
George Washington Carver
|
|
57
|
-
</usa-checkbox>
|
|
58
|
-
</usa-checkbox-group>
|
|
59
|
-
`;
|
|
18
|
+
return html `<usa-checkbox-group><legend class="usa-legend">Select any historical figure</legend><usa-checkbox name="historical-figure" value="sojurner-truth" tiled>Sojourner Truth<usa-description>This is optional text that can be used to describe the label in more detail.</usa-description></usa-checkbox><usa-checkbox name="historical-figure" value="frederick-douglass" tiled>Frederick Douglass</usa-checkbox><usa-checkbox name="historical-figure" value="booker-t-washington" tiled>Booker T. Washington</usa-checkbox><usa-checkbox name="historical-figure" value="gw-carver" tiled disabled="disabled">George Washington Carver</usa-checkbox></usa-checkbox-group>`;
|
|
60
19
|
},
|
|
61
20
|
};
|
|
62
21
|
//# sourceMappingURL=checkbox.stories.js.map
|
|
@@ -2,32 +2,16 @@ import "./checkbox.element.js";
|
|
|
2
2
|
import { assert, fixture, html } from "@open-wc/testing";
|
|
3
3
|
describe("usa-checkbox", () => {
|
|
4
4
|
it("should be accessible", async () => {
|
|
5
|
-
const form = await fixture(html
|
|
6
|
-
<usa-checkbox name="fname" value="Foo">Hello World</usa-checkbox>
|
|
7
|
-
`);
|
|
5
|
+
const form = await fixture(html `<usa-checkbox name="fname" value="Foo">Hello World</usa-checkbox>`);
|
|
8
6
|
return assert.isAccessible(form);
|
|
9
7
|
});
|
|
10
8
|
it("should submit form with default values", async () => {
|
|
11
|
-
const form = await fixture(html
|
|
12
|
-
<form>
|
|
13
|
-
<usa-checkbox name="enabled" value="test" checked>
|
|
14
|
-
Hello World
|
|
15
|
-
</usa-checkbox>
|
|
16
|
-
|
|
17
|
-
<button>Submit</button>
|
|
18
|
-
</form>
|
|
19
|
-
`);
|
|
9
|
+
const form = await fixture(html `<form><usa-checkbox name="enabled" value="test" checked="checked">Hello World</usa-checkbox><button>Submit</button></form>`);
|
|
20
10
|
const value = new FormData(form);
|
|
21
11
|
assert.equal(value.get("enabled"), "test");
|
|
22
12
|
});
|
|
23
13
|
it("should update form value as input value changed", async () => {
|
|
24
|
-
const form = await fixture(html
|
|
25
|
-
<form>
|
|
26
|
-
<usa-checkbox name="enabled" value="test">Hello World</usa-checkbox>
|
|
27
|
-
|
|
28
|
-
<button>Submit</button>
|
|
29
|
-
</form>
|
|
30
|
-
`);
|
|
14
|
+
const form = await fixture(html `<form><usa-checkbox name="enabled" value="test">Hello World</usa-checkbox><button>Submit</button></form>`);
|
|
31
15
|
const checkbox = form.querySelector("usa-checkbox");
|
|
32
16
|
const nativeInput = checkbox?.shadowRoot?.querySelector("input");
|
|
33
17
|
if (nativeInput) {
|
|
@@ -37,15 +21,7 @@ describe("usa-checkbox", () => {
|
|
|
37
21
|
assert.equal(value.get("enabled"), "test");
|
|
38
22
|
});
|
|
39
23
|
it("should not submit when not valid", async () => {
|
|
40
|
-
const form = await fixture(html
|
|
41
|
-
<form>
|
|
42
|
-
<usa-checkbox name="enabled" value="test" required>
|
|
43
|
-
Hello World
|
|
44
|
-
</usa-checkbox>
|
|
45
|
-
|
|
46
|
-
<button>Submit</button>
|
|
47
|
-
</form>
|
|
48
|
-
`);
|
|
24
|
+
const form = await fixture(html `<form><usa-checkbox name="enabled" value="test" required>Hello World</usa-checkbox><button>Submit</button></form>`);
|
|
49
25
|
assert.equal(form.checkValidity(), false);
|
|
50
26
|
});
|
|
51
27
|
});
|
|
@@ -4,46 +4,8 @@ let USACollectionItemElement = (() => {
|
|
|
4
4
|
let _classDecorators = [element({
|
|
5
5
|
tagName: "usa-collection-item",
|
|
6
6
|
shadowDom: [
|
|
7
|
-
css
|
|
8
|
-
|
|
9
|
-
display: flex;
|
|
10
|
-
gap: 1rem;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.content {
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
slot[name="heading"]::slotted(*) {
|
|
19
|
-
font-size: 1.13rem;
|
|
20
|
-
line-height: 1.3;
|
|
21
|
-
margin-bottom: 0;
|
|
22
|
-
margin-top: 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.description {
|
|
26
|
-
margin-bottom: .5rem;
|
|
27
|
-
margin-top: .5rem;
|
|
28
|
-
}
|
|
29
|
-
`,
|
|
30
|
-
html `
|
|
31
|
-
<slot name="img"></slot>
|
|
32
|
-
|
|
33
|
-
<div class="content">
|
|
34
|
-
<div class="heading">
|
|
35
|
-
<slot name="heading"></slot>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
<div class="description">
|
|
39
|
-
<slot name="description"></slot>
|
|
40
|
-
</div>
|
|
41
|
-
|
|
42
|
-
<div class="slots">
|
|
43
|
-
<slot name="tags"></slot>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
`,
|
|
7
|
+
css `:host{display:flex;gap:1rem}.content{display:flex;flex-direction:column}slot[name=heading]::slotted(*){font-size:1.13rem;line-height:1.3;margin-bottom:0;margin-top:0}.description{margin-bottom:.5rem;margin-top:.5rem}`,
|
|
8
|
+
html `<slot name="img"></slot><div class="content"><div class="heading"><slot name="heading"></slot></div><div class="description"><slot name="description"></slot></div><div class="slots"><slot name="tags"></slot></div></div>`,
|
|
47
9
|
],
|
|
48
10
|
})];
|
|
49
11
|
let _classDescriptor;
|
|
@@ -2,9 +2,7 @@ import "./collection-item.element.js";
|
|
|
2
2
|
import { assert, fixture, html } from "@open-wc/testing";
|
|
3
3
|
describe("usa-collection-item", () => {
|
|
4
4
|
it("should be accessible", async () => {
|
|
5
|
-
const collectionItem = await fixture(html
|
|
6
|
-
<usa-collection-item>Hello World</usa-collection-item>
|
|
7
|
-
`);
|
|
5
|
+
const collectionItem = await fixture(html `<usa-collection-item>Hello World</usa-collection-item>`);
|
|
8
6
|
return assert.isAccessible(collectionItem);
|
|
9
7
|
});
|
|
10
8
|
});
|
|
@@ -4,16 +4,8 @@ let USACollectionElement = (() => {
|
|
|
4
4
|
let _classDecorators = [element({
|
|
5
5
|
tagName: "usa-collection",
|
|
6
6
|
shadowDom: [
|
|
7
|
-
css
|
|
8
|
-
|
|
9
|
-
display: grid;
|
|
10
|
-
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
11
|
-
gap: 2rem;
|
|
12
|
-
}
|
|
13
|
-
`,
|
|
14
|
-
html `
|
|
15
|
-
<slot></slot>
|
|
16
|
-
`,
|
|
7
|
+
css `:host{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:2rem}`,
|
|
8
|
+
html `<slot></slot>`,
|
|
17
9
|
],
|
|
18
10
|
})];
|
|
19
11
|
let _classDescriptor;
|
|
@@ -4,69 +4,7 @@ const meta = {
|
|
|
4
4
|
title: "usa-collection",
|
|
5
5
|
tags: ["autodocs"],
|
|
6
6
|
render() {
|
|
7
|
-
return html
|
|
8
|
-
<usa-collection>
|
|
9
|
-
<usa-collection-item>
|
|
10
|
-
<h4 slot="heading">
|
|
11
|
-
<usa-link href="#">Gears of Government President's Award winners</usa-link>
|
|
12
|
-
</h4>
|
|
13
|
-
|
|
14
|
-
<div slot="description">
|
|
15
|
-
Today, the Administration announces the winners of the Gears of Government President's Award. This program recognizes the contributions of individuals and teams across the federal workforce who make a profound difference in the lives of the American people.
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
|
-
<usa-tag slot="tags" type="new">NEW</usa-tag>
|
|
19
|
-
<usa-tag slot="tags">PMA</usa-tag>
|
|
20
|
-
<usa-tag slot="tags">OMB</usa-tag>
|
|
21
|
-
</usa-collection-item>
|
|
22
|
-
|
|
23
|
-
<usa-collection-item>
|
|
24
|
-
<img height="80" width="80" src="/assets/img/gog-logo.png" slot="img"/>
|
|
25
|
-
|
|
26
|
-
<h4 slot="heading">
|
|
27
|
-
<usa-link href="#">Gears of Government President's Award winners</usa-link>
|
|
28
|
-
</h4>
|
|
29
|
-
|
|
30
|
-
<div slot="description">
|
|
31
|
-
Today, the Administration announces the winners of the Gears of Government President's Award. This program recognizes the contributions of individuals and teams across the federal workforce who make a profound difference in the lives of the American people.
|
|
32
|
-
</div>
|
|
33
|
-
|
|
34
|
-
<usa-tag slot="tags" type="new">NEW</usa-tag>
|
|
35
|
-
<usa-tag slot="tags">PMA</usa-tag>
|
|
36
|
-
<usa-tag slot="tags">OMB</usa-tag>
|
|
37
|
-
</usa-collection-item>
|
|
38
|
-
|
|
39
|
-
<usa-collection-item>
|
|
40
|
-
<h4 slot="heading">
|
|
41
|
-
<usa-link href="#">Women-owned small business dashboard</usa-link>
|
|
42
|
-
</h4>
|
|
43
|
-
|
|
44
|
-
<div slot="description">
|
|
45
|
-
In honor of National Women's Small Business Month, we've partnered with SBA's Office of Government Contracting and Business Development and Office of Program Performance, Analysis, and Evaluation to highlight the Women-Owned Small Businesses (WOSBs) data dashboard!
|
|
46
|
-
</div>
|
|
47
|
-
|
|
48
|
-
<usa-tag slot="tags" type="new">NEW</usa-tag>
|
|
49
|
-
<usa-tag slot="tags">PMA</usa-tag>
|
|
50
|
-
<usa-tag slot="tags">OMB</usa-tag>
|
|
51
|
-
</usa-collection-item>
|
|
52
|
-
|
|
53
|
-
<usa-collection-item>
|
|
54
|
-
<img height="52" width="80" src="/assets/img/wosb1.jpg" slot="img"/>
|
|
55
|
-
|
|
56
|
-
<h4 slot="heading">
|
|
57
|
-
<usa-link href="#">Women-owned small business dashboard</usa-link>
|
|
58
|
-
</h4>
|
|
59
|
-
|
|
60
|
-
<div slot="description">
|
|
61
|
-
In honor of National Women's Small Business Month, we've partnered with SBA's Office of Government Contracting and Business Development and Office of Program Performance, Analysis, and Evaluation to highlight the Women-Owned Small Businesses (WOSBs) data dashboard!
|
|
62
|
-
</div>
|
|
63
|
-
|
|
64
|
-
<usa-tag slot="tags" type="new">NEW</usa-tag>
|
|
65
|
-
<usa-tag slot="tags">PMA</usa-tag>
|
|
66
|
-
<usa-tag slot="tags">OMB</usa-tag>
|
|
67
|
-
</usa-collection-item>
|
|
68
|
-
</usa-collection>
|
|
69
|
-
`;
|
|
7
|
+
return html `<usa-collection><usa-collection-item><h4 slot="heading"><usa-link href="#">Gears of Government President's Award winners</usa-link></h4><div slot="description">Today, the Administration announces the winners of the Gears of Government President's Award. This program recognizes the contributions of individuals and teams across the federal workforce who make a profound difference in the lives of the American people.</div><usa-tag slot="tags" type="new">NEW</usa-tag><usa-tag slot="tags">PMA</usa-tag><usa-tag slot="tags">OMB</usa-tag></usa-collection-item><usa-collection-item><img height="80" width="80" src="/assets/img/gog-logo.png" slot="img"><h4 slot="heading"><usa-link href="#">Gears of Government President's Award winners</usa-link></h4><div slot="description">Today, the Administration announces the winners of the Gears of Government President's Award. This program recognizes the contributions of individuals and teams across the federal workforce who make a profound difference in the lives of the American people.</div><usa-tag slot="tags" type="new">NEW</usa-tag><usa-tag slot="tags">PMA</usa-tag><usa-tag slot="tags">OMB</usa-tag></usa-collection-item><usa-collection-item><h4 slot="heading"><usa-link href="#">Women-owned small business dashboard</usa-link></h4><div slot="description">In honor of National Women's Small Business Month, we've partnered with SBA's Office of Government Contracting and Business Development and Office of Program Performance, Analysis, and Evaluation to highlight the Women-Owned Small Businesses (WOSBs) data dashboard!</div><usa-tag slot="tags" type="new">NEW</usa-tag><usa-tag slot="tags">PMA</usa-tag><usa-tag slot="tags">OMB</usa-tag></usa-collection-item><usa-collection-item><img height="52" width="80" src="/assets/img/wosb1.jpg" slot="img"><h4 slot="heading"><usa-link href="#">Women-owned small business dashboard</usa-link></h4><div slot="description">In honor of National Women's Small Business Month, we've partnered with SBA's Office of Government Contracting and Business Development and Office of Program Performance, Analysis, and Evaluation to highlight the Women-Owned Small Businesses (WOSBs) data dashboard!</div><usa-tag slot="tags" type="new">NEW</usa-tag><usa-tag slot="tags">PMA</usa-tag><usa-tag slot="tags">OMB</usa-tag></usa-collection-item></usa-collection>`;
|
|
70
8
|
},
|
|
71
9
|
argTypes: {},
|
|
72
10
|
args: {},
|
|
@@ -2,9 +2,7 @@ import "./collection.element.js";
|
|
|
2
2
|
import { assert, fixture, html } from "@open-wc/testing";
|
|
3
3
|
describe("usa-collection", () => {
|
|
4
4
|
it("should be accessible", async () => {
|
|
5
|
-
const collection = await fixture(html
|
|
6
|
-
<usa-collection>Hello World</usa-collection>
|
|
7
|
-
`);
|
|
5
|
+
const collection = await fixture(html `<usa-collection>Hello World</usa-collection>`);
|
|
8
6
|
return assert.isAccessible(collection);
|
|
9
7
|
});
|
|
10
8
|
});
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import { __esDecorate, __runInitializers } from "tslib";
|
|
2
2
|
import { inject, injectable } from "@joist/di";
|
|
3
|
-
import { attr, element, html } from "@joist/element";
|
|
3
|
+
import { attr, css, element, html, query } from "@joist/element";
|
|
4
4
|
import { COMBO_BOX_CTX } from "../context.js";
|
|
5
|
+
const template = document.createElement("template");
|
|
6
|
+
template.innerHTML = /*html*/ `
|
|
7
|
+
<li tabindex="-1" role="option">
|
|
8
|
+
<slot></slot>
|
|
9
|
+
</li>
|
|
10
|
+
`;
|
|
5
11
|
let USAComboBoxOptionElement = (() => {
|
|
6
12
|
let _classDecorators = [injectable({
|
|
7
13
|
name: "usa-combo-box-option-ctx",
|
|
8
14
|
}), element({
|
|
9
15
|
tagName: "usa-combo-box-option",
|
|
10
|
-
shadowDom: [
|
|
16
|
+
shadowDom: [
|
|
17
|
+
css `:host{display:flex;align-items:center;gap:.5rem;padding:.5rem}`,
|
|
18
|
+
html `<slot></slot>`,
|
|
19
|
+
],
|
|
11
20
|
})];
|
|
12
21
|
let _classDescriptor;
|
|
13
22
|
let _classExtraInitializers = [];
|
|
@@ -30,24 +39,24 @@ let USAComboBoxOptionElement = (() => {
|
|
|
30
39
|
#value_accessor_storage = __runInitializers(this, _value_initializers, "");
|
|
31
40
|
get value() { return this.#value_accessor_storage; }
|
|
32
41
|
set value(value) { this.#value_accessor_storage = value; }
|
|
33
|
-
#
|
|
42
|
+
#listItem = (__runInitializers(this, _value_extraInitializers), template.content.cloneNode(true));
|
|
43
|
+
#li = query("li", this.#listItem);
|
|
44
|
+
#slot = query("slot", this.#listItem);
|
|
34
45
|
#ctx = inject(COMBO_BOX_CTX);
|
|
35
|
-
constructor() {
|
|
36
|
-
super();
|
|
37
|
-
this.#li.tabIndex = -1;
|
|
38
|
-
}
|
|
39
46
|
attributeChangedCallback() {
|
|
40
|
-
|
|
41
|
-
this.#li.
|
|
47
|
+
const value = this.value.split(" ").join("-").toLocaleLowerCase();
|
|
48
|
+
this.#li().dataset.value = this.value;
|
|
49
|
+
this.#slot({ name: value });
|
|
50
|
+
this.slot = value;
|
|
42
51
|
}
|
|
43
52
|
connectedCallback() {
|
|
44
53
|
const ctx = this.#ctx();
|
|
45
|
-
ctx.addOption(this.#li);
|
|
54
|
+
ctx.addOption(this.#li());
|
|
46
55
|
}
|
|
47
56
|
disconnectedCallback() {
|
|
48
57
|
const ctx = this.#ctx();
|
|
49
|
-
ctx.removeOption(this.#li);
|
|
50
|
-
this.#li.remove();
|
|
58
|
+
ctx.removeOption(this.#li());
|
|
59
|
+
this.#li().remove();
|
|
51
60
|
}
|
|
52
61
|
};
|
|
53
62
|
return USAComboBoxOptionElement = _classThis;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combo-box-option.element.js","sourceRoot":"","sources":["../../../../src/lib/combo-box/combo-box-option/combo-box-option.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"combo-box-option.element.js","sourceRoot":"","sources":["../../../../src/lib/combo-box/combo-box-option/combo-box-option.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEjE,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAQ9C,MAAM,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;AAEpD,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC;;;;CAI7B,CAAC;IAmBW,wBAAwB;4BAjBpC,UAAU,CAAC;YACV,IAAI,EAAE,0BAA0B;SACjC,CAAC,EACD,OAAO,CAAC;YACP,OAAO,EAAE,sBAAsB;YAC/B,SAAS,EAAE;gBACT,GAAG,CAAA;;;;;;;KAOF;gBACD,IAAI,CAAA,eAAe;aACpB;SACF,CAAC;;;;sBAC4C,WAAW;;;;wCAAnB,SAAQ,WAAW;;;;iCACtD,IAAI,EAAE;YACP,oKAAS,KAAK,6BAAL,KAAK,qFAAM;YAFtB,6KAgCC;;;YAhCY,uDAAwB;;QAEnC,uEAAiB,EAAE,EAAC;QAApB,IAAS,KAAK,2CAAM;QAApB,IAAS,KAAK,iDAAM;QAEpB,SAAS,uDAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAkB,EAAC;QAC9D,GAAG,GAAG,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QAClC,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QACtC,IAAI,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;QAE7B,wBAAwB;YACtB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,iBAAiB,EAAE,CAAC;YAElE,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;YAEtC,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;YAE5B,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;QACpB,CAAC;QAED,iBAAiB;YACf,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;YAExB,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;QAC5B,CAAC;QAED,oBAAoB;YAClB,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;YAExB,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;YAE7B,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE,CAAC;QACtB,CAAC;;;;SA/BU,wBAAwB"}
|