@noctuatech/uswds 0.0.35 → 0.0.36

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.
Files changed (75) hide show
  1. package/package.json +12 -11
  2. package/src/lib/accordion/accordion.stories.ts +1 -1
  3. package/src/lib/button/button.stories.ts +1 -0
  4. package/src/lib/card/card.test.ts +1 -1
  5. package/src/lib/checkbox/checkbox-group/checkbox-group.element.ts +24 -0
  6. package/src/lib/checkbox/checkbox.element.ts +11 -8
  7. package/src/lib/checkbox/checkbox.stories.ts +73 -35
  8. package/src/lib/collection/collection-item/collection-item.element.ts +2 -2
  9. package/src/lib/collection/collection.stories.ts +19 -3
  10. package/src/lib/define.ts +1 -0
  11. package/src/lib/file-input/file-input.element.ts +27 -1
  12. package/src/lib/file-input/file-input.stories.ts +2 -2
  13. package/src/lib/icon/icon.element.ts +14 -4
  14. package/src/lib/input/input.element.ts +30 -7
  15. package/src/lib/radio/context.ts +1 -0
  16. package/src/lib/radio/radio-option/radio-option.element.ts +19 -13
  17. package/src/lib/radio/radio.element.ts +9 -11
  18. package/src/lib/select/select.element.ts +16 -6
  19. package/src/lib/tag/tag.element.ts +12 -2
  20. package/src/lib/textarea/textarea.element.ts +18 -13
  21. package/src/lib.ts +1 -0
  22. package/target/lib/accordion/accordion.stories.d.ts +1 -1
  23. package/target/lib/accordion/accordion.stories.js +1 -1
  24. package/target/lib/accordion/accordion.stories.js.map +1 -1
  25. package/target/lib/button/button.stories.js +1 -0
  26. package/target/lib/button/button.stories.js.map +1 -1
  27. package/target/lib/card/card.test.js +1 -1
  28. package/target/lib/checkbox/checkbox-group/checkbox-group.element.d.ts +7 -0
  29. package/target/lib/checkbox/checkbox-group/checkbox-group.element.js +36 -0
  30. package/target/lib/checkbox/checkbox-group/checkbox-group.element.js.map +1 -0
  31. package/target/lib/checkbox/checkbox.element.js +8 -7
  32. package/target/lib/checkbox/checkbox.element.js.map +1 -1
  33. package/target/lib/checkbox/checkbox.stories.d.ts +4 -23
  34. package/target/lib/checkbox/checkbox.stories.js +72 -34
  35. package/target/lib/checkbox/checkbox.stories.js.map +1 -1
  36. package/target/lib/collection/collection-item/collection-item.element.js +2 -2
  37. package/target/lib/collection/collection.stories.d.ts +1 -1
  38. package/target/lib/collection/collection.stories.js +19 -3
  39. package/target/lib/collection/collection.stories.js.map +1 -1
  40. package/target/lib/define.d.ts +1 -0
  41. package/target/lib/define.js +1 -0
  42. package/target/lib/define.js.map +1 -1
  43. package/target/lib/file-input/file-input.element.d.ts +2 -0
  44. package/target/lib/file-input/file-input.element.js +23 -2
  45. package/target/lib/file-input/file-input.element.js.map +1 -1
  46. package/target/lib/file-input/file-input.stories.d.ts +1 -1
  47. package/target/lib/file-input/file-input.stories.js +2 -2
  48. package/target/lib/file-input/file-input.stories.js.map +1 -1
  49. package/target/lib/form/validation.d.ts +2 -0
  50. package/target/lib/form/validation.js +27 -0
  51. package/target/lib/form/validation.js.map +1 -0
  52. package/target/lib/icon/icon.element.d.ts +1 -1
  53. package/target/lib/icon/icon.element.js +14 -4
  54. package/target/lib/icon/icon.element.js.map +1 -1
  55. package/target/lib/input/input.element.d.ts +4 -0
  56. package/target/lib/input/input.element.js +47 -8
  57. package/target/lib/input/input.element.js.map +1 -1
  58. package/target/lib/radio/context.d.ts +1 -0
  59. package/target/lib/radio/context.js.map +1 -1
  60. package/target/lib/radio/radio-option/radio-option.element.js +17 -13
  61. package/target/lib/radio/radio-option/radio-option.element.js.map +1 -1
  62. package/target/lib/radio/radio.element.d.ts +0 -1
  63. package/target/lib/radio/radio.element.js +7 -8
  64. package/target/lib/radio/radio.element.js.map +1 -1
  65. package/target/lib/select/select.element.js +13 -4
  66. package/target/lib/select/select.element.js.map +1 -1
  67. package/target/lib/tag/tag.element.d.ts +3 -0
  68. package/target/lib/tag/tag.element.js +17 -3
  69. package/target/lib/tag/tag.element.js.map +1 -1
  70. package/target/lib/textarea/textarea.element.d.ts +1 -1
  71. package/target/lib/textarea/textarea.element.js +12 -11
  72. package/target/lib/textarea/textarea.element.js.map +1 -1
  73. package/target/lib.d.ts +1 -0
  74. package/target/lib.js +1 -0
  75. package/target/lib.js.map +1 -1
