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

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 { Select } from './react';
4
4
  declare const _default: {
5
5
  title: string;
6
- render(args: Omit<React.HTMLAttributes<import(".").WarpSelect>, "label" | "onchange" | "autoFocus" | "onChange" | "render" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "form" | "disabled" | "name" | "value" | "validationTarget" | "internals" | "showError" | "validationMessage" | "validity" | "validationComplete" | "checkValidity" | "formResetCallback" | "resetFormControl" | "valueChangedCallback" | "validityCallback" | "validationMessageCallback" | "setValue" | "shouldFormValueUpdate" | "invalid" | "always" | "hint" | "optional" | "readOnly" | "_options" | "_setValue" | "handleKeyDown"> & {
6
+ render(args: Omit<React.HTMLAttributes<import(".").WarpSelect>, "label" | "onchange" | "autoFocus" | "onChange" | "render" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "form" | "disabled" | "name" | "value" | "validationTarget" | "internals" | "showError" | "validationMessage" | "validity" | "validationComplete" | "checkValidity" | "formResetCallback" | "resetFormControl" | "valueChangedCallback" | "validityCallback" | "validationMessageCallback" | "setValue" | "shouldFormValueUpdate" | "invalid" | "helpText" | "always" | "hint" | "optional" | "readOnly" | "readonly" | "_options" | "_setValue" | "handleKeyDown"> & {
7
7
  onChange?: (e: Event) => void;
8
8
  onchange?: (e: Event) => void;
9
9
  } & Partial<Omit<import(".").WarpSelect, keyof HTMLElement>> & React.RefAttributes<import(".").WarpSelect>): React.JSX.Element;
@@ -8,7 +8,7 @@ declare const meta: Meta<typeof args>;
8
8
  export default meta;
9
9
  type Story = StoryObj<typeof args>;
10
10
  export declare const Default: Story;
11
- export declare const Hint: Story;
11
+ export declare const HelpText: Story;
12
12
  export declare const Invalid: Story;
13
13
  export declare const Disabled: Story;
14
14
  export declare const ReadOnly: Story;
@@ -29,18 +29,17 @@ export const Default = {
29
29
  label: 'Berries',
30
30
  },
31
31
  };
32
- export const Hint = {
32
+ export const HelpText = {
33
33
  args: {
34
34
  label: 'Berries',
35
- always: true,
36
- hint: 'We assume this is your jam preference'
35
+ 'help-text': 'We assume this is your jam preference'
37
36
  },
38
37
  };
39
38
  export const Invalid = {
40
39
  args: {
41
40
  label: 'Berries',
42
41
  invalid: true,
43
- hint: 'Wrong choice'
42
+ 'help-text': 'Wrong choice'
44
43
  },
45
44
  };
46
45
  export const Disabled = {
@@ -3,7 +3,7 @@ import { StoryObj } from '@storybook/react';
3
3
  import { Textarea } from './react';
4
4
  declare const _default: {
5
5
  title: string;
6
- render(args: Omit<React.HTMLAttributes<import("./textarea").WarpTextarea>, "label" | "onblur" | "onchange" | "onfocus" | "oninput" | "onFocus" | "onBlur" | "onChange" | "onInput" | "render" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "form" | "disabled" | "name" | "value" | "updated" | "validationTarget" | "internals" | "showError" | "validationMessage" | "validity" | "validationComplete" | "checkValidity" | "formResetCallback" | "resetFormControl" | "valueChangedCallback" | "validityCallback" | "validationMessageCallback" | "setValue" | "shouldFormValueUpdate" | "invalid" | "optional" | "readOnly" | "helpText" | "placeholder" | "readonly" | "required" | "_helptextstyles" | "_helpId" | "_id" | "_error" | "handler" | "maxRows" | "minRows" | "minHeight" | "maxHeight" | "_textareaStyles"> & {
6
+ render(args: Omit<React.HTMLAttributes<import("./textarea").WarpTextarea>, "label" | "onblur" | "onchange" | "onfocus" | "oninput" | "onFocus" | "onBlur" | "onChange" | "onInput" | "render" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "form" | "disabled" | "name" | "value" | "updated" | "validationTarget" | "internals" | "showError" | "validationMessage" | "validity" | "validationComplete" | "checkValidity" | "formResetCallback" | "resetFormControl" | "valueChangedCallback" | "validityCallback" | "validationMessageCallback" | "setValue" | "shouldFormValueUpdate" | "invalid" | "helpText" | "optional" | "readOnly" | "readonly" | "placeholder" | "required" | "_helptextstyles" | "_helpId" | "_id" | "_error" | "handler" | "maxRows" | "minRows" | "minHeight" | "maxHeight" | "_textareaStyles"> & {
7
7
  onBlur?: (e: Event) => void;
8
8
  onblur?: (e: Event) => void;
9
9
  onChange?: (e: Event) => void;
@@ -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.10",
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
  ],
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.11",
5
5
  "packageManager": "pnpm@10.20.0",
6
6
  "description": "Custom elements for Warp",
7
7
  "exports": {