@warp-ds/elements 2.3.0-next.10 → 2.3.0-next.12

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.
@@ -3,7 +3,7 @@ import { StoryObj } from '@storybook/react';
3
3
  import { TextField } from './react';
4
4
  declare const _default: {
5
5
  title: string;
6
- render(args: Omit<React.HTMLAttributes<import(".").WarpTextField>, "label" | "onblur" | "onchange" | "onfocus" | "oninput" | "onFocus" | "onBlur" | "onChange" | "onInput" | "render" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "form" | "mask" | "pattern" | "disabled" | "name" | "type" | "value" | "updated" | "validationTarget" | "internals" | "showError" | "validationMessage" | "validity" | "validationComplete" | "checkValidity" | "formResetCallback" | "resetFormControl" | "valueChangedCallback" | "validityCallback" | "validationMessageCallback" | "setValue" | "shouldFormValueUpdate" | "invalid" | "readOnly" | "helpText" | "size" | "max" | "min" | "minLength" | "maxLength" | "placeholder" | "readonly" | "required" | "formatter" | "_hasPrefix" | "_hasSuffix" | "_inputstyles" | "_helptextstyles" | "_label" | "_helpId" | "_id" | "_error" | "handler" | "prefixSlotChange" | "suffixSlotChange"> & {
6
+ render(args: Omit<React.HTMLAttributes<import(".").WarpTextField>, "label" | "onblur" | "onchange" | "onfocus" | "oninput" | "onFocus" | "onBlur" | "onChange" | "onInput" | "render" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "form" | "mask" | "pattern" | "disabled" | "name" | "type" | "value" | "updated" | "validationTarget" | "internals" | "showError" | "validationMessage" | "validity" | "validationComplete" | "checkValidity" | "formResetCallback" | "resetFormControl" | "valueChangedCallback" | "validityCallback" | "validationMessageCallback" | "setValue" | "shouldFormValueUpdate" | "invalid" | "helpText" | "readOnly" | "readonly" | "size" | "max" | "min" | "minLength" | "maxLength" | "placeholder" | "required" | "formatter" | "_hasPrefix" | "_hasSuffix" | "_inputstyles" | "_helptextstyles" | "_label" | "_helpId" | "_id" | "_error" | "handler" | "prefixSlotChange" | "suffixSlotChange"> & {
7
7
  onBlur?: (e: Event) => void;
8
8
  onblur?: (e: Event) => void;
9
9
  onChange?: (e: Event) => void;
@@ -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.3.0-next.9",
4
+ "version": "2.3.0-next.11",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -464,22 +464,32 @@
464
464
  "attributes": [
465
465
  {
466
466
  "name": "auto-focus",
467
+ "description": "Whether the element should receive focus on render.",
468
+ "value": { "type": "boolean" }
469
+ },
470
+ {
471
+ "name": "autofocus",
467
472
  "description": "Whether the element should receive focus on render",
468
473
  "value": { "type": "boolean" }
469
474
  },
475
+ {
476
+ "name": "help-text",
477
+ "description": "The content displayed as the help text. Paired with `invalid` to show the text as a validation error.",
478
+ "value": { "type": "string" }
479
+ },
470
480
  {
471
481
  "name": "invalid",
472
- "description": "Renders the field in an invalid state. Often paired with `hint` to provide feedback about the error",
482
+ "description": "Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error.",
473
483
  "value": { "type": "boolean" }
474
484
  },
475
485
  {
476
486
  "name": "always",
477
- "description": "Whether to always show a hint",
487
+ "description": "Whether to always show a hint.",
478
488
  "value": { "type": "boolean" }
479
489
  },
480
490
  {
481
491
  "name": "hint",
482
- "description": "The content displayed as the help text",
492
+ "description": "The content displayed as the help text.",
483
493
  "value": { "type": "string" }
484
494
  },
485
495
  {
@@ -502,6 +512,11 @@
502
512
  "description": "Renders the field in a readonly state.",
503
513
  "value": { "type": "boolean" }
504
514
  },
515
+ {
516
+ "name": "readonly",
517
+ "description": "Renders the field in a readonly state.",
518
+ "value": { "type": "boolean" }
519
+ },
505
520
  { "name": "name", "value": { "type": "string" } },
506
521
  { "name": "value", "value": { "type": "string" } }
507
522
  ],
@@ -510,22 +525,32 @@
510
525
  "properties": [
511
526
  {
512
527
  "name": "autoFocus",
528
+ "description": "Whether the element should receive focus on render.",
529
+ "type": "boolean"
530
+ },
531
+ {
532
+ "name": "autofocus",
513
533
  "description": "Whether the element should receive focus on render",
514
534
  "type": "boolean"
515
535
  },
536
+ {
537
+ "name": "helpText",
538
+ "description": "The content displayed as the help text. Paired with `invalid` to show the text as a validation error.",
539
+ "type": "string"
540
+ },
516
541
  {
517
542
  "name": "invalid",
518
- "description": "Renders the field in an invalid state. Often paired with `hint` to provide feedback about the error",
543
+ "description": "Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error.",
519
544
  "type": "boolean"
520
545
  },
521
546
  {
522
547
  "name": "always",
523
- "description": "Whether to always show a hint",
548
+ "description": "Whether to always show a hint.",
524
549
  "type": "boolean"
525
550
  },
526
551
  {
527
552
  "name": "hint",
528
- "description": "The content displayed as the help text",
553
+ "description": "The content displayed as the help text.",
529
554
  "type": "string"
530
555
  },
531
556
  {
@@ -548,6 +573,11 @@
548
573
  "description": "Renders the field in a readonly state.",
549
574
  "type": "boolean"
550
575
  },
576
+ {
577
+ "name": "readonly",
578
+ "description": "Renders the field in a readonly state.",
579
+ "type": "boolean"
580
+ },
551
581
  { "name": "name", "type": "string" },
552
582
  { "name": "value", "type": "string" }
553
583
  ],
@@ -1071,7 +1101,8 @@
1071
1101
  { "name": "label", "value": { "type": "string" } },
1072
1102
  { "name": "name", "value": { "type": "string" } },
1073
1103
  { "name": "value", "value": { "type": "string" } },
1074
- { "name": "disabled", "value": { "type": "boolean" } }
1104
+ { "name": "disabled", "value": { "type": "boolean" } },
1105
+ { "name": "invalid", "value": { "type": "boolean" } }
1075
1106
  ],
1076
1107
  "events": [{ "name": "slidervalidity", "type": "CustomEvent" }],
1077
1108
  "js": {
@@ -1082,6 +1113,12 @@
1082
1113
  { "name": "name", "type": "string" },
1083
1114
  { "name": "value", "type": "string" },
1084
1115
  { "name": "disabled", "type": "boolean" },
1116
+ { "name": "invalid", "type": "boolean" },
1117
+ {
1118
+ "name": "allowValuesOutsideRange",
1119
+ "description": "Set by `<w-slider>`",
1120
+ "type": "boolean"
1121
+ },
1085
1122
  {
1086
1123
  "name": "markers",
1087
1124
  "description": "Set by `<w-slider>`",
@@ -1115,10 +1152,20 @@
1115
1152
  {
1116
1153
  "name": "formatter",
1117
1154
  "description": "JS hook to help you format the numeric value how you want.",
1118
- "type": "(value: string) => string"
1155
+ "type": "(value: string, type: 'from' | 'to') => string"
1119
1156
  },
1120
1157
  { "name": "range", "type": "HTMLInputElement" },
1121
- { "name": "textfield", "type": "WarpTextField" }
1158
+ { "name": "textfield", "type": "WarpTextField" },
1159
+ { "name": "boundaryValue", "type": "string" },
1160
+ {
1161
+ "name": "textFieldDisplayValue",
1162
+ "description": "Value to display in the textfield (shows boundary when focused on empty value)"
1163
+ },
1164
+ {
1165
+ "name": "tooltipDisplayValue",
1166
+ "description": "Value to display in the tooltip",
1167
+ "type": "string | number"
1168
+ }
1122
1169
  ],
1123
1170
  "events": [{ "name": "slidervalidity", "type": "CustomEvent" }]
1124
1171
  }
@@ -1137,6 +1184,14 @@
1137
1184
  "name": "disabled",
1138
1185
  "value": { "type": "boolean", "default": "false" }
1139
1186
  },
1187
+ {
1188
+ "name": "allow-values-outside-range",
1189
+ "value": { "type": "boolean", "default": "false" }
1190
+ },
1191
+ {
1192
+ "name": "helpText",
1193
+ "value": { "type": "string", "default": "''" }
1194
+ },
1140
1195
  {
1141
1196
  "name": "invalid",
1142
1197
  "value": { "type": "boolean", "default": "false" }
@@ -1191,6 +1246,8 @@
1191
1246
  "type": "string"
1192
1247
  },
1193
1248
  { "name": "disabled", "type": "boolean" },
1249
+ { "name": "allowValuesOutsideRange", "type": "boolean" },
1250
+ { "name": "helpText", "type": "string" },
1194
1251
  { "name": "invalid", "type": "boolean" },
1195
1252
  {
1196
1253
  "name": "required",
@@ -1213,8 +1270,10 @@
1213
1270
  {
1214
1271
  "name": "formatter",
1215
1272
  "description": "Function to format the to- and from labels and value in the slider thumb tooltip.",
1216
- "type": "(value: string) => string"
1217
- }
1273
+ "type": "(value: string, type: 'to' | 'from') => string"
1274
+ },
1275
+ { "name": "edgeMin" },
1276
+ { "name": "edgeMax" }
1218
1277
  ],
1219
1278
  "events": []
1220
1279
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@warp-ds/elements",
3
3
  "type": "module",
4
- "version": "2.3.0-next.10",
4
+ "version": "2.3.0-next.12",
5
5
  "packageManager": "pnpm@10.20.0",
6
6
  "description": "Custom elements for Warp",
7
7
  "exports": {