@warp-ds/elements 2.3.0-next.24 → 2.3.0-next.26

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 (68) hide show
  1. package/dist/custom-elements.json +311 -22
  2. package/dist/index.d.ts +261 -0
  3. package/dist/packages/attention/index.js +20 -20
  4. package/dist/packages/attention/index.js.map +3 -3
  5. package/dist/packages/button/button.react.stories.d.ts +1 -1
  6. package/dist/packages/button/button.test.js +30 -1
  7. package/dist/packages/button/index.d.ts +2 -0
  8. package/dist/packages/button/index.js +12 -12
  9. package/dist/packages/button/index.js.map +3 -3
  10. package/dist/packages/checkbox/checkbox-group.js +2 -2
  11. package/dist/packages/checkbox/checkbox-group.js.map +2 -2
  12. package/dist/packages/checkbox/checkbox.js +1 -1
  13. package/dist/packages/checkbox/checkbox.js.map +2 -2
  14. package/dist/packages/checkbox/index.d.ts +2 -1
  15. package/dist/packages/checkbox/index.js +2 -6
  16. package/dist/packages/combobox/combobox.react.stories.d.ts +1 -1
  17. package/dist/packages/combobox/combobox.stories.d.ts +1 -0
  18. package/dist/packages/combobox/combobox.stories.js +29 -3
  19. package/dist/packages/combobox/index.d.ts +7 -1
  20. package/dist/packages/combobox/index.js +19 -19
  21. package/dist/packages/combobox/index.js.map +4 -4
  22. package/dist/packages/datepicker/datepicker.d.ts +1 -0
  23. package/dist/packages/datepicker/datepicker.js +35 -35
  24. package/dist/packages/datepicker/datepicker.js.map +3 -3
  25. package/dist/packages/datepicker/datepicker.react.stories.d.ts +1 -1
  26. package/dist/packages/datepicker/datepicker.test.js +27 -0
  27. package/dist/packages/link/link.react.stories.d.ts +1 -1
  28. package/dist/packages/radio/index.d.ts +2 -1
  29. package/dist/packages/radio/index.js +2 -6
  30. package/dist/packages/radio/radio-group.js +5 -5
  31. package/dist/packages/radio/radio-group.js.map +2 -2
  32. package/dist/packages/radio/radio.js +1 -1
  33. package/dist/packages/radio/radio.js.map +2 -2
  34. package/dist/packages/radio/radio.stories.js +3 -3
  35. package/dist/packages/radio/radio.stories.js.map +4 -4
  36. package/dist/packages/select/index.d.ts +1 -0
  37. package/dist/packages/select/index.js +15 -15
  38. package/dist/packages/select/index.js.map +3 -3
  39. package/dist/packages/select/select.react.stories.d.ts +1 -1
  40. package/dist/packages/select/select.test.js +30 -0
  41. package/dist/packages/slider/slider-thumb.d.ts +1 -0
  42. package/dist/packages/slider/slider-thumb.js +23 -23
  43. package/dist/packages/slider/slider-thumb.js.map +3 -3
  44. package/dist/packages/slider/slider.d.ts +1 -2
  45. package/dist/packages/slider/slider.js +20 -20
  46. package/dist/packages/slider/slider.js.map +4 -4
  47. package/dist/packages/slider/slider.stories.js +2 -2
  48. package/dist/packages/slider/slider.test.js +28 -0
  49. package/dist/packages/switch/index.d.ts +10 -2
  50. package/dist/packages/switch/index.js +5 -5
  51. package/dist/packages/switch/index.js.map +4 -4
  52. package/dist/packages/switch/switch.react.stories.js +4 -4
  53. package/dist/packages/switch/switch.stories.js +6 -5
  54. package/dist/packages/switch/switch.test.d.ts +1 -0
  55. package/dist/packages/switch/switch.test.js +40 -0
  56. package/dist/packages/textarea/textarea.d.ts +1 -0
  57. package/dist/packages/textarea/textarea.js +14 -14
  58. package/dist/packages/textarea/textarea.js.map +3 -3
  59. package/dist/packages/textarea/textarea.react.stories.d.ts +1 -1
  60. package/dist/packages/textarea/textarea.test.js +19 -0
  61. package/dist/packages/textfield/index.d.ts +3 -0
  62. package/dist/packages/textfield/index.js +8 -8
  63. package/dist/packages/textfield/index.js.map +3 -3
  64. package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
  65. package/dist/packages/textfield/textfield.stories.d.ts +1 -0
  66. package/dist/packages/textfield/textfield.stories.js +17 -0
  67. package/dist/web-types.json +340 -3
  68. package/package.json +1 -1
