@warp-ds/elements 2.10.0-next.22 → 2.10.0-next.24

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 (33) hide show
  1. package/dist/custom-elements.json +100 -18
  2. package/dist/docs/modal/api.md +3 -1
  3. package/dist/docs/modal/modal.md +82 -9
  4. package/dist/docs/modal/styling.md +75 -0
  5. package/dist/docs/modal/usage.md +4 -8
  6. package/dist/index.d.ts +134 -4
  7. package/dist/packages/modal/modal.d.ts +17 -2
  8. package/dist/packages/modal/modal.js +176 -129
  9. package/dist/packages/modal/modal.js.map +4 -4
  10. package/dist/packages/modal/modal.stories.d.ts +5 -4
  11. package/dist/packages/modal/modal.stories.js +41 -38
  12. package/dist/packages/modal/styles.d.ts +1 -0
  13. package/dist/packages/modal/styles.js +171 -0
  14. package/dist/packages/modal-footer/modal-footer.d.ts +5 -1
  15. package/dist/packages/modal-footer/modal-footer.js +25 -22
  16. package/dist/packages/modal-footer/modal-footer.js.map +4 -4
  17. package/dist/packages/modal-footer/styles.d.ts +1 -0
  18. package/dist/packages/modal-footer/styles.js +22 -0
  19. package/dist/packages/modal-header/modal-header.d.ts +12 -5
  20. package/dist/packages/modal-header/modal-header.js +149 -141
  21. package/dist/packages/modal-header/modal-header.js.map +4 -4
  22. package/dist/packages/modal-header/styles.d.ts +1 -0
  23. package/dist/packages/modal-header/styles.js +96 -0
  24. package/dist/packages/textarea/react.d.ts +1 -1
  25. package/dist/packages/textarea/textarea.d.ts +2 -4
  26. package/dist/packages/textarea/textarea.js.map +2 -2
  27. package/dist/packages/textarea/textarea.react.stories.d.ts +19 -2
  28. package/dist/packages/textarea/textarea.react.stories.js +17 -0
  29. package/dist/packages/textfield/textfield.react.stories.d.ts +30 -0
  30. package/dist/packages/textfield/textfield.react.stories.js +32 -0
  31. package/dist/web-types.json +50 -4
  32. package/eik/index.js +16 -16
  33. package/package.json +1 -1
@@ -4649,6 +4649,49 @@
4649
4649
  "kind": "class",
4650
4650
  "description": "Modals (or dialogs) display important information that users need to acknowledge.",
4651
4651
  "name": "WarpModal",
