@webtides/element-library 0.1.0 → 0.1.2

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.
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@webtides/element-library",
4
- "version": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -61,6 +61,45 @@
61
61
  "symbol": "default"
62
62
  }
63
63
  },
64
+ {
65
+ "name": "el-accordion-group",
66
+ "description": "Container that manages multiple `<el-accordion>` children. When `showMultiple` is\n`false`, only one accordion can be open at a time; opening a new accordion closes the\npreviously open one.\n---\n\n\n### **Slots:**\n - _default_ - Default slot for `<el-accordion>` children.",
67
+ "doc-url": "",
68
+ "attributes": [
69
+ {
70
+ "name": "show-multiple",
71
+ "description": "When `false`, only one child accordion can be open at a time; opening a new accordion closes the previously open one. When `true`, multiple accordions can be open simultaneously.",
72
+ "value": {
73
+ "type": "boolean"
74
+ },
75
+ "source": {
76
+ "module": "./src/components/accordion-group/accordion-group.js",
77
+ "symbol": "default"
78
+ }
79
+ }
80
+ ],
81
+ "slots": [
82
+ {
83
+ "name": "",
84
+ "description": "Default slot for `<el-accordion>` children."
85
+ }
86
+ ],
87
+ "events": [],
88
+ "js": {
89
+ "properties": [
90
+ {
91
+ "name": "showMultiple",
92
+ "description": "When `false`, only one child accordion can be open at a time; opening a new accordion closes the previously open one. When `true`, multiple accordions can be open simultaneously.",
93
+ "type": "boolean"
94
+ }
95
+ ],
96
+ "events": []
97
+ },
98
+ "source": {
99
+ "module": "./src/components/accordion-group/accordion-group.js",
100
+ "symbol": "default"
101
+ }
102
+ },
64
103
  {
65
104
  "name": "el-amount-field",
66
105
  "description": "Numeric amount stepper input. Renders a readonly `<input type=\"number\">` flanked by\nincrement (`+`) and decrement (`-`) buttons, with optional `min` and `max` bounds.\nExtends `FormField` and inherits its label, help and validation surface.\n---\n\n\n### **Events:**\n - **input-change** - Fired when the field's `value` changes. `detail` is the new value. Bubbles.\n\n### **Methods:**\n - **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state.\n- **fieldTemplate(): _unknown_** - Subclass extension point. Override to render the actual input element(s).\n\n### **Slots:**\n - **plus** - Replaces the default `+` glyph in the increment button.\n- **minus** - Replaces the default `-` glyph in the decrement button.\n\n### **CSS Parts:**\n - **wrapper** - The outer container around the input and stepper buttons.\n- **button** - Applied to both stepper buttons.\n- **plus** - Applied to the increment button (in addition to `button`).\n- **minus** - Applied to the decrement button (in addition to `button`).\n- **input** - The numeric input element.",
@@ -305,45 +344,6 @@
305
344
  "symbol": "default"
306
345
  }
307
346
  },
