@warp-ds/elements 2.2.0-next.6 → 2.2.0-next.8

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 (58) hide show
  1. package/dist/custom-elements.json +633 -141
  2. package/dist/index.d.ts +2 -0
  3. package/dist/index.js +363 -129
  4. package/dist/index.js.map +4 -4
  5. package/dist/packages/alert/index.js.map +1 -1
  6. package/dist/packages/alert/react.js.map +1 -1
  7. package/dist/packages/attention/index.js.map +1 -1
  8. package/dist/packages/button/index.d.ts +1 -0
  9. package/dist/packages/button/index.js +214 -9
  10. package/dist/packages/button/index.js.map +4 -4
  11. package/dist/packages/button/react.js +213 -8
  12. package/dist/packages/button/react.js.map +4 -4
  13. package/dist/packages/datepicker/DatePicker.test.d.ts +1 -0
  14. package/dist/packages/datepicker/datepicker.d.ts +20 -2
  15. package/dist/packages/datepicker/datepicker.test.d.ts +2 -0
  16. package/dist/packages/datepicker/index.js +81 -78
  17. package/dist/packages/datepicker/index.js.map +3 -3
  18. package/dist/packages/datepicker/react.d.ts +2 -0
  19. package/dist/packages/datepicker/react.js +2805 -0
  20. package/dist/packages/datepicker/react.js.map +7 -0
  21. package/dist/packages/link/index.d.ts +39 -0
  22. package/dist/packages/link/index.js +2646 -0
  23. package/dist/packages/link/index.js.map +7 -0
  24. package/dist/packages/link/link.stories.d.ts +20 -0
  25. package/dist/packages/link/link.test.d.ts +1 -0
  26. package/dist/packages/link/react.d.ts +2 -0
  27. package/dist/packages/link/react.js +2666 -0
  28. package/dist/packages/link/react.js.map +7 -0
  29. package/dist/packages/link/styles.d.ts +1 -0
  30. package/dist/packages/steps/index.d.ts +43 -0
  31. package/dist/packages/steps/index.js +2465 -0
  32. package/dist/packages/steps/index.js.map +7 -0
  33. package/dist/packages/steps/locales/da/messages.d.mts +1 -0
  34. package/dist/packages/steps/locales/en/messages.d.mts +1 -0
  35. package/dist/packages/steps/locales/fi/messages.d.mts +1 -0
  36. package/dist/packages/steps/locales/nb/messages.d.mts +1 -0
  37. package/dist/packages/steps/locales/sv/messages.d.mts +1 -0
  38. package/dist/packages/steps/react.d.ts +3 -0
  39. package/dist/packages/steps/react.js +2485 -0
  40. package/dist/packages/steps/react.js.map +7 -0
  41. package/dist/packages/steps/steps.stories.d.ts +12 -0
  42. package/dist/packages/steps/styles.d.ts +1 -0
  43. package/dist/packages/switch/index.d.ts +20 -0
  44. package/dist/packages/switch/index.js +2455 -0
  45. package/dist/packages/switch/index.js.map +7 -0
  46. package/dist/packages/switch/react.d.ts +2 -0
  47. package/dist/packages/switch/react.js +2475 -0
  48. package/dist/packages/switch/react.js.map +7 -0
  49. package/dist/packages/switch/styles.d.ts +1 -0
  50. package/dist/packages/switch/switch.stories.d.ts +9 -0
  51. package/dist/packages/textfield/index.js +1 -1
  52. package/dist/packages/textfield/index.js.map +2 -2
  53. package/dist/packages/textfield/react.js +1 -1
  54. package/dist/packages/textfield/react.js.map +2 -2
  55. package/dist/packages/toast/index.js.map +1 -1
  56. package/dist/vscode.html-custom-data.json +77 -19
  57. package/dist/web-types.json +156 -41
  58. package/package.json +15 -13
@@ -1,45 +1,11 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@warp-ds/elements",
4
- "version": "2.2.0-next.5",
4
+ "version": "2.2.0-next.7",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
- {
10
- "name": "w-alert",
11
- "description": "Alert is an inline component used for displaying different types of messages.\n\nFor accessibility reasons, alert should appear close to the element that triggered it.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/feedback-alert--docs)\n---\n",
12
- "doc-url": "",
13
- "attributes": [
14
- {
15
- "name": "variant",
16
- "value": {
17
- "type": "'negative' | 'positive' | 'warning' | 'info'",
18
- "default": "'info'"
19
- }
20
- },
21
- {
22
- "name": "show",
23
- "value": { "type": "boolean", "default": "false" }
24
- },
25
- {
26
- "name": "role",
27
- "value": { "type": "string", "default": "'alert'" }
28
- }
29
- ],
30
- "events": [],
31
- "js": {
32
- "properties": [
33
- {
34
- "name": "variant",
35
- "type": "'negative' | 'positive' | 'warning' | 'info'"
36
- },
37
- { "name": "show", "type": "boolean" },
38
- { "name": "role", "type": "string" }
39
- ],
40
- "events": []
41
- }
42
- },
43
9
  {
44
10
  "name": "w-affix",
45
11
  "description": "This component is usually used in other components like form elements to show a prefix or suffix. See for example `w-textfield`.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-affix--docs)\n---\n",
@@ -77,6 +43,40 @@
77
43
  "events": []
78
44
  }