@@ -83,13 +83,21 @@ export class USASelectElement extends HTMLElement implements SelectContainer {
83
83
  #internals = this.attachInternals();
84
84
 
85
85
  connectedCallback() {
86
- this.#select({ value: this.value, name: this.name });
86
+ this.#select({
87
+ value: this.value,
88
+ name: this.name,
89
+ required: this.required,
90
+ });
87
91
 
88
92
  this.#syncFormState();
89
93
  }
90
94
 
91
95
  attributeChangedCallback() {
92
- this.#select({ value: this.value, name: this.name });
96
+ this.#select({
97
+ value: this.value,
98
+ name: this.name,
99
+ required: this.required,
100
+ });
93
101
 
94
102
  this.#syncFormState();
95
103
  }
@@ -109,14 +117,16 @@ export class USASelectElement extends HTMLElement implements SelectContainer {
109
117
  }
110
118
 
111
119
  #syncFormState() {
120
+ const select = this.#select();
121
+
112
122
  this.#internals.setFormValue(this.value);
113
123
  this.#internals.setValidity({});
114
124
 
115
- if (this.required && !this.value) {
125
+ if (select.validationMessage) {
116
126
  this.#internals.setValidity(
117
- { valueMissing: true },
118
- "Please select an option",
119
- this.#select(),
127
+ { customError: true },
128
+ select.validationMessage,
129
+ select,
120
130
  );
121
131
  }
122
132
  }
@@ -7,8 +7,10 @@ declare global {
7
7
  }
8
8
 
9
9
  export const TAG_VARIANTS = ["default", "big"] as const;
10
+ export const TAG_TYPES = ["new", "default"] as const;
10
11
 
11
12
  export type TagVariant = (typeof TAG_VARIANTS)[number];
13
+ export type TagType = (typeof TAG_TYPES)[number];
12
14
 