@@ -602,6 +602,27 @@
602
602
  "attribute": "value",
603
603
  "reflects": true
604
604
  },
605
+ {
606
+ "kind": "field",
607
+ "name": "#initialValue",
608
+ "privacy": "private",
609
+ "type": {
610
+ "text": "string | null"
611
+ },
612
+ "default": "null"
613
+ },
614
+ {
615
+ "kind": "method",
616
+ "name": "resetFormControl",
617
+ "return": {
618
+ "type": {
619
+ "text": "void"
620
+ }
621
+ },
622
+ "type": {
623
+ "text": "resetFormControl() => void"
624
+ }
625
+ },
605
626
  {
606
627
  "kind": "field",
607
628
  "name": "ariaValueTextLoading"
@@ -2010,6 +2031,27 @@
2010
2031
  "attribute": "value",
2011
2032
  "reflects": true
2012
2033
  },
2034
+ {
2035
+ "kind": "field",
2036
+ "name": "#initialValue",
2037
+ "privacy": "private",
2038
+ "type": {
2039
+ "text": "string | null"
2040
+ },
2041
+ "default": "null"
2042
+ },
2043
+ {
2044
+ "kind": "method",
2045
+ "name": "resetFormControl",
2046
+ "return": {
2047
+ "type": {
2048
+ "text": "void"
2049
+ }
2050
+ },
2051
+ "type": {
2052
+ "text": "resetFormControl() => void"
2053
+ }
2054
+ },
2013
2055
  {
2014
2056
  "kind": "method",
2015
2057
  "name": "handleKeyDown",
@@ -2410,6 +2452,27 @@
2410
2452
  },
2411
2453
  "description": "Function to format value when the input field.\n\nOnly active when the input field does not have focus,\nsimilar to the accessible input masking example from Filament Group\n\nhttps://css-tricks.com/input-masking/\nhttps://filamentgroup.github.io/politespace/demo/demo.html"
2412
2454
  },
2455
+ {
2456
+ "kind": "field",
2457
+ "name": "#initialValue",
2458
+ "privacy": "private",
2459
+ "type": {
2460
+ "text": "string | null"
2461
+ },
2462
+ "default": "null"
2463
+ },
2464
+ {
2465
+ "kind": "method",
2466
+ "name": "resetFormControl",
2467
+ "return": {
2468
+ "type": {
2469
+ "text": "void"
2470
+ }
2471
+ },
2472
+ "type": {
2473
+ "text": "resetFormControl() => void"
2474
+ }
2475
+ },
2413
2476
  {
2414
2477
  "kind": "method",
2415
2478
  "name": "handler",
@@ -3426,6 +3489,27 @@
3426
3489
  "attribute": "name",
3427
3490
  "reflects": true
3428
3491
  },
3492
+ {
3493
+ "kind": "field",
3494
+ "name": "#initialValue",
3495
+ "privacy": "private",
3496
+ "type": {
3497
+ "text": "string | null"
3498
+ },
3499
+ "default": "null"
3500
+ },
3501
+ {
3502
+ "kind": "method",
3503
+ "name": "resetFormControl",
3504
+ "return": {
3505
+ "type": {
3506
+ "text": "void"
3507
+ }
3508
+ },
3509
+ "type": {
3510
+ "text": "resetFormControl() => void"
3511
+ }
3512
+ },
3429
3513
  {
3430
3514
  "kind": "field",
3431
3515
  "name": "_listboxId",
@@ -3780,6 +3864,12 @@
3780
3864
  "fieldName": "name"
3781
3865
  }
3782
3866
  ],
3867
+ "mixins": [
3868
+ {
3869
+ "name": "FormControlMixin",
3870
+ "package": "@open-wc/form-control"
3871
+ }
3872
+ ],
3783
3873
  "superclass": {
3784
3874
  "name": "LitElement",
3785
3875
  "package": "lit"
@@ -3930,6 +4020,15 @@
3930
4020
  "name": "month",
3931
4021
  "readonly": true
3932
4022
  },
4023
+ {
4024
+ "kind": "field",
4025
+ "name": "#initialValue",
4026
+ "privacy": "private",
4027
+ "type": {
4028
+ "text": "string | null"
4029
+ },
4030
+ "default": "null"
4031
+ },
3933
4032
  {
3934
4033
  "kind": "field",
3935
4034
  "name": "weeks",
@@ -3985,6 +4084,18 @@
3985
4084
  "text": "HTMLTableCellElement"
3986
4085
  }
3987
4086
  },