308
- {
309
- "name": "el-accordion-group",
310
- "description": "Container that manages multiple `<el-accordion>` children. When `showMultiple` is\n`false`, only one accordion can be open at a time; opening a new accordion closes the\npreviously open one.\n---\n\n\n### **Slots:**\n - _default_ - Default slot for `<el-accordion>` children.",
311
- "doc-url": "",
312
- "attributes": [
313
- {
314
- "name": "show-multiple",
315
- "description": "When `false`, only one child accordion can be open at a time; opening a new accordion closes the previously open one. When `true`, multiple accordions can be open simultaneously.",
316
- "value": {
317
- "type": "boolean"
318
- },
319
- "source": {
320
- "module": "./src/components/accordion-group/accordion-group.js",
321
- "symbol": "default"
322
- }
323
- }
324
- ],
325
- "slots": [
326
- {
327
- "name": "",
328
- "description": "Default slot for `<el-accordion>` children."
329
- }
330
- ],
331
- "events": [],
332
- "js": {
333
- "properties": [
334
- {
335
- "name": "showMultiple",
336
- "description": "When `false`, only one child accordion can be open at a time; opening a new accordion closes the previously open one. When `true`, multiple accordions can be open simultaneously.",
337
- "type": "boolean"
338
- }
339
- ],
340
- "events": []
341
- },
342
- "source": {
343
- "module": "./src/components/accordion-group/accordion-group.js",
344
- "symbol": "default"
345
- }
346
- },
347
347
  {
348
348
  "name": "el-button",
349
349
  "description": "A themeable button that renders a native `<button>` — or an `<a>` when `href` is set — and\ndecorates it with the `--el-*` design tokens. Supports semantic variants, sizes, outline /\npill / circle shapes, an optional dropdown caret and a loading spinner. API modelled on\nShoelace's `<sl-button>`.\n---\n\n\n### **Methods:**\n - **focus(options)** - Focuses the underlying control.\n- **blur()** - Removes focus from the underlying control.\n- **click()** - Simulates a click on the underlying control.\n\n### **Slots:**\n - _default_ - The button's label.\n- **prefix** - A presentational prefix icon or similar element.\n- **suffix** - A presentational suffix icon or similar element.\n\n### **CSS Parts:**\n - **base** - The internal `<button>` / `<a>`. The surface for background, border, radius.\n- **prefix** - Container wrapping the `prefix` slot.\n- **label** - The default-slot label wrapper.\n- **suffix** - Container wrapping the `suffix` slot.\n- **caret** - The dropdown caret, present only while `caret` is `true`.\n- **spinner** - The loading spinner, present only while `loading` is `true`.",
@@ -746,49 +746,6 @@
746
746
  "symbol": "default"
747
747
  }
748
748
  },
749
- {
750
- "name": "el-dropdown",
751
- "description": "Toggleable dropdown menu with `trigger` and `content` slots. Auto-closes on outside\nclick or `Escape`.\n---\n\n\n### **Slots:**\n - **trigger** - Element that opens the dropdown when clicked. Automatically receives the `show-dropdown` attribute.\n- **content** - Dropdown content shown only while `open` is `true`.\n\n### **CSS Parts:**\n - **trigger** - Forwarded onto the `trigger` slot.\n- **panel** - Wrapper around the `content` slot. Surface for background, border, radius and elevation. Only present in the DOM while `open` is `true`.\n- **content** - Forwarded onto the `content` slot.",
752
- "doc-url": "",
753
- "attributes": [
754
- {
755
- "name": "open",
756
- "description": "Whether the dropdown content is visible. Setting to `true` attaches a one-shot outside-click / `Escape` listener that closes the dropdown.",
757
- "value": {
758
- "type": "boolean"
759
- },
760
- "source": {
761
- "module": "./src/components/dropdown/dropdown.js",
762
- "symbol": "default"
763
- }
764
- }
765
- ],
766
- "slots": [
767
- {
768
- "name": "trigger",
769
- "description": "Element that opens the dropdown when clicked. Automatically receives the `show-dropdown` attribute."
770
- },
771
- {
772
- "name": "content",
773
- "description": "Dropdown content shown only while `open` is `true`."
774
- }
775
- ],
776
- "events": [],
777
- "js": {
778
- "properties": [
779
- {
780
- "name": "open",
781
- "description": "Whether the dropdown content is visible. Setting to `true` attaches a one-shot outside-click / `Escape` listener that closes the dropdown.",
782
- "type": "boolean"
783
- }
784
- ],
785
- "events": []
786
- },
787
- "source": {
788
- "module": "./src/components/dropdown/dropdown.js",
789
- "symbol": "default"
790
- }
791
- },
792
749
  {
793
750
  "name": "el-checkbox-field",
794
751
  "description": "Styled checkbox input with a custom checkmark indicator, label, and validation. Extends\n`FormField` and inherits its label / help / error / required surface.\n---\n\n\n### **Events:**\n - **input-change** - Fired when the checked state changes. `detail` is the input's `value`. Bubbles.\n\n### **Methods:**\n - **fieldTemplate(): _unknown_** - Subclass extension point. Override to render the actual input element(s).\n- **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state.",
@@ -1168,6 +1125,49 @@
1168
1125
  "symbol": "default"
1169
1126
  }
1170
1127
  },
