@warp-ds/elements 2.9.1-next.6 → 2.9.2-next.1

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 +72 -226
  2. package/dist/docs/radio/accessibility.md +1 -0
  3. package/dist/docs/radio/api.md +57 -0
  4. package/dist/docs/radio/examples.md +1 -0
  5. package/dist/docs/radio/radio.md +69 -0
  6. package/dist/docs/radio/usage.md +1 -0
  7. package/dist/docs/radio-group/accessibility.md +1 -0
  8. package/dist/docs/radio-group/api.md +69 -0
  9. package/dist/docs/radio-group/examples.md +68 -0
  10. package/dist/docs/radio-group/radio-group.md +311 -0
  11. package/dist/docs/radio-group/styling.md +118 -0
  12. package/dist/docs/radio-group/usage.md +44 -0
  13. package/dist/docs/select/accessibility.md +2 -0
  14. package/dist/docs/select/api.md +20 -16
  15. package/dist/docs/select/examples.md +116 -0
  16. package/dist/docs/select/select.md +168 -18
  17. package/dist/docs/select/usage.md +30 -0
  18. package/dist/index.d.ts +136 -185
  19. package/dist/packages/radio/radio.d.ts +51 -13
  20. package/dist/packages/radio/radio.js +3 -3
  21. package/dist/packages/radio/radio.js.map +3 -3
  22. package/dist/packages/radio/radio.react.stories.d.ts +1 -1
  23. package/dist/packages/radio/radio.stories.d.ts +2 -2
  24. package/dist/packages/radio/react.d.ts +2 -2
  25. package/dist/packages/radio-group/radio-group.d.ts +43 -5
  26. package/dist/packages/radio-group/radio-group.js +7 -7
  27. package/dist/packages/radio-group/radio-group.js.map +3 -3
  28. package/dist/packages/radio-group/react.d.ts +4 -4
  29. package/dist/packages/select/select.d.ts +32 -48
  30. package/dist/packages/select/select.js.map +2 -2
  31. package/dist/web-types.json +78 -46
  32. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import { WRadioGroup } from './radio-group.js';
3
- export declare const RadioGroup: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.HTMLAttributes<WRadioGroup>, "form" | "label" | "name" | "disabled" | "invalid" | "helpText" | "required" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "onchange" | "oninput" | "updated" | "resetFormControl" | "render" | "validationTarget" | "internals" | "showError" | "validationMessage" | "validity" | "validationComplete" | "checkValidity" | "formResetCallback" | "valueChangedCallback" | "validityCallback" | "validationMessageCallback" | "setValue" | "shouldFormValueUpdate" | "renderOptions" | "onChange" | "onInput" | "reportValidity" | "optional" | "hasInteracted"> & {
2
+ import { WarpRadioGroup } from './radio-group.js';
3
+ export declare const RadioGroup: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.HTMLAttributes<WarpRadioGroup>, "form" | "label" | "name" | "disabled" | "invalid" | "helpText" | "required" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "onchange" | "oninput" | "updated" | "resetFormControl" | "render" | "validationTarget" | "internals" | "showError" | "validationMessage" | "validity" | "validationComplete" | "checkValidity" | "formResetCallback" | "valueChangedCallback" | "validityCallback" | "validationMessageCallback" | "setValue" | "shouldFormValueUpdate" | "renderOptions" | "onChange" | "onInput" | "reportValidity" | "optional" | "hasInteracted"> & {
4
4
  onInput?: (e: Event) => void;
5
5
  oninput?: (e: Event) => void;
6
6
  onChange?: (e: Event) => void;
7
7
  onchange?: (e: Event) => void;
8
- } & Partial<Omit<WRadioGroup, keyof HTMLElement>> & React.RefAttributes<WRadioGroup>, "ref">, "help-text"> & {
8
+ } & Partial<Omit<WarpRadioGroup, keyof HTMLElement>> & React.RefAttributes<WarpRadioGroup>, "ref">, "help-text"> & {
9
9
  helpText?: string;
10
- } & React.RefAttributes<WRadioGroup>>;
10
+ } & React.RefAttributes<WarpRadioGroup>>;
@@ -3,107 +3,91 @@ import '../icon/icon.js';
3
3
  declare const WarpSelect_base: import("@open-wc/form-control").Constructor<import("@open-wc/form-control").FormControlInterface> & typeof LitElement;
