@warp-ds/elements 2.8.2-next.5 → 2.9.0-next.1

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 (30) hide show
  1. package/dist/custom-elements.json +79 -6
  2. package/dist/index.d.ts +28 -6
  3. package/dist/packages/attention/attention.js +506 -233
  4. package/dist/packages/attention/attention.js.map +4 -4
  5. package/dist/packages/button/button.d.ts +8 -17
  6. package/dist/packages/button/button.js +494 -221
  7. package/dist/packages/button/button.js.map +4 -4
  8. package/dist/packages/button/button.react.stories.d.ts +1 -1
  9. package/dist/packages/button/styles/w-button.styles.d.ts +1 -0
  10. package/dist/packages/button/styles/w-button.styles.js +282 -0
  11. package/dist/packages/combobox/combobox.hydration.test.js +57 -0
  12. package/dist/packages/combobox/combobox.js +25 -11
  13. package/dist/packages/combobox/combobox.js.map +2 -2
  14. package/dist/packages/datepicker/datepicker.js +8 -15
  15. package/dist/packages/datepicker/datepicker.js.map +2 -2
  16. package/dist/packages/datepicker/styles/w-datepicker.styles.js +3 -9
  17. package/dist/packages/link/link.js +197 -217
  18. package/dist/packages/link/link.js.map +4 -4
  19. package/dist/packages/link/link.test.js +0 -14
  20. package/dist/packages/link/styles/w-link.styles.js +213 -0
  21. package/dist/packages/slider/slider.js +18 -17
  22. package/dist/packages/slider/slider.js.map +3 -3
  23. package/dist/packages/slider/slider.react.stories.js +6 -2
  24. package/dist/packages/slider/slider.stories.js +18 -12
  25. package/dist/packages/slider-thumb/slider-thumb.js +12 -12
  26. package/dist/packages/slider-thumb/slider-thumb.js.map +2 -2
  27. package/dist/web-types.json +27 -11
  28. package/package.json +1 -1
  29. package/dist/packages/link/styles.js +0 -236
  30. /package/dist/packages/link/{styles.d.ts → styles/w-link.styles.d.ts} +0 -0
@@ -591,7 +591,7 @@
591
591
  "attribute": "variant",
592
592
  "reflects": true,
593
593
  "parsedType": {
594
- "text": "'negative' | 'primary' | 'secondary' | 'utility' | 'pill' | 'link'"
594
+ "text": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'quiet' | 'utilityQuiet' | 'overlay' | 'overlayInverted' | 'overlayQuiet' | 'overlayInvertedQuiet' | 'pill' | 'link'"
595
595
  }
596
596
  },
597
597
  {
@@ -601,9 +601,20 @@
601
601
  "text": "boolean"
602
602
  },
603
603
  "default": "false",
604
+ "deprecated": "Use `variant=\"quiet\"` instead",
604
605
  "attribute": "quiet",
605
606
  "reflects": true
606
607
  },
608
+ {
609
+ "kind": "field",
610
+ "name": "iconOnly",
611
+ "type": {
612
+ "text": "boolean"
613
+ },
614
+ "default": "false",
615
+ "attribute": "icon-only",
616
+ "reflects": true
617
+ },
607
618
  {
608
619
  "kind": "field",
609
620
  "name": "small",
@@ -642,6 +653,16 @@
642
653
  "attribute": "target",
643
654
  "reflects": true
644
655
  },
656
+ {
657
+ "kind": "field",
658
+ "name": "disabled",
659
+ "type": {
660
+ "text": "boolean"
661
+ },
662
+ "default": "false",
663
+ "attribute": "disabled",
664
+ "reflects": true
665
+ },
645
666
  {
646
667
  "kind": "field",
647
668
  "name": "rel",
@@ -667,6 +688,7 @@
667
688
  "type": {
668
689
  "text": "string"
669
690
  },
691
+ "deprecated": "This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the appearance of the button.",
670
692
  "attribute": "button-class",
671
693
  "reflects": true
672
694
  },
@@ -740,7 +762,7 @@
740
762
  },
741
763
  "fieldName": "variant",
742
764
  "parsedType": {
743
- "text": "'negative' | 'primary' | 'secondary' | 'utility' | 'pill' | 'link'"
765
+ "text": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'quiet' | 'utilityQuiet' | 'overlay' | 'overlayInverted' | 'overlayQuiet' | 'overlayInvertedQuiet' | 'pill' | 'link'"
744
766
  }
