@warp-ds/elements 2.2.0-next.21 → 2.2.0-next.23

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 (65) hide show
  1. package/README.md +26 -37
  2. package/dist/custom-elements.json +133 -125
  3. package/dist/index.d.ts +34 -31
  4. package/dist/packages/affix/index.js.map +2 -2
  5. package/dist/packages/alert/index.js +1 -1
  6. package/dist/packages/alert/index.js.map +2 -2
  7. package/dist/packages/alert/styles.js +1 -1
  8. package/dist/packages/attention/attention.stories.d.ts +1 -0
  9. package/dist/packages/attention/attention.stories.js +15 -8
  10. package/dist/packages/attention/index.js +1 -1
  11. package/dist/packages/attention/index.js.map +2 -2
  12. package/dist/packages/attention/styles.js +1 -1
  13. package/dist/packages/badge/index.js.map +2 -2
  14. package/dist/packages/box/index.js.map +2 -2
  15. package/dist/packages/breadcrumbs/index.js.map +2 -2
  16. package/dist/packages/button/index.js.map +2 -2
  17. package/dist/packages/card/index.js.map +2 -2
  18. package/dist/packages/combobox/index.js.map +2 -2
  19. package/dist/packages/dead-toggle/dead-toggle.react.stories.d.ts +1 -1
  20. package/dist/packages/dead-toggle/index.d.ts +1 -0
  21. package/dist/packages/dead-toggle/index.js +109 -48
  22. package/dist/packages/dead-toggle/index.js.map +4 -4
  23. package/dist/packages/expandable/index.js.map +2 -2
  24. package/dist/packages/pagination/index.js.map +2 -2
  25. package/dist/packages/pill/index.js +1 -1
  26. package/dist/packages/pill/index.js.map +2 -2
  27. package/dist/packages/pill/styles.js +1 -1
  28. package/dist/packages/rip-and-tear-checkbox/checkbox.d.ts +2 -0
  29. package/dist/packages/rip-and-tear-checkbox/checkbox.js +2559 -127
  30. package/dist/packages/rip-and-tear-checkbox/checkbox.js.map +4 -4
  31. package/dist/packages/rip-and-tear-checkbox/index.js +2559 -127
  32. package/dist/packages/rip-and-tear-checkbox/index.js.map +4 -4
  33. package/dist/packages/rip-and-tear-checkbox/styles.d.ts +0 -1
  34. package/dist/packages/rip-and-tear-checkbox/styles.js +0 -116
  35. package/dist/packages/rip-and-tear-radio/index.js +2529 -150
  36. package/dist/packages/rip-and-tear-radio/index.js.map +4 -4
  37. package/dist/packages/rip-and-tear-radio/radio-group-styles.js +0 -1
  38. package/dist/packages/rip-and-tear-radio/radio-group-styles.js.map +2 -2
  39. package/dist/packages/rip-and-tear-radio/radio-group.js +2529 -150
  40. package/dist/packages/rip-and-tear-radio/radio-group.js.map +4 -4
  41. package/dist/packages/rip-and-tear-radio/radio-styles.d.ts +0 -1
  42. package/dist/packages/rip-and-tear-radio/radio-styles.js +0 -169
  43. package/dist/packages/rip-and-tear-radio/radio-styles.js.map +4 -4
  44. package/dist/packages/rip-and-tear-radio/radio.js +2517 -137
  45. package/dist/packages/rip-and-tear-radio/radio.js.map +4 -4
  46. package/dist/packages/rip-and-tear-radio/radio.stories.js +2530 -151
  47. package/dist/packages/rip-and-tear-radio/radio.stories.js.map +4 -4
  48. package/dist/packages/select/index.js +1 -1
  49. package/dist/packages/select/index.js.map +2 -2
  50. package/dist/packages/select/styles.js +1 -1
  51. package/dist/packages/slider/index.js +1 -1
  52. package/dist/packages/slider/index.js.map +2 -2
  53. package/dist/packages/slider/slider-thumb.js +1 -1
  54. package/dist/packages/slider/slider-thumb.js.map +2 -2
  55. package/dist/packages/slider/styles.js +1 -1
  56. package/dist/packages/steps/index.js.map +2 -2
  57. package/dist/packages/switch/index.js.map +2 -2
  58. package/dist/packages/textfield/index.js +1 -1
  59. package/dist/packages/textfield/index.js.map +2 -2
  60. package/dist/packages/textfield/styles.js +1 -1
  61. package/dist/packages/toggle-styles.d.ts +1 -0
  62. package/dist/packages/toggle-styles.js +109 -0
  63. package/dist/vscode.html-custom-data.json +20 -19
  64. package/dist/web-types.json +41 -36
  65. package/package.json +1 -1