1128
+ {
1129
+ "name": "el-dropdown",
1130
+ "description": "Toggleable dropdown menu with `trigger` and `content` slots. Auto-closes on outside\nclick or `Escape`.\n---\n\n\n### **Slots:**\n - **trigger** - Element that opens the dropdown when clicked. Automatically receives the `show-dropdown` attribute.\n- **content** - Dropdown content shown only while `open` is `true`.\n\n### **CSS Parts:**\n - **trigger** - Forwarded onto the `trigger` slot.\n- **panel** - Wrapper around the `content` slot. Surface for background, border, radius and elevation. Only present in the DOM while `open` is `true`.\n- **content** - Forwarded onto the `content` slot.",
1131
+ "doc-url": "",
1132
+ "attributes": [
1133
+ {
1134
+ "name": "open",
1135
+ "description": "Whether the dropdown content is visible. Setting to `true` attaches a one-shot outside-click / `Escape` listener that closes the dropdown.",
1136
+ "value": {
1137
+ "type": "boolean"
1138
+ },
1139
+ "source": {
1140
+ "module": "./src/components/dropdown/dropdown.js",
1141
+ "symbol": "default"
1142
+ }
1143
+ }
1144
+ ],
1145
+ "slots": [
1146
+ {
1147
+ "name": "trigger",
1148
+ "description": "Element that opens the dropdown when clicked. Automatically receives the `show-dropdown` attribute."
1149
+ },
1150
+ {
1151
+ "name": "content",
1152
+ "description": "Dropdown content shown only while `open` is `true`."
1153
+ }
1154
+ ],
1155
+ "events": [],
1156
+ "js": {
1157
+ "properties": [
1158
+ {
1159
+ "name": "open",
1160
+ "description": "Whether the dropdown content is visible. Setting to `true` attaches a one-shot outside-click / `Escape` listener that closes the dropdown.",
1161
+ "type": "boolean"
1162
+ }
1163
+ ],
1164
+ "events": []
1165
+ },
1166
+ "source": {
1167
+ "module": "./src/components/dropdown/dropdown.js",
1168
+ "symbol": "default"
1169
+ }
1170
+ },
1171
1171
  {
1172
1172
  "name": "el-form-field",
1173
1173
  "description": "Base class for form input components. Provides label, help text, error message,\nvalidation and touched-state plumbing. Intended to be extended (`InputField`,\n`CheckboxField`, `TextareaField`, `AmountField`, …); subclasses override\n`fieldTemplate()` to render their actual input.\n---\n\n\n### **Events:**\n - **input-change** - Fired when the field's `value` changes. `detail` is the new value. Bubbles.\n\n### **Methods:**\n - **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state.\n- **fieldTemplate(): _unknown_** - Subclass extension point. Override to render the actual input element(s).",
@@ -1874,8 +1874,8 @@
1874
1874
  }
1875
1875
  },
