@warp-ds/elements 2.2.0-next.14 → 2.2.0-next.16

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 (87) hide show
  1. package/README.md +190 -18
  2. package/dist/custom-elements.json +114 -106
  3. package/dist/index.d.ts +110 -0
  4. package/dist/packages/affix/index.d.ts +0 -5
  5. package/dist/packages/affix/index.js +5 -5
  6. package/dist/packages/affix/index.js.map +1 -1
  7. package/dist/packages/alert/index.d.ts +0 -5
  8. package/dist/packages/alert/index.js +3 -3
  9. package/dist/packages/alert/index.js.map +1 -1
  10. package/dist/packages/badge/index.d.ts +0 -5
  11. package/dist/packages/badge/index.js.map +1 -1
  12. package/dist/packages/box/index.d.ts +0 -5
  13. package/dist/packages/box/index.js.map +1 -1
  14. package/dist/packages/breadcrumbs/index.d.ts +0 -5
  15. package/dist/packages/breadcrumbs/index.js +2 -2
  16. package/dist/packages/breadcrumbs/index.js.map +1 -1
  17. package/dist/packages/button/button.test.js +1 -0
  18. package/dist/packages/button/index.d.ts +0 -5
  19. package/dist/packages/button/index.js +7 -7
  20. package/dist/packages/button/index.js.map +3 -3
  21. package/dist/packages/card/index.d.ts +0 -5
  22. package/dist/packages/card/index.js +3 -3
  23. package/dist/packages/card/index.js.map +1 -1
  24. package/dist/packages/combobox/index.d.ts +0 -5
  25. package/dist/packages/combobox/index.js +3 -3
  26. package/dist/packages/combobox/index.js.map +1 -1
  27. package/dist/packages/datepicker/datepicker.d.ts +0 -5
  28. package/dist/packages/datepicker/datepicker.js.map +1 -1
  29. package/dist/packages/datepicker/index.js.map +1 -1
  30. package/dist/packages/dead-toggle/index.d.ts +0 -5
  31. package/dist/packages/dead-toggle/index.js +2 -2
  32. package/dist/packages/dead-toggle/index.js.map +1 -1
  33. package/dist/packages/expandable/index.d.ts +0 -5
  34. package/dist/packages/expandable/index.js +3 -3
  35. package/dist/packages/expandable/index.js.map +1 -1
  36. package/dist/packages/link/index.d.ts +0 -5
  37. package/dist/packages/link/index.js +1 -1
  38. package/dist/packages/link/index.js.map +1 -1
  39. package/dist/packages/modal/index.js +7 -7
  40. package/dist/packages/modal/index.js.map +1 -1
  41. package/dist/packages/modal/modal-footer.d.ts +0 -5
  42. package/dist/packages/modal/modal-footer.js.map +1 -1
  43. package/dist/packages/modal/modal-header.d.ts +0 -5
  44. package/dist/packages/modal/modal-header.js +2 -2
  45. package/dist/packages/modal/modal-header.js.map +1 -1
  46. package/dist/packages/modal/modal-main.d.ts +0 -5
  47. package/dist/packages/modal/modal-main.js.map +1 -1
  48. package/dist/packages/pageindicator/index.d.ts +2 -6
  49. package/dist/packages/pageindicator/index.js +4 -4
  50. package/dist/packages/pageindicator/index.js.map +2 -2
  51. package/dist/packages/pagination/index.d.ts +0 -5
  52. package/dist/packages/pagination/index.js +2 -2
  53. package/dist/packages/pagination/index.js.map +1 -1
  54. package/dist/packages/pill/index.d.ts +0 -5
  55. package/dist/packages/pill/index.js +3 -3
  56. package/dist/packages/pill/index.js.map +1 -1
  57. package/dist/packages/rip-and-tear-checkbox/index.d.ts +1 -6
  58. package/dist/packages/rip-and-tear-checkbox/index.js.map +1 -1
  59. package/dist/packages/rip-and-tear-radio/index.d.ts +1 -8
  60. package/dist/packages/rip-and-tear-radio/index.js +4 -4
  61. package/dist/packages/rip-and-tear-radio/index.js.map +2 -2
  62. package/dist/packages/select/index.d.ts +0 -5
  63. package/dist/packages/select/index.js +4 -4
  64. package/dist/packages/select/index.js.map +1 -1
  65. package/dist/packages/slider/index.js +19 -19
  66. package/dist/packages/slider/index.js.map +3 -3
  67. package/dist/packages/slider/slider-thumb.d.ts +2 -5
  68. package/dist/packages/slider/slider-thumb.js +18 -18
  69. package/dist/packages/slider/slider-thumb.js.map +3 -3
  70. package/dist/packages/slider/slider.d.ts +0 -5
  71. package/dist/packages/slider/slider.js +3 -3
  72. package/dist/packages/slider/slider.js.map +2 -2
  73. package/dist/packages/slider/slider.test.js +21 -0
  74. package/dist/packages/steps/index.d.ts +0 -6
  75. package/dist/packages/steps/index.js +5 -5
  76. package/dist/packages/steps/index.js.map +1 -1
  77. package/dist/packages/switch/index.d.ts +0 -5
  78. package/dist/packages/switch/index.js.map +1 -1
  79. package/dist/packages/tabs/index.js +4 -4
  80. package/dist/packages/tabs/index.js.map +1 -1
  81. package/dist/packages/tabs/tab.d.ts +0 -5
  82. package/dist/packages/textfield/index.d.ts +0 -5
  83. package/dist/packages/textfield/index.js +4 -4
  84. package/dist/packages/textfield/index.js.map +1 -1
  85. package/dist/vscode.html-custom-data.json +18 -18
  86. package/dist/web-types.json +40 -35
  87. package/package.json +5 -10