745
767
  },
746
768
  {
@@ -749,8 +771,17 @@
749
771
  "text": "boolean"
750
772
  },
751
773
  "default": "false",
774
+ "deprecated": "Use `variant=\"quiet\"` instead",
752
775
  "fieldName": "quiet"
753
776
  },
777
+ {
778
+ "name": "icon-only",
779
+ "type": {
780
+ "text": "boolean"
781
+ },
782
+ "default": "false",
783
+ "fieldName": "iconOnly"
784
+ },
754
785
  {
755
786
  "name": "small",
756
787
  "type": {
@@ -781,6 +812,14 @@
781
812
  },
782
813
  "fieldName": "target"
783
814
  },
815
+ {
816
+ "name": "disabled",
817
+ "type": {
818
+ "text": "boolean"
819
+ },
820
+ "default": "false",
821
+ "fieldName": "disabled"
822
+ },
784
823
  {
785
824
  "name": "rel",
786
825
  "type": {
@@ -801,6 +840,7 @@
801
840
  "type": {
802
841
  "text": "string"
803
842
  },
843
+ "deprecated": "This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the appearance of the button.",
804
844
  "fieldName": "buttonClass"
805
845
  },
806
846
  {
@@ -2351,6 +2391,7 @@
2351
2391
  "type": {
2352
2392
  "text": "string | undefined"
2353
2393
  },
2394
+ "default": "''",
2354
2395
  "description": "Label above input",
2355
2396
  "attribute": "label",
2356
2397
  "reflects": true
@@ -2361,6 +2402,7 @@
2361
2402
  "type": {
2362
2403
  "text": "string | undefined"
2363
2404
  },
2405
+ "default": "''",
2364
2406
  "description": "Input placeholder",
2365
2407
  "attribute": "placeholder",
2366
2408
  "reflects": true
@@ -2384,7 +2426,8 @@
2384
2426
  },
2385
2427
  "default": "false",
2386
2428
  "description": "Whether the popover opens when focus is on the text field",
2387
- "attribute": "open-on-focus"
2429
+ "attribute": "open-on-focus",
2430
+ "reflects": true
2388
2431
  },
2389
2432
  {
2390
2433
  "kind": "field",
@@ -2394,7 +2437,8 @@
2394
2437
  },
2395
2438
  "default": "true",
2396
2439
  "description": "Select active option on blur",
2397
- "attribute": "select-on-blur"
2440
+ "attribute": "select-on-blur",
2441
+ "reflects": true
2398
2442
  },
2399
2443
  {
2400
2444
  "kind": "field",
@@ -2404,7 +2448,8 @@
2404
2448
  },
2405
2449
  "default": "false",
2406
2450
  "description": "Whether the matching text segments in the options should be highlighted",
2407
- "attribute": "match-text-segments"
2451
+ "attribute": "match-text-segments",
2452
+ "reflects": true
2408
2453
  },
2409
2454
  {
2410
2455
  "kind": "field",
@@ -2414,7 +2459,8 @@
2414
2459
  },
2415
2460
  "default": "false",
2416
2461
  "description": "Disable client-side static filtering",
2417
- "attribute": "disable-static-filtering"
2462
+ "attribute": "disable-static-filtering",
2463
+ "reflects": true
2418
2464
  },
2419
2465
  {
2420
2466
  "kind": "field",
@@ -2433,6 +2479,7 @@
2433
2479
  "type": {
2434
2480
  "text": "string | undefined"
2435
2481
  },
2482
+ "default": "''",
2436
2483
  "description": "The content to display as the help text",
2437
2484
  "attribute": "help-text",
2438
2485
  "reflects": true
@@ -2476,6 +2523,7 @@
2476
2523
  "type": {
2477
2524
  "text": "string | undefined"
2478
2525
  },
2526
+ "default": "''",
2479
2527
  "description": "Name attribute for form submission",
2480
2528
  "attribute": "name",
2481
2529
  "reflects": true
@@ -2486,6 +2534,7 @@
2486
2534
  "type": {
2487
2535
  "text": "string | undefined"
2488
2536
  },
2537
+ "default": "'off'",
2489
2538
  "description": "Autocomplete attribute for the input field",
2490
2539
  "attribute": "autocomplete",
2491
2540
  "reflects": true
@@ -2754,6 +2803,7 @@
2754
2803
  "type": {
2755
2804
  "text": "string | undefined"
2756
2805
  },
2806
+ "default": "''",
2757
2807
  "description": "Label above input",
2758
2808
  "fieldName": "label"
2759
2809
  },