79
45
  },
46
+ {
47
+ "name": "w-alert",
48
+ "description": "Alert is an inline component used for displaying different types of messages.\n\nFor accessibility reasons, alert should appear close to the element that triggered it.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/feedback-alert--docs)\n---\n",
49
+ "doc-url": "",
50
+ "attributes": [
51
+ {
52
+ "name": "variant",
53
+ "value": {
54
+ "type": "'negative' | 'positive' | 'warning' | 'info'",
55
+ "default": "'info'"
56
+ }
57
+ },
58
+ {
59
+ "name": "show",
60
+ "value": { "type": "boolean", "default": "false" }
61
+ },
62
+ {
63
+ "name": "role",
64
+ "value": { "type": "string", "default": "'alert'" }
65
+ }
66
+ ],
67
+ "events": [],
68
+ "js": {
69
+ "properties": [
70
+ {
71
+ "name": "variant",
72
+ "type": "'negative' | 'positive' | 'warning' | 'info'"
73
+ },
74
+ { "name": "show", "type": "boolean" },
75
+ { "name": "role", "type": "string" }
76
+ ],
77
+ "events": []
78
+ }
79
+ },
80
80
  {
81
81
  "name": "w-badge",
82
82
  "description": "`w-badge` is used for showing a small amount of non-interactive color-categorized metadata, like a status or count.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-badge--docs)\n---\n",
@@ -147,6 +147,51 @@
147
147
  "events": []
148
148
  }
149
149
  },
150
+ {
151
+ "name": "w-link",
152
+ "description": "Buttons are used to perform actions, with different visuals for different needs.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-link--docs)\n---\n",
153
+ "doc-url": "",
154
+ "attributes": [
155
+ { "name": "autofocus", "value": { "type": "boolean" } },
156
+ {
157
+ "name": "variant",
158
+ "value": {
159
+ "type": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'pill' | 'link' | 'quiet' | 'utilityQuiet'",
160
+ "default": "'secondary'"
161
+ }
162
+ },
163
+ { "name": "quiet", "value": { "type": "boolean" } },
164
+ { "name": "small", "value": { "type": "boolean" } },
165
+ { "name": "href", "value": { "type": "string" } },
166
+ { "name": "disabled", "value": { "type": "boolean" } },
167
+ { "name": "target", "value": { "type": "string" } },
168
+ { "name": "rel", "value": { "type": "string" } },
169
+ { "name": "full-width", "value": { "type": "boolean" } },
170
+ { "name": "button-class", "value": { "type": "string" } },
171
+ { "name": "name", "value": { "type": "string" } }
172
+ ],
173
+ "events": [],
174
+ "js": {
175
+ "properties": [
176
+ { "name": "autofocus", "type": "boolean" },
177
+ {
178
+ "name": "variant",
179
+ "type": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'pill' | 'link' | 'quiet' | 'utilityQuiet'"
180
+ },
181
+ { "name": "quiet", "type": "boolean" },
182
+ { "name": "small", "type": "boolean" },
183
+ { "name": "href", "type": "string" },
184
+ { "name": "disabled", "type": "boolean" },
185
+ { "name": "target", "type": "string" },
186
+ { "name": "rel", "type": "string" },
187
+ { "name": "fullWidth", "type": "boolean" },
188
+ { "name": "buttonClass", "type": "string" },
189
+ { "name": "name", "type": "string" },
190
+ { "name": "classes", "type": "string" }
191
+ ],
192
+ "events": []
193
+ }
194
+ },
150
195
  {
151
196
  "name": "w-button",
152
197
  "description": "Buttons are used to perform actions, widh different visuals for different needs.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-button--docs)\n---\n",
@@ -292,11 +337,6 @@
292
337
  "type": "string"
293
338
  },
294
339
  { "name": "isCalendarOpen", "type": "boolean" },
295
- {
296
- "name": "internalValue",
297
- "description": "The current input value as a stringified date-like",
298
- "type": "string"
299
- },
300
340
  { "name": "navigationDate", "type": "Date" },