13
15
  @element({
14
16
  tagName: "usa-tag",
@@ -16,9 +18,9 @@ export type TagVariant = (typeof TAG_VARIANTS)[number];
16
18
  css`
17
19
  :host {
18
20
  font-size: 0.93rem;
19
- color: #fff;
21
+ color: #1b1b1b;
20
22
  text-transform: uppercase;
21
- background-color: #5c5c5c;
23
+ background-color: #e6e6e6;
22
24
  border-radius: 2px;
23
25
  margin-right: 0.25rem;
24
26
  padding: 1px 0.5rem;
@@ -29,6 +31,11 @@ export type TagVariant = (typeof TAG_VARIANTS)[number];
29
31
  padding-right: 0.5rem;
30
32
  font-size: 1.06rem;
31
33
  }
34
+
35
+ :host([type="new"]) {
36
+ background-color: #c05600;
37
+ color: #fff;
38
+ }
32
39
  `,
33
40
  html`<slot></slot>`,
34
41
  ],
@@ -36,4 +43,7 @@ export type TagVariant = (typeof TAG_VARIANTS)[number];
36
43
  export class USATagElement extends HTMLElement {
37
44
  @attr()
38
45
  accessor variant: TagVariant = "default";
46
+
47
+ @attr()
48
+ accessor type: TagType = "default";
39
49
  }
@@ -87,8 +87,16 @@ export class USATextareaElement extends HTMLElement {
87
87
 
88
88
  @ready()
89
89
  onReady() {
90
- const input = this.#input();
91
- input.autofocus = this.autofocus;
90
+ this.#input({ autofocus: this.autofocus });
91
+ }
92
+
93
+ attributeChangedCallback() {
94
+ this.#input({
95
+ name: this.name,
96
+ placeholder: this.placeholder,
97
+ autocomplete: this.autocomplete,
98
+ required: this.required,
99
+ });
92
100
  }
93
101
 
94
102
  connectedCallback() {
@@ -107,21 +115,18 @@ export class USATextareaElement extends HTMLElement {
107
115
  this.value = this.#input().value;
108
116
  }
109
117
 
110
- attributeChangedCallback() {
111
- const { name, placeholder, autocomplete } = this;
112
-
113
- this.#input({ name, placeholder, autocomplete });
114
- }
115
-
116
118
  #syncFormState() {
117
119
  const input = this.#input();
118
120
 
119
121
  this.#internals.setFormValue(input.value);
120
-
121
- if (this.required && !input.value) {
122
- this.#internals.setValidity({ valueMissing: true }, "Required", input);
123
- } else {
124
- this.#internals.setValidity({});
122
+ this.#internals.setValidity({});
123
+
124
+ if (input.validationMessage) {
125
+ this.#internals.setValidity(
126
+ { customError: true },
127
+ input.validationMessage,
128
+ input,
129
+ );
125
130
  }
126
131
  }
127
132
  }
package/src/lib.ts CHANGED
@@ -32,3 +32,4 @@ export { USACardGroupElement } from "./lib/card/card-group/card-group.element.js
32
32
  export { USATextareaElement } from "./lib/textarea/textarea.element.js";
33
33
  export { USACollectionElement } from "./lib/collection/collection.element.js";
34
34
  export { USACollectionItemElement } from "./lib/collection/collection-item/collection-item.element.js";
35
+ export { USACheckboxGroupElement } from "./lib/checkbox/checkbox-group/checkbox-group.element.js";
@@ -3,7 +3,7 @@ import type { USAAccordionElement } from "./accordion.element.js";
3
3
  declare const meta: {
4
4
  title: string;
5
5
  tags: string[];
6
- render(args: USAAccordionElement): import("lit-html").TemplateResult<1>;
6
+ render(): import("lit-html").TemplateResult<1>;
7
7
  argTypes: {};
8
8
  args: {};
9
9
  };