package/README.md CHANGED
@@ -14,35 +14,103 @@ start by reviewing the [contributing guidelines](CONTRIBUTING.md).
14
14
 
15
15
  ### Installation
16
16
 
17
- Install by using npm/pnpm or by adding a script link:
17
+ Warp custom elements are supplied by the Eik CDN.
18
+ In addition, you can install the `@warp-ds/elements` package to get intellisense
19
+ in your editor.
18
20
 
19
- #### Install using npm
21
+ #### Step 1.
20
22
 
21
- ```sh
22
- npm install @warp-ds/elements
23
+ Add the following script and style to the very top of your document head to ensure performant loading
24
+
25
+ ```html
26
+ <link rel="stylesheet" href="https://assets.finn.no/pkg/@warp-ds/elements/2.2.0-next.13/styles.css" crossorigin />
27
+ <script src="https://assets.finn.no/pkg/@warp-ds/elements/2.2.0-next.13/index.js" type="module"></script>
23
28
  ```
24
29
 
25
- #### Install using pnpm
30
+ #### Step 2.
26
31
 
27
- ```sh
28
- pnpm add @warp-ds/elements
32
+ Be sure to preload whichever brand fonts you need for a page and load the correct font file:
33
+
34
+ ```html
35
+ <!-- Finn example -->
36
+ <link rel="preload" href="https://assets.finn.no/pkg/@warp-ds/fonts/v1/FINNTypeAlleTegn-Light.woff2" as="font" type="font/woff2" crossorigin>
37
+ <link rel="preload" href="https://assets.finn.no/pkg/@warp-ds/fonts/v1/FINNTypeAlleTegn-Medium.woff2" as="font" type="font/woff2" crossorigin>
38
+ <link rel="stylesheet" href="https://assets.finn.no/pkg/@warp-ds/fonts/v1/finn-no.css" crossorigin>
29
39
  ```
30
40
 
31
- #### Using a direct link to Eik
41
+ ```html
42
+ <!-- Tori example -->
43
+ <link rel="preload" href="https://assets.finn.no/pkg/@warp-ds/fonts/v1/ToriSans-Regular.woff2" as="font" type="font/woff2" crossorigin>
44
+ <link rel="preload" href="https://assets.finn.no/pkg/@warp-ds/fonts/v1/ToriSans-Bold.woff2" as="font" type="font/woff2" crossorigin>
45
+ <link rel="preload" href="https://assets.finn.no/pkg/@warp-ds/fonts/v1/ToriSans-Italic.woff2" as="font" type="font/woff2" crossorigin>
46
+ <link rel="stylesheet" href="https://assets.finn.no/pkg/@warp-ds/fonts/v1/tori-fi.css" crossorigin>
47
+ ```
32
48
 