301
341
  { "name": "selectedDate", "type": "Date | null" },
302
342
  { "name": "month" },
@@ -305,6 +345,12 @@
305
345
  { "name": "input", "type": "HTMLInputElement" },
306
346
  { "name": "toggleButton", "type": "HTMLButtonElement" },
307
347
  { "name": "wrapper", "type": "HTMLDivElement" },
348
+ {
349
+ "name": "previousMonthButton",
350
+ "description": "This is the first focusable element, needed for the modal focus trap.\n\nDon't cache this and other `@query` fields from inside the calendar modal.\nThey work the first time, but once the calendar is closed and reopened\nthe query will point to an element that doesn't exist anymore.",
351
+ "type": "HTMLButtonElement"
352
+ },
353
+ { "name": "todayCell", "type": "HTMLTableCellElement" },
308
354
  { "name": "selectedCell", "type": "HTMLTableCellElement" }
309
355
  ],
310
356
  "events": []
@@ -694,6 +740,75 @@
694
740
  "events": []
695
741
  }
696
742
  },
743
+ {
744
+ "name": "w-steps",
745
+ "description": "Steps are used to show progress through a process or to guide users through a multi-step task.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/components-steps--docs)\n---\n",
746
+ "doc-url": "",
747
+ "attributes": [
748
+ {
749
+ "name": "horizontal",
750
+ "value": { "type": "boolean", "default": "false" }
751
+ },
752
+ {
753
+ "name": "right",
754
+ "value": { "type": "boolean", "default": "false" }
755
+ }
756
+ ],
757
+ "events": [],
758
+ "js": {
759
+ "properties": [
760
+ { "name": "horizontal", "type": "boolean" },
761
+ { "name": "right", "type": "boolean" }
762
+ ],
763
+ "events": []
764
+ }
765
+ },
766
+ {
767
+ "name": "w-step",
768
+ "description": "Individual step component that shows a single step in a process\n---\n",
769
+ "doc-url": "",
770
+ "attributes": [
771
+ {
772
+ "name": "active",
773
+ "value": { "type": "boolean", "default": "false" }
774
+ },
775
+ {
776
+ "name": "completed",
777
+ "value": { "type": "boolean", "default": "false" }
778
+ }
779
+ ],
780
+ "events": [],
781
+ "js": {
782
+ "properties": [
783
+ { "name": "active", "type": "boolean" },
784
+ { "name": "completed", "type": "boolean" }
785
+ ],
786
+ "events": []
787
+ }
788
+ },
789
+ {
790
+ "name": "w-switch",
791
+ "description": "\n---\n\n\n### **Events:**\n - **change**",
792
+ "doc-url": "",
793
+ "attributes": [
794
+ {
795
+ "name": "value",
796
+ "value": { "type": "boolean", "default": "false" }
797
+ },
798
+ {
799
+ "name": "disabled",
800
+ "value": { "type": "boolean", "default": "false" }
801
+ }
802
+ ],
803
+ "events": [{ "name": "change", "type": "CustomEvent" }],
804
+ "js": {
805
+ "properties": [
806
+ { "name": "value", "type": "boolean" },
807
+ { "name": "disabled", "type": "boolean" }
808
+ ],
809
+ "events": [{ "name": "change", "type": "CustomEvent" }]
810
+ }
811
+ },
697
812
  {
698
813
  "name": "w-textfield",
699
814
  "description": "A single line text input element.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)\n---\n",
@@ -703,7 +818,7 @@
703
818
  { "name": "invalid", "value": { "type": "boolean" } },
704
819
  { "name": "id", "value": { "type": "string" } },
705
820
  { "name": "label", "value": { "type": "string" } },
706
- { "name": "helpText", "value": { "type": "string" } },
821
+ { "name": "help-text", "value": { "type": "string" } },
707
822
  { "name": "size", "value": { "type": "string" } },
708
823
  { "name": "max", "value": { "type": "number" } },
709
824
  { "name": "min", "value": { "type": "number" } },
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@warp-ds/elements",
3
3
  "type": "module",
4
- "version": "2.2.0-next.6",
4
+ "version": "2.2.0-next.8",
5
5
  "packageManager": "pnpm@10.15.1",
6
6
  "description": "Custom elements for Warp",
7
7
  "exports": {
8
8
  ".": {
9
9
  "types": "./dist/index.d.ts",
10
- "module": "./dist/index.js"
10
+ "import": "./dist/index.js"
11
11
  },
12
12
  "./components/affix": "./dist/packages/affix/index.js",
13
13
  "./components/alert": "./dist/packages/alert/index.js",
@@ -27,11 +27,11 @@
27
27
  "./custom-elements.json": "./dist/custom-elements.json",
28
28
  "./react/*": {
29
29
  "types": "./dist/packages/*/react.d.ts",
30
- "module": "./dist/packages/*/react.js"
30
+ "import": "./dist/packages/*/react.js"
31
31
  },
32
32
  "./*": {
33
33
  "types": "./dist/packages/*/index.d.ts",
34
- "module": "./dist/packages/*/index.js"
34
+ "import": "./dist/packages/*/index.js"
35
35
  }
36
36
  },
37
37
  "main": "./dist/index.js",
@@ -44,6 +44,7 @@
44
44
  "./dist/custom-elements.json"
45
45
  ],
