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

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@warp-ds/elements",
4
- "version": "2.9.0-next.5",
4
+ "version": "2.9.0-next.6",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -473,78 +473,143 @@
473
473
  },
474
474
  {
475
475
  "name": "w-attention",
476
- "description": "\n---\n",
476
+ "description": "Attention is a versatile component for displaying contextual information and messages. It can be used for a wide range of purposes, such as tooltips, callouts, popovers, and highlights.\n\nThe component is designed to be anchored to a trigger element, providing contextual information related to that element. It supports various placements and styling options to accommodate different use cases and design needs.\n\nNote: attention will soon be split into multiple components (tooltip, callout, popover, highlight) at which time this component will be deprecated. For now, use the `tooltip`, `callout`, `popover`, and `highlight` boolean properties to achieve the desired style and behavior.\n---\n",
477
477
  "doc-url": "",
478
478
  "attributes": [
479
479
  {
480
480
  "name": "show",
481
+ "description": "Controls whether the attention panel is visible.\nSet to `true` to show the attention content and `false` to hide it.",
481
482
  "value": { "type": "boolean", "default": "false" }
482
483
  },
483
484
  {
484
485
  "name": "placement",
486
+ "description": "Preferred placement relative to the trigger element.\nSets the initial direction for positioning, for example `top`, `right`, `bottom`, or `left` variants.",
485
487
  "value": { "type": "Directions", "default": "'bottom'" }
486
488
  },
487
489
  {
488
490
  "name": "tooltip",
491
+ "description": "Renders the component with tooltip styling and behavior.\nUse for compact, non-modal contextual hints anchored to another element.",
489
492
  "value": { "type": "boolean", "default": "false" }
490
493
  },
491
494
  {
492
495
  "name": "callout",
496
+ "description": "Renders the component as an inline callout.\nCallout mode is used for always-in-flow informational content instead of floating overlay behavior.",
493
497
  "value": { "type": "boolean", "default": "false" }
494
498
  },
495
499
  {
496
500
  "name": "popover",
501
+ "description": "Enables native popover behavior for the attention element.\nWhen enabled, the component uses popover semantics and styling suitable for floating surface UI.",
497
502
  "value": { "type": "boolean", "default": "false" }
498
503
  },
499
504
  {
500
505
  "name": "highlight",
506
+ "description": "Renders the component with highlight styling.\nUse highlight mode to visually emphasize important contextual information.",
501
507
  "value": { "type": "boolean", "default": "false" }
502
508
  },
503
509
  {
504
510
  "name": "can-close",
511
+ "description": "Shows a close button inside the attention component.\nAdds an internal dismiss action that lets users close the attention panel.",
505
512
  "value": { "type": "boolean", "default": "false" }
506
513
  },
507
514
  {
508
515
  "name": "no-arrow",
516
+ "description": "Hides the directional arrow of the attention component.\nDisable the arrow when the visual connection to the trigger should not be shown.",
509
517
  "value": { "type": "boolean", "default": "false" }
510
518
  },
511
519
  {
512
520
  "name": "distance",
521
+ "description": "Distance offset between trigger and attention panel.\nDefines the main-axis spacing in pixels from the anchor element.",
513
522
  "value": { "type": "number", "default": "8" }
514
523
  },
515
524
  {
516
525
  "name": "skidding",
526
+ "description": "Cross-axis offset for fine-grained positioning.\nMoves the panel along the cross axis in pixels to adjust alignment with the trigger.",
517
527
  "value": { "type": "number", "default": "0" }
518
528
  },
519
529
  {
520
530
  "name": "flip",
531
+ "description": "Enables automatic flipping when placement has no space.\nAllows the component to choose an alternative side if the preferred placement would overflow.",
521
532
  "value": { "type": "boolean", "default": "false" }
522
533
  },
523
534
  {
524
535
  "name": "cross-axis",
536
+ "description": "Allows overflow checks on the cross axis when flipping.\nUse with `flip` to improve collision handling when space is constrained horizontally or vertically.",
525
537
  "value": { "type": "boolean", "default": "false" }
526
538
  },
527
539
  {
528
540
  "name": "fallback-placements",
529
- "value": { "type": "Directions[]" }
541
+ "description": "Ordered list of fallback placements.\nProvides explicit alternative placements to try when `flip` is enabled and the preferred placement does not fit.",
542
+ "value": { "type": "Directions[]", "default": "[]" }
530
543
  }
531
544
  ],
532
545
  "events": [],
533
546
  "js": {
534
547
  "properties": [
535
- { "name": "show", "type": "boolean" },
536
- { "name": "placement", "type": "Directions" },
537
- { "name": "tooltip", "type": "boolean" },
538
- { "name": "callout", "type": "boolean" },
539
- { "name": "popover", "type": "boolean" },
540
- { "name": "highlight", "type": "boolean" },
541
- { "name": "canClose", "type": "boolean" },
542
- { "name": "noArrow", "type": "boolean" },
543
- { "name": "distance", "type": "number" },
544
- { "name": "skidding", "type": "number" },
545
- { "name": "flip", "type": "boolean" },
546
- { "name": "crossAxis", "type": "boolean" },
547
- { "name": "fallbackPlacements", "type": "Directions[]" },
548
+ {
549
+ "name": "show",
550
+ "description": "Controls whether the attention panel is visible.\nSet to `true` to show the attention content and `false` to hide it.",
551
+ "type": "boolean"
552
+ },
553
+ {
554
+ "name": "placement",
555
+ "description": "Preferred placement relative to the trigger element.\nSets the initial direction for positioning, for example `top`, `right`, `bottom`, or `left` variants.",
556
+ "type": "Directions"
557
+ },
558
+ {
559
+ "name": "tooltip",
560
+ "description": "Renders the component with tooltip styling and behavior.\nUse for compact, non-modal contextual hints anchored to another element.",
561
+ "type": "boolean"
562
+ },
563
+ {
564
+ "name": "callout",
565
+ "description": "Renders the component as an inline callout.\nCallout mode is used for always-in-flow informational content instead of floating overlay behavior.",
566
+ "type": "boolean"
567
+ },
568
+ {
569
+ "name": "popover",
570
+ "description": "Enables native popover behavior for the attention element.\nWhen enabled, the component uses popover semantics and styling suitable for floating surface UI.",
571
+ "type": "boolean"
572
+ },
573
+ {
574
+ "name": "highlight",
575
+ "description": "Renders the component with highlight styling.\nUse highlight mode to visually emphasize important contextual information.",
576
+ "type": "boolean"
577
+ },
578
+ {
579
+ "name": "canClose",
580
+ "description": "Shows a close button inside the attention component.\nAdds an internal dismiss action that lets users close the attention panel.",
581
+ "type": "boolean"
582
+ },
583
+ {
584
+ "name": "noArrow",
585
+ "description": "Hides the directional arrow of the attention component.\nDisable the arrow when the visual connection to the trigger should not be shown.",
586
+ "type": "boolean"
587
+ },
588
+ {
589
+ "name": "distance",
590
+ "description": "Distance offset between trigger and attention panel.\nDefines the main-axis spacing in pixels from the anchor element.",
591
+ "type": "number"
592
+ },
593
+ {
594
+ "name": "skidding",
595
+ "description": "Cross-axis offset for fine-grained positioning.\nMoves the panel along the cross axis in pixels to adjust alignment with the trigger.",
596
+ "type": "number"
597
+ },
598
+ {
599
+ "name": "flip",
600
+ "description": "Enables automatic flipping when placement has no space.\nAllows the component to choose an alternative side if the preferred placement would overflow.",
601
+ "type": "boolean"
602
+ },
603
+ {
604
+ "name": "crossAxis",
605
+ "description": "Allows overflow checks on the cross axis when flipping.\nUse with `flip` to improve collision handling when space is constrained horizontally or vertically.",
606
+ "type": "boolean"
607
+ },
608
+ {
609
+ "name": "fallbackPlacements",
610
+ "description": "Ordered list of fallback placements.\nProvides explicit alternative placements to try when `flip` is enabled and the preferred placement does not fit.",
611
+ "type": "Directions[]"
612
+ },
548
613
  { "name": "_initialPlacement" },
549
614
  { "name": "_actualDirection" }
550
615
  ],
@@ -1944,59 +2009,138 @@
1944
2009
  },
1945
2010
  {
1946
2011
  "name": "w-textarea",
1947
- "description": "A single line text input element.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)\n---\n\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks whether the textarea passes constraint validation\n- **reportValidity(): _boolean_** - Checks validity and shows the browser's validation message if invalid\n- **setCustomValidity(message: _string_): _void_** - Sets a custom validation message. Pass an empty string to clear.",
2012
+ "description": "A multi-line text input with built-in form validation, auto-resizing, and styling support.\n\nThe component automatically handles:\n - Form integration\n - Auto-resizing based on content and row constraints\n - Built-in validation with customizable error messages\n - Accessibility attributes and labeling\n---\n\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks whether the textarea passes constraint validation\n- **reportValidity(): _boolean_** - Checks validity and shows the browser's validation message if invalid\n- **setCustomValidity(message: _string_): _void_** - Sets a custom validation message. Pass an empty string to clear.",
1948
2013
  "doc-url": "",
1949
2014
  "attributes": [
1950
2015
  {
1951
2016
  "name": "disabled",
2017
+ "description": "Keep in mind that using disabled in its current form is an anti-pattern.\n\nThere will always be users who don't understand why an element is disabled, or users who can't even see that it is disabled because of poor lighting conditions or other reasons.\n\nPlease consider more informative alternatives before choosing to use disabled on an element.",
1952
2018
  "value": { "type": "boolean", "default": "false" }
1953
2019
  },
1954
2020
  {
1955
2021
  "name": "invalid",
2022
+ "description": "Mark the form field as invalid.\n\nMake sure to also set a `help-text` to help users fix the validation problem.",
1956
2023
  "value": { "type": "boolean", "default": "false" }
1957
2024
  },
1958
- { "name": "label", "value": { "type": "string" } },
1959
- { "name": "help-text", "value": { "type": "string" } },
1960
- { "name": "maximum-rows", "value": { "type": "number" } },
1961
- { "name": "minimum-rows", "value": { "type": "number" } },
1962
- { "name": "name", "value": { "type": "string" } },
1963
- { "name": "placeholder", "value": { "type": "string" } },
2025
+ {
2026
+ "name": "label",
2027
+ "description": "Either a `label` or an `aria-label` must be provided.",
2028
+ "value": { "type": "string" }
2029
+ },
2030
+ {
2031
+ "name": "help-text",
2032
+ "description": "Use in combination with `invalid` to show as a validation error message,\nor on its own to show a help text.",
2033
+ "value": { "type": "string" }
2034
+ },
2035
+ {
2036
+ "name": "maximum-rows",
2037
+ "description": "Sets the maximum number of text rows before the content starts scrolling.",
2038
+ "value": { "type": "number" }
2039
+ },
2040
+ {
2041
+ "name": "minimum-rows",
2042
+ "description": "Sets the minimum number of text rows the textarea should display",
2043
+ "value": { "type": "number" }
2044
+ },
2045
+ {
2046
+ "name": "name",
2047
+ "description": "The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form",
2048
+ "value": { "type": "string" }
2049
+ },
2050
+ {
2051
+ "name": "placeholder",
2052
+ "description": "Set a text that is shown in the textarea when it doesn't have a value.\n\nPlaceholder text should not be used as a substitute for labeling the element with a visible label.",
2053
+ "value": { "type": "string" }
2054
+ },
1964
2055
  {
1965
2056
  "name": "read-only",
1966
2057
  "value": { "type": "boolean", "default": "false" }
1967
2058
  },
1968
2059
  {
1969
2060
  "name": "readonly",
2061
+ "description": "Whether the input can be selected but not changed by the user",
1970
2062
  "value": { "type": "boolean", "default": "false" }
1971
2063
  },
1972
2064
  {
1973
2065
  "name": "required",
2066
+ "description": "Whether user input is required on the input before form submission",
1974
2067
  "value": { "type": "boolean", "default": "false" }
1975
2068
  },
1976
- { "name": "value", "value": { "type": "string" } },
2069
+ {
2070
+ "name": "value",
2071
+ "description": "Lets you set the current value",
2072
+ "value": { "type": "string" }
2073
+ },
1977
2074
  {
1978
2075
  "name": "optional",
2076
+ "description": "Show an icon behind the label indicating the field is optional",
1979
2077
  "value": { "type": "boolean", "default": "false" }
1980
2078
  }
1981
2079
  ],
1982
2080
  "events": [],
1983
2081
  "js": {
1984
2082
  "properties": [
1985
- { "name": "disabled", "type": "boolean" },
1986
- { "name": "invalid", "type": "boolean" },
1987
- { "name": "label", "type": "string" },
1988
- { "name": "helpText", "type": "string" },
1989
- { "name": "maxRows", "type": "number" },
1990
- { "name": "minRows", "type": "number" },
1991
- { "name": "name", "type": "string" },
1992
- { "name": "placeholder", "type": "string" },
2083
+ {
2084
+ "name": "disabled",
2085
+ "description": "Keep in mind that using disabled in its current form is an anti-pattern.\n\nThere will always be users who don't understand why an element is disabled, or users who can't even see that it is disabled because of poor lighting conditions or other reasons.\n\nPlease consider more informative alternatives before choosing to use disabled on an element.",
2086
+ "type": "boolean"
2087
+ },
2088
+ {
2089
+ "name": "invalid",
2090
+ "description": "Mark the form field as invalid.\n\nMake sure to also set a `help-text` to help users fix the validation problem.",
2091
+ "type": "boolean"
2092
+ },
2093
+ {
2094
+ "name": "label",
2095
+ "description": "Either a `label` or an `aria-label` must be provided.",
2096
+ "type": "string"
2097
+ },
2098
+ {
2099
+ "name": "helpText",
2100
+ "description": "Use in combination with `invalid` to show as a validation error message,\nor on its own to show a help text.",
2101
+ "type": "string"
2102
+ },
2103
+ {
2104
+ "name": "maxRows",
2105
+ "description": "Sets the maximum number of text rows before the content starts scrolling.",
2106
+ "type": "number"
2107
+ },
2108
+ {
2109
+ "name": "minRows",
2110
+ "description": "Sets the minimum number of text rows the textarea should display",
2111
+ "type": "number"
2112
+ },
2113
+ {
2114
+ "name": "name",
2115
+ "description": "The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form",
2116
+ "type": "string"
2117
+ },
2118
+ {
2119
+ "name": "placeholder",
2120
+ "description": "Set a text that is shown in the textarea when it doesn't have a value.\n\nPlaceholder text should not be used as a substitute for labeling the element with a visible label.",
2121
+ "type": "string"
2122
+ },
1993
2123
  { "name": "readOnly", "type": "boolean" },
1994
- { "name": "readonly", "type": "boolean" },
1995
- { "name": "required", "type": "boolean" },
1996
- { "name": "value", "type": "string" },
1997
- { "name": "optional", "type": "boolean" },
1998
- { "name": "minHeight" },
1999
- { "name": "maxHeight" },
2124
+ {
2125
+ "name": "readonly",
2126
+ "description": "Whether the input can be selected but not changed by the user",
2127
+ "type": "boolean"
2128
+ },
2129
+ {
2130
+ "name": "required",
2131
+ "description": "Whether user input is required on the input before form submission",
2132
+ "type": "boolean"
2133
+ },
2134
+ {
2135
+ "name": "value",
2136
+ "description": "Lets you set the current value",
2137
+ "type": "string"
2138
+ },
2139
+ {
2140
+ "name": "optional",
2141
+ "description": "Show an icon behind the label indicating the field is optional",
2142
+ "type": "boolean"
2143
+ },
2000
2144
  {
2001
2145
  "name": "validationMessage",
2002
2146
  "description": "Returns the validation message if the textarea is invalid, otherwise an empty string",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@warp-ds/elements",
3
3
  "type": "module",
4
- "version": "2.9.0-next.6",
4
+ "version": "2.9.0",
5
5
  "packageManager": "pnpm@10.33.0",
6
6
  "description": "Custom elements for Warp",
7
7
  "exports": {
@@ -344,7 +344,6 @@
344
344
  "@warp-ds/css": "2.1.1",
345
345
  "@warp-ds/uno": "2.1.0",
346
346
  "@wc-toolkit/cem-validator": "^1.0.3",
347
- "@wc-toolkit/jsdoc-tags": "^1.2.0",
348
347
  "@wc-toolkit/jsx-types": "^1.4.2",
349
348
  "@wc-toolkit/storybook-helpers": "^10.0.0",
350
349
  "@wc-toolkit/type-parser": "^1.2.0",