4087
+ {
4088
+ "kind": "method",
4089
+ "name": "resetFormControl",
4090
+ "return": {
4091
+ "type": {
4092
+ "text": "void"
4093
+ }
4094
+ },
4095
+ "type": {
4096
+ "text": "resetFormControl() => void"
4097
+ }
4098
+ },
3988
4099
  {
3989
4100
  "kind": "method",
3990
4101
  "name": "#toggleCalendarOpen",
@@ -4625,6 +4736,9 @@
4625
4736
  "type": {
4626
4737
  "text": "void"
4627
4738
  }
4739
+ },
4740
+ "type": {
4741
+ "text": "setValue() => void"
4628
4742
  }
4629
4743
  },
4630
4744
  {
@@ -4682,7 +4796,11 @@
4682
4796
  "superclass": {
4683
4797
  "name": "BaseFormAssociatedElement",
4684
4798
  "module": "/packages/radio/form-associated-element"
4685
- }
4799
+ },
4800
+ "tagName": "w-radio",
4801
+ "customElement": true,
4802
+ "modulePath": "packages/radio/radio.ts",
4803
+ "definitionPath": "packages/radio/radio.ts"
4686
4804
  }
4687
4805
  ],
4688
4806
  "exports": [
@@ -4693,6 +4811,14 @@
4693
4811
  "name": "WRadio",
4694
4812
  "module": "packages/radio/radio.ts"
4695
4813
  }
4814
+ },
4815
+ {
4816
+ "kind": "custom-element-definition",
4817
+ "name": "w-radio",
4818
+ "declaration": {
4819
+ "name": "WRadio",
4820
+ "module": "packages/radio/radio.ts"
4821
+ }
4696
4822
  }
4697
4823
  ]
4698
4824
  },
@@ -4892,7 +5018,10 @@
4892
5018
  "text": "Parameters<BaseFormAssociatedElement['formResetCallback']>"
4893
5019
  }
4894
5020
  }
4895
- ]
5021
+ ],
5022
+ "type": {
5023
+ "text": "formResetCallback(args: Parameters<BaseFormAssociatedElement['formResetCallback']>) => void"
5024
+ }
4896
5025
  },
4897
5026
  {
4898
5027
  "kind": "field",
@@ -4940,7 +5069,10 @@
4940
5069
  }
4941
5070
  }
4942
5071
  ],
4943
- "description": "Sets focus on the radio group."
5072
+ "description": "Sets focus on the radio group.",
5073
+ "type": {
5074
+ "text": "focus(options?: FocusOptions) => void"
5075
+ }
4944
5076
  }
4945
5077
  ],
4946
5078
  "events": [
@@ -5051,7 +5183,11 @@
5051
5183
  "superclass": {
5052
5184
  "name": "BaseFormAssociatedElement",
5053
5185
  "module": "/packages/radio/form-associated-element"
5054
- }
5186
+ },
5187
+ "tagName": "w-radio-group",
5188
+ "customElement": true,
5189
+ "modulePath": "packages/radio/radio-group.ts",
5190
+ "definitionPath": "packages/radio/radio-group.ts"
5055
5191
  }
5056
5192
  ],
5057
5193
  "exports": [
@@ -5062,6 +5198,14 @@
5062
5198
  "name": "WRadioGroup",
5063
5199
  "module": "packages/radio/radio-group.ts"
5064
5200
  }
5201
+ },
5202
+ {
5203
+ "kind": "custom-element-definition",
5204
+ "name": "w-radio-group",
5205
+ "declaration": {
5206
+ "name": "WRadioGroup",
5207
+ "module": "packages/radio/radio-group.ts"
5208
+ }
5065
5209
  }
5066
5210
  ]
5067
5211
  },
@@ -5281,28 +5425,46 @@
5281
5425
  },
5282
5426
  {
5283
5427
  "kind": "method",
5284
- "name": "handleDefaultCheckedChange"
5428
+ "name": "handleDefaultCheckedChange",
5429
+ "type": {
5430
+ "text": "handleDefaultCheckedChange() => void"
5431
+ }
5285
5432
  },
5286
5433
  {
5287
5434
  "kind": "method",
5288
- "name": "handleValueOrCheckedChange"
5435
+ "name": "handleValueOrCheckedChange",
5436
+ "type": {
5437
+ "text": "handleValueOrCheckedChange() => void"
5438
+ }
5289
5439
  },
5290
5440
  {
5291
5441
  "kind": "method",
5292
- "name": "handleStateChange"
5442
+ "name": "handleStateChange",
5443
+ "type": {
5444
+ "text": "handleStateChange() => void"
5445
+ }
5293
5446
  },