46
46
  "scripts": {
47
+ "clean": "rimraf .pnpm-store node_modules dist eik storybook-static",
47
48
  "build:storybook": "pnpm run messages:compile && pnpm run build:manifest && storybook build && touch ./storybook-static/.nojekyll",
48
49
  "build:eik": "node build.js eik",
49
50
  "build:npm": "node build.js npm",
@@ -51,13 +52,12 @@
51
52
  "build:styles": "node build.js styles",
52
53
  "build": "rimraf dist && rimraf eik && pnpm run messages:compile && tsc && pnpm run build:manifest && pnpm run build:npm && pnpm build:eik",
53
54
  "commit": "cz",
54
- "dev": "vite",
55
- "storybook": "storybook dev",
55
+ "dev": "pnpm run storybook",
56
+ "storybook": "storybook dev --port 63900",
56
57
  "lint:check": "eslint .",
57
58
  "lint": "eslint . --fix",
58
59
  "messages:compile": "lingui compile",
59
60
  "messages:extract": "lingui extract",
60
- "preview:docs": "vite preview",
61
61
  "semantic-release": "semantic-release",
62
62
  "test": "vitest",
63
63
  "watch:npm": "npx esbuild ./index.js --outdir=dist/ --target=es2017 --bundle --sourcemap --format=esm --minify --watch"
@@ -91,13 +91,16 @@
91
91
  "@storybook/web-components": "^9.1.4",
92
92
  "@storybook/web-components-vite": "^9.1.4",
93
93
  "@types/node": "20.14.10",
94
+ "@types/react": "^19.1.12",
94
95
  "@unocss/core": "^66.5.0",
96
+ "@vitejs/plugin-react": "^5.0.2",
95
97
  "@vitest/browser": "^3.2.4",
96
98
  "@vitest/utils": "^3.2.4",
97
99
  "@warp-ds/eslint-config": "1.1.0",
98
100
  "@warp-ds/uno": "2.1.0",
99
101
  "@wc-toolkit/cem-validator": "^1.0.3",
100
102
  "@wc-toolkit/storybook-helpers": "^9.0.1",
103
+ "@wc-toolkit/type-parser": "^1.2.0",
101
104
  "custom-element-jet-brains-integration": "^1.7.0",
102
105
  "custom-element-vs-code-integration": "^1.5.0",
103
106
  "cz-conventional-changelog": "3.3.0",
@@ -117,28 +120,27 @@
117
120
  "nanoid": "^5.1.5",
118
121
  "playwright": "^1.55.0",
119
122
  "prettier": "3.3.2",
123
+ "react": "^19.1.1",
124
+ "react-dom": "^19.1.1",
120
125
  "rimraf": "6.0.1",
121
126
  "semantic-release": "24.0.0",
122
127
  "storybook": "^9.1.4",
123
128
  "typescript": "5.5.3",
124
129
  "typescript-eslint": "^8.41.0",
125
130
  "unocss": "0.x",
126
- "vite": "5.3.3",
127
- "vite-plugin-html": "3.2.2",
128
- "vite-plugin-top-level-await": "1.4.1",
131
+ "vite": "^6.0.0",
129
132
  "vitest": "^3.2.4",
130
- "vitest-browser-lit": "^0.1.0"
133
+ "vitest-browser-lit": "^0.1.0",
134
+ "vitest-browser-react": "^1.0.1"
131
135
  },
132
136
  "dependencies": {
133
137
  "@lingui/core": "5.2.0",
134
138
  "@lit/react": "^1.0.8",
135
139
  "@open-wc/form-control": "^1.0.0",
136
- "@vitest/browser": "^3.2.4",
137
140
  "@warp-ds/core": "1.1.8",
138
141
  "@warp-ds/css": "2.1.1",
139
142
  "@warp-ds/elements-core": "2.0.1",
140
143
  "@warp-ds/icons": "2.5.0",
141
- "@wc-toolkit/type-parser": "^1.2.0",
142
144
  "date-fns": "^4.1.0",
143
145
  "scroll-doctor": "2.0.2"
144
146
  },