@@ -2762,6 +2812,7 @@
2762
2812
  "type": {
2763
2813
  "text": "string | undefined"
2764
2814
  },
2815
+ "default": "''",
2765
2816
  "description": "Input placeholder",
2766
2817
  "fieldName": "placeholder"
2767
2818
  },
@@ -2824,6 +2875,7 @@
2824
2875
  "type": {
2825
2876
  "text": "string | undefined"
2826
2877
  },
2878
+ "default": "''",
2827
2879
  "description": "The content to display as the help text",
2828
2880
  "fieldName": "helpText"
2829
2881
  },
@@ -2859,6 +2911,7 @@
2859
2911
  "type": {
2860
2912
  "text": "string | undefined"
2861
2913
  },
2914
+ "default": "''",
2862
2915
  "description": "Name attribute for form submission",
2863
2916
  "fieldName": "name"
2864
2917
  },
@@ -2867,6 +2920,7 @@
2867
2920
  "type": {
2868
2921
  "text": "string | undefined"
2869
2922
  },
2923
+ "default": "'off'",
2870
2924
  "description": "Autocomplete attribute for the input field",
2871
2925
  "fieldName": "autocomplete"
2872
2926
  }
@@ -6448,6 +6502,12 @@
6448
6502
  }
6449
6503
  ],
