@nysds/nys-radiobutton 1.0.0 → 1.1.0

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.
@@ -1,5 +1,6 @@
1
1
  import { LitElement } from "lit";
2
- import "@nysds/nys-icon";
2
+ import "@nysds/nys-label";
3
+ import "@nysds/nys-errormessage";
3
4
  export declare class NysRadiogroup extends LitElement {
4
5
  id: string;
5
6
  name: string;
@@ -8,18 +9,28 @@ export declare class NysRadiogroup extends LitElement {
8
9
  errorMessage: string;
9
10
  label: string;
10
11
  description: string;
11
- private selectedName;
12
12
  private selectedValue;
13
13
  private static readonly VALID_SIZES;
14
14
  private _size;
15
15
  get size(): (typeof NysRadiogroup.VALID_SIZES)[number];
16
16
  set size(value: string);
17
17
  static styles: import("lit").CSSResult;
18
+ private _internals;
19
+ /********************** Lifecycle updates **********************/
20
+ static formAssociated: boolean;
21
+ constructor();
18
22
  connectedCallback(): void;
19
23
  disconnectedCallback(): void;
24
+ firstUpdated(): void;
20
25
  updated(changedProperties: Map<string | symbol, unknown>): void;
21
- private updateRadioButtonsRequire;
26
+ formResetCallback(): void;
27
+ /********************** Form Integration **********************/
28
+ private _setValue;
29
+ private setRadioButtonRequire;
30
+ private _manageRequire;
31
+ private _initializeCheckedState;
22
32
  private updateRadioButtonsSize;
23
33
  private _handleRadioButtonChange;
34
+ private _handleInvalid;
24
35
  render(): import("lit-html").TemplateResult<1>;
25
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nysds/nys-radiobutton",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "A radio button component from the NYS Design System.",
5
5
  "module": "dist/nys-radiobutton.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,7 +18,10 @@
18
18
  "dev": "tsc --emitDeclarationOnly && vite",
19
19
  "build": "tsc --emitDeclarationOnly && vite build"
20
20
  },
21
- "dependencies": {},
21
+ "dependencies": {
22
+ "@nysds/nys-label": "^1.1.0",
23
+ "@nysds/nys-errormessage": "^1.1.0"
24
+ },
22
25
  "peerDependencies": {
23
26
  "lit": "^3.2.1"
24
27
  },