33
49
  ```html
34
- <script src="https://assets.finn.no/pkg/@warp-ds/elements/v1"></script>
50
+ <!-- DBA example -->
51
+ <link rel="preload" href="https://assets.finn.no/pkg/@warp-ds/fonts/v1/ProximaNova-Regular.woff2" as="font" type="font/woff2" crossorigin>
52
+ <link rel="preload" href="https://assets.finn.no/pkg/@warp-ds/fonts/v1/ProximaNova-Bold.woff2" as="font" type="font/woff2" crossorigin>
53
+ <link rel="stylesheet" href="https://assets.finn.no/pkg/@warp-ds/fonts/v1/dba-dk.css" crossorigin>
35
54
  ```
36
- ### Import components
37
- This project builds both the whole Elements package and separate component packages that are published to EIK, making it possible for the user to choose to either import all of the components:
38
- ```js
39
- import '@warp-ds/elements';
55
+
56
+ ```html
57
+ <!-- Blocket example -->
58
+ <link rel="preload" href="https://assets.finn.no/pkg/@warp-ds/fonts/v1/BlocketSans-Regular.woff2" as="font" type="font/woff2" crossorigin>
59
+ <link rel="preload" href="https://assets.finn.no/pkg/@warp-ds/fonts/v1/BlocketSans-Bold.woff2" as="font" type="font/woff2" crossorigin>
60
+ <link rel="preload" href="https://assets.finn.no/pkg/@warp-ds/fonts/v1/BlocketSans-Medium.woff2" as="font" type="font/woff2" crossorigin>
61
+ <link rel="stylesheet" href="https://assets.finn.no/pkg/@warp-ds/fonts/v1/blocket-se.css" crossorigin>
40
62
  ```
41
- or a specific component:
42
- ```js
43
- import '@warp-ds/elements/components/toast';
63
+
64
+ #### Step 3.
65
+
66
+ You'll also want to load Warp tokens and resets CSS files to ensure consistent and correct styling for the brand.
67
+
68
+ ```html
69
+ <!-- Finn example -->
70
+ <link rel="stylesheet" href="https://assets.finn.no/pkg/@warp-ds/css/v2/tokens/finn-no.css" crossorigin>
71
+ <link rel="stylesheet" href="https://assets.finn.no/pkg/@warp-ds/css/v2/resets.css" crossorigin>
72
+ ```
73
+
74
+ ```html
75
+ <!-- Tori example -->
76
+ <link rel="stylesheet" href="https://assets.finn.no/pkg/@warp-ds/css/v2/tokens/tori-fi.css" crossorigin>
77
+ <link rel="stylesheet" href="https://assets.finn.no/pkg/@warp-ds/css/v2/resets.css" crossorigin>
78
+ ```
79
+
80
+ ```html
81
+ <!-- DBA example -->
82
+ <link rel="stylesheet" href="https://assets.finn.no/pkg/@warp-ds/css/v2/tokens/dba-dk.css" crossorigin>
83
+ <link rel="stylesheet" href="https://assets.finn.no/pkg/@warp-ds/css/v2/resets.css" crossorigin>
44
84
  ```
45
85
 
86
+ ```html
87
+ <!-- Blocket example -->
88
+ <link rel="stylesheet" href="https://assets.finn.no/pkg/@warp-ds/css/v2/tokens/blocket-se.css" crossorigin>
89
+ <link rel="stylesheet" href="https://assets.finn.no/pkg/@warp-ds/css/v2/resets.css" crossorigin>
90
+ ```
91
+
92
+ #### Step 4.
93
+
94
+ Next, to add intellisense to your editor install `@warp-ds/elements` by using npm/pnpm. See the Editor integration below.
95
+
96
+ ##### Install using npm
97
+
98
+ ```sh
99
+ npm install @warp-ds/elements
100
+ ```
101
+
102
+ ##### Install using pnpm
103
+
104
+ ```sh
105
+ pnpm add @warp-ds/elements
106
+ ```
107
+
108
+ And then head on down to the editor configuration section below to complete setup.
109
+
110
+ ### Using Warp elements with Borealis
111
+
112
+ If you are using Borealis modules from the Web Platform Team (and you should be) and keeping your app dependencies up to date (and you should be), then steps 2 and 3 are already taken care of for you, you just need to do steps 1 and 4.
113
+
46
114
  ### Documentation