1876
1876
  {
1877
- "name": "el-radio-field",
1878
- "description": "A single-choice radio group with a custom indicator, label, help text and validation. Renders a\nnative `<fieldset>`/`<legend>` wrapping mutually-exclusive `<input type=\"radio\">`s (so keyboard\nnavigation, grouping and form submission are all native). Extends `FormField` and inherits its\nhelp / error / required / touched-state surface; the `label` becomes the group's `<legend>`.\n---\n\n\n### **Events:**\n - **input-change** - Fired when the selected value changes. `detail` is the newly selected value. Bubbles.\n\n### **Methods:**\n - **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state.",
1877
+ "name": "el-password-field",
1878
+ "description": "A password input with an optional show/hide reveal toggle. Extends `InputField` (and therefore\n`FormField`), inheriting the label / help / error / validation surface; it pins the input `type`\nto `password` and flips it to `text` while revealed.\n---\n\n\n### **Events:**\n - **input-change** - Fired when the input's value changes. `detail` is the new value. Bubbles.\n\n### **Methods:**\n - **togglePasswordVisibility(): _void_** - Toggles between masked (`password`) and revealed (`text`) input.\n- **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state.",
1879
1879
  "doc-url": "",
1880
1880
  "attributes": [
1881
1881
  {
@@ -1884,18 +1884,62 @@
1884
1884
  "type": "string"
1885
1885
  },
1886
1886
  "source": {
1887
- "module": "./src/components/radio-field/radio-field.js",
1887
+ "module": "./src/components/password-field/password-field.js",
1888
1888
  "symbol": "default"
1889
1889
  }
1890
1890
  },
1891
1891
  {
1892
- "name": "options",
1893
- "description": "Options to render. Accepts plain strings (`['Yes', 'No']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label.",
1892
+ "name": "type",
1893
+ "description": "Native `type` attribute of the underlying `<input>` (e.g. `'text'`, `'email'`, `'password'`, `'tel'`, `'url'`).",
1894
1894
  "value": {
1895
- "type": "Array<string | { value: string, label?: string, disabled?: boolean }>"
1895
+ "type": "string"
1896
1896
  },
1897
1897
  "source": {
1898
- "module": "./src/components/radio-field/radio-field.js",
1898
+ "module": "./src/components/password-field/password-field.js",
1899
+ "symbol": "default"
1900
+ }
1901
+ },
1902
+ {
1903
+ "name": "password-toggle",
1904
+ "description": "Whether to render the show/hide reveal button. Default `true`.",
1905
+ "value": {
1906
+ "type": "boolean"
1907
+ },
1908
+ "source": {
1909
+ "module": "./src/components/password-field/password-field.js",
1910
+ "symbol": "default"
1911
+ }
1912
+ },
1913
+ {
1914
+ "name": "password-visible",
1915
+ "description": "Whether the value is currently revealed as plain text. Default `false`.",
1916
+ "value": {
1917
+ "type": "boolean"
1918
+ },
1919
+ "source": {
1920
+ "module": "./src/components/password-field/password-field.js",
1921
+ "symbol": "default"
1922
+ }
1923
+ },
1924
+ {
1925
+ "name": "placeholder",
1926
+ "description": "Placeholder text shown while the input is empty.",
1927
+ "value": {
1928
+ "type": "string"
1929
+ },
1930
+ "source": {
1931
+ "module": "./src/components/password-field/password-field.js",
1932
+ "symbol": "default"
1933
+ }
1934
+ },
1935
+ {
1936
+ "name": "pattern",
1937
+ "description": "Regular expression used as the input's `pattern` attribute. When `false` (the default), the `pattern` attribute is omitted entirely, so the field applies no pattern constraint.",
1938
+ "value": {
1939
+ "type": "string | false"
1940
+ },
1941
+ "source": {
1942
+ "module": "./src/components/password-field/password-field.js",
1899
1943
  "symbol": "default"
1900
1944
  }
1901
1945
  },
@@ -1906,7 +1950,7 @@
1906
1950
  "type": "string"
1907
1951
  },
1908
1952
  "source": {
1909
- "module": "./src/components/radio-field/radio-field.js",
1953
+ "module": "./src/components/password-field/password-field.js",
1910
1954
  "symbol": "default"
1911
1955
  }
1912
1956
  },
@@ -1917,7 +1961,7 @@
1917
1961
  "type": "string | null"
1918
1962
  },
1919
1963
  "source": {
1920
- "module": "./src/components/radio-field/radio-field.js",
1964
+ "module": "./src/components/password-field/password-field.js",
1921
1965
  "symbol": "default"
1922
1966
  }
1923
1967
  },
@@ -1928,7 +1972,7 @@
1928
1972
  "type": "boolean"
1929
1973
  },
1930
1974
  "source": {
1931
- "module": "./src/components/radio-field/radio-field.js",
1975
+ "module": "./src/components/password-field/password-field.js",
1932
1976
  "symbol": "default"
1933
1977
  }
1934
1978
  },
@@ -1939,7 +1983,7 @@
1939
1983
  "type": "boolean"
1940
1984
  },
1941
1985
  "source": {
1942
- "module": "./src/components/radio-field/radio-field.js",
1986
+ "module": "./src/components/password-field/password-field.js",
1943
1987
  "symbol": "default"
1944
1988
  }
1945
1989
  },
@@ -1950,7 +1994,7 @@
1950
1994
  "type": "string"
1951
1995
  },
1952
1996
  "source": {
1953
- "module": "./src/components/radio-field/radio-field.js",
1997
+ "module": "./src/components/password-field/password-field.js",
1954
1998
  "symbol": "default"
1955
1999
  }
1956
2000
  },