package/README.md CHANGED
@@ -14,7 +14,7 @@ start by reviewing the [contributing guidelines](CONTRIBUTING.md).
14
14
 
15
15
  ### Installation
16
16
 
17
- Warp custom elements are supplied by the Eik CDN.
17
+ Warp custom elements are supplied by the Eik CDN.
18
18
  In addition, you can install the `@warp-ds/elements` package to get intellisense
19
19
  in your editor.
20
20
 
@@ -138,34 +138,19 @@ Add `@warp-ds/elements` to tsconfig types in compilerOptions.
138
138
 
139
139
  #### Visual Studio Code
140
140
 
141
- This module includes [Custom HTML and CSS data for Visual Studio Code](https://code.visualstudio.com/blogs/2020/02/24/custom-data-format).
141
+ Install the [Web Components Language Server](https://wc-toolkit.com/integrations/web-components-language-server/) extension. The extension automatically picks up the [Custom Element Manifest](https://wc-toolkit.com/getting-started/) that we ship with `@warp-ds/elements`.
142
142
 
143
143
  ##### Using Warp Elements in a plain HTML page
144
144
 
145
- When developing, install Warp Elements locally using npm
145
+ Install Warp Elements locally using npm:
146
146
 
147
147
  ```
148
148
  npm install @warp-ds/elements
149
149
  ```
150
150
 
151
- Add the following snippet to settings.json in vscode to tell it about Warp components
151
+ Install the [Web Components Language Server](https://wc-toolkit.com/integrations/web-components-language-server/) extension.
152
152
 
153
- .vscode/settings.json
154
-
155
- ```json
156
- {
157
- "html.customData": [
158
- "./node_modules/@warp-ds/elements/dist/vscode.html-custom-data.json"
159
- ],
160
- "css.customData": [
161
- "./node_modules/@warp-ds/elements/dist/vscode.css-custom-data.json"
162
- ]
163
- }
164
- ```
165
-
166
- restart vscode
167
-
168
- Now, inside any .html files, you will get intellisense when using Warp Elements
153
+ Now, inside any `.html` files, you will get IntelliSense when using Warp Elements:
169
154
 
170
155
  ```html
171
156
  <w-button variant=""><w-button>
@@ -177,28 +162,15 @@ IntelliSense in JavaScript strings is not supported without additional plugins a
177
162
 
178
163
  ##### Using Warp Elements in Lit html tagged template literals
179
164
 
180
- When developing, install Warp Elements locally using npm
165
+ Install Warp Elements locally using npm:
181
166
 
182
167
  ```
183
168
  npm install @warp-ds/elements
184
169
  ```
185
170
 
186
- Add the following snippet to settings.json in vscode to tell it about Warp components
171
+ Install the [Web Components Language Server](https://wc-toolkit.com/integrations/web-components-language-server/) extension.
187
172
 
188
- .vscode/settings.json
189
-
190
- ```json
191
- {
192
- "html.customData": [
193
- "./node_modules/@warp-ds/elements/dist/vscode.html-custom-data.json"
194
- ],
195
- "css.customData": [
196
- "./node_modules/@warp-ds/elements/dist/vscode.css-custom-data.json"
197
- ]
198
- }
199
- ```
200
-
201
- Install the lit-plugin vscode extension and restart vscode
173
+ Install the [lit-plugin](https://marketplace.visualstudio.com/items?itemName=runem.lit-plugin) extension.
202
174
 
203
175
  Now, inside any html`` tagged template literals, you will get intellisense when using Warp Elements.
204
176
 
@@ -222,7 +194,7 @@ Now, inside your react components, you will get intellisense when using Warp Ele
222
194
 
223
195
  React 18 and earlier do not support custom elements.
224
196
 
225
- If you are on React 18 or early, we strongly urge you to please consider upgrading to React v19.
197
+ If you are on React 18 or early, we strongly urge you to please consider upgrading to React v19.
226
198
 
227
199
  If you cannot upgrade right away, Warp supplies custom element wrappers to add backwards compatibility. Use them like so:
228
200
 
@@ -244,6 +216,23 @@ and use the component
244
216
 
245
217
  you should get intellisense when using Warp Elements.
246
218
 
219
+ #### CustomData fallback
220
+
221
+ `@warp-ds/elements` also includes [Custom HTML and CSS data for Visual Studio Code](https://code.visualstudio.com/blogs/2020/02/24/custom-data-format).
222
+
223
+ If you can't get the Web Components Language Server to work, add the following snippet to `.vscode/settings.json`, then restart VS Code.
224
+
225
+ ```json
226
+ {
227
+ "html.customData": [
228
+ "./node_modules/@warp-ds/elements/dist/vscode.html-custom-data.json"
229
+ ],
230
+ "css.customData": [
231
+ "./node_modules/@warp-ds/elements/dist/vscode.css-custom-data.json"
232
+ ]
233
+ }
234
+ ```
235
+
247
236
  #### JetBrains products
248
237
 
249
238
  We ship `web-types.json` which should get picked up automatically by JetBrains IDEA and similar products.
@@ -2,107 +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
- "modulePath": "packages/alert/index.ts",
84
- "definitionPath": "packages/alert/index.ts"
85
- }
86
- ],
87
- "exports": [
88
- {
89
- "kind": "custom-element-definition",
90
- "name": "w-alert",
91
- "declaration": {
92
- "name": "WarpAlert",
93
- "module": "packages/alert/index.ts"
94
- }
95
- },
96
- {
97
- "kind": "js",
98
- "name": "WarpAlert",
99
- "declaration": {
100
- "name": "WarpAlert",
101
- "module": "packages/alert/index.ts"
102
- }
103
- }
104
- ]
105
- },
106
5
  {
107
6
  "kind": "javascript-module",
108
7
  "path": "packages/affix/index.ts",
@@ -244,6 +143,107 @@
244
143
  }
245
144
  ]
246
145
  },
146
+ {
147
+ "kind": "javascript-module",
148
+ "path": "packages/alert/index.ts",
149
+ "declarations": [
150
+ {
151
+ "kind": "class",
152
+ "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)",
153
+ "name": "WarpAlert",
154
+ "members": [
155
+ {
156
+ "kind": "field",
157
+ "name": "variant",
158
+ "type": {
159
+ "text": "AlertVariants"
160
+ },
161
+ "default": "'info'",
162
+ "attribute": "variant",
163
+ "reflects": true,
164
+ "parsedType": {
165
+ "text": "'negative' | 'positive' | 'warning' | 'info'"
166
+ }
167
+ },
168
+ {
169
+ "kind": "field",
170
+ "name": "show",
171
+ "type": {
172
+ "text": "boolean"
173
+ },
174
+ "default": "false",
175
+ "attribute": "show",
176
+ "reflects": true
177
+ },
178
+ {
179
+ "kind": "field",
180
+ "name": "role",
181
+ "type": {
182
+ "text": "string"
183
+ },
184
+ "default": "'alert'",
185
+ "attribute": "role",
186
+ "reflects": true
187
+ }
188
+ ],
189
+ "attributes": [
190
+ {
191
+ "name": "variant",
192
+ "type": {
193
+ "text": "AlertVariants"
194
+ },
195
+ "default": "'info'",
196
+ "fieldName": "variant",
197
+ "parsedType": {
198
+ "text": "'negative' | 'positive' | 'warning' | 'info'"
199
+ }
200
+ },
201
+ {
202
+ "name": "show",
203
+ "type": {
204
+ "text": "boolean"
205
+ },
206
+ "default": "false",
207
+ "fieldName": "show"
208
+ },
209
+ {
210
+ "name": "role",
211
+ "type": {
212
+ "text": "string"
213
+ },
214
+ "default": "'alert'",
215
+ "fieldName": "role"
216
+ }
217
+ ],
218
+ "superclass": {
219
+ "name": "LitElement",
220
+ "package": "lit"
221
+ },
222
+ "tagName": "w-alert",
223
+ "customElement": true,
224
+ "modulePath": "packages/alert/index.ts",
225
+ "definitionPath": "packages/alert/index.ts"
226
+ }
227
+ ],
228
+ "exports": [
229
+ {
230
+ "kind": "custom-element-definition",
231
+ "name": "w-alert",
232
+ "declaration": {
233
+ "name": "WarpAlert",
234
+ "module": "packages/alert/index.ts"
235
+ }
236
+ },
237
+ {
238
+ "kind": "js",
239
+ "name": "WarpAlert",
240
+ "declaration": {
241
+ "name": "WarpAlert",
242
+ "module": "packages/alert/index.ts"
243
+ }
244
+ }
245
+ ]
246
+ },
247
247
  {
248
248
  "kind": "javascript-module",
249
249
  "path": "packages/utils/index.js",
@@ -2627,6 +2627,16 @@
2627
2627
  "default": "false",
2628
2628
  "attribute": "invalid",
2629
2629
  "reflects": true
2630
+ },
2631
+ {
2632
+ "kind": "field",
2633
+ "name": "disabled",
2634
+ "type": {
2635
+ "text": "boolean"
2636
+ },
2637
+ "default": "false",
2638
+ "attribute": "disabled",
2639
+ "reflects": true
2630
2640
  }
2631
2641
  ],
2632
2642
  "attributes": [
@@ -2661,6 +2671,14 @@
2661
2671
  },
2662
2672
  "default": "false",
2663
2673
  "fieldName": "invalid"
2674
+ },
2675
+ {
2676
+ "name": "disabled",
2677
+ "type": {
2678
+ "text": "boolean"
2679
+ },
2680
+ "default": "false",
2681
+ "fieldName": "disabled"
2664
2682
  }
2665
2683
  ],
2666
2684
  "superclass": {
@@ -3852,7 +3870,7 @@
3852
3870
  "text": "array"
3853
3871
  },
3854
3872
  "static": true,
3855
- "default": "[styles]"
3873
+ "default": "[reset, toggleStyles]"
3856
3874
  },
3857
3875
  {
3858
3876
  "kind": "field",
@@ -4003,6 +4021,11 @@
4003
4021
  "description": "The checkbox's hint. If you need to display HTML, use the `hint` slot instead.",
4004
4022
  "attribute": "hint"
4005
4023
  },
4024
+ {
4025
+ "kind": "method",
4026
+ "name": "setInitialAttributes",
4027
+ "privacy": "private"
4028
+ },
4006
4029
  {
4007
4030
  "kind": "method",
4008
4031
  "name": "handleClick",
@@ -4210,27 +4233,6 @@
4210
4233
  }
4211
4234
  ]
4212
4235
  },
4213
- {
4214
- "kind": "javascript-module",
4215
- "path": "packages/rip-and-tear-radio/radio-styles.ts",
4216
- "declarations": [
4217
- {
4218
- "kind": "variable",
4219
- "name": "styles",
4220
- "default": "css` :host { color: var(--wa-form-control-value-color); display: inline-flex; flex-direction: row; align-items: top; font-family: inherit; font-weight: var(--wa-form-control-value-font-weight); line-height: var(--wa-form-control-value-line-height); cursor: pointer; user-select: none; -webkit-user-select: none; } :host(:focus) { outline: none; } [part~='label'] { display: inline; } [part~='hint'] { margin-block-start: 0.5em; } /* Default appearance */ :host([appearance='default']) .control { flex: 0 0 auto; position: relative; display: inline-flex; align-items: center; justify-content: center; width: var(--wa-form-control-toggle-size, 2rem); height: var(--wa-form-control-toggle-size, 2rem); border-color: var(--wa-form-control-border-color, gray); border-radius: 50%; border-style: var(--wa-form-control-border-style, solid); border-width: var(--wa-form-control-border-width, 1px); background-color: var(--wa-form-control-background-color, white); color: transparent; transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; margin-inline-end: 0.5em; } :host([appearance='clickable']) .control { position: absolute; inset: 0; height: 100%; width: 100%; cursor: pointer; } /* Checked */ :host(:state(checked)):not(:host([appearance='clickable'])) .control { /* color: var(--checked-icon-color, white); */ border-color: var(--wa-form-control-activated-color, blue); background-color: var(--wa-form-control-background-color, white); border-width: 0.6rem; } /* Focus */ :host(:focus-visible) .control { outline: 2px solid var(--w-s-color-border-focus); outline-offset: var(--w-outline-offset, 1px); } :host([appearance='clickable']:focus-visible) .control { outline-offset: -4px; border-radius: 8px; } /* Disabled */ :host(:state(disabled)) { opacity: 0.5; cursor: not-allowed; } /* Button appearance */ :host([appearance='button']) { align-items: center; min-height: var(--wa-form-control-height); background-color: var(--wa-color-surface-default); border: var(--wa-form-control-border-width) var(--wa-form-control-border-style) var(--wa-form-control-border-color); border-radius: var(--wa-border-radius-m); padding: 0 var(--wa-form-control-padding-inline); transition: background-color var(--wa-transition-fast), border-color var(--wa-transition-fast); } :host([appearance='button']) .control { display: none; } /* Horizontal grouping - remove inner border radius */ :host([appearance='button'][data-wa-radio-horizontal][data-wa-radio-inner]) { border-radius: 0; } :host([appearance='button'][data-wa-radio-horizontal][data-wa-radio-first]) { border-start-end-radius: 0; border-end-end-radius: 0; } :host([appearance='button'][data-wa-radio-horizontal][data-wa-radio-last]) { border-start-start-radius: 0; border-end-start-radius: 0; } /* Vertical grouping - remove inner border radius */ :host([appearance='button'][data-wa-radio-vertical][data-wa-radio-inner]) { border-radius: 0; } :host([appearance='button'][data-wa-radio-vertical][data-wa-radio-first]) { border-end-start-radius: 0; border-end-end-radius: 0; } :host([appearance='button'][data-wa-radio-vertical][data-wa-radio-last]) { border-start-start-radius: 0; border-start-end-radius: 0; } @media (hover: hover) { :host([appearance='button']:hover:not(:state(disabled), :state(checked))) { background-color: color-mix(in srgb, var(--wa-color-surface-default) 95%, var(--wa-color-mix-hover)); } } :host([appearance='button']:focus-visible) { outline: var(--wa-focus-ring); outline-offset: var(--wa-focus-ring-offset); } :host([appearance='button']:state(checked)) { border-color: var(--wa-form-control-activated-color); background-color: var(--wa-color-brand-fill-quiet); } :host([appearance='button']:state(checked):focus-visible) { outline: var(--wa-focus-ring-style) var(--wa-focus-ring-width) var(--wa-color-brand-border-loud); outline-offset: var(--wa-focus-ring-offset); } /* Remove inner borders and handle overlap */ :host([appearance='button'][data-wa-radio-horizontal]:not([data-wa-radio-first])) { margin-inline-start: calc(-1 * var(--wa-form-control-border-width)); } :host([appearance='button'][data-wa-radio-vertical]:not([data-wa-radio-first])) { margin-block-start: calc(-1 * var(--wa-form-control-border-width)); } /* Ensure interactive states are visible above adjacent buttons */ :host([appearance='button']:hover), :host([appearance='button']:state(checked)) { position: relative; z-index: 1; } :host([appearance='button']:focus-visible) { z-index: 2; } `"
4221
- }
4222
- ],
4223
- "exports": [
4224
- {
4225
- "kind": "js",
4226
- "name": "styles",
4227
- "declaration": {
4228
- "name": "styles",
4229
- "module": "packages/rip-and-tear-radio/radio-styles.ts"
4230
- }
4231
- }
4232
- ]
4233
- },
4234
4236
  {
4235
4237
  "kind": "javascript-module",
4236
4238
  "path": "packages/rip-and-tear-radio/radio.ts",
@@ -4247,7 +4249,7 @@
4247
4249
  "text": "array"
4248
4250
  },
4249
4251
  "static": true,
4250
- "default": "[styles]"
4252
+ "default": "[reset, toggleStyles]"
4251
4253
  },
4252
4254
  {
4253
4255
  "kind": "field",
@@ -4407,7 +4409,7 @@
4407
4409
  {
4408
4410
  "kind": "variable",
4409
4411
  "name": "styles",
4410
- "default": "css` :host { display: block; } .form-control { position: relative; border: none; padding: 0; margin: 0; } .label { font-size: var(--w-font-size-s); line-height: var(--w-line-height-s); font-weight: 700; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-smoothing: grayscale; cursor: pointer; padding-bottom: 0.4rem; color: var(--w-s-color-text); display: block; } .radio-group-required .label::after { content: var(--wa-form-control-required-content); margin-inline-start: var(--wa-form-control-required-content-offset); } .button-group { display: flex; } [part~='form-control-input'] { display: flex; flex-direction: column; flex-wrap: wrap; gap: 0.75em; } /* Horizontal */ :host([orientation='horizontal']) [part~='form-control-input'] { flex-direction: row; gap: 1em; } /* Help text */ [part~='hint'] { margin-block-start: 0.5em; } /* Radios have the \"button\" appearance */ :host fieldset.has-radio-buttons { [part~='form-control-input'] { gap: 0; } } `"
4412
+ "default": "css` :host { display: block; } .form-control { position: relative; border: none; padding: 0; margin: 0; } .label { font-size: var(--w-font-size-s); line-height: var(--w-line-height-s); font-weight: 700; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-smoothing: grayscale; cursor: pointer; padding-bottom: 0.4rem; color: var(--w-s-color-text); display: block; } .radio-group-required .label::after { content: var(--wa-form-control-required-content); margin-inline-start: var(--wa-form-control-required-content-offset); } .button-group { display: flex; } [part~='form-control-input'] { display: flex; flex-direction: column; flex-wrap: wrap; } /* Horizontal */ :host([orientation='horizontal']) [part~='form-control-input'] { flex-direction: row; gap: 1em; } /* Help text */ [part~='hint'] { margin-block-start: 0.5em; } /* Radios have the \"button\" appearance */ :host fieldset.has-radio-buttons { [part~='form-control-input'] { gap: 0; } } `"
4411
4413
  }
4412
4414
  ],
4413
4415
  "exports": [
@@ -7051,6 +7053,12 @@
7051
7053
  }
7052
7054
  ]
7053
7055
  },
7056
+ {
7057
+ "kind": "javascript-module",
7058
+ "path": "packages/rip-and-tear-radio/radio-styles.ts",
7059
+ "declarations": [],
7060
+ "exports": []
7061
+ },
7054
7062
  {
7055
7063
  "kind": "javascript-module",
7056
7064
  "path": "packages/rip-and-tear-radio/radio.stories.ts",
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
- import type { WarpAlert } from "./packages/alert/index.ts";
3
2
  import type { ccSuffix, ccPrefix, WarpAffix } from "./packages/affix/index.ts";
3
+ import type { WarpAlert } from "./packages/alert/index.ts";
4
4
  import type { WarpLink } from "./packages/link/index.ts";
5
5
  import type { ccButton, WarpButton } from "./packages/button/index.ts";
6
6
  import type { ccAttention, WarpAttention } from "./packages/attention/index.ts";
@@ -111,18 +111,6 @@ type BaseEvents = {
111
111
 
112
112
 
113
113
 
114
- export type WarpAlertProps = {
115
- /** */
116
- "variant"?: WarpAlert['variant'];
117
- /** */
118
- "show"?: WarpAlert['show'];
119
- /** */
120
- "role"?: WarpAlert['role'];
121
-
122
-
123
- }
124
-
125
-
126
114
  export type WarpAffixProps = {
127
115
  /** */
128
116
  "aria-label"?: WarpAffix['ariaLabel'];
@@ -143,6 +131,18 @@ Set an `aria-label` that explains the action when using this. */
143
131
  }
144
132
 
145
133
 
134
+ export type WarpAlertProps = {
135
+ /** */
136
+ "variant"?: WarpAlert['variant'];
137
+ /** */
138
+ "show"?: WarpAlert['show'];
139
+ /** */
140
+ "role"?: WarpAlert['role'];
141
+
142
+
143
+ }
144
+
145
+
146
146
  export type WarpLinkProps = {
147
147
  /** */
148
148
  "autofocus"?: WarpLink['autofocus'];
@@ -434,6 +434,8 @@ export type WarpDeadToggleProps = {
434
434
  "indeterminate"?: WarpDeadToggle['indeterminate'];
435
435
  /** */
436
436
  "invalid"?: WarpDeadToggle['invalid'];
437
+ /** */
438
+ "disabled"?: WarpDeadToggle['disabled'];
437
439
 
438
440
 
439
441
  }
@@ -921,24 +923,6 @@ export type WarpToastContainerProps = {
921
923
  export type CustomElements = {
922
924
 
923
925
 
924
- /**
925
- * Alert is an inline component used for displaying different types of messages.
926
- *
927
- * For accessibility reasons, alert should appear close to the element that triggered it.
928
- *
929
- * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/feedback-alert--docs)
930
- *
931
- * ## Attributes & Properties
932
- *
933
- * Component attributes and properties that can be applied to the element or by using JavaScript.
934
- *
935
- * - `variant`: undefined
936
- * - `show`: undefined
937
- * - `role`: undefined
938
- */
939
- "w-alert": Partial<WarpAlertProps & BaseProps<WarpAlert> & BaseEvents>;
940
-
941
-
942
926
  /**
943
927
  * This component is usually used in other components like form elements to show a prefix or suffix. See for example `w-textfield`.
944
928
  *
@@ -960,6 +944,24 @@ export type WarpToastContainerProps = {
960
944
  "w-affix": Partial<WarpAffixProps & BaseProps<WarpAffix> & BaseEvents>;
961
945
 
962
946
 
947
+ /**
948
+ * Alert is an inline component used for displaying different types of messages.
949
+ *
950
+ * For accessibility reasons, alert should appear close to the element that triggered it.
951
+ *
952
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/feedback-alert--docs)
953
+ *
954
+ * ## Attributes & Properties
955
+ *
956
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
957
+ *
958
+ * - `variant`: undefined
959
+ * - `show`: undefined
960
+ * - `role`: undefined
961
+ */
962
+ "w-alert": Partial<WarpAlertProps & BaseProps<WarpAlert> & BaseEvents>;
963
+
964
+
963
965
  /**
964
966
  * Buttons are used to perform actions, with different visuals for different needs.
965
967
  *
@@ -1209,6 +1211,7 @@ export type WarpToastContainerProps = {
1209
1211
  * - `checked`: undefined
1210
1212
  * - `indeterminate`: undefined
1211
1213
  * - `invalid`: undefined
1214
+ * - `disabled`: undefined
1212
1215
  */
1213
1216
  "w-dead-toggle": Partial<WarpDeadToggleProps & BaseProps<WarpDeadToggle> & BaseEvents>;
1214
1217