47
115
 
48
116
  For information on the components available in the package and how to use them,
@@ -54,7 +122,17 @@ see the [Warp Design System documentation](https://warp-ds.github.io/tech-docs/)
54
122
 
55
123
  This module includes [Custom HTML and CSS data for Visual Studio Code](https://code.visualstudio.com/blogs/2020/02/24/custom-data-format).
56
124
 
57
- Add this to your `settings.json` and restart VS Code to get IntelliSense and inline documentation for Warp elements.
125
+ ##### Using Warp Elements in a plain HTML page
126
+
127
+ When developing, install Warp Elements locally using npm
128
+
129
+ ```
130
+ npm install @warp-ds/elements
131
+ ```
132
+
133
+ Add the following snippet to settings.json in vscode to tell it about Warp components
134
+
135
+ .vscode/settings.json
58
136
 
59
137
  ```json
60
138
  {
@@ -67,16 +145,110 @@ Add this to your `settings.json` and restart VS Code to get IntelliSense and inl
67
145
  }
68
146
  ```
69
147
 
148
+ restart vscode
149
+
150
+ Now, inside any .html files, you will get intellisense when using Warp Elements
151
+
152
+ ```html
153
+ <w-button variant=""><w-button>
154
+ ```
155
+
156
+ ##### Using Warp Elements in JavaScript template literals
157
+
158
+ IntelliSense in JavaScript strings is not supported without additional plugins and syntax, such as comment hints (`/* html */`) or a tagged template literal similar to Lit.
159
+
160
+ ##### Using Warp Elements in Lit html tagged template literals
161
+
162
+ When developing, install Warp Elements locally using npm
163
+
164
+ ```
165
+ npm install @warp-ds/elements
166
+ ```
167
+
168
+ Add the following snippet to settings.json in vscode to tell it about Warp components
169
+
170
+ .vscode/settings.json
171
+
172
+ ```json
173
+ {
174
+ "html.customData": [
175
+ "./node_modules/@warp-ds/elements/dist/vscode.html-custom-data.json"
176
+ ],
177
+ "css.customData": [
178
+ "./node_modules/@warp-ds/elements/dist/vscode.css-custom-data.json"
179
+ ]
180
+ }
181
+ ```
182
+
183
+ Install the lit-plugin vscode extension and restart vscode
184
+
185
+ Now, inside any html`` tagged template literals, you will get intellisense when using Warp Elements.
186
+
187
+ ```html
188
+ <w-button variant=""><w-button>
189
+ ```
190
+
191
+ ##### Using Warp Elements in a React app, v19 or later
192
+
193
+ ```
194
+ npm install @warp-ds/elements
195
+ ```
196
+
197
+ Now, inside your react components, you will get intellisense when using Warp Elements.
198
+
199
+ ```html
200
+ <w-button variant=""><w-button>
201
+ ```
202
+
203
+ ##### Using Warp Elements in a React app, v18 or earlier
204
+
205
+ React 18 and earlier do not support custom elements.
206
+
207
+ If you are on React 18 or early, we strongly urge you to please consider upgrading to React v19.
208
+
209
+ If you cannot upgrade right away, Warp supplies custom element wrappers to add backwards compatibility. Use them like so:
210
+
211
+ ```
212
+ npm install @warp-ds/elements
213
+ ```
214
+
215
+ Wherever you need to use a component in your app, import the appropriate element from the React namespace
216
+
217
+ ```js
218
+ import { Button } from "@warp-ds/elements/react/button";
219
+ ```
220
+
221
+ and use the component
222
+
223
+ ```js
224
+ <Button variant="primary"></Button>
225
+ ```
226
+
227
+ you should get intellisense when using Warp Elements.
228
+
70
229
  #### JetBrains products
71
230
 
72
231
  We ship `web-types.json` which should get picked up automatically by JetBrains IDEA and similar products.
73
232
 
74
233
  You should see code completions and inline docs for Warp elements when writing HTML.
75
234
 
235
+ ### Ensure elements are ready (and avoid CLS and FOUCE)
236
+
237
+ To avoid issues like CLS (cumulative layout shift) and FOUCE (flash of unstyled custom elements), its important that Warp Elements is loaded before the page is rendered. For this reason, elements should not be bundled into the rest of your client side application and code and should be loaded in the document head, as early as possible (see installation above). When this is done correctly, elements will be loaded and ready about the same time as the rest of the page styles and wont cause delays in page load times. However, due to the way browsers work, a page render will occur without the components and an immediate re-render will occur with the components. This causes things to jump around on the page which in turn impacts lighthouse and other performance scores. Warp elements ships with a tool to prevent the initial render without components and only do the second, with components, render. This tool is called Warp Cloak and its usage is described below.
238
+
239
+ #### The Warp cloaking device
240
+
241
+ To use the Warp cloaking device to avoid CLS and FOUCE, simply add the warp-cloak class to your pages body, html or a wrapper div that contains all the pages visible elements (including the header and footer)
242
+
243
+ ```html
244
+ <body class="warp-cloak">
245
+ ```
246
+
247
+ That's it, your components should render just 1x, fully ready with no CLS and FOUCE.
76
248
 
77
249
  ## Releases
78
250
 
79
- This project is continuously published to [NPM](https://www.npmjs.com/package/@warp-ds/elements) and [Eik](https://assets.finn.no/pkg/@warp-ds/elements) using a `next` tag (e.g. `1.1.0-next.1`).
251
+ This project is continuously published to [NPM](https://www.npmjs.com/package/@warp-ds/elements) and [Eik](https://assets.finn.no/pkg/@warp-ds/elements) using a `next` tag (e.g. `2.2.0-next.13`).
80
252
  Anyone needing to use the latest changes of this package can point to the `next` version while waiting for the stable release.
81
253
 
82
254
  ## Changelog
@@ -2,105 +2,6 @@
2
2
  "schemaVersion": "1.0.0",
3
3
  "readme": "",
4
4
  "modules": [
5
- {
6
- "kind": "javascript-module",
7
- "path": "packages/alert/index.ts",
8
- "declarations": [
9
- {
10
- "kind": "class",
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)",
12
- "name": "WarpAlert",
13
- "members": [
14
- {
15
- "kind": "field",
16
- "name": "variant",
17
- "type": {
18
- "text": "AlertVariants"
19
- },
20
- "default": "'info'",
21
- "attribute": "variant",
22
- "reflects": true,
23
- "parsedType": {
24
- "text": "'negative' | 'positive' | 'warning' | 'info'"
25
- }
26
- },
27
- {
28
- "kind": "field",
29
- "name": "show",
30
- "type": {
31
- "text": "boolean"
32
- },
33
- "default": "false",
34
- "attribute": "show",
35
- "reflects": true
36
- },
37
- {
38
- "kind": "field",
39
- "name": "role",
40
- "type": {
41
- "text": "string"
42
- },
43
- "default": "'alert'",
44
- "attribute": "role",
45
- "reflects": true
46
- }
47
- ],
48
- "attributes": [
49
- {
50
- "name": "variant",
51
- "type": {
52
- "text": "AlertVariants"
53
- },
54
- "default": "'info'",
55
- "fieldName": "variant",
56
- "parsedType": {
57
- "text": "'negative' | 'positive' | 'warning' | 'info'"
58
- }
59
- },
60
- {
61
- "name": "show",
62
- "type": {
63
- "text": "boolean"
64
- },
65
- "default": "false",
66
- "fieldName": "show"
67
- },
68
- {
69
- "name": "role",
70
- "type": {
71
- "text": "string"
72
- },
73
- "default": "'alert'",
74
- "fieldName": "role"
75
- }
76
- ],
77
- "superclass": {
78
- "name": "LitElement",
79
- "package": "lit"
80
- },
81
- "tagName": "w-alert",
82
- "customElement": true
83
- }
84
- ],
85
- "exports": [
86
- {
87
- "kind": "custom-element-definition",
88
- "name": "w-alert",
89
- "declaration": {
90
- "name": "WarpAlert",
91
- "module": "packages/alert/index.ts"
92
- }
93
- },
94
- {
95
- "kind": "js",
96
- "name": "WarpAlert",
97
- "declaration": {
98
- "name": "WarpAlert",
99
- "module": "packages/alert/index.ts"
100
- }
101
- }
102
- ]
103
- },
104
5
  {
105
6
  "kind": "javascript-module",
106
7
  "path": "packages/affix/index.ts",
@@ -240,6 +141,105 @@
240
141
  }
241
142
  ]
242
143
  },
144
+ {
145
+ "kind": "javascript-module",
146
+ "path": "packages/alert/index.ts",
147
+ "declarations": [
148
+ {
149
+ "kind": "class",
150
+ "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)",
151
+ "name": "WarpAlert",
152
+ "members": [
153
+ {
154
+ "kind": "field",
155
+ "name": "variant",
156
+ "type": {
157
+ "text": "AlertVariants"
158
+ },
159
+ "default": "'info'",
160
+ "attribute": "variant",
161
+ "reflects": true,
162
+ "parsedType": {
163
+ "text": "'negative' | 'positive' | 'warning' | 'info'"
164
+ }
165
+ },
166
+ {
167
+ "kind": "field",
168
+ "name": "show",
169
+ "type": {
170
+ "text": "boolean"
171
+ },
172
+ "default": "false",
173
+ "attribute": "show",
174
+ "reflects": true
175
+ },
176
+ {
177
+ "kind": "field",
178
+ "name": "role",
179
+ "type": {
180
+ "text": "string"
181
+ },
182
+ "default": "'alert'",
183
+ "attribute": "role",
184
+ "reflects": true
185
+ }
186
+ ],
187
+ "attributes": [
188
+ {
189
+ "name": "variant",
190
+ "type": {
191
+ "text": "AlertVariants"
192
+ },
193
+ "default": "'info'",
194
+ "fieldName": "variant",
195
+ "parsedType": {
196
+ "text": "'negative' | 'positive' | 'warning' | 'info'"
197
+ }
198
+ },
199
+ {
200
+ "name": "show",
201
+ "type": {
202
+ "text": "boolean"
203
+ },
204
+ "default": "false",
205
+ "fieldName": "show"
206
+ },
207
+ {
208
+ "name": "role",
209
+ "type": {
210
+ "text": "string"
211
+ },
212
+ "default": "'alert'",
213
+ "fieldName": "role"
214
+ }
215
+ ],
216
+ "superclass": {
217
+ "name": "LitElement",
218
+ "package": "lit"
219
+ },
220
+ "tagName": "w-alert",
221
+ "customElement": true
222
+ }
223
+ ],
224
+ "exports": [
225
+ {
226
+ "kind": "custom-element-definition",
227
+ "name": "w-alert",
228
+ "declaration": {
229
+ "name": "WarpAlert",
230
+ "module": "packages/alert/index.ts"
231
+ }
232
+ },
233
+ {
234
+ "kind": "js",
235
+ "name": "WarpAlert",
236
+ "declaration": {
237
+ "name": "WarpAlert",
238
+ "module": "packages/alert/index.ts"
239
+ }
240
+ }
241
+ ]
242
+ },
243
243
  {
244
244
  "kind": "javascript-module",
245
245
  "path": "packages/utils/index.js",
@@ -2528,7 +2528,7 @@
2528
2528
  "name": "*",
2529
2529
  "declaration": {
2530
2530
  "name": "*",
2531
- "package": "./datepicker.js"
2531
+ "module": "packages/datepicker/datepicker.js"
2532
2532
  }
2533
2533
  }
2534
2534
  ]
@@ -3425,16 +3425,16 @@
3425
3425
  ],
