@warp-ds/elements 2.3.0-next.19 → 2.3.0-next.20

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" | "helpText" | "readOnly" | "readonly" | "size" | "max" | "min" | "minLength" | "maxLength" | "placeholder" | "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" | "step" | "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.18",
4
+ "version": "2.3.0-next.19",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -609,7 +609,8 @@
609
609
  "value": { "type": "string", "default": "'text'" }
610
610
  },
611
611
  { "name": "value", "value": { "type": "string" } },
612
- { "name": "name", "value": { "type": "string" } }
612
+ { "name": "name", "value": { "type": "string" } },
613
+ { "name": "step", "value": { "type": "number" } }
613
614
  ],
614
615
  "events": [],
615
616
  "js": {
@@ -632,6 +633,7 @@
632
633
  { "name": "type", "type": "string" },
633
634
  { "name": "value", "type": "string" },
634
635
  { "name": "name", "type": "string" },
636
+ { "name": "step", "type": "number" },
635
637
  {
636
638
  "name": "formatter",
637
639
  "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",
@@ -1102,7 +1104,10 @@
1102
1104
  { "name": "name", "value": { "type": "string" } },
1103
1105
  { "name": "value", "value": { "type": "string" } },
1104
1106
  { "name": "disabled", "value": { "type": "boolean" } },
1105
- { "name": "invalid", "value": { "type": "boolean" } }
1107
+ {
1108
+ "name": "invalid",
1109
+ "value": { "type": "boolean", "default": "false" }
1110
+ }
1106
1111
  ],
1107
1112
  "events": [{ "name": "slidervalidity", "type": "CustomEvent" }],
1108
1113
  "js": {
@@ -1188,8 +1193,9 @@
1188
1193
  "name": "allow-values-outside-range",
1189
1194
  "value": { "type": "boolean", "default": "false" }
1190
1195
  },
1196
+ { "name": "error", "value": { "type": "string", "default": "''" } },
1191
1197
  {
1192
- "name": "helpText",
1198
+ "name": "help-text",
1193
1199
  "value": { "type": "string", "default": "''" }
1194
1200
  },
1195
1201
  {
@@ -1212,7 +1218,7 @@
1212
1218
  {
1213
1219
  "name": "suffix",
1214
1220
  "description": "Suffix used in text input fields and for the min and max values of the slider.",
1215
- "value": { "type": "string" }
1221
+ "value": { "type": "string", "default": "''" }
1216
1222
  }
1217
1223
  ],
1218
1224
  "slots": [
@@ -1247,6 +1253,7 @@
1247
1253
  },
1248
1254
  { "name": "disabled", "type": "boolean" },
1249
1255
  { "name": "allowValuesOutsideRange", "type": "boolean" },
1256
+ { "name": "error", "type": "string" },
1250
1257
  { "name": "helpText", "type": "string" },
1251
1258
  { "name": "invalid", "type": "boolean" },
1252
1259
  {
@@ -1272,8 +1279,12 @@
1272
1279
  "description": "Function to format the to- and from labels and value in the slider thumb tooltip.",
1273
1280
  "type": "(value: string, type: 'to' | 'from') => string"
1274
1281
  },
1282
+ { "name": "_invalidMessage", "type": "string" },
1283
+ { "name": "_hasInternalError", "type": "boolean" },
1275
1284
  { "name": "edgeMin" },
1276
- { "name": "edgeMax" }
1285
+ { "name": "edgeMax" },
1286
+ { "name": "componentHasError", "type": "boolean" },
1287
+ { "name": "errorText", "type": "string" }
1277
1288
  ],
1278
1289
  "events": []
1279
1290
  }
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.19",
4
+ "version": "2.3.0-next.20",
5
5
  "packageManager": "pnpm@10.20.0",
6
6
  "description": "Custom elements for Warp",
7
7
  "exports": {