@nysds/components 1.9.1 → 1.10.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.
@@ -14,6 +14,7 @@ export declare class NysButton extends LitElement {
14
14
  inverted: boolean;
15
15
  label: string;
16
16
  ariaLabel: string;
17
+ ariaControls: string;
17
18
  prefixIcon: string;
18
19
  suffixIcon: string;
19
20
  circle: boolean;
@@ -32,6 +33,7 @@ export declare class NysButton extends LitElement {
32
33
  private _target;
33
34
  get target(): (typeof NysButton.VALID_TARGETS)[number];
34
35
  set target(value: string);
36
+ getButtonElement(): Promise<HTMLElement | null>;
35
37
  static styles: import("lit").CSSResult;
36
38
  private _internals;
37
39
  /**************** Lifecycle Methods ****************/
@@ -46,5 +48,7 @@ export declare class NysButton extends LitElement {
46
48
  private _handleBlur;
47
49
  private _handleClick;
48
50
  private _handleKeydown;
51
+ /******************** Public Methods ********************/
52
+ focus(options?: FocusOptions): void;
49
53
  render(): import("lit-html").TemplateResult<1>;
50
54
  }
@@ -36,6 +36,7 @@ export declare class NysCheckbox extends LitElement {
36
36
  /********************** Functions **********************/
37
37
  checkValidity(): boolean;
38
38
  private _handleInvalid;
39
+ private _manageLabelClick;
39
40
  /******************** Event Handlers ********************/
40
41
  private _emitChangeEvent;
41
42
  private _handleChange;
@@ -6,7 +6,7 @@ export declare class NysFileinput extends LitElement {
6
6
  label: string;
7
7
  description: string;
8
8
  multiple: boolean;
9
- form: string;
9
+ form: string | null;
10
10
  _tooltip: string;
11
11
  accept: string;
12
12
  disabled: boolean;
@@ -0,0 +1 @@
1
+ export * from "./nys-modal";
@@ -0,0 +1,45 @@
1
+ import { LitElement } from "lit";
2
+ export declare class NysModal extends LitElement {
3
+ id: string;
4
+ heading: string;
5
+ subheading: string;
6
+ open: boolean;
7
+ mandatory: boolean;
8
+ private static readonly VALID_WIDTHS;
9
+ private _width;
10
+ get width(): (typeof NysModal.VALID_WIDTHS)[number];
11
+ set width(value: string);
12
+ private _actionButtonSlot;
13
+ private _prevFocusedElement;
14
+ private _originalBodyOverflow;
15
+ private hasBodySlots;
16
+ private hasActionSlots;
17
+ static styles: import("lit").CSSResult;
18
+ /**************** Lifecycle Methods ****************/
19
+ constructor();
20
+ connectedCallback(): void;
21
+ disconnectedCallback(): void;
22
+ firstUpdated(): void;
23
+ updated(changeProps: Map<string, any>): Promise<void>;
24
+ /******************** Functions ********************/
25
+ private _hideBodyScroll;
26
+ private _restoreBodyScroll;
27
+ private _savePrevFocused;
28
+ private _focusOnModal;
29
+ private _restorePrevFocused;
30
+ private _handleBodySlotChange;
31
+ private _handleActionSlotChange;
32
+ private _updateSlottedButtonWidth;
33
+ private _dispatchOpenEvent;
34
+ private _dispatchCloseEvent;
35
+ private _getAriaDescribedBy;
36
+ /**
37
+ * This exist to prevent the VO for dismiss button from announcing itself between the heading & subheading/slot content.
38
+ * We add the "Close this window" ariaLabel after the initial VO is done
39
+ */
40
+ private _updateDismissAria;
41
+ /****************** Event Handlers ******************/
42
+ private _handleKeydown;
43
+ private _closeModal;
44
+ render(): "" | import("lit-html").TemplateResult<1>;
45
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export * from "./nys-pagination";
@@ -0,0 +1,19 @@
1
+ import { LitElement, TemplateResult } from "lit";
2
+ export declare class NysPagination extends LitElement {
3
+ id: string;
4
+ name: string;
5
+ currentPage: number;
6
+ totalPages: number;
7
+ _twoBeforeLast: boolean;
8
+ static styles: import("lit").CSSResult;
9
+ /**************** Lifecycle Methods ****************/
10
+ constructor();
11
+ updated(changedProps: Map<string, unknown>): void;
12
+ connectedCallback(): void;
13
+ /******************** Functions ********************/
14
+ private _clampPage;
15
+ private renderPageButtons;
16
+ /****************** Event Handlers ******************/
17
+ private _handlePageClick;
18
+ render(): TemplateResult<1> | null;
19
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -10,6 +10,8 @@ export * from "../packages/nys-errormessage/src/index";
10
10
  export * from "../packages/nys-fileinput/src/index";
11
11
  export * from "../packages/nys-icon/src/index";
12
12
  export * from "../packages/nys-label/src/index";
13
+ export * from "../packages/nys-modal/src/index";
14
+ export * from "../packages/nys-pagination/src/index";
13
15
  export * from "../packages/nys-radiobutton/src/index";
14
16
  export * from "../packages/nys-select/src/index";
15
17
  export * from "../packages/nys-skipnav/src/index";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nysds/components",
3
- "version": "1.9.1",
3
+ "version": "1.10.0",
4
4
  "description": "New York State's design system and code component library.",
5
5
  "type": "module",
6
6
  "workspaces": [