@@ -1961,7 +2005,7 @@
1961
2005
  "type": "boolean"
1962
2006
  },
1963
2007
  "source": {
1964
- "module": "./src/components/radio-field/radio-field.js",
2008
+ "module": "./src/components/password-field/password-field.js",
1965
2009
  "symbol": "default"
1966
2010
  }
1967
2011
  },
@@ -1972,7 +2016,7 @@
1972
2016
  "type": "string"
1973
2017
  },
1974
2018
  "source": {
1975
- "module": "./src/components/radio-field/radio-field.js",
2019
+ "module": "./src/components/password-field/password-field.js",
1976
2020
  "symbol": "default"
1977
2021
  }
1978
2022
  },
@@ -1983,7 +2027,7 @@
1983
2027
  "type": "string"
1984
2028
  },
1985
2029
  "source": {
1986
- "module": "./src/components/radio-field/radio-field.js",
2030
+ "module": "./src/components/password-field/password-field.js",
1987
2031
  "symbol": "default"
1988
2032
  }
1989
2033
  },
@@ -1994,7 +2038,7 @@
1994
2038
  "type": "boolean"
1995
2039
  },
1996
2040
  "source": {
1997
- "module": "./src/components/radio-field/radio-field.js",
2041
+ "module": "./src/components/password-field/password-field.js",
1998
2042
  "symbol": "default"
1999
2043
  }
2000
2044
  },
@@ -2005,7 +2049,7 @@
2005
2049
  "type": "boolean"
2006
2050
  },
2007
2051
  "source": {
2008
- "module": "./src/components/radio-field/radio-field.js",
2052
+ "module": "./src/components/password-field/password-field.js",
2009
2053
  "symbol": "default"
2010
2054
  }
2011
2055
  }
@@ -2014,29 +2058,49 @@
2014
2058
  {
2015
2059
  "name": "input-change",
2016
2060
  "type": "CustomEvent<string>",
2017
- "description": "Fired when the selected value changes. `detail` is the newly selected value. Bubbles."
2061
+ "description": "Fired when the input's value changes. `detail` is the new value. Bubbles."
2018
2062
  }
2019
2063
  ],
2020
2064
  "js": {
2021
2065
  "properties": [
2022
2066
  {
2023
- "name": "value",
2024
- "description": "The selected option's value.",
2025
- "type": "string | null"
2067
+ "name": "passwordToggle",
2068
+ "description": "Whether to render the show/hide reveal button. Default `true`.",
2069
+ "type": "boolean"
2026
2070
  },
2027
2071
  {
2028
- "name": "options",
2029
- "description": "Options to render. Accepts plain strings (`['Yes', 'No']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label.",
2030
- "type": "Array<string | { value: string, label?: string, disabled?: boolean }>"
2072
+ "name": "passwordVisible",
2073
+ "description": "Whether the value is currently revealed as plain text. Default `false`.",
2074
+ "type": "boolean"
2031
2075
  },
2032
2076
  {
2033
2077
  "name": ""
2034
2078
  },
2079
+ {
2080
+ "name": "type",
2081
+ "description": "Native `type` attribute of the underlying `<input>` (e.g. `'text'`, `'email'`, `'password'`, `'tel'`, `'url'`).",
2082
+ "type": "string"
2083
+ },
2084
+ {
2085
+ "name": "placeholder",
2086
+ "description": "Placeholder text shown while the input is empty.",
2087
+ "type": "string"
2088
+ },
2089
+ {
2090
+ "name": "pattern",
2091
+ "description": "Regular expression used as the input's `pattern` attribute. When `false` (the default), the `pattern` attribute is omitted entirely, so the field applies no pattern constraint.",
2092
+ "type": "string | false"
2093
+ },
2035
2094
  {
2036
2095
  "name": "name",
2037
2096
  "description": "Form name for the underlying input.",
2038
2097
  "type": "string"
2039
2098
  },
2099
+ {
2100
+ "name": "value",
2101
+ "description": "Current value of the field.",
2102
+ "type": "string | null"
2103
+ },
2040
2104
  {
2041
2105
  "name": "required",
2042
2106
  "description": "Whether the field is required for form submission.",
@@ -2082,18 +2146,18 @@
2082
2146
  {
2083
2147
  "name": "input-change",
2084
2148
  "type": "CustomEvent<string>",
2085
- "description": "Fired when the selected value changes. `detail` is the newly selected value. Bubbles."
2149
+ "description": "Fired when the input's value changes. `detail` is the new value. Bubbles."
2086
2150
  }
2087
2151
  ]
2088
2152
  },
2089
2153
  "source": {
2090
- "module": "./src/components/radio-field/radio-field.js",
2154
+ "module": "./src/components/password-field/password-field.js",
2091
2155
  "symbol": "default"
2092
2156
  }
2093
2157
  },