3426
3426
  "exports": [
3427
3427
  {
3428
- "kind": "js",
3429
- "name": "WarpPageIndicator",
3428
+ "kind": "custom-element-definition",
3429
+ "name": "w-pageindicator",
3430
3430
  "declaration": {
3431
3431
  "name": "WarpPageIndicator",
3432
3432
  "module": "packages/pageindicator/index.ts"
3433
3433
  }
3434
3434
  },
3435
3435
  {
3436
- "kind": "custom-element-definition",
3437
- "name": "w-pageindicator",
3436
+ "kind": "js",
3437
+ "name": "WarpPageIndicator",
3438
3438
  "declaration": {
3439
3439
  "name": "WarpPageIndicator",
3440
3440
  "module": "packages/pageindicator/index.ts"
@@ -4593,6 +4593,14 @@
4593
4593
  },
4594
4594
  "description": "Set by `<w-slider>`"
4595
4595
  },
4596
+ {
4597
+ "kind": "field",
4598
+ "name": "required",
4599
+ "type": {
4600
+ "text": "boolean"
4601
+ },
4602
+ "description": "Set by `<w-slider>`"
4603
+ },
4596
4604
  {
4597
4605
  "kind": "field",
4598
4606
  "name": "step",
@@ -5087,7 +5095,7 @@
5087
5095
  "name": "*",
5088
5096
  "declaration": {
5089
5097
  "name": "*",
5090
- "package": "./slider.js"
5098
+ "module": "packages/slider/slider.js"
5091
5099
  }
5092
5100
  },
5093
5101
  {
@@ -5095,7 +5103,7 @@
5095
5103
  "name": "*",
5096
5104
  "declaration": {
5097
5105
  "name": "*",
5098
- "package": "./slider-thumb.js"
5106
+ "module": "packages/slider/slider-thumb.js"
5099
5107
  }
5100
5108
  }
5101
5109
  ]