5294
5447
  {
5295
5448
  "kind": "method",
5296
- "name": "handleDisabledChange"
5449
+ "name": "handleDisabledChange",
5450
+ "type": {
5451
+ "text": "handleDisabledChange() => void"
5452
+ }
5297
5453
  },
5298
5454
  {
5299
5455
  "kind": "method",
5300
- "name": "formResetCallback"
5456
+ "name": "formResetCallback",
5457
+ "type": {
5458
+ "text": "formResetCallback() => void"
5459
+ }
5301
5460
  },
5302
5461
  {
5303
5462
  "kind": "method",
5304
5463
  "name": "click",
5305
- "description": "Simulates a click on the checkbox."
5464
+ "description": "Simulates a click on the checkbox.",
5465
+ "type": {
5466
+ "text": "click() => void"
5467
+ }
5306
5468
  },
5307
5469
  {
5308
5470
  "kind": "method",
@@ -5316,12 +5478,18 @@
5316
5478
  }
5317
5479
  }
5318
5480
  ],
5319
- "description": "Sets focus on the checkbox."
5481
+ "description": "Sets focus on the checkbox.",
5482
+ "type": {
5483
+ "text": "focus(options?: FocusOptions) => void"
5484
+ }
5320
5485
  },
5321
5486
  {
5322
5487
  "kind": "method",
5323
5488
  "name": "blur",
5324
- "description": "Removes focus from the checkbox."
5489
+ "description": "Removes focus from the checkbox.",
5490
+ "type": {
5491
+ "text": "blur() => void"
5492
+ }
5325
5493
  }
5326
5494
  ],
5327
5495
  "events": [
@@ -5424,7 +5592,11 @@
5424
5592
  "superclass": {
5425
5593
  "name": "BaseFormAssociatedElement",
5426
5594
  "module": "/packages/radio/form-associated-element"
5427
- }
5595
+ },
5596
+ "tagName": "w-checkbox",
5597
+ "customElement": true,
5598
+ "modulePath": "packages/checkbox/checkbox.ts",
5599
+ "definitionPath": "packages/checkbox/checkbox.ts"
5428
5600
  }
5429
5601
  ],
5430
5602
  "exports": [
@@ -5435,6 +5607,14 @@
5435
5607
  "name": "WCheckbox",
5436
5608
  "module": "packages/checkbox/checkbox.ts"
5437
5609
  }
5610
+ },
5611
+ {
5612
+ "kind": "custom-element-definition",
5613
+ "name": "w-checkbox",
5614
+ "declaration": {
5615
+ "name": "WCheckbox",
5616
+ "module": "packages/checkbox/checkbox.ts"
5617
+ }
5438
5618
  }
5439
5619
  ]
5440
5620
  },
@@ -5451,8 +5631,10 @@
5451
5631
  "name": "LitElement",
5452
5632
  "package": "lit"
5453
5633
  },
5634
+ "tagName": "w-checkbox-group",
5454
5635
  "customElement": true,
5455
- "modulePath": "packages/checkbox/checkbox-group.ts"
5636
+ "modulePath": "packages/checkbox/checkbox-group.ts",
5637
+ "definitionPath": "packages/checkbox/checkbox-group.ts"
5456
5638
  }
5457
5639
  ],
5458
5640
  "exports": [
@@ -5463,6 +5645,14 @@
5463
5645
  "name": "WCheckboxGroup",
5464
5646
  "module": "packages/checkbox/checkbox-group.ts"
5465
5647
  }
5648
+ },
5649
+ {
5650
+ "kind": "custom-element-definition",
5651
+ "name": "w-checkbox-group",
5652
+ "declaration": {
5653
+ "name": "WCheckboxGroup",
5654
+ "module": "packages/checkbox/checkbox-group.ts"
5655
+ }
5466
5656
  }
5467
5657
  ]
5468
5658
  },
@@ -5628,6 +5818,27 @@
5628
5818
  "text": "WarpTextField"
5629
5819
  }
5630
5820
  },
5821
+ {
5822
+ "kind": "field",
5823
+ "name": "#initialValue",
5824
+ "privacy": "private",
5825
+ "type": {
5826
+ "text": "string | null"
5827
+ },
5828
+ "default": "null"
5829
+ },
5830
+ {
5831
+ "kind": "method",
5832
+ "name": "resetFormControl",
5833
+ "return": {
5834
+ "type": {
5835
+ "text": "void"
5836
+ }
5837
+ },
5838
+ "type": {
5839
+ "text": "resetFormControl() => void"
5840
+ }
5841
+ },
5631
5842
  {
5632
5843
  "kind": "method",
5633
5844
  "name": "#showTooltip",
@@ -6255,12 +6466,6 @@
6255
6466
  "fieldName": "suffix"
6256
6467
  }