2094
2158
  {
2095
- "name": "el-password-field",
2096
- "description": "A password input with an optional show/hide reveal toggle. Extends `InputField` (and therefore\n`FormField`), inheriting the label / help / error / validation surface; it pins the input `type`\nto `password` and flips it to `text` while revealed.\n---\n\n\n### **Events:**\n - **input-change** - Fired when the input's value changes. `detail` is the new value. Bubbles.\n\n### **Methods:**\n - **togglePasswordVisibility(): _void_** - Toggles between masked (`password`) and revealed (`text`) input.\n- **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state.",
2159
+ "name": "el-radio-field",
2160
+ "description": "A single-choice radio group with a custom indicator, label, help text and validation. Renders a\nnative `<fieldset>`/`<legend>` wrapping mutually-exclusive `<input type=\"radio\">`s (so keyboard\nnavigation, grouping and form submission are all native). Extends `FormField` and inherits its\nhelp / error / required / touched-state surface; the `label` becomes the group's `<legend>`.\n---\n\n\n### **Events:**\n - **input-change** - Fired when the selected value changes. `detail` is the newly selected value. Bubbles.\n\n### **Methods:**\n - **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state.",
2097
2161
  "doc-url": "",
2098
2162
  "attributes": [
2099
2163
  {
@@ -2102,62 +2166,18 @@
2102
2166
  "type": "string"
2103
2167
  },
2104
2168
  "source": {
2105
- "module": "./src/components/password-field/password-field.js",
2106
- "symbol": "default"
2107
- }
2108
- },
2109
- {
2110
- "name": "type",
2111
- "description": "Native `type` attribute of the underlying `<input>` (e.g. `'text'`, `'email'`, `'password'`, `'tel'`, `'url'`).",
2112
- "value": {
2113
- "type": "string"
2114
- },
2115
- "source": {
2116
- "module": "./src/components/password-field/password-field.js",
2117
- "symbol": "default"
2118
- }
2119
- },
2120
- {
2121
- "name": "password-toggle",
2122
- "description": "Whether to render the show/hide reveal button. Default `true`.",
2123
- "value": {
2124
- "type": "boolean"
2125
- },
2126
- "source": {
2127
- "module": "./src/components/password-field/password-field.js",
2128
- "symbol": "default"
2129
- }
2130
- },
2131
- {
2132
- "name": "password-visible",
2133
- "description": "Whether the value is currently revealed as plain text. Default `false`.",
2134
- "value": {
2135
- "type": "boolean"
2136
- },
2137
- "source": {
2138
- "module": "./src/components/password-field/password-field.js",
2139
- "symbol": "default"
2140
- }
2141
- },
2142
- {
2143
- "name": "placeholder",
2144
- "description": "Placeholder text shown while the input is empty.",
2145
- "value": {
2146
- "type": "string"
2147
- },
2148
- "source": {
2149
- "module": "./src/components/password-field/password-field.js",
2169
+ "module": "./src/components/radio-field/radio-field.js",
2150
2170
  "symbol": "default"
2151
2171
  }
2152
2172
  },
2153
2173
  {
2154
- "name": "pattern",
2155
- "description": "Regular expression used as the input's `pattern` attribute. When `false` (the default), the `pattern` attribute is omitted entirely, so the field applies no pattern constraint.",
2174
+ "name": "options",
2175
+ "description": "Options to render. Accepts plain strings (`['Yes', 'No']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label.",
2156
2176
  "value": {
2157
- "type": "string | false"
2177
+ "type": "Array<string | { value: string, label?: string, disabled?: boolean }>"
2158
2178
  },
2159
2179
  "source": {
2160
- "module": "./src/components/password-field/password-field.js",
2180
+ "module": "./src/components/radio-field/radio-field.js",
2161
2181
  "symbol": "default"
2162
2182
  }
2163
2183
  },
@@ -2168,7 +2188,7 @@
2168
2188
  "type": "string"
2169
2189
  },