@@ -0,0 +1,110 @@
1
+ import { WarpAffix } from './packages/affix/index';
2
+ import { WarpAlert } from './packages/alert/index';
3
+ import { WarpAttention } from './packages/attention/index';
4
+ import { WarpBadge } from './packages/badge/index';
5
+ import { WarpBox } from './packages/box/index';
6
+ import { WarpBreadcrumbs } from './packages/breadcrumbs/index';
7
+ import { WarpButton } from './packages/button/index';
8
+ import { WarpCard } from './packages/card/index';
9
+ import { WarpCombobox } from './packages/combobox/index';
10
+ import { WarpDatepicker } from './packages/datepicker/datepicker';
11
+ import { WarpDeadToggle } from './packages/dead-toggle/index';
12
+ import { WarpExpandable } from './packages/expandable/index';
13
+ import { WarpLink } from './packages/link/index';
14
+ import { ModalFooter } from './packages/modal/modal-footer';
15
+ import { ModalHeader } from './packages/modal/modal-header';
16
+ import { ModalMain } from './packages/modal/modal-main';
17
+ import { WarpPageIndicator } from './packages/pageindicator/index';
18
+ import { WarpPagination } from './packages/pagination/index';
19
+ import { WarpPill } from './packages/pill/index';
20
+ import { WCheckbox } from './packages/rip-and-tear-checkbox/checkbox';
21
+ import { WRadio } from './packages/rip-and-tear-radio/radio';
22
+ import { WRadioGroup } from './packages/rip-and-tear-radio/radio-group';
23
+ import { WarpSelect } from './packages/select/index';
24
+ import { WarpSlider } from './packages/slider/slider';
25
+ import { WarpSliderThumb } from './packages/slider/slider-thumb';
26
+ import { WarpSteps, WarpStep } from './packages/steps/index';
27
+ import { WarpSwitch } from './packages/switch/index';
28
+ import { WarpTab, WarpTabs, WarpTabPanel } from './packages/tabs/index';
29
+ import { WarpTextField } from './packages/textfield/index';
30
+ import { WarpToastContainer, WarpToast } from './packages/toast/index';
31
+
32
+ declare global {
33
+ interface HTMLElementTagNameMap {
34
+ 'w-badge': WarpBadge;
35
+ 'w-affix': WarpAffix;
36
+ 'w-alert': WarpAlert;
37
+ 'w-attention': WarpAttention;
38
+ 'w-box': WarpBox;
39
+ 'w-breadcrumbs': WarpBreadcrumbs;
40
+ 'w-button': WarpButton;
41
+ 'w-card': WarpCard;
42
+ 'w-combobox': WarpCombobox;
43
+ 'w-datepicker': WarpDatepicker;
44
+ 'w-dead-toggle': WarpDeadToggle;
45
+ 'w-expandable': WarpExpandable;
46
+ 'w-link': WarpLink;
47
+ 'w-modal': ModalMain;
48
+ 'w-modal-header': ModalHeader;
49
+ 'w-modal-footer': ModalFooter;
50
+ 'w-pageindicator': WarpPageIndicator;
51
+ 'w-pagination': WarpPagination;
52
+ 'w-pill': WarpPill;
53
+ 'w-checkbox': WCheckbox;
54
+ 'w-radio': WRadio;
55
+ 'w-radio-group': WRadioGroup;
56
+ 'w-select': WarpSelect;
57
+ 'w-slider': WarpSlider;
58
+ 'w-slider-thumb': WarpSliderThumb;
59
+ 'w-steps': WarpSteps;
60
+ 'w-step': WarpStep;
61
+ 'w-switch': WarpSwitch;
62
+ 'w-tab': WarpTab;
63
+ 'w-tabs': WarpTabs;
64
+ 'w-tab-panel': WarpTabPanel;
65
+ 'w-textfield': WarpTextField;
66
+ 'w-toast-container': WarpToastContainer;
67
+ 'w-toast': WarpToast;
68
+ }
69
+ }
70
+
71
+ declare module 'react/jsx-runtime' {
72
+ namespace JSX {
73
+ interface IntrinsicElements {
74
+ 'w-badge': WarpBadge;
75
+ 'w-affix': WarpAffix;
76
+ 'w-alert': WarpAlert;
77
+ 'w-attention': WarpAttention;
78
+ 'w-box': WarpBox;
79
+ 'w-breadcrumbs': WarpBreadcrumbs;
80
+ 'w-button': WarpButton;
81
+ 'w-card': WarpCard;
82
+ 'w-combobox': WarpCombobox;
83
+ 'w-datepicker': WarpDatepicker;
84
+ 'w-dead-toggle': WarpDeadToggle;
85
+ 'w-expandable': WarpExpandable;
86
+ 'w-link': WarpLink;
87
+ 'w-modal': ModalMain;
88
+ 'w-modal-header': ModalHeader;
89
+ 'w-modal-footer': ModalFooter;
90
+ 'w-pageindicator': WarpPageIndicator;
91
+ 'w-pagination': WarpPagination;
92
+ 'w-pill': WarpPill;
93
+ 'w-checkbox': WCheckbox;
94
+ 'w-radio': WRadio;
95
+ 'w-radio-group': WRadioGroup;
96
+ 'w-select': WarpSelect;
97
+ 'w-slider': WarpSlider;
98
+ 'w-slider-thumb': WarpSliderThumb;
99
+ 'w-steps': WarpSteps;
100
+ 'w-step': WarpStep;
101
+ 'w-switch': WarpSwitch;
102
+ 'w-tab': WarpTab;
103
+ 'w-tabs': WarpTabs;
104
+ 'w-tab-panel': WarpTabPanel;
105
+ 'w-textfield': WarpTextField;
106
+ 'w-toast-container': WarpToastContainer;
107
+ 'w-toast': WarpToast;
108
+ }
109
+ }
110
+ }
@@ -54,8 +54,3 @@ declare class WarpAffix extends LitElement {
54
54
  render(): import("lit").TemplateResult<1>;
55
55
  }
56
56
  export { WarpAffix };
57
- declare global {
58
- interface HTMLElementTagNameMap {
59
- 'w-affix': WarpAffix;
60
- }
61
- }