4
4
  /**
5
5
  * A dropdown component for selecting a single value.
6
- *
7
- * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-select--docs)
8
6
  */
9
7
  export declare class WarpSelect extends WarpSelect_base {
10
8
  #private;
11
9
  /**
12
10
  * Whether the element should receive focus on render.
11
+ *
13
12
  * @deprecated Use the native `autofocus` attribute instead.
14
-
15
- * @summary
16
- * @description
17
- */
13
+ */
18
14
  autoFocus: boolean;
19
- /** Whether the element should receive focus on render
20
- * @summary
21
- * @description
15
+ /**
16
+ * Whether the element should receive focus on render
22
17
  */
23
18
  autofocus: boolean;
24
19
  /**
25
- * The content displayed as the help text. Paired with `invalid` to show the text as a validation error.
26
-
27
- * @summary
28
- * @description
20
+ * The content displayed as the help text.
21
+ *
22
+ * Paired with `invalid` to show the text as a validation error.
29
23
  */
30
24
  helpText: string;
31
- /** Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error.
32
- * @summary
33
- * @description
25
+ /**
26
+ * Renders the field in an invalid state.
27
+ *
28
+ * Paired with `help-text` to provide feedback about the error.
34
29
  */
35
30
  invalid: boolean;
36
31
  /**
37
32
  * Whether to always show a hint.
33
+ *
38
34
  * @deprecated Use `help-text` instead and only set it if you want to display the help text.
39
-
40
- * @summary
41
- * @description
42
- */
35
+ */
43
36
  always: boolean;
44
37
  /**
45
38
  * The content displayed as the help text.
39
+ *
46
40
  * @deprecated Use `help-text` instead.
47
-
48
- * @summary
49
- * @description
50
- */
41
+ */
51
42
  hint: string;
52
- /** The content to disply as the label
53
- * @summary
54
- * @description
43
+ /**
44
+ * The content to display as the label.
55
45
  */
56
46
  label: string;
57
- /** Whether to show optional text
58
- * @summary
59
- * @description
47
+ /**
48
+ * Whether to show the optional indicator after the label.
60
49
  */
61
50
  optional: boolean;
62
- /** Renders the field in a disabled state.
63
- * @summary
64
- * @description
51
+ /**
52
+ * Renders the field in a disabled state.
65
53
  */
66
54
  disabled: boolean;
67
55
  /**
68
56
  * Renders the field in a readonly state.
57
+ *
69
58
  * @deprecated Use the native readonly attribute instead.
70
-
71
- * @summary
72
- * @description
73
- */
59
+ */
74
60
  readOnly: boolean;
75
- /** Renders the field in a readonly state.
76
- * @summary
77
- * @description
61
+ /**
62
+ * Renders the field in a readonly state.
78
63
  */
79
64
  readonly: boolean;
80
- /** @internal
81
- * @summary
82
- * @description
83
- */
65
+ /** @internal */
84
66
  _options: Array<TemplateResult>;
85
67
  /**
86
- * @summary
87
- * @description
68
+ * The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the select when submitting the form.
88
69
  */
89
70
  name: string;
90
71
  /**
91
- * @summary
92
- * @description
72
+ * Lets you set the current value.
93
73
  */
94
74
  value: string;
95
75
  static styles: import("lit").CSSResult[];
96
76
  constructor();
77
+ /** @internal */
97
78
  resetFormControl(): void;
98
79
  /** @internal */
99
80
  _setValue: (value: string) => void;
100
81
  connectedCallback(): void;
101
82
  disconnectedCallback(): void;
102
83
  firstUpdated(): void;
84
+ /** @internal */
103
85
  formStateRestoreCallback(state: string | File | FormData | null, _reason: 'autocomplete' | 'restore'): void;
104
86
  willUpdate(changedProperties: PropertyValues<this>): void;
105
87
  updated(changedProperties: PropertyValues<this>): void;
88
+ /** @internal */
106
89
  handleKeyDown(event: KeyboardEvent): void;
90
+ /** @internal */
107
91
  onChange(event: Event): void;
108
92
  render(): TemplateResult<1>;
109
93
  }