2170
2190
  "source": {
2171
- "module": "./src/components/password-field/password-field.js",
2191
+ "module": "./src/components/radio-field/radio-field.js",
2172
2192
  "symbol": "default"
2173
2193
  }
2174
2194
  },
@@ -2179,7 +2199,7 @@
2179
2199
  "type": "string | null"
2180
2200
  },
2181
2201
  "source": {
2182
- "module": "./src/components/password-field/password-field.js",
2202
+ "module": "./src/components/radio-field/radio-field.js",
2183
2203
  "symbol": "default"
2184
2204
  }
2185
2205
  },
@@ -2190,7 +2210,7 @@
2190
2210
  "type": "boolean"
2191
2211
  },
2192
2212
  "source": {
2193
- "module": "./src/components/password-field/password-field.js",
2213
+ "module": "./src/components/radio-field/radio-field.js",
2194
2214
  "symbol": "default"
2195
2215
  }
2196
2216
  },
@@ -2201,7 +2221,7 @@
2201
2221
  "type": "boolean"
2202
2222
  },
2203
2223
  "source": {
2204
- "module": "./src/components/password-field/password-field.js",
2224
+ "module": "./src/components/radio-field/radio-field.js",
2205
2225
  "symbol": "default"
2206
2226
  }
2207
2227
  },
@@ -2212,7 +2232,7 @@
2212
2232
  "type": "string"
2213
2233
  },
2214
2234
  "source": {
2215
- "module": "./src/components/password-field/password-field.js",
2235
+ "module": "./src/components/radio-field/radio-field.js",
2216
2236
  "symbol": "default"
2217
2237
  }
2218
2238
  },
@@ -2223,7 +2243,7 @@
2223
2243
  "type": "boolean"
2224
2244
  },
2225
2245
  "source": {
2226
- "module": "./src/components/password-field/password-field.js",
2246
+ "module": "./src/components/radio-field/radio-field.js",
2227
2247
  "symbol": "default"
2228
2248
  }
2229
2249
  },
@@ -2234,7 +2254,7 @@
2234
2254
  "type": "string"
2235
2255
  },
2236
2256
  "source": {
2237
- "module": "./src/components/password-field/password-field.js",
2257
+ "module": "./src/components/radio-field/radio-field.js",
2238
2258
  "symbol": "default"
2239
2259
  }
2240
2260
  },
@@ -2245,7 +2265,7 @@
2245
2265
  "type": "string"
2246
2266
  },
2247
2267
  "source": {
2248
- "module": "./src/components/password-field/password-field.js",
2268
+ "module": "./src/components/radio-field/radio-field.js",
2249
2269
  "symbol": "default"
2250
2270
  }
2251
2271
  },
@@ -2256,7 +2276,7 @@
2256
2276
  "type": "boolean"
2257
2277
  },
2258
2278
  "source": {
2259
- "module": "./src/components/password-field/password-field.js",
2279
+ "module": "./src/components/radio-field/radio-field.js",
2260
2280
  "symbol": "default"
2261
2281
  }
2262
2282
  },
@@ -2267,7 +2287,7 @@
2267
2287
  "type": "boolean"
2268
2288
  },
2269
2289
  "source": {
2270
- "module": "./src/components/password-field/password-field.js",
2290
+ "module": "./src/components/radio-field/radio-field.js",
2271
2291
  "symbol": "default"
2272
2292
  }
2273
2293
  }
@@ -2276,49 +2296,29 @@
2276
2296
  {
2277
2297
  "name": "input-change",
2278
2298
  "type": "CustomEvent<string>",
2279
- "description": "Fired when the input's value changes. `detail` is the new value. Bubbles."
2299
+ "description": "Fired when the selected value changes. `detail` is the newly selected value. Bubbles."
2280
2300
  }
2281
2301
  ],