4652
+ "cssProperties": [
4653
+ {
4654
+ "name": "--w-c-modal-backdrop-color"
4655
+ },
4656
+ {
4657
+ "name": "--w-c-modal-bg"
4658
+ },
4659
+ {
4660
+ "name": "--w-c-modal-box-shadow"
4661
+ },
4662
+ {
4663
+ "name": "--w-c-modal-color"
4664
+ },
4665
+ {
4666
+ "name": "--w-c-modal-height"
4667
+ },
4668
+ {
4669
+ "name": "--w-c-modal-max-height"
4670
+ },
4671
+ {
4672
+ "name": "--w-c-modal-min-height"
4673
+ },
4674
+ {
4675
+ "name": "--w-c-modal-translate-distance"
4676
+ },
4677
+ {
4678
+ "name": "--w-c-modal-width"
4679
+ }
4680
+ ],
4681
+ "cssParts": [
4682
+ {
4683
+ "description": "the root element inside the component (`<dialog>` element).",
4684
+ "name": "dialog"
4685
+ },
4686
+ {
4687
+ "description": "container for all elements, direct child of `<dialog>`.",
4688
+ "name": "wrapper"
4689
+ },
4690
+ {
4691
+ "description": "the container for the `content` slot items (children).",
4692
+ "name": "content"
4693
+ }
4694
+ ],
4652
4695
  "slots": [
4653
4696
  {
4654
4697
  "description": "Typically where you would use the `w-modal-header` component.",
@@ -4680,6 +4723,7 @@
4680
4723
  "type": {
4681
4724
  "text": "string | undefined"
4682
4725
  },
4726
+ "deprecated": "This ID has no effect",
4683
4727
  "attribute": "content-id"
4684
4728
  },
4685
4729
  {
@@ -4824,6 +4868,7 @@
4824
4868
  "type": {
4825
4869
  "text": "string | undefined"
4826
4870
  },
4871
+ "deprecated": "This ID has no effect",
4827
4872
  "fieldName": "contentId"
4828
4873
  },
4829
4874
  {
@@ -4893,6 +4938,18 @@
4893
4938
  "kind": "class",
4894
4939
  "description": "The footer section of a modal, typically where you place actions.",
4895
4940
  "name": "WarpModalFooter",
4941
+ "cssProperties": [
4942
+ {
4943
+ "description": " adjusts the flex gap between actions in the footer.",
4944
+ "name": "--w-c-modal-footer-gap"
4945
+ }
4946
+ ],
4947
+ "cssParts": [
4948
+ {
4949
+ "description": "the container for slotted items (children).",
4950
+ "name": "footer"
4951
+ }
4952
+ ],
4896
4953
  "members": [],
4897
4954
  "mixins": [
4898
4955
  {
@@ -4959,6 +5016,39 @@
4959
5016
  "kind": "class",
4960
5017
  "description": "The header section of a modal, typically where you place the title and a close button.",
4961
5018
  "name": "WarpModalHeader",
5019
+ "cssProperties": [
5020
+ {
5021
+ "name": "--w-c-modal-header-font-size"
5022
+ },
5023
+ {
5024
+ "name": "--w-c-modal-header-line-height"
5025
+ },
5026
+ {
5027
+ "name": "--w-c-modal-header-margin-bottom"
5028
+ }
5029
+ ],
5030
+ "cssParts": [
5031
+ {
5032
+ "description": "the root element inside the component.",
5033
+ "name": "header"
5034
+ },
5035
+ {
5036
+ "description": "the container for the image (`top` slot).",
5037
+ "name": "top"
5038
+ },
5039
+ {
5040
+ "description": "the back button, if visible.",
5041
+ "name": "back"
5042
+ },
5043
+ {
5044
+ "description": "the title element.",
5045
+ "name": "title"
5046
+ },
5047
+ {
5048
+ "description": "the close button, if visible.",
5049
+ "name": "close"
5050
+ }
5051
+ ],
4962
5052
  "slots": [
4963
5053
  {
4964
5054
  "description": "Customize the title bar, for example to have a header image that reaches the modal's edges. See the With Image story for an example.",
@@ -5012,24 +5102,6 @@
5012
5102
  },
5013
5103
  "privacy": "private"
5014
5104
  },
5015
- {
5016
- "kind": "field",
5017
- "name": "titleClasses",
5018
- "privacy": "private",
5019
- "readonly": true
5020
- },
5021
- {
5022
- "kind": "field",
5023
- "name": "backButton",
5024
- "privacy": "private",
5025
- "readonly": true
5026
- },
5027
- {
5028
- "kind": "field",
5029
- "name": "closeButton",
5030
- "privacy": "private",
5031
- "readonly": true
5032
- },
5033
5105
  {
5034
5106
  "kind": "method",
5035
5107
  "name": "emitBack",
@@ -8874,6 +8946,16 @@
8874
8946
  "attribute": "optional",
8875
8947
  "reflects": true
8876
8948
  },
8949
+ {
8950
+ "kind": "field",
8951
+ "name": "minHeight",
8952
+ "privacy": "private"
8953
+ },
8954
+ {
8955
+ "kind": "field",
8956
+ "name": "maxHeight",
8957
+ "privacy": "private"
8958
+ },
8877
8959
  {
8878
8960
  "kind": "field",
8879
8961
  "name": "_textarea",
@@ -7,7 +7,7 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
7
7
  | Name | Type | Default | Summary |
8
8
  |-|-|-|-|
9
9
  | close (JS only) | `close() => void` | `-` | - |
10
- | content-id | `string \| undefined` | `-` | - |
10
+ | content-id | `string \| undefined` | `-` | **Deprecated**: This ID has no effect |
11
11
  | ignore-backdrop-clicks | `boolean` | `false` | Ignores clicks to the backdrop when set |
12
12
  | open (JS only) | `open() => void` | `-` | - |
13
13
  | show | `boolean` | `false` | Controls if the modal should show or hide. |
@@ -23,6 +23,8 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
23
23
 
24
24
  #### content-id
25
25
 
26
+ **Deprecated**: This ID has no effect
27
+
26
28
 
27
29
 
28
30
  - Type: `string | undefined`
@@ -40,10 +40,8 @@ To open and close the modal using JavaScript, get a reference to the `<w-modal>`
40
40
  </p>
41
41
  </div>
42
42
  <w-modal-footer slot="footer">
43
- <div class="flex gap-16">
44
- <w-button variant="secondary" data-testid="js-example-cancel">Cancel</w-button>
45
- <w-button variant="primary" data-testid="js-example-confirm">Confirm</w-button>
46
- </div>
43
+ <w-button variant="secondary" data-testid="js-example-cancel">Cancel</w-button>
44
+ <w-button variant="primary" data-testid="js-example-confirm">Confirm</w-button>
47
45
  </w-modal-footer>
48
46
  </w-modal>
49
47
 
@@ -93,10 +91,8 @@ The available commands for `<w-modal>` are:
93
91
  </p>
94
92
  </div>
95
93
  <w-modal-footer slot="footer">
96
- <div class="flex gap-16">
97
- <w-button variant="secondary" commandfor="invoker-modal" command="--close">Dope</w-button>
98
- <w-button variant="primary" commandfor="invoker-modal" command="--confirm">Dope</w-button>
99
- </div>
94
+ <w-button variant="secondary" commandfor="invoker-modal" command="--close">Dope</w-button>
95
+ <w-button variant="primary" commandfor="invoker-modal" command="--confirm">Dope</w-button>
100
96
  </w-modal-footer>
101
97
  </w-modal>
102
98
  ```
@@ -187,6 +183,81 @@ modal.addEventListener('command', function (event: CommandEvent) {
187
183
 
188
184
  ## Styling API
189
185
 
186
+ Modal supports styling through **component tokens** (CSS custom properties with a `--w-c-` prefix) and **parts**.
187
+
188
+ ### Parts
189
+
190
+ Use `::part(part-name)` from outside the component.
191
+
192
+ #### `<w-modal>` parts
193
+
194
+ - `dialog` - the root element inside the component (`<dialog>` element).
195
+ - `wrapper` - container for all elements, direct child of `<dialog>`.
196
+ - `content` - the container for the `content` slot items (children).
197
+
198
+ #### `<w-modal-header>` parts
199
+
200
+ - `header` - the root element inside the component.
201
+ - `top` - the container for the image (`top` slot).
202
+ - `back` - the back button, if visible.
203
+ - `title` - the title element.
204
+ - `close` - the close button, if visible.
205
+
206
+ #### `<w-modal-footer>` parts
207
+
208
+ - `footer` - the container for slotted items (children)
209
+
210
+ ### Component tokens
211
+
212
+ #### `<w-modal>` tokens
213
+
214
+ Set these on `<w-modal>` to override visuals.
215
+
216
+ ```css
217
+ w-modal {
218
+ --w-c-modal-backdrop-color: transparent;
219
+ }
220
+ ```
221
+
222
+ ##### Layout and typography
223
+
224
+ - `--w-c-modal-height`
225
+ - `--w-c-modal-max-height`
226
+ - `--w-c-modal-min-height`
227
+ - `--w-c-modal-translate-distance`
228
+ - `--w-c-modal-width`
229
+
230
+ ##### Background
231
+
232
+ - `--w-c-modal-backdrop-color`
233
+ - `--w-c-modal-bg`
234
+
235
+ ##### Text color
236
+
237
+ - `--w-c-modal-color`
238
+
239
+ ##### Shadow
240
+
241
+ - `--w-c-modal-box-shadow`
242
+
243
+ #### `<w-modal-header>` tokens
244
+
245
+ Set these on `<w-modal-header>` to override visuals.
246
+
247
+ ##### Layout and typography
248
+
249
+ - `--w-c-modal-header-font-size`
250
+ - `--w-c-modal-header-line-height`
251
+ - `--w-c-modal-header-margin-bottom`
252
+
253
+ #### `<w-modal-footer>` tokens
254
+
255
+ Set these on `<w-modal-footer>` to override visuals.
256
+
257
+ ##### Layout and typography
258
+
259
+ - `--w-c-modal-footer-gap` - adjusts the flex gap between actions in the footer
260
+
190
261
  ## `<w-modal>` API
191
262
 
192
263
  Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
@@ -196,7 +267,7 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
196
267
  | Name | Type | Default | Summary |
197
268
  |-|-|-|-|
198
269
  | close (JS only) | `close() => void` | `-` | - |
199
- | content-id | `string \| undefined` | `-` | - |
270
+ | content-id | `string \| undefined` | `-` | **Deprecated**: This ID has no effect |
200
271
  | ignore-backdrop-clicks | `boolean` | `false` | Ignores clicks to the backdrop when set |
201
272
  | open (JS only) | `open() => void` | `-` | - |
202
273
  | show | `boolean` | `false` | Controls if the modal should show or hide. |
@@ -212,6 +283,8 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
212
283
 
213
284
  #### content-id
214
285
 
286
+ **Deprecated**: This ID has no effect
287
+
215
288
 
216
289
 
217
290
  - Type: `string | undefined`
@@ -1 +1,76 @@
1
1
  ## Styling API
2
+
3
+ Modal supports styling through **component tokens** (CSS custom properties with a `--w-c-` prefix) and **parts**.
4
+
5
+ ### Parts
6
+
7
+ Use `::part(part-name)` from outside the component.
8
+
9
+ #### `<w-modal>` parts
10
+
11
+ - `dialog` - the root element inside the component (`<dialog>` element).
12
+ - `wrapper` - container for all elements, direct child of `<dialog>`.
13
+ - `content` - the container for the `content` slot items (children).
14
+
15
+ #### `<w-modal-header>` parts
16
+
17
+ - `header` - the root element inside the component.
18
+ - `top` - the container for the image (`top` slot).
19
+ - `back` - the back button, if visible.
20
+ - `title` - the title element.
21
+ - `close` - the close button, if visible.
22
+
23
+ #### `<w-modal-footer>` parts
24
+
25
+ - `footer` - the container for slotted items (children)
26
+
27
+ ### Component tokens
28
+
29
+ #### `<w-modal>` tokens
30
+
31
+ Set these on `<w-modal>` to override visuals.
32
+
33
+ ```css
34
+ w-modal {
35
+ --w-c-modal-backdrop-color: transparent;
36
+ }
37
+ ```
38
+
39
+ ##### Layout and typography
40
+
41
+ - `--w-c-modal-height`
42
+ - `--w-c-modal-max-height`
43
+ - `--w-c-modal-min-height`
44
+ - `--w-c-modal-translate-distance`
45
+ - `--w-c-modal-width`
46
+
47
+ ##### Background
48
+
49
+ - `--w-c-modal-backdrop-color`
50
+ - `--w-c-modal-bg`
51
+
52
+ ##### Text color
53
+
54
+ - `--w-c-modal-color`
55
+
56
+ ##### Shadow
57
+
58
+ - `--w-c-modal-box-shadow`
59
+
60
+ #### `<w-modal-header>` tokens
61
+
62
+ Set these on `<w-modal-header>` to override visuals.
63
+
64
+ ##### Layout and typography
65
+
66
+ - `--w-c-modal-header-font-size`
67
+ - `--w-c-modal-header-line-height`
68
+ - `--w-c-modal-header-margin-bottom`
69
+
70
+ #### `<w-modal-footer>` tokens
71
+
72
+ Set these on `<w-modal-footer>` to override visuals.
73
+
74
+ ##### Layout and typography
75
+
76
+ - `--w-c-modal-footer-gap` - adjusts the flex gap between actions in the footer
@@ -34,10 +34,8 @@ To open and close the modal using JavaScript, get a reference to the `<w-modal>`
34
34
  </p>
35
35
  </div>
36
36
  <w-modal-footer slot="footer">
37
- <div class="flex gap-16">
38
- <w-button variant="secondary" data-testid="js-example-cancel">Cancel</w-button>
39
- <w-button variant="primary" data-testid="js-example-confirm">Confirm</w-button>
40
- </div>
37
+ <w-button variant="secondary" data-testid="js-example-cancel">Cancel</w-button>
38
+ <w-button variant="primary" data-testid="js-example-confirm">Confirm</w-button>
41
39
  </w-modal-footer>
42
40
  </w-modal>
43
41
 
@@ -87,10 +85,8 @@ The available commands for `<w-modal>` are:
87
85
  </p>
88
86
  </div>
89
87
  <w-modal-footer slot="footer">
90
- <div class="flex gap-16">
91
- <w-button variant="secondary" commandfor="invoker-modal" command="--close">Dope</w-button>
92
- <w-button variant="primary" commandfor="invoker-modal" command="--confirm">Dope</w-button>
93
- </div>
88
+ <w-button variant="secondary" commandfor="invoker-modal" command="--close">Dope</w-button>
89
+ <w-button variant="primary" commandfor="invoker-modal" command="--confirm">Dope</w-button>
94
90
  </w-modal-footer>
95
91
  </w-modal>
96
92
  ```
package/dist/index.d.ts CHANGED
@@ -1468,9 +1468,9 @@ export type WarpModalProps = {
1468
1468
 
1469
1469
  You can also call the `open()` and `close()` methods. */
1470
1470
  show?: WarpModal["show"];
1471
- /** */
1471
+ /** @deprecated This ID has no effect */
1472
1472
  "content-id"?: WarpModal["contentId"];
1473
- /** */
1473
+ /** @deprecated This ID has no effect */
1474
1474
  contentId?: WarpModal["contentId"];
1475
1475
  /** Ignores clicks to the backdrop when set */
1476
1476
  "ignore-backdrop-clicks"?: WarpModal["ignoreBackdropClicks"];
@@ -1488,9 +1488,9 @@ export type WarpModalSolidJsProps = {
1488
1488
 
1489
1489
  You can also call the `open()` and `close()` methods. */
1490
1490
  "prop:show"?: WarpModal["show"];
1491
- /** */
1491
+ /** @deprecated This ID has no effect */
1492
1492
  "attr:content-id"?: WarpModal["contentId"];
1493
- /** */
1493
+ /** @deprecated This ID has no effect */
1494
1494
  "prop:contentId"?: WarpModal["contentId"];
1495
1495
  /** Ignores clicks to the backdrop when set */
1496
1496
  "bool:ignore-backdrop-clicks"?: WarpModal["ignoreBackdropClicks"];
@@ -2983,11 +2983,45 @@ export type CustomElements = {
2983
2983
  *
2984
2984
  * - `open() => void`: undefined
2985
2985
  * - `close() => void`: undefined
2986
+ *
2987
+ * ## CSS Custom Properties
2988
+ *
2989
+ * CSS variables available for styling the component.
2990
+ *
2991
+ * - `--w-c-modal-backdrop-color`: undefined (default: `undefined`)
2992
+ * - `--w-c-modal-bg`: undefined (default: `undefined`)
2993
+ * - `--w-c-modal-box-shadow`: undefined (default: `undefined`)
2994
+ * - `--w-c-modal-color`: undefined (default: `undefined`)
2995
+ * - `--w-c-modal-height`: undefined (default: `undefined`)
2996
+ * - `--w-c-modal-max-height`: undefined (default: `undefined`)
2997
+ * - `--w-c-modal-min-height`: undefined (default: `undefined`)
2998
+ * - `--w-c-modal-translate-distance`: undefined (default: `undefined`)
2999
+ * - `--w-c-modal-width`: undefined (default: `undefined`)
3000
+ *
3001
+ * ## CSS Parts
3002
+ *
3003
+ * Custom selectors for styling elements within the component.
3004
+ *
3005
+ * - `dialog`: the root element inside the component (`<dialog>` element).
3006
+ * - `wrapper`: container for all elements, direct child of `<dialog>`.
3007
+ * - `content`: the container for the `content` slot items (children).
2986
3008
  */
2987
3009
  "w-modal": Partial<WarpModalProps & BaseProps<WarpModal> & BaseEvents>;
2988
3010
 
2989
3011
  /**
2990
3012
  * The footer section of a modal, typically where you place actions.
3013
+ *
3014
+ * ## CSS Custom Properties
3015
+ *
3016
+ * CSS variables available for styling the component.
3017
+ *
3018
+ * - `--w-c-modal-footer-gap`: adjusts the flex gap between actions in the footer. (default: `undefined`)
3019
+ *
3020
+ * ## CSS Parts
3021
+ *
3022
+ * Custom selectors for styling elements within the component.
3023
+ *
3024
+ * - `footer`: the container for slotted items (children).
2991
3025
  */
2992
3026
  "w-modal-footer": Partial<
2993
3027
  WarpModalFooterProps & BaseProps<WarpModalFooter> & BaseEvents
@@ -3015,6 +3049,24 @@ export type CustomElements = {
3015
3049
  * Areas where markup can be added to the component.
3016
3050
  *
3017
3051
  * - `top`: Customize the title bar, for example to have a header image that reaches the modal's edges. See the With Image story for an example.
3052
+ *
3053
+ * ## CSS Custom Properties
3054
+ *
3055
+ * CSS variables available for styling the component.
3056
+ *
3057
+ * - `--w-c-modal-header-font-size`: undefined (default: `undefined`)
3058
+ * - `--w-c-modal-header-line-height`: undefined (default: `undefined`)
3059
+ * - `--w-c-modal-header-margin-bottom`: undefined (default: `undefined`)
3060
+ *
3061
+ * ## CSS Parts
3062
+ *
3063
+ * Custom selectors for styling elements within the component.
3064
+ *
3065
+ * - `header`: the root element inside the component.
3066
+ * - `top`: the container for the image (`top` slot).
3067
+ * - `back`: the back button, if visible.
3068
+ * - `title`: the title element.
3069
+ * - `close`: the close button, if visible.
3018
3070
  */
3019
3071
  "w-modal-header": Partial<
3020
3072
  WarpModalHeaderProps & BaseProps<WarpModalHeader> & BaseEvents
@@ -4318,6 +4370,28 @@ export type CustomElementsSolidJs = {
4318
4370
  *
4319
4371
  * - `open() => void`: undefined
4320
4372
  * - `close() => void`: undefined
4373
+ *
4374
+ * ## CSS Custom Properties
4375
+ *
4376
+ * CSS variables available for styling the component.
4377
+ *
4378
+ * - `--w-c-modal-backdrop-color`: undefined (default: `undefined`)
4379
+ * - `--w-c-modal-bg`: undefined (default: `undefined`)
4380
+ * - `--w-c-modal-box-shadow`: undefined (default: `undefined`)
4381
+ * - `--w-c-modal-color`: undefined (default: `undefined`)
4382
+ * - `--w-c-modal-height`: undefined (default: `undefined`)
4383
+ * - `--w-c-modal-max-height`: undefined (default: `undefined`)
4384
+ * - `--w-c-modal-min-height`: undefined (default: `undefined`)
4385
+ * - `--w-c-modal-translate-distance`: undefined (default: `undefined`)
4386
+ * - `--w-c-modal-width`: undefined (default: `undefined`)
4387
+ *
4388
+ * ## CSS Parts
4389
+ *
4390
+ * Custom selectors for styling elements within the component.
4391
+ *
4392
+ * - `dialog`: the root element inside the component (`<dialog>` element).
4393
+ * - `wrapper`: container for all elements, direct child of `<dialog>`.
4394
+ * - `content`: the container for the `content` slot items (children).
4321
4395
  */
4322
4396
  "w-modal": Partial<
4323
4397
  WarpModalProps & WarpModalSolidJsProps & BaseProps<WarpModal> & BaseEvents
@@ -4325,6 +4399,18 @@ export type CustomElementsSolidJs = {
4325
4399
 
4326
4400
  /**
4327
4401
  * The footer section of a modal, typically where you place actions.
4402
+ *
4403
+ * ## CSS Custom Properties
4404
+ *
4405
+ * CSS variables available for styling the component.
4406
+ *
4407
+ * - `--w-c-modal-footer-gap`: adjusts the flex gap between actions in the footer. (default: `undefined`)
4408
+ *
4409
+ * ## CSS Parts
4410
+ *
4411
+ * Custom selectors for styling elements within the component.
4412
+ *
4413
+ * - `footer`: the container for slotted items (children).
4328
4414
  */
4329
4415
  "w-modal-footer": Partial<
4330
4416
  WarpModalFooterProps &
@@ -4355,6 +4441,24 @@ export type CustomElementsSolidJs = {
4355
4441
  * Areas where markup can be added to the component.
4356
4442
  *
4357
4443
  * - `top`: Customize the title bar, for example to have a header image that reaches the modal's edges. See the With Image story for an example.
4444
+ *
4445
+ * ## CSS Custom Properties
4446
+ *
4447
+ * CSS variables available for styling the component.
4448
+ *
4449
+ * - `--w-c-modal-header-font-size`: undefined (default: `undefined`)
4450
+ * - `--w-c-modal-header-line-height`: undefined (default: `undefined`)
4451
+ * - `--w-c-modal-header-margin-bottom`: undefined (default: `undefined`)
4452
+ *
4453
+ * ## CSS Parts
4454
+ *
4455
+ * Custom selectors for styling elements within the component.
4456
+ *
4457
+ * - `header`: the root element inside the component.
4458
+ * - `top`: the container for the image (`top` slot).
4459
+ * - `back`: the back button, if visible.
4460
+ * - `title`: the title element.
4461
+ * - `close`: the close button, if visible.
4358
4462
  */
4359
4463
  "w-modal-header": Partial<
4360
4464
  WarpModalHeaderProps &
@@ -4898,6 +5002,32 @@ export type CustomElementsSolidJs = {
4898
5002
  };
4899
5003
 
4900
5004
  export type CustomCssProperties = {
5005
+ /** */
5006
+ "--w-c-modal-backdrop-color"?: string;
5007
+ /** */
5008
+ "--w-c-modal-bg"?: string;
5009
+ /** */
5010
+ "--w-c-modal-box-shadow"?: string;
5011
+ /** */
5012
+ "--w-c-modal-color"?: string;
5013
+ /** */
5014
+ "--w-c-modal-height"?: string;
5015
+ /** */
5016
+ "--w-c-modal-max-height"?: string;
5017
+ /** */
5018
+ "--w-c-modal-min-height"?: string;
5019
+ /** */
5020
+ "--w-c-modal-translate-distance"?: string;
5021
+ /** */
5022
+ "--w-c-modal-width"?: string;
5023
+ /** adjusts the flex gap between actions in the footer. */
5024
+ "--w-c-modal-footer-gap"?: string;
5025
+ /** */
5026
+ "--w-c-modal-header-font-size"?: string;
5027
+ /** */
5028
+ "--w-c-modal-header-line-height"?: string;
5029
+ /** */
5030
+ "--w-c-modal-header-margin-bottom"?: string;
4901
5031
  /** */
4902
5032
  "--w-c-snackbar-item-radius"?: string;
4903
5033
  /** */
@@ -8,14 +8,30 @@ declare const WarpModal_base: import("./util.js").Constructor<{
8
8
  * @slot header - Typically where you would use the `w-modal-header` component.
9
9
  * @slot content - The main content of the modal.
10
10
  * @slot footer - Typically where you would use the `w-modal-footer` component, for things like actions.
11
+ *
12
+ * @csspart dialog - the root element inside the component (`<dialog>` element).
13
+ * @csspart wrapper - container for all elements, direct child of `<dialog>`.
14
+ * @csspart content - the container for the `content` slot items (children).
15
+ *
16
+ * @cssprop --w-c-modal-backdrop-color
17
+ * @cssprop --w-c-modal-bg
18
+ * @cssprop --w-c-modal-box-shadow
19
+ * @cssprop --w-c-modal-color
20
+ * @cssprop --w-c-modal-height
21
+ * @cssprop --w-c-modal-max-height
22
+ * @cssprop --w-c-modal-min-height
23
+ * @cssprop --w-c-modal-translate-distance
24
+ * @cssprop --w-c-modal-width
11
25
  */
12
26
  export declare class WarpModal extends WarpModal_base {
27
+ static styles: import("lit").CSSResult[];
13
28
  /**
14
29
  * Controls if the modal should show or hide.
15
30
  *
16
31
  * You can also call the `open()` and `close()` methods.
17
32
  */
18
33
  show: boolean;
34
+ /** @deprecated This ID has no effect */
19
35
  contentId: string | undefined;
20
36
  /**
21
37
  * Ignores clicks to the backdrop when set
@@ -29,14 +45,13 @@ export declare class WarpModal extends WarpModal_base {
29
45
  connectedCallback(): void;
30
46
  open(): Promise<void>;
31
47
  close(): void;
32
- render(): import("lit").TemplateResult<1>;
33
48
  updated(changedProperties: Map<string, unknown>): void;
34
49
  private handleListeners;
35
50
  private eventPreventer;
36
51
  private closeOnBackdropClick;
37
52
  private interceptEscape;
38
53
  private modifyBorderRadius;
39
- static styles: import("lit").CSSResult[];
54
+ render(): import("lit").TemplateResult<1>;
40
55
  }
41
56
  /** @deprecated Exported for backwards compatibility. Use WarpModal. */
42
57
  export declare const ModalMain: typeof WarpModal;