@@ -3,7 +3,7 @@ import { html } from "lit";
3
3
  const meta = {
4
4
  title: "usa-accordion",
5
5
  tags: ["autodocs"],
6
- render(args) {
6
+ render() {
7
7
  return html `
8
8
  <usa-accordion id="first" name="ammendment">
9
9
  <h4 slot="heading">First Ammendment</h4>
@@ -1 +1 @@
1
- {"version":3,"file":"accordion.stories.js","sourceRoot":"","sources":["../../../src/lib/accordion/accordion.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAI3B,kFAAkF;AAClF,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,eAAe;IACtB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,MAAM,CAAC,IAAI;QACT,OAAO,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;KAyBV,CAAC;IACJ,CAAC;IACD,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;CAC2B,CAAC;AAEtC,eAAe,IAAI,CAAC;AAIpB,wFAAwF;AACxF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;CACT,CAAC"}
1
+ {"version":3,"file":"accordion.stories.js","sourceRoot":"","sources":["../../../src/lib/accordion/accordion.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAI3B,kFAAkF;AAClF,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,eAAe;IACtB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,MAAM;QACJ,OAAO,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;KAyBV,CAAC;IACJ,CAAC;IACD,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;CAC2B,CAAC;AAEtC,eAAe,IAAI,CAAC;AAIpB,wFAAwF;AACxF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;CACT,CAAC"}
@@ -8,6 +8,7 @@ const meta = {
8
8
  return html `
9
9
  <div style="display: inline-flex; flex-direction: column; gap: 1rem">
10
10
  ${BUTTON_VARIANTS.map((variant, i) => html `<usa-button variant=${variant}>Hello World</usa-button> ${i === BUTTON_VARIANTS.length - 1 ? "" : "\n\n"}`)}
11
+ <usa-button disabled>Disabled</usa-button>
11
12
  </div>
12
13
  `;
13
14
  },
@@ -1 +1 @@
1
- {"version":3,"file":"button.stories.js","sourceRoot":"","sources":["../../../src/lib/button/button.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAE3B,OAAO,EAAE,eAAe,EAAyB,MAAM,qBAAqB,CAAC;AAE7E,kFAAkF;AAClF,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,YAAY;IACnB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,MAAM,CAAC,IAAI;QACT,OAAO,IAAI,CAAA;;UAEL,eAAe,CAAC,GAAG,CACnB,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE,CACb,IAAI,CAAA,uBAAuB,OAAO,6BAChC,CAAC,KAAK,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAC1C,EAAE,CACL;;KAEJ,CAAC;IACJ,CAAC;IACD,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;CACwB,CAAC;AAEnC,eAAe,IAAI,CAAC;AAIpB,wFAAwF;AACxF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;CACT,CAAC"}
1
+ {"version":3,"file":"button.stories.js","sourceRoot":"","sources":["../../../src/lib/button/button.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAE3B,OAAO,EAAE,eAAe,EAAyB,MAAM,qBAAqB,CAAC;AAE7E,kFAAkF;AAClF,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,YAAY;IACnB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,MAAM,CAAC,IAAI;QACT,OAAO,IAAI,CAAA;;UAEL,eAAe,CAAC,GAAG,CACnB,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE,CACb,IAAI,CAAA,uBAAuB,OAAO,6BAChC,CAAC,KAAK,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAC1C,EAAE,CACL;;;KAGJ,CAAC;IACJ,CAAC;IACD,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;CACwB,CAAC;AAEnC,eAAe,IAAI,CAAC;AAIpB,wFAAwF;AACxF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;CACT,CAAC"}
@@ -11,7 +11,7 @@ describe("usa-card", () => {
11
11
  <usa-card-group>
12
12
  <usa-card>
13
13
  <usa-card-media>
14
- <img src="/img/built-to-grow--alt.jpg" alt="A placeholder image" />
14
+ <img alt="A placeholder image" />
15
15
  </usa-card-media>
16
16
 
17
17
  <usa-card-header>Card with media</usa-card-header>
@@ -0,0 +1,7 @@
1
+ declare global {
2
+ interface HTMLElementTagNameMap {
3
+ "usa-checkbox-group": USACheckboxGroupElement;
4
+ }
5
+ }
6
+ export declare class USACheckboxGroupElement extends HTMLElement {
7
+ }
@@ -0,0 +1,36 @@
1
+ import { __esDecorate, __runInitializers } from "tslib";
2
+ import { css, element, html } from "@joist/element";
3
+ let USACheckboxGroupElement = (() => {
4
+ let _classDecorators = [element({
5
+ tagName: "usa-checkbox-group",
6
+ shadowDom: [
7
+ css `
8
+ :host {
9
+ display: flex;
10
+ gap: 0.75rem;
11
+ flex-direction: column;
12
+ }
13
+ `,
14
+ html `
15
+ <slot></slot>
16
+ `,
17
+ ],
18
+ })];
19
+ let _classDescriptor;
20
+ let _classExtraInitializers = [];
21
+ let _classThis;
22
+ let _classSuper = HTMLElement;
23
+ var USACheckboxGroupElement = class extends _classSuper {
24
+ static { _classThis = this; }
25
+ static {
26
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
27
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
28
+ USACheckboxGroupElement = _classThis = _classDescriptor.value;
29
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
30
+ __runInitializers(_classThis, _classExtraInitializers);
31
+ }
32
+ };
33
+ return USACheckboxGroupElement = _classThis;
34
+ })();
35
+ export { USACheckboxGroupElement };
36
+ //# sourceMappingURL=checkbox-group.element.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox-group.element.js","sourceRoot":"","sources":["../../../../src/lib/checkbox/checkbox-group/checkbox-group.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;IAuBvC,uBAAuB;4BAfnC,OAAO,CAAC;YACP,OAAO,EAAE,oBAAoB;YAC7B,SAAS,EAAE;gBACT,GAAG,CAAA;;;;;;KAMF;gBACD,IAAI,CAAA;;KAEH;aACF;SACF,CAAC;;;;sBAC2C,WAAW;uCAAnB,SAAQ,WAAW;;;;YAAxD,6KAA2D;;;YAA9C,uDAAuB;;;;;SAAvB,uBAAuB"}
@@ -28,7 +28,7 @@ let USACheckboxElement = (() => {
28
28
  cursor: pointer;
29
29
  font-size: 1.06rem;
30
30
  line-height: 1.3;
31
- flex-wrap: wrap;
31
+ width: 100%;
32
32
  }
33
33
 
34
34
  .checkbox {
@@ -38,7 +38,8 @@ let USACheckboxElement = (() => {
38
38
  align-items: center;
39
39
  justify-content: center;
40
40
  height: 1.25rem;
41
- width: 1.25rem;
41
+ min-width: 1.25rem;
42
+ max-width: 1.25rem;
42
43
  border-radius: 2px;
43
44
  position: relative;
44
45
  margin-right: 0.75rem;
@@ -191,6 +192,7 @@ let USACheckboxElement = (() => {
191
192
  checked: this.checked,
192
193
  name: this.name,
193
194
  disabled: this.disabled,
195
+ required: this.required,
194
196
  });
195
197
  this.#syncFormState();
196
198
  }
@@ -199,6 +201,7 @@ let USACheckboxElement = (() => {
199
201
  checked: this.checked,
200
202
  name: this.name,
201
203
  disabled: this.disabled,
204
+ required: this.required,
202
205
  });
203
206
  this.#syncFormState();
204
207
  }
@@ -209,17 +212,15 @@ let USACheckboxElement = (() => {
209
212
  }
210
213
  #syncFormState() {
211
214
  const checkbox = this.#checkbox();
215
+ this.#internals.setValidity({});
212
216
  if (checkbox.checked) {
213
217
  this.#internals.setFormValue(this.value);
214
218
  }
215
219
  else {
216
220
  this.#internals.setFormValue(null);
217
221
  }
218
- if (this.required && !checkbox.checked) {
219
- this.#internals.setValidity({ valueMissing: true }, "Please check this box if you want to proceed", this.#checkbox());
220
- }
221
- else {
222
- this.#internals.setValidity({});
222
+ if (checkbox.validationMessage) {
223
+ this.#internals.setValidity({ customError: true }, checkbox.validationMessage, checkbox);
223
224
  }
224
225
  }
225
226
  static {
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.element.js","sourceRoot":"","sources":["../../../src/lib/checkbox/checkbox.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;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AE,CAAC;QACxB,CAAC;QAGD,gBAAgB;YACd,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;YAClC,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;YAEhC,IAAI,CAAC,cAAc,EAAE,CAAC;QACxB,CAAC;QAED,cAAc;YACZ,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;YAElC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;YAEhC,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC;gBACrB,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC3C,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;YACrC,CAAC;YAED,IAAI,QAAQ,CAAC,iBAAiB,EAAE,CAAC;gBAC/B,IAAI,CAAC,UAAU,CAAC,WAAW,CACzB,EAAE,WAAW,EAAE,IAAI,EAAE,EACrB,QAAQ,CAAC,iBAAiB,EAC1B,QAAQ,CACT,CAAC;YACJ,CAAC;QACH,CAAC;;YA3EU,uDAAkB;;;;;SAAlB,kBAAkB"}
@@ -3,30 +3,11 @@ import type { USACheckboxElement } from "./checkbox.element.js";
3
3
  declare const meta: {
4
4
  title: string;
5
5
  tags: string[];
6
- render(args: USACheckboxElement & {
7
- description: string;
8
- }): import("lit-html").TemplateResult<1>;
9
- argTypes: {
10
- name: {
11
- control: "text";
12
- };
13
- value: {
14
- control: "text";
15
- };
16
- description: {
17
- control: "text";
18
- };
19
- tiled: {
20
- control: "boolean";
21
- };
22
- };
23
- args: {
24
- name: string;
25
- value: string;
26
- tiled: false;
27
- disabled: false;
28
- };
6
+ render(): import("lit-html").TemplateResult<1>;
7
+ argTypes: {};
8
+ args: {};
29
9
  };
30
10
  export default meta;
31
11
  type Story = StoryObj<USACheckboxElement>;
32
12
  export declare const Primary: Story;
13
+ export declare const Tiled: Story;
@@ -1,48 +1,86 @@
1
1
  import { html } from "lit";
2
- import { ifDefined } from "lit/directives/if-defined.js";
3
- import { when } from "lit/directives/when.js";
4
2
  // More on how to set up stories at: https://storybook.js.org/docs/writing-stories
5
3
  const meta = {
6
4
  title: "usa-checkbox",
7
5
  tags: ["autodocs"],
8
- render(args) {
6
+ render() {
9
7
  return html `
10
- <usa-checkbox
11
- name=${args.name}
12
- value=${ifDefined(args.value)}
13
- checked=${ifDefined(args.checked)}
14
- ?tiled=${args.tiled}
15
- ?disabled=${args.disabled}
16
- >
17
- Hello World
18
- ${when(args.description, () => html `<usa-description>${args.description}</usa-description>`)}
19
- </usa-checkbox>
8
+ <usa-checkbox-group>
9
+ <legend class="usa-legend">Select any historical figure</legend>
10
+
11
+ <usa-checkbox name="historical-figure" value="sojurner-truth" tiled>
12
+ Sojourner Truth
13
+ <usa-description>This is optional text that can be used to describe the label in more detail.</usa-description>
14
+ </usa-checkbox>
15
+
16
+ <usa-checkbox name="historical-figure" value="frederick-douglass" tiled>
17
+ Frederick Douglass
18
+ </usa-checkbox>
19
+
20
+ <usa-checkbox name="historical-figure" value="booker-t-washington" tiled>
21
+ Booker T. Washington
22
+ </usa-checkbox>
23
+
24
+ <usa-checkbox name="historical-figure" value="gw-carver" tiled disabled>
25
+ George Washington Carver
26
+ </usa-checkbox>
27
+ </usa-checkbox-group>
20
28
  `;
21
29
  },
22
- argTypes: {
23
- name: {
24
- control: "text",
25
- },
26
- value: {
27
- control: "text",
28
- },
29
- description: {
30
- control: "text",
31
- },
32
- tiled: {
33
- control: "boolean",
34
- },
35
- },
36
- args: {
37
- name: "toc",
38
- value: "agree",
39
- tiled: false,
40
- disabled: false,
41
- },
30
+ argTypes: {},
31
+ args: {},
42
32
  };
43
33
  export default meta;
44
34
  // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
45
35
  export const Primary = {
46
- args: {},
36
+ render() {
37
+ return html `
38
+ <usa-checkbox-group>
39
+ <legend class="usa-legend">Select any historical figure</legend>
40
+
41
+ <usa-checkbox name="historical-figure" value="sojurner-truth">
42
+ Sojourner Truth
43
+ </usa-checkbox>
44
+
45
+ <usa-checkbox name="historical-figure" value="frederick-douglass">
46
+ Frederick Douglass
47
+ </usa-checkbox>
48
+
49
+ <usa-checkbox name="historical-figure" value="booker-t-washington">
50
+ Booker T. Washington
51
+ </usa-checkbox>
52
+
53
+ <usa-checkbox name="historical-figure" value="gw-carver" disabled>
54
+ George Washington Carver
55
+ </usa-checkbox>
56
+ </usa-checkbox-group>
57
+ `;
58
+ },
59
+ };
60
+ export const Tiled = {
61
+ render() {
62
+ return html `
63
+ <usa-checkbox-group>
64
+ <legend class="usa-legend">Select any historical figure</legend>
65
+
66
+ <usa-checkbox name="historical-figure" value="sojurner-truth" tiled>
67
+ Sojourner Truth
68
+ <usa-description>This is optional text that can be used to describe the label in more detail.</usa-description>
69
+ </usa-checkbox>
70
+
71
+ <usa-checkbox name="historical-figure" value="frederick-douglass" tiled>
72
+ Frederick Douglass
73
+ </usa-checkbox>
74
+
75
+ <usa-checkbox name="historical-figure" value="booker-t-washington" tiled>
76
+ Booker T. Washington
77
+ </usa-checkbox>
78
+
79
+ <usa-checkbox name="historical-figure" value="gw-carver" tiled disabled>
80
+ George Washington Carver
81
+ </usa-checkbox>
82
+ </usa-checkbox-group>
83
+ `;
84
+ },
47
85
  };
48
86
  //# sourceMappingURL=checkbox.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.stories.js","sourceRoot":"","sources":["../../../src/lib/checkbox/checkbox.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAE3B,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAI9C,kFAAkF;AAClF,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,cAAc;IACrB,IAAI,EAAE,CAAC,UAAU,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ACxF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,MAAM;QACJ,OAAO,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;KAoBV,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAU;IAC1B,MAAM;QACJ,OAAO,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;KAqBV,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -39,8 +39,8 @@ let USACollectionItemElement = (() => {
39
39
  <slot name="description"></slot>
40
40
  </div>
41
41
 
42
- <div class="meta">
43
- <slot name="meta"></slot>
42
+ <div class="slots">
43
+ <slot name="tags"></slot>
44
44
  </div>
45
45
  </div>
46
46
  `,
@@ -3,7 +3,7 @@ import type { USACollectionElement } from "./collection.element.js";
3
3
  declare const meta: {
4
4
  title: string;
5
5
  tags: string[];
6
- render(args: USACollectionElement): import("lit-html").TemplateResult<1>;
6
+ render(): import("lit-html").TemplateResult<1>;
7
7
  argTypes: {};
8
8
  args: {};
9
9
  };
@@ -3,7 +3,7 @@ import { html } from "lit";
3
3
  const meta = {
4
4
  title: "usa-collection",
5
5
  tags: ["autodocs"],
6
- render(args) {
6
+ render() {
7
7
  return html `
8
8
  <usa-collection>
9
9
  <usa-collection-item>
@@ -12,8 +12,12 @@ const meta = {
12
12
  </h4>
13
13
 
14
14
  <div slot="description">
15
- Today, the Administration announces the winners of the Gears of Government Presidents 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.
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
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>
17
21
  </usa-collection-item>
18
22
 
19
23
  <usa-collection-item>
@@ -24,8 +28,12 @@ const meta = {
24
28
  </h4>
25
29
 
26
30
  <div slot="description">
27
- Today, the Administration announces the winners of the Gears of Government Presidents 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.
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.
28
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>
29
37
  </usa-collection-item>
30
38
 
31
39
  <usa-collection-item>
@@ -36,6 +44,10 @@ const meta = {
36
44
  <div slot="description">
37
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!
38
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>
39
51
  </usa-collection-item>
40
52
 
41
53
  <usa-collection-item>
@@ -48,6 +60,10 @@ const meta = {
48
60
  <div slot="description">
49
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!
50
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>
51
67
  </usa-collection-item>
52
68
  </usa-collection>
53
69
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"collection.stories.js","sourceRoot":"","sources":["../../../src/lib/collection/collection.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAI3B,kFAAkF;AAClF,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,gBAAgB;IACvB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,MAAM,CAAC,IAAI;QACT,OAAO,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8CV,CAAC;IACJ,CAAC;IACD,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;CAC4B,CAAC;AAEvC,eAAe,IAAI,CAAC;AAIpB,wFAAwF;AACxF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;CACT,CAAC"}
1
+ {"version":3,"file":"collection.stories.js","sourceRoot":"","sources":["../../../src/lib/collection/collection.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAI3B,kFAAkF;AAClF,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,gBAAgB;IACvB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,MAAM;QACJ,OAAO,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8DV,CAAC;IACJ,CAAC;IACD,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;CAC4B,CAAC;AAEvC,eAAe,IAAI,CAAC;AAIpB,wFAAwF;AACxF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;CACT,CAAC"}
@@ -32,3 +32,4 @@ import "./card/card-group/card-group.element.js";
32
32
  import "./textarea/textarea.element.js";
33
33
  import "./collection/collection.element.js";
34
34
  import "./collection/collection-item/collection-item.element.js";
35
+ import "./checkbox/checkbox-group/checkbox-group.element.js";
@@ -32,4 +32,5 @@ import "./card/card-group/card-group.element.js";
32
32
  import "./textarea/textarea.element.js";
33
33
  import "./collection/collection.element.js";
34
34
  import "./collection/collection-item/collection-item.element.js";
35
+ import "./checkbox/checkbox-group/checkbox-group.element.js";
35
36
  //# sourceMappingURL=define.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"define.js","sourceRoot":"","sources":["../../src/lib/define.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CAAC;AAClC,OAAO,oCAAoC,CAAC;AAC5C,OAAO,wBAAwB,CAAC;AAChC,OAAO,0BAA0B,CAAC;AAClC,OAAO,8CAA8C,CAAC;AACtD,OAAO,4BAA4B,CAAC;AACpC,OAAO,iDAAiD,CAAC;AACzD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,kCAAkC,CAAC;AAC1C,OAAO,gCAAgC,CAAC;AACxC,OAAO,mDAAmD,CAAC;AAC3D,OAAO,sCAAsC,CAAC;AAC9C,OAAO,4CAA4C,CAAC;AACpD,OAAO,uCAAuC,CAAC;AAC/C,OAAO,0BAA0B,CAAC;AAClC,OAAO,4CAA4C,CAAC;AACpD,OAAO,gDAAgD,CAAC;AACxD,OAAO,wBAAwB,CAAC;AAChC,OAAO,2CAA2C,CAAC;AACnD,OAAO,uCAAuC,CAAC;AAC/C,OAAO,2CAA2C,CAAC;AACnD,OAAO,yCAAyC,CAAC;AACjD,OAAO,yCAAyC,CAAC;AACjD,OAAO,gCAAgC,CAAC;AACxC,OAAO,oCAAoC,CAAC;AAC5C,OAAO,yDAAyD,CAAC;AACjE,OAAO,qDAAqD,CAAC"}
@@ -9,8 +9,10 @@ export declare class USAFileInputElement extends HTMLElement {
9
9
  accessor name: string;
10
10
  accessor multiple: boolean;
11
11
  accessor accept: string;
12
+ accessor required: boolean;
12
13
  accessor files: FileList | null;
13
14
  attributeChangedCallback(): void;
15
+ connectedCallback(): void;
14
16
  onChange(): void;
15
17
  onInputChange(): void;
16
18
  onDragEnter(): void;