@warp-ds/elements 2.8.2-next.6 → 2.9.0-next.2

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 (32) hide show
  1. package/dist/custom-elements.json +61 -9
  2. package/dist/index.d.ts +28 -8
  3. package/dist/packages/alert/alert.test.js +1 -1
  4. package/dist/packages/attention/attention.d.ts +0 -1
  5. package/dist/packages/attention/attention.js +507 -234
  6. package/dist/packages/attention/attention.js.map +4 -4
  7. package/dist/packages/button/button.d.ts +8 -17
  8. package/dist/packages/button/button.js +494 -221
  9. package/dist/packages/button/button.js.map +4 -4
  10. package/dist/packages/button/button.react.stories.d.ts +1 -1
  11. package/dist/packages/button/styles/w-button.styles.d.ts +1 -0
  12. package/dist/packages/button/styles/w-button.styles.js +282 -0
  13. package/dist/packages/datepicker/DatePicker.test.js +5 -5
  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 +22 -6
  28. package/package.json +20 -22
  29. package/dist/packages/link/styles.js +0 -236
  30. package/dist/packages/utils/index.d.ts +0 -10
  31. package/dist/packages/utils/index.js +0 -37
  32. /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
  {
@@ -1016,13 +1056,6 @@
1016
1056
  "text": "defaultAriaLabel() => void"
1017
1057
  }
1018
1058
  },
1019
- {
1020
- "kind": "method",
1021
- "name": "setAriaLabels",
1022
- "type": {
1023
- "text": "setAriaLabels() => void"
1024
- }
1025
- },
1026
1059
  {
1027
1060
  "kind": "method",
1028
1061
  "name": "close",
@@ -6462,6 +6495,12 @@
6462
6495
  }
6463
6496
  ],
6464
6497
  "events": [
6498
+ {
6499
+ "name": "thumbreset",
6500
+ "type": {
6501
+ "text": "CustomEvent"
6502
+ }
6503
+ },
6465
6504
  {
6466
6505
  "name": "slidervalidity",
6467
6506
  "type": {
@@ -6783,6 +6822,19 @@
6783
6822
  "name": "edgeMax",
6784
6823
  "readonly": true
6785
6824
  },
6825
+ {
6826
+ "kind": "method",
6827
+ "name": "#onThumbReset",
6828
+ "privacy": "private",
6829
+ "parameters": [
6830
+ {
6831
+ "name": "e",
6832
+ "type": {
6833
+ "text": "CustomEvent"
6834
+ }
6835
+ }
6836
+ ]
6837
+ },
6786
6838
  {
6787
6839
  "kind": "method",
6788
6840
  "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
@@ -1952,7 +1970,6 @@ export type CustomElements = {
1952
1970
  * - `pointingAtDirection() => void`: undefined
1953
1971
  * - `activeAttentionType() => void`: undefined
1954
1972
  * - `defaultAriaLabel() => void`: undefined
1955
- * - `setAriaLabels() => void`: undefined
1956
1973
  * - `close() => void`: undefined
1957
1974
  * - `keypressed(e: KeyboardEvent) => void`: undefined
1958
1975
  */
@@ -2555,6 +2572,7 @@ export type CustomElements = {
2555
2572
  *
2556
2573
  * Events that will be emitted by the component.
2557
2574
  *
2575
+ * - `thumbreset`: undefined
2558
2576
  * - `slidervalidity`: undefined
2559
2577
  *
2560
2578
  * ## Methods
@@ -2891,10 +2909,12 @@ export type CustomElementsSolidJs = {
2891
2909
  * - `autofocus`: undefined
2892
2910
  * - `variant`: undefined
2893
2911
  * - `quiet`: undefined
2912
+ * - `icon-only`/`iconOnly`: undefined
2894
2913
  * - `small`: undefined
2895
2914
  * - `loading`: undefined
2896
2915
  * - `href`: undefined
2897
2916
  * - `target`: undefined
2917
+ * - `disabled`: undefined
2898
2918
  * - `rel`: undefined
2899
2919
  * - `full-width`/`fullWidth`: undefined
2900
2920
  * - `button-class`/`buttonClass`: undefined
@@ -2946,7 +2966,6 @@ export type CustomElementsSolidJs = {
2946
2966
  * - `pointingAtDirection() => void`: undefined
2947
2967
  * - `activeAttentionType() => void`: undefined
2948
2968
  * - `defaultAriaLabel() => void`: undefined
2949
- * - `setAriaLabels() => void`: undefined
2950
2969
  * - `close() => void`: undefined
2951
2970
  * - `keypressed(e: KeyboardEvent) => void`: undefined
2952
2971
  */
@@ -3604,6 +3623,7 @@ export type CustomElementsSolidJs = {
3604
3623
  *
3605
3624
  * Events that will be emitted by the component.
3606
3625
  *
3626
+ * - `thumbreset`: undefined
3607
3627
  * - `slidervalidity`: undefined
3608
3628
  *
3609
3629
  * ## Methods
@@ -5,7 +5,7 @@ import './alert.js';
5
5
  test('renders an info', async () => {
6
6
  const page = render(html `<w-alert variant="info" show data-testid="infoMessage">This is information</w-alert>`);
7
7
  // Verify the icon correct icon is rendered
8
- await expect.poll(() => page.getByTestId('infoMessage').element().shadowRoot.querySelector('w-icon')).toBeVisible();
8
+ await expect.poll(() => page.getByTestId('infoMessage').element().shadowRoot?.querySelector('w-icon')).toBeVisible();
9
9
  await expect.element(page.getByTestId('infoMessage')).toBeVisible();
10
10
  await expect.element(page.getByText('This is information')).toBeVisible();
11
11
  });
@@ -58,7 +58,6 @@ declare class WarpAttention extends LitElement {
58
58
  pointingAtDirection(): string;
59
59
  activeAttentionType(): string;
60
60
  defaultAriaLabel(): string;
61
- setAriaLabels(): void;
62
61
  firstUpdated(): void;
63
62
  close(): void;
64
63
  keypressed(e: KeyboardEvent): void;