6257
6468
  ],
6258
- "mixins": [
6259
- {
6260
- "name": "FormControlMixin",
6261
- "package": "@open-wc/form-control"
6262
- }
6263
- ],
6264
6469
  "superclass": {
6265
6470
  "name": "LitElement",
6266
6471
  "package": "lit"
@@ -6483,14 +6688,34 @@
6483
6688
  "description": "",
6484
6689
  "name": "WarpSwitch",
6485
6690
  "members": [
6691
+ {
6692
+ "kind": "field",
6693
+ "name": "name",
6694
+ "type": {
6695
+ "text": "string"
6696
+ },
6697
+ "default": "''",
6698
+ "attribute": "name",
6699
+ "reflects": true
6700
+ },
6486
6701
  {
6487
6702
  "kind": "field",
6488
6703
  "name": "value",
6704
+ "type": {
6705
+ "text": "string"
6706
+ },
6707
+ "default": "''",
6708
+ "attribute": "value",
6709
+ "reflects": true
6710
+ },
6711
+ {
6712
+ "kind": "field",
6713
+ "name": "checked",
6489
6714
  "type": {
6490
6715
  "text": "boolean"
6491
6716
  },
6492
6717
  "default": "false",
6493
- "attribute": "value",
6718
+ "attribute": "checked",
6494
6719
  "reflects": true
6495
6720
  },
6496
6721
  {
@@ -6502,6 +6727,27 @@
6502
6727
  "default": "false",
6503
6728
  "attribute": "disabled",
6504
6729
  "reflects": true
6730
+ },
6731
+ {
6732
+ "kind": "field",
6733
+ "name": "#initialState",
6734
+ "privacy": "private",
6735
+ "type": {
6736
+ "text": "boolean | null"
6737
+ },
6738
+ "default": "null"
6739
+ },
6740
+ {
6741
+ "kind": "method",
6742
+ "name": "resetFormControl",
6743
+ "return": {
6744
+ "type": {
6745
+ "text": "void"
6746
+ }
6747
+ },
6748
+ "type": {
6749
+ "text": "resetFormControl() => void"
6750
+ }
6505
6751
  }
6506
6752
  ],
6507
6753
  "events": [
@@ -6513,13 +6759,29 @@
6513
6759
  }
6514
6760
  ],
6515
6761
  "attributes": [
6762
+ {
6763
+ "name": "name",
6764
+ "type": {
6765
+ "text": "string"
6766
+ },
6767
+ "default": "''",
6768
+ "fieldName": "name"
6769
+ },
6516
6770
  {
6517
6771
  "name": "value",
6772
+ "type": {
6773
+ "text": "string"
6774
+ },
6775
+ "default": "''",
6776
+ "fieldName": "value"
6777
+ },
6778
+ {
6779
+ "name": "checked",
6518
6780
  "type": {
6519
6781
  "text": "boolean"
6520
6782
  },
6521
6783
  "default": "false",
6522
- "fieldName": "value"
6784
+ "fieldName": "checked"
6523
6785
  },
6524
6786
  {
6525
6787
  "name": "disabled",
@@ -6530,6 +6792,12 @@
6530
6792
  "fieldName": "disabled"
6531
6793
  }
6532
6794
  ],
6795
+ "mixins": [
6796
+ {
6797
+ "name": "FormControlMixin",
6798
+ "package": "@open-wc/form-control"
6799
+ }
6800
+ ],
6533
6801
  "superclass": {
6534
6802
  "name": "LitElement",
6535
6803
  "package": "lit"
@@ -7022,6 +7290,27 @@
7022
7290
  "kind": "field",
7023
7291
  "name": "maxHeight"
7024
7292
  },
7293
+ {
7294
+ "kind": "field",
7295
+ "name": "#initialValue",
7296
+ "privacy": "private",
7297
+ "type": {
7298
+ "text": "string | null"
7299
+ },
7300
+ "default": "null"
7301
+ },
7302
+ {
7303
+ "kind": "method",
7304
+ "name": "resetFormControl",
7305
+ "return": {
7306
+ "type": {
7307
+ "text": "void"
7308
+ }
7309
+ },
7310
+ "type": {
7311
+ "text": "resetFormControl() => void"
7312
+ }
7313
+ },
7025
7314
  {
7026
7315
  "kind": "method",
7027
7316
  "name": "handler",