2282
2302
  "js": {
2283
2303
  "properties": [
2284
2304
  {
2285
- "name": "passwordToggle",
2286
- "description": "Whether to render the show/hide reveal button. Default `true`.",
2287
- "type": "boolean"
2305
+ "name": "value",
2306
+ "description": "The selected option's value.",
2307
+ "type": "string | null"
2288
2308
  },
2289
2309
  {
2290
- "name": "passwordVisible",
2291
- "description": "Whether the value is currently revealed as plain text. Default `false`.",
2292
- "type": "boolean"
2310
+ "name": "options",
2311
+ "description": "Options to render. Accepts plain strings (`['Yes', 'No']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label.",
2312
+ "type": "Array<string | { value: string, label?: string, disabled?: boolean }>"
2293
2313
  },
2294
2314
  {
2295
2315
  "name": ""
2296
2316
  },
2297
- {
2298
- "name": "type",
2299
- "description": "Native `type` attribute of the underlying `<input>` (e.g. `'text'`, `'email'`, `'password'`, `'tel'`, `'url'`).",
2300
- "type": "string"
2301
- },
2302
- {
2303
- "name": "placeholder",
2304
- "description": "Placeholder text shown while the input is empty.",
2305
- "type": "string"
2306
- },
2307
- {
2308
- "name": "pattern",
2309
- "description": "Regular expression used as the input's `pattern` attribute. When `false` (the default), the `pattern` attribute is omitted entirely, so the field applies no pattern constraint.",
2310
- "type": "string | false"
2311
- },
2312
2317
  {
2313
2318
  "name": "name",
2314
2319
  "description": "Form name for the underlying input.",
2315
2320
  "type": "string"
2316
2321
  },
2317
- {
2318
- "name": "value",
2319
- "description": "Current value of the field.",
2320
- "type": "string | null"
2321
- },
2322
2322
  {
2323
2323
  "name": "required",
2324
2324
  "description": "Whether the field is required for form submission.",
@@ -2364,12 +2364,12 @@
2364
2364
  {
2365
2365
  "name": "input-change",
2366
2366
  "type": "CustomEvent<string>",
2367
- "description": "Fired when the input's value changes. `detail` is the new value. Bubbles."
2367
+ "description": "Fired when the selected value changes. `detail` is the newly selected value. Bubbles."
2368
2368
  }
2369
2369
  ]
2370
2370
  },
2371
2371
  "source": {
2372
- "module": "./src/components/password-field/password-field.js",
2372
+ "module": "./src/components/radio-field/radio-field.js",
2373
2373
  "symbol": "default"
2374
2374
  }
2375
2375
  },
@@ -3850,18 +3850,6 @@
3850
3850
  "name": "part(selected-dot)",
3851
3851
  "description": "Added to the bullet representing the active slide."
3852
3852
  },
3853
- {
3854
- "name": "part(trigger)",
3855
- "description": "Forwarded onto the `trigger` slot."
3856
- },
3857
- {
3858
- "name": "part(panel)",
3859
- "description": "Wrapper around the `content` slot. Surface for background, border, radius and elevation. Only present in the DOM while `open` is `true`."
3860
- },
3861
- {
3862
- "name": "part(content)",
3863
- "description": "Forwarded onto the `content` slot."
3864
- },
3865
3853
  {
3866
3854
  "name": "part(base)",
3867
3855
  "description": "The native `<dialog>` element — the panel surface (background, border, radius, elevation). The overlay is its `::backdrop` pseudo-element."
@@ -3890,6 +3878,18 @@
3890
3878
  "name": "part(footer)",
3891
3879
  "description": "The footer wrapping the `footer` slot."
3892
3880
  },
3881
+ {
3882
+ "name": "part(trigger)",
3883
+ "description": "Forwarded onto the `trigger` slot."
3884
+ },
3885
+ {
3886
+ "name": "part(panel)",
3887
+ "description": "Wrapper around the `content` slot. Surface for background, border, radius and elevation. Only present in the DOM while `open` is `true`."
3888
+ },
3889
+ {
3890
+ "name": "part(content)",
3891
+ "description": "Forwarded onto the `content` slot."
3892
+ },
3893
3893
  {
3894
3894
  "name": "part(base)",
3895
3895
  "description": "The animated outer wrapper."