6450
6504
  "events": [
6505
+ {
6506
+ "name": "thumbreset",
6507
+ "type": {
6508
+ "text": "CustomEvent"
6509
+ }
6510
+ },
6451
6511
  {
6452
6512
  "name": "slidervalidity",
6453
6513
  "type": {
@@ -6769,6 +6829,19 @@
6769
6829
  "name": "edgeMax",
6770
6830
  "readonly": true
6771
6831
  },
6832
+ {
6833
+ "kind": "method",
6834
+ "name": "#onThumbReset",
6835
+ "privacy": "private",
6836
+ "parameters": [
6837
+ {
6838
+ "name": "e",
6839
+ "type": {
6840
+ "text": "CustomEvent"
6841
+ }
6842
+ }
6843
+ ]
6844
+ },
6772
6845
  {
6773
6846
  "kind": "method",
6774
6847
  "name": "#onInput",
package/dist/index.d.ts CHANGED
@@ -245,9 +245,13 @@ export type WarpButtonProps = {
245
245
  autofocus?: WarpButton["autofocus"];
246
246
  /** */
247
247
  variant?: WarpButton["variant"];
248
- /** */
248
+ /** @deprecated Use `variant="quiet"` instead */
249
249
  quiet?: WarpButton["quiet"];
250
250
  /** */
251
+ "icon-only"?: WarpButton["iconOnly"];
252
+ /** */
253
+ iconOnly?: WarpButton["iconOnly"];
254
+ /** */
251
255
  small?: WarpButton["small"];
252
256
  /** */
253
257
  loading?: WarpButton["loading"];
@@ -256,14 +260,16 @@ export type WarpButtonProps = {
256
260
  /** */
257
261
  target?: WarpButton["target"];
258
262
  /** */
263
+ disabled?: WarpButton["disabled"];
264
+ /** */
259
265
  rel?: WarpButton["rel"];
260
266
  /** */
261
267
  "full-width"?: WarpButton["fullWidth"];
262
268
  /** */
263
269
  fullWidth?: WarpButton["fullWidth"];
264
- /** */
270
+ /** @deprecated This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the appearance of the button. */
265
271
  "button-class"?: WarpButton["buttonClass"];
266
- /** */
272
+ /** @deprecated This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the appearance of the button. */
267
273
  buttonClass?: WarpButton["buttonClass"];
268
274
  /** */
269
275
  name?: WarpButton["name"];
@@ -280,9 +286,13 @@ export type WarpButtonSolidJsProps = {
280
286
  "prop:autofocus"?: WarpButton["autofocus"];
281
287
  /** */
282
288
  "prop:variant"?: WarpButton["variant"];
283
- /** */
289
+ /** @deprecated Use `variant="quiet"` instead */
284
290
  "prop:quiet"?: WarpButton["quiet"];
285
291
  /** */
292
+ "bool:icon-only"?: WarpButton["iconOnly"];
293
+ /** */
294
+ "prop:iconOnly"?: WarpButton["iconOnly"];
295
+ /** */
286
296
  "prop:small"?: WarpButton["small"];
287
297
  /** */
288
298
  "prop:loading"?: WarpButton["loading"];
@@ -291,14 +301,16 @@ export type WarpButtonSolidJsProps = {
291
301
  /** */
292
302
  "prop:target"?: WarpButton["target"];
293
303
  /** */
304
+ "prop:disabled"?: WarpButton["disabled"];
305
+ /** */
294
306
  "prop:rel"?: WarpButton["rel"];
295
307
  /** */
296
308
  "bool:full-width"?: WarpButton["fullWidth"];
297
309
  /** */
298
310
  "prop:fullWidth"?: WarpButton["fullWidth"];
299
- /** */
311
+ /** @deprecated This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the appearance of the button. */
300
312
  "attr:button-class"?: WarpButton["buttonClass"];
301
- /** */
313
+ /** @deprecated This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the appearance of the button. */
302
314
  "prop:buttonClass"?: WarpButton["buttonClass"];
303
315
  /** */
304
316
  "prop:name"?: WarpButton["name"];
@@ -1427,6 +1439,8 @@ export type WarpSliderThumbProps = {
1427
1439
  /** */
1428
1440
  textfield?: WarpSliderThumb["textfield"];
1429
1441
 
1442
+ /** */
1443
+ onthumbreset?: (e: CustomEvent) => void;
1430
1444
  /** */
1431
1445
  onslidervalidity?: (e: CustomEvent) => void;
1432
1446
  };
@@ -1453,6 +1467,8 @@ export type WarpSliderThumbSolidJsProps = {
1453
1467
  /** */
1454
1468
  "prop:textfield"?: WarpSliderThumb["textfield"];
1455
1469
  /** */
1470
+ "on:thumbreset"?: (e: CustomEvent) => void;
1471
+ /** */
1456
1472
  "on:slidervalidity"?: (e: CustomEvent) => void;
1457
1473
 
1458
1474
  /** Set the innerHTML of the element */
@@ -1902,10 +1918,12 @@ export type CustomElements = {
1902
1918
  * - `autofocus`: undefined
1903
1919
  * - `variant`: undefined
1904
1920
  * - `quiet`: undefined
1921
+ * - `icon-only`/`iconOnly`: undefined
1905
1922
  * - `small`: undefined
1906
1923
  * - `loading`: undefined
1907
1924
  * - `href`: undefined
1908
1925
  * - `target`: undefined
1926
+ * - `disabled`: undefined
1909
1927
  * - `rel`: undefined
1910
1928
  * - `full-width`/`fullWidth`: undefined
1911
1929
  * - `button-class`/`buttonClass`: undefined
@@ -2555,6 +2573,7 @@ export type CustomElements = {
2555
2573
  *
2556
2574
  * Events that will be emitted by the component.
2557
2575
  *
2576
+ * - `thumbreset`: undefined
2558
2577
  * - `slidervalidity`: undefined
2559
2578
  *
2560
2579
  * ## Methods
@@ -2891,10 +2910,12 @@ export type CustomElementsSolidJs = {
2891
2910
  * - `autofocus`: undefined
2892
2911
  * - `variant`: undefined
2893
2912
  * - `quiet`: undefined
2913
+ * - `icon-only`/`iconOnly`: undefined
2894
2914
  * - `small`: undefined
2895
2915
  * - `loading`: undefined
2896
2916
  * - `href`: undefined
2897
2917
  * - `target`: undefined
2918
+ * - `disabled`: undefined
2898
2919
  * - `rel`: undefined
2899
2920
  * - `full-width`/`fullWidth`: undefined
2900
2921
  * - `button-class`/`buttonClass`: undefined
@@ -3604,6 +3625,7 @@ export type CustomElementsSolidJs = {
3604
3625
  *
3605
3626
  * Events that will be emitted by the component.
3606
3627
  *
3628
+ * - `thumbreset`: undefined
3607
3629
  * - `slidervalidity`: undefined
3608
3630
  *
3609
3631
  * ## Methods