@nysds/components 1.1.9 → 1.3.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,7 +14,10 @@ export declare class NysAvatar extends LitElement {
14
14
  private _shape;
15
15
  get shape(): (typeof NysAvatar.VALID_SHAPES)[number];
16
16
  set shape(value: string);
17
+ private _slotHasContent;
17
18
  /******************** Functions ********************/
18
19
  connectedCallback(): void;
20
+ firstUpdated(): void;
21
+ private _checkSlotContent;
19
22
  render(): import("lit-html").TemplateResult<1>;
20
23
  }
@@ -0,0 +1 @@
1
+ export * from "./nys-backtotop";
@@ -0,0 +1,16 @@
1
+ import { LitElement } from "lit";
2
+ import "@nysds/nys-button";
3
+ export declare class NysBacktotop extends LitElement {
4
+ position: string;
5
+ visible: boolean;
6
+ static styles: import("lit").CSSResult;
7
+ private isMobile;
8
+ private mediaQuery;
9
+ constructor();
10
+ connectedCallback(): void;
11
+ disconnectedCallback(): void;
12
+ private _handleScroll;
13
+ private _scrollToTop;
14
+ private _handleResize;
15
+ render(): import("lit-html").TemplateResult<1>;
16
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -17,6 +17,8 @@ export declare class NysButton extends LitElement {
17
17
  ariaLabel: string;
18
18
  prefixIcon: string;
19
19
  suffixIcon: string;
20
+ circle: boolean;
21
+ icon: string;
20
22
  disabled: boolean;
21
23
  form: string;
22
24
  value: string;
@@ -37,6 +37,7 @@ export declare class NysCheckbox extends LitElement {
37
37
  checkValidity(): boolean;
38
38
  private _handleInvalid;
39
39
  /******************** Event Handlers ********************/
40
+ private _emitChangeEvent;
40
41
  private _handleChange;
41
42
  private _handleFocus;
42
43
  private _handleBlur;
@@ -24,6 +24,7 @@ export declare class NysRadiobutton extends LitElement {
24
24
  /******************** Function ********************/
25
25
  checkValidity(): boolean;
26
26
  /******************** Event Handlers ********************/
27
+ private _emitChangeEvent;
27
28
  private _handleChange;
28
29
  private _handleFocus;
29
30
  private _handleBlur;
@@ -39,7 +39,6 @@ export declare class NysSelect extends LitElement {
39
39
  private _handleInvalid;
40
40
  /******************** Event Handlers ********************/
41
41
  private _handleChange;
42
- private _handleInput;
43
42
  private _handleFocus;
44
43
  private _handleBlur;
45
44
  updated(changedProperties: Map<string, unknown>): void;
@@ -47,7 +47,6 @@ export declare class NysTextarea extends LitElement {
47
47
  private _handleInput;
48
48
  private _handleFocus;
49
49
  private _handleBlur;
50
- private _handleChange;
51
50
  private _handleSelect;
52
51
  private _handleSelectionChange;
53
52
  render(): import("lit-html").TemplateResult<1>;
@@ -54,7 +54,6 @@ export declare class NysTextinput extends LitElement {
54
54
  private _handleInput;
55
55
  private _handleFocus;
56
56
  private _handleBlur;
57
- private _handleChange;
58
57
  private _validateButtonSlot;
59
58
  render(): import("lit-html").TemplateResult<1>;
60
59
  }
@@ -23,7 +23,8 @@ export declare class NysToggle extends LitElement {
23
23
  connectedCallback(): void;
24
24
  /********************** Form Integration **********************/
25
25
  updated(changedProperties: Map<string, any>): void;
26
- /********************** Functions **********************/
26
+ /********************** Event Handlers **********************/
27
+ private _emitChangeEvent;
27
28
  private _handleFocus;
28
29
  private _handleBlur;
29
30
  private _handleChange;
@@ -1,5 +1,6 @@
1
1
  export * from "../packages/nys-alert/src/index";
2
2
  export * from "../packages/nys-avatar/src/index";
3
+ export * from "../packages/nys-backtotop/src/index";
3
4
  export * from "../packages/nys-button/src/index";
4
5
  export * from "../packages/nys-checkbox/src/index";
5
6
  export * from "../packages/nys-errormessage/src/index";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nysds/components",
3
- "version": "1.1.9",
3
+ "version": "1.3.0",
4
4
  "description": "New York State's design system and code component library.",
5
5
  "type": "module",
6
6
  "workspaces": [
@@ -57,18 +57,12 @@
57
57
  "@figma/code-connect": "^1.3.1"
58
58
  },
59
59
  "devDependencies": {
60
- "@chromatic-com/storybook": "^3.2.6",
60
+ "@chromatic-com/storybook": "^4.0.0",
61
61
  "@open-wc/testing": "^3.2.2",
62
- "@storybook/addon-a11y": "^8.6.12",
63
- "@storybook/addon-essentials": "^8.6.12",
64
- "@storybook/addon-links": "^8.6.12",
65
- "@storybook/addon-toolbars": "^8.6.12",
66
- "@storybook/blocks": "^8.6.12",
67
- "@storybook/manager-api": "^8.6.12",
68
- "@storybook/test": "^8.6.12",
69
- "@storybook/theming": "^8.6.12",
70
- "@storybook/web-components": "^8.6.12",
71
- "@storybook/web-components-vite": "^8.6.12",
62
+ "@storybook/addon-a11y": "^9.0.9",
63
+ "@storybook/addon-docs": "^9.0.9",
64
+ "@storybook/addon-links": "^9.0.9",
65
+ "@storybook/web-components-vite": "^9.0.9",
72
66
  "@types/mocha": "^10.0.9",
73
67
  "@typescript-eslint/eslint-plugin": "^8.5.0",
74
68
  "@typescript-eslint/parser": "^8.5.0",
@@ -79,14 +73,14 @@
79
73
  "eslint": "^9.10.0",
80
74
  "eslint-plugin-lit": "^1.15.0",
81
75
  "eslint-plugin-prettier": "^5.2.1",
82
- "eslint-plugin-storybook": "^0.12.0",
76
+ "eslint-plugin-storybook": "^9.0.9",
83
77
  "i": "^0.3.7",
84
78
  "lit": "^3.2.1",
85
79
  "npm": "^10.9.0",
86
80
  "plop": "^4.0.1",
87
81
  "rollup-plugin-visualizer": "^5.14.0",
88
82
  "sinon": "^19.0.2",
89
- "storybook": "^8.6.12",
83
+ "storybook": "^9.0.9",
90
84
  "tslib": "^2.7.0",
91
85
  "typescript": "^5.7.2",
92
86
  "vite": "^6.3.4"
@@ -98,5 +92,8 @@
98
92
  "extends": [
99
93
  "plugin:storybook/recommended"
100
94
  ]
95
+ },
96
+ "overrides": {
97
+ "storybook": "$storybook"
101
98
  }
102
- }
99
+ }