@cscfi/csc-ui 4.0.0-alpha.1 → 4.0.0-alpha.3
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/dist/csc-ui.js +4073 -3997
- package/dist/custom-elements.json +148 -8
- package/dist/styles/css/tokens.css +67 -66
- package/dist/vscode.css-custom-data.json +25 -3
- package/dist/vscode.html-custom-data.json +25 -5
- package/dist/web-types.json +81 -10
- package/dist-types/components/c-autocomplete/CAutocomplete.vue.d.ts +4 -1
- package/dist-types/components/c-button/CButton.vue.d.ts +1 -1
- package/dist-types/components/c-icon/CIcon.vue.d.ts +1 -1
- package/dist-types/components/c-icon-button/CIconButton.vue.d.ts +1 -1
- package/dist-types/components/c-input/CInput.vue.d.ts +4 -0
- package/dist-types/components/c-login-button/CLoginButton.vue.d.ts +4 -2
- package/dist-types/components/c-select/CSelect.vue.d.ts +4 -1
- package/dist-types/components/c-spinner/CSpinner.vue.d.ts +1 -1
- package/dist-types/components/c-tag/CTag.vue.d.ts +1 -1
- package/dist-types/components/c-text-field/CTextField.vue.d.ts +4 -0
- package/dist-types/index.d.ts +1 -1
- package/dist-types/tag-name-map.d.ts +12 -4
- package/dist-types/types.d.ts +6 -0
- package/package.json +1 -1
|
@@ -147,6 +147,11 @@
|
|
|
147
147
|
"values": []
|
|
148
148
|
},
|
|
149
149
|
{ "name": "shadow", "description": "Shadow variant", "values": [] },
|
|
150
|
+
{
|
|
151
|
+
"name": "size",
|
|
152
|
+
"description": "Field height: the 44px default or the 36px `small` box",
|
|
153
|
+
"values": [{ "name": "default" }, { "name": "small" }]
|
|
154
|
+
},
|
|
150
155
|
{
|
|
151
156
|
"name": "valid",
|
|
152
157
|
"description": "Set the validity of the input",
|
|
@@ -293,7 +298,7 @@
|
|
|
293
298
|
},
|
|
294
299
|
{
|
|
295
300
|
"name": "c-card",
|
|
296
|
-
"description": "\n---\n\n\n### **Methods:**\n - **enterFullscreen()** - Enter fullscreen from the outside\n- **exitFullscreen()** - Exit fullscreen from the outside\n\n### **Slots:**\n - **default** - Card components\n\n### **CSS Parts:**\n - **root** - The card's visible surface, carries the background, radius, shadow and section spacing\n- **fullscreen-toggle** - The circular fullscreen toggle button shown when the fullscreen prop is set",
|
|
301
|
+
"description": "\n---\n\n\n### **Methods:**\n - **enterFullscreen()** - Enter fullscreen from the outside\n- **exitFullscreen()** - Exit fullscreen from the outside\n\n### **Slots:**\n - **default** - Card components\n\n### **CSS Parts:**\n - **root** - The card's visible surface, carries the background, border, radius, shadow and section spacing\n- **fullscreen-toggle** - The circular fullscreen toggle button shown when the fullscreen prop is set",
|
|
297
302
|
"attributes": [
|
|
298
303
|
{
|
|
299
304
|
"name": "fullscreen",
|
|
@@ -345,7 +350,7 @@
|
|
|
345
350
|
},
|
|
346
351
|
{
|
|
347
352
|
"name": "c-checkbox",
|
|
348
|
-
"description": "\n---\n\n\n### **Events:**\n - **change** - Standard bubbling DOM change event, re-dispatched from the host when the\ncheckbox is toggled (the inner input's change does not cross the shadow\nboundary). No detail; read the new value from the host's `value` property.\n- **changeValue** - Fired when the checkbox is toggled, carrying the new value —\n`trueValue` when checked, `falseValue` when unchecked. Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event fired on toggle so a plain Vue `v-model`\nworks without the `v-control` directive. No detail.\n- **update:value** - v-model contract event fired on toggle, carrying the new value —\n`trueValue` when checked, `falseValue` when unchecked.\n\n### **Slots:**\n - **default** - Default slot for the label\n\n### **CSS Parts:**\n - **root** - The outer wrapper containing the checkbox, label and message\n- **label** - The `<label>` element wrapping the indicator and the label content\n- **indicator** - The circular ripple surface holding the checkbox box and checkmark\n- **content** - Wrapper around the label text or slotted label content\n- **message** - The hint / error message
|
|
353
|
+
"description": "\n---\n\n\n### **Events:**\n - **change** - Standard bubbling DOM change event, re-dispatched from the host when the\ncheckbox is toggled (the inner input's change does not cross the shadow\nboundary). No detail; read the new value from the host's `value` property.\n- **changeValue** - Fired when the checkbox is toggled, carrying the new value —\n`trueValue` when checked, `falseValue` when unchecked. Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event fired on toggle so a plain Vue `v-model`\nworks without the `v-control` directive. No detail.\n- **update:value** - v-model contract event fired on toggle, carrying the new value —\n`trueValue` when checked, `falseValue` when unchecked.\n\n### **Slots:**\n - **default** - Default slot for the label\n\n### **CSS Parts:**\n - **root** - The outer wrapper containing the checkbox, label and message\n- **label** - The `<label>` element wrapping the indicator and the label content\n- **indicator** - The circular ripple surface holding the checkbox box and checkmark\n- **content** - Wrapper around the label text or slotted label content\n- **message** - The hint / error message area below the checkbox (always reserved unless `hide-details`)",
|
|
349
354
|
"attributes": [
|
|
350
355
|
{
|
|
351
356
|
"name": "checked",
|
|
@@ -497,7 +502,7 @@
|
|
|
497
502
|
},
|
|
498
503
|
{
|
|
499
504
|
"name": "c-dropdown",
|
|
500
|
-
"description": "\n---\n\n\n### **Events:**\n - **dropdownStateChange** - Fired when the dropdown menu opens or closes; the detail is the new open\nstate. Also dispatched as `dropdown-state-change` — bind that name in Vue templates.\n- **selectOption** - Fired when the user selects an option row, carrying the option's name\nand value for the parent (c-select) to commit. Also dispatched as `select-option` — bind that name in Vue templates.\n\n### **Methods:**\n - **close()** - Close dropdown\n- **open()** - Open dropdown\n- **selectItem()** - Select item\n- **updateList()** - Update list items\n\n### **Slots:**\n - **default** - The anchor c-input of the parent select / autocomplete, rendered inline while the menu is closed\n- **input-top** - Target the c-input is moved into when the menu opens below the field\n- **input-bottom** - Target the c-input is moved into when the menu opens above the field",
|
|
505
|
+
"description": "\n---\n\n\n### **Events:**\n - **dropdownStateChange** - Fired when the dropdown menu opens or closes; the detail is the new open\nstate. Also dispatched as `dropdown-state-change` — bind that name in Vue templates.\n- **selectOption** - Fired when the user selects an option row, carrying the option's name\nand value for the parent (c-select) to commit. Also dispatched as `select-option` — bind that name in Vue templates.\n\n### **Methods:**\n - **close()** - Close dropdown\n- **open()** - Open dropdown\n- **selectItem()** - Select item\n- **updateList()** - Update list items\n\n### **Slots:**\n - **default** - The anchor c-input of the parent select / autocomplete, rendered inline while the menu is closed\n- **input-top** - Target the c-input is moved into when the menu opens below the field\n- **input-bottom** - Target the c-input is moved into when the menu opens above the field\n\n### **CSS Parts:**\n - **menu** - The positioned dialog surface holding the field and the list\n- **list** - The scrolling listbox\n- **item** - One option row",
|
|
501
506
|
"attributes": [
|
|
502
507
|
{
|
|
503
508
|
"name": "dropdown-item-type",
|
|
@@ -672,6 +677,11 @@
|
|
|
672
677
|
"description": "Shadow variant of the input",
|
|
673
678
|
"values": []
|
|
674
679
|
},
|
|
680
|
+
{
|
|
681
|
+
"name": "size",
|
|
682
|
+
"description": "Field height: the 44px default or the 36px `small` box",
|
|
683
|
+
"values": [{ "name": "default" }, { "name": "small" }]
|
|
684
|
+
},
|
|
675
685
|
{
|
|
676
686
|
"name": "valid",
|
|
677
687
|
"description": "Set the validíty of the input",
|
|
@@ -779,7 +789,7 @@
|
|
|
779
789
|
},
|
|
780
790
|
{
|
|
781
791
|
"name": "c-login-button",
|
|
782
|
-
"description": "\n---\n\n\n### **Slots:**\n - **default** -
|
|
792
|
+
"description": "\n---\n\n\n### **Slots:**\n - **default** - The title shown in the bottom bar\n- **image** - Custom provider logo markup (an inline `<svg>`, a `<picture>`, …) replacing the default `<img>` rendered from `src`\n\n### **CSS Parts:**\n - **root** - The anchor element forming the whole clickable card\n- **image-wrap** - The area above the title bar that centers the logo (default image or slotted content)\n- **image** - The default provider logo `<img>` (absent when the `image` slot is used)\n- **title** - The bottom title bar wrapping the slotted label",
|
|
783
793
|
"attributes": [
|
|
784
794
|
{
|
|
785
795
|
"name": "alt",
|
|
@@ -1244,7 +1254,7 @@
|
|
|
1244
1254
|
},
|
|
1245
1255
|
{
|
|
1246
1256
|
"name": "c-select",
|
|
1247
|
-
"description": "\n---\n\n\n### **Events:**\n - **changeValue** - Fired when the selection changes (an option is picked or the value is\ncleared), carrying the new value — the option's value, or the whole\n`{ name, value }` item when `return-object` is set; `null` when cleared. Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail.\n- **update:value** - Fired alongside `changeValue` with the same detail — the `v-model`\ncontract.\n\n### **Methods:**\n - **reset()** - Reset select state\n\n### **Slots:**\n - **default** - Use c-option elements only\n- **pre** - Leading content forwarded to the inner c-input, rendered before the select's value\n- **post** - Trailing content forwarded to the inner c-input, rendered after the select's controls",
|
|
1257
|
+
"description": "\n---\n\n\n### **Events:**\n - **changeValue** - Fired when the selection changes (an option is picked or the value is\ncleared), carrying the new value — the option's value, or the whole\n`{ name, value }` item when `return-object` is set; `null` when cleared. Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail.\n- **update:value** - Fired alongside `changeValue` with the same detail — the `v-model`\ncontract.\n\n### **Methods:**\n - **reset()** - Reset select state\n\n### **Slots:**\n - **default** - Use c-option elements only\n- **pre** - Leading content forwarded to the inner c-input, rendered before the select's value\n- **post** - Trailing content forwarded to the inner c-input, rendered after the select's controls\n\n### **CSS Parts:**\n - **menu** - The dropdown surface (the positioned dialog) holding the field and the list\n- **list** - The scrolling listbox of options\n- **item** - One option row in the list. Any `part` attribute set on content inside a slotted `<c-option>` is exported too, so `c-select::part(<name>)` reaches the consumer's own option markup",
|
|
1248
1258
|
"attributes": [
|
|
1249
1259
|
{
|
|
1250
1260
|
"name": "clearable",
|
|
@@ -1310,6 +1320,11 @@
|
|
|
1310
1320
|
"values": []
|
|
1311
1321
|
},
|
|
1312
1322
|
{ "name": "shadow", "description": "Shadow variant", "values": [] },
|
|
1323
|
+
{
|
|
1324
|
+
"name": "size",
|
|
1325
|
+
"description": "Field height: the 44px default or the 36px `small` box",
|
|
1326
|
+
"values": [{ "name": "default" }, { "name": "small" }]
|
|
1327
|
+
},
|
|
1313
1328
|
{
|
|
1314
1329
|
"name": "valid",
|
|
1315
1330
|
"description": "Set the validity of the input",
|
|
@@ -1774,6 +1789,11 @@
|
|
|
1774
1789
|
"description": "Shadow variant of the input",
|
|
1775
1790
|
"values": []
|
|
1776
1791
|
},
|
|
1792
|
+
{
|
|
1793
|
+
"name": "size",
|
|
1794
|
+
"description": "Field height: the 44px default or the 36px `small` box (single-line fields)",
|
|
1795
|
+
"values": [{ "name": "default" }, { "name": "small" }]
|
|
1796
|
+
},
|
|
1777
1797
|
{
|
|
1778
1798
|
"name": "step",
|
|
1779
1799
|
"description": "Step size on a numeric input",
|
package/dist/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": "@cscfi/csc-ui",
|
|
4
|
-
"version": "4.0.0-alpha.
|
|
4
|
+
"version": "4.0.0-alpha.3",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -305,6 +305,11 @@
|
|
|
305
305
|
"description": "Shadow variant",
|
|
306
306
|
"value": { "type": "boolean", "default": "false" }
|
|
307
307
|
},
|
|
308
|
+
{
|
|
309
|
+
"name": "size",
|
|
310
|
+
"description": "Field height: the 44px default or the 36px `small` box",
|
|
311
|
+
"value": { "type": "'default' | 'small'", "default": "'default'" }
|
|
312
|
+
},
|
|
308
313
|
{
|
|
309
314
|
"name": "valid",
|
|
310
315
|
"description": "Set the validity of the input",
|
|
@@ -457,6 +462,11 @@
|
|
|
457
462
|
"description": "Shadow variant",
|
|
458
463
|
"type": "boolean"
|
|
459
464
|
},
|
|
465
|
+
{
|
|
466
|
+
"name": "size",
|
|
467
|
+
"description": "Field height: the 44px default or the 36px `small` box",
|
|
468
|
+
"type": "'default' | 'small'"
|
|
469
|
+
},
|
|
460
470
|
{
|
|
461
471
|
"name": "valid",
|
|
462
472
|
"description": "Set the validity of the input",
|
|
@@ -829,7 +839,7 @@
|
|
|
829
839
|
},
|
|
830
840
|
{
|
|
831
841
|
"name": "c-card",
|
|
832
|
-
"description": "\n---\n\n\n### **Methods:**\n - **enterFullscreen()** - Enter fullscreen from the outside\n- **exitFullscreen()** - Exit fullscreen from the outside\n\n### **Slots:**\n - **default** - Card components\n\n### **CSS Parts:**\n - **root** - The card's visible surface, carries the background, radius, shadow and section spacing\n- **fullscreen-toggle** - The circular fullscreen toggle button shown when the fullscreen prop is set",
|
|
842
|
+
"description": "\n---\n\n\n### **Methods:**\n - **enterFullscreen()** - Enter fullscreen from the outside\n- **exitFullscreen()** - Exit fullscreen from the outside\n\n### **Slots:**\n - **default** - Card components\n\n### **CSS Parts:**\n - **root** - The card's visible surface, carries the background, border, radius, shadow and section spacing\n- **fullscreen-toggle** - The circular fullscreen toggle button shown when the fullscreen prop is set",
|
|
833
843
|
"doc-url": "",
|
|
834
844
|
"attributes": [
|
|
835
845
|
{
|
|
@@ -917,7 +927,7 @@
|
|
|
917
927
|
},
|
|
918
928
|
{
|
|
919
929
|
"name": "c-checkbox",
|
|
920
|
-
"description": "\n---\n\n\n### **Events:**\n - **change** - Standard bubbling DOM change event, re-dispatched from the host when the\ncheckbox is toggled (the inner input's change does not cross the shadow\nboundary). No detail; read the new value from the host's `value` property.\n- **changeValue** - Fired when the checkbox is toggled, carrying the new value —\n`trueValue` when checked, `falseValue` when unchecked. Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event fired on toggle so a plain Vue `v-model`\nworks without the `v-control` directive. No detail.\n- **update:value** - v-model contract event fired on toggle, carrying the new value —\n`trueValue` when checked, `falseValue` when unchecked.\n\n### **Slots:**\n - **default** - Default slot for the label\n\n### **CSS Parts:**\n - **root** - The outer wrapper containing the checkbox, label and message\n- **label** - The `<label>` element wrapping the indicator and the label content\n- **indicator** - The circular ripple surface holding the checkbox box and checkmark\n- **content** - Wrapper around the label text or slotted label content\n- **message** - The hint / error message
|
|
930
|
+
"description": "\n---\n\n\n### **Events:**\n - **change** - Standard bubbling DOM change event, re-dispatched from the host when the\ncheckbox is toggled (the inner input's change does not cross the shadow\nboundary). No detail; read the new value from the host's `value` property.\n- **changeValue** - Fired when the checkbox is toggled, carrying the new value —\n`trueValue` when checked, `falseValue` when unchecked. Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event fired on toggle so a plain Vue `v-model`\nworks without the `v-control` directive. No detail.\n- **update:value** - v-model contract event fired on toggle, carrying the new value —\n`trueValue` when checked, `falseValue` when unchecked.\n\n### **Slots:**\n - **default** - Default slot for the label\n\n### **CSS Parts:**\n - **root** - The outer wrapper containing the checkbox, label and message\n- **label** - The `<label>` element wrapping the indicator and the label content\n- **indicator** - The circular ripple surface holding the checkbox box and checkmark\n- **content** - Wrapper around the label text or slotted label content\n- **message** - The hint / error message area below the checkbox (always reserved unless `hide-details`)",
|
|
921
931
|
"doc-url": "",
|
|
922
932
|
"attributes": [
|
|
923
933
|
{
|
|
@@ -1407,7 +1417,7 @@
|
|
|
1407
1417
|
},
|
|
1408
1418
|
{
|
|
1409
1419
|
"name": "c-dropdown",
|
|
1410
|
-
"description": "\n---\n\n\n### **Events:**\n - **dropdownStateChange** - Fired when the dropdown menu opens or closes; the detail is the new open\nstate. Also dispatched as `dropdown-state-change` — bind that name in Vue templates.\n- **selectOption** - Fired when the user selects an option row, carrying the option's name\nand value for the parent (c-select) to commit. Also dispatched as `select-option` — bind that name in Vue templates.\n\n### **Methods:**\n - **close()** - Close dropdown\n- **open()** - Open dropdown\n- **selectItem()** - Select item\n- **updateList()** - Update list items\n\n### **Slots:**\n - **default** - The anchor c-input of the parent select / autocomplete, rendered inline while the menu is closed\n- **input-top** - Target the c-input is moved into when the menu opens below the field\n- **input-bottom** - Target the c-input is moved into when the menu opens above the field",
|
|
1420
|
+
"description": "\n---\n\n\n### **Events:**\n - **dropdownStateChange** - Fired when the dropdown menu opens or closes; the detail is the new open\nstate. Also dispatched as `dropdown-state-change` — bind that name in Vue templates.\n- **selectOption** - Fired when the user selects an option row, carrying the option's name\nand value for the parent (c-select) to commit. Also dispatched as `select-option` — bind that name in Vue templates.\n\n### **Methods:**\n - **close()** - Close dropdown\n- **open()** - Open dropdown\n- **selectItem()** - Select item\n- **updateList()** - Update list items\n\n### **Slots:**\n - **default** - The anchor c-input of the parent select / autocomplete, rendered inline while the menu is closed\n- **input-top** - Target the c-input is moved into when the menu opens below the field\n- **input-bottom** - Target the c-input is moved into when the menu opens above the field\n\n### **CSS Parts:**\n - **menu** - The positioned dialog surface holding the field and the list\n- **list** - The scrolling listbox\n- **item** - One option row",
|
|
1411
1421
|
"doc-url": "",
|
|
1412
1422
|
"attributes": [
|
|
1413
1423
|
{
|
|
@@ -1758,6 +1768,11 @@
|
|
|
1758
1768
|
"description": "Shadow variant of the input",
|
|
1759
1769
|
"value": { "type": "boolean", "default": "false" }
|
|
1760
1770
|
},
|
|
1771
|
+
{
|
|
1772
|
+
"name": "size",
|
|
1773
|
+
"description": "Field height: the 44px default or the 36px `small` box",
|
|
1774
|
+
"value": { "type": "'default' | 'small'", "default": "'default'" }
|
|
1775
|
+
},
|
|
1761
1776
|
{
|
|
1762
1777
|
"name": "valid",
|
|
1763
1778
|
"description": "Set the validíty of the input",
|
|
@@ -1841,6 +1856,11 @@
|
|
|
1841
1856
|
"description": "Shadow variant of the input",
|
|
1842
1857
|
"type": "boolean"
|
|
1843
1858
|
},
|
|
1859
|
+
{
|
|
1860
|
+
"name": "size",
|
|
1861
|
+
"description": "Field height: the 44px default or the 36px `small` box",
|
|
1862
|
+
"type": "'default' | 'small'"
|
|
1863
|
+
},
|
|
1844
1864
|
{
|
|
1845
1865
|
"name": "valid",
|
|
1846
1866
|
"description": "Set the validíty of the input",
|
|
@@ -2135,7 +2155,7 @@
|
|
|
2135
2155
|
},
|
|
2136
2156
|
{
|
|
2137
2157
|
"name": "c-login-button",
|
|
2138
|
-
"description": "\n---\n\n\n### **Slots:**\n - **default** -
|
|
2158
|
+
"description": "\n---\n\n\n### **Slots:**\n - **default** - The title shown in the bottom bar\n- **image** - Custom provider logo markup (an inline `<svg>`, a `<picture>`, …) replacing the default `<img>` rendered from `src`\n\n### **CSS Parts:**\n - **root** - The anchor element forming the whole clickable card\n- **image-wrap** - The area above the title bar that centers the logo (default image or slotted content)\n- **image** - The default provider logo `<img>` (absent when the `image` slot is used)\n- **title** - The bottom title bar wrapping the slotted label",
|
|
2139
2159
|
"doc-url": "",
|
|
2140
2160
|
"attributes": [
|
|
2141
2161
|
{
|
|
@@ -2154,7 +2174,16 @@
|
|
|
2154
2174
|
"value": { "type": "string", "default": "''" }
|
|
2155
2175
|
}
|
|
2156
2176
|
],
|
|
2157
|
-
"slots": [
|
|
2177
|
+
"slots": [
|
|
2178
|
+
{
|
|
2179
|
+
"name": "default",
|
|
2180
|
+
"description": "The title shown in the bottom bar"
|
|
2181
|
+
},
|
|
2182
|
+
{
|
|
2183
|
+
"name": "image",
|
|
2184
|
+
"description": "Custom provider logo markup (an inline `<svg>`, a `<picture>`, …) replacing the default `<img>` rendered from `src`"
|
|
2185
|
+
}
|
|
2186
|
+
],
|
|
2158
2187
|
"events": [],
|
|
2159
2188
|
"js": {
|
|
2160
2189
|
"properties": [
|
|
@@ -3273,7 +3302,7 @@
|
|
|
3273
3302
|
},
|
|
3274
3303
|
{
|
|
3275
3304
|
"name": "c-select",
|
|
3276
|
-
"description": "\n---\n\n\n### **Events:**\n - **changeValue** - Fired when the selection changes (an option is picked or the value is\ncleared), carrying the new value — the option's value, or the whole\n`{ name, value }` item when `return-object` is set; `null` when cleared. Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail.\n- **update:value** - Fired alongside `changeValue` with the same detail — the `v-model`\ncontract.\n\n### **Methods:**\n - **reset()** - Reset select state\n\n### **Slots:**\n - **default** - Use c-option elements only\n- **pre** - Leading content forwarded to the inner c-input, rendered before the select's value\n- **post** - Trailing content forwarded to the inner c-input, rendered after the select's controls",
|
|
3305
|
+
"description": "\n---\n\n\n### **Events:**\n - **changeValue** - Fired when the selection changes (an option is picked or the value is\ncleared), carrying the new value — the option's value, or the whole\n`{ name, value }` item when `return-object` is set; `null` when cleared. Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail.\n- **update:value** - Fired alongside `changeValue` with the same detail — the `v-model`\ncontract.\n\n### **Methods:**\n - **reset()** - Reset select state\n\n### **Slots:**\n - **default** - Use c-option elements only\n- **pre** - Leading content forwarded to the inner c-input, rendered before the select's value\n- **post** - Trailing content forwarded to the inner c-input, rendered after the select's controls\n\n### **CSS Parts:**\n - **menu** - The dropdown surface (the positioned dialog) holding the field and the list\n- **list** - The scrolling listbox of options\n- **item** - One option row in the list. Any `part` attribute set on content inside a slotted `<c-option>` is exported too, so `c-select::part(<name>)` reaches the consumer's own option markup",
|
|
3277
3306
|
"doc-url": "",
|
|
3278
3307
|
"attributes": [
|
|
3279
3308
|
{
|
|
@@ -3356,6 +3385,11 @@
|
|
|
3356
3385
|
"description": "Shadow variant",
|
|
3357
3386
|
"value": { "type": "boolean", "default": "false" }
|
|
3358
3387
|
},
|
|
3388
|
+
{
|
|
3389
|
+
"name": "size",
|
|
3390
|
+
"description": "Field height: the 44px default or the 36px `small` box",
|
|
3391
|
+
"value": { "type": "'default' | 'small'", "default": "'default'" }
|
|
3392
|
+
},
|
|
3359
3393
|
{
|
|
3360
3394
|
"name": "valid",
|
|
3361
3395
|
"description": "Set the validity of the input",
|
|
@@ -3485,6 +3519,11 @@
|
|
|
3485
3519
|
"description": "Shadow variant",
|
|
3486
3520
|
"type": "boolean"
|
|
3487
3521
|
},
|
|
3522
|
+
{
|
|
3523
|
+
"name": "size",
|
|
3524
|
+
"description": "Field height: the 44px default or the 36px `small` box",
|
|
3525
|
+
"type": "'default' | 'small'"
|
|
3526
|
+
},
|
|
3488
3527
|
{
|
|
3489
3528
|
"name": "valid",
|
|
3490
3529
|
"description": "Set the validity of the input",
|
|
@@ -4807,6 +4846,11 @@
|
|
|
4807
4846
|
"description": "Shadow variant of the input",
|
|
4808
4847
|
"value": { "type": "boolean", "default": "false" }
|
|
4809
4848
|
},
|
|
4849
|
+
{
|
|
4850
|
+
"name": "size",
|
|
4851
|
+
"description": "Field height: the 44px default or the 36px `small` box (single-line fields)",
|
|
4852
|
+
"value": { "type": "'default' | 'small'", "default": "'default'" }
|
|
4853
|
+
},
|
|
4810
4854
|
{
|
|
4811
4855
|
"name": "step",
|
|
4812
4856
|
"description": "Step size on a numeric input",
|
|
@@ -4954,6 +4998,11 @@
|
|
|
4954
4998
|
"description": "Shadow variant of the input",
|
|
4955
4999
|
"type": "boolean"
|
|
4956
5000
|
},
|
|
5001
|
+
{
|
|
5002
|
+
"name": "size",
|
|
5003
|
+
"description": "Field height: the 44px default or the 36px `small` box (single-line fields)",
|
|
5004
|
+
"type": "'default' | 'small'"
|
|
5005
|
+
},
|
|
4957
5006
|
{
|
|
4958
5007
|
"name": "step",
|
|
4959
5008
|
"description": "Step size on a numeric input",
|
|
@@ -5194,7 +5243,7 @@
|
|
|
5194
5243
|
},
|
|
5195
5244
|
{
|
|
5196
5245
|
"name": "part(root)",
|
|
5197
|
-
"description": "The card's visible surface, carries the background, radius, shadow and section spacing"
|
|
5246
|
+
"description": "The card's visible surface, carries the background, border, radius, shadow and section spacing"
|
|
5198
5247
|
},
|
|
5199
5248
|
{
|
|
5200
5249
|
"name": "part(fullscreen-toggle)",
|
|
@@ -5250,7 +5299,7 @@
|
|
|
5250
5299
|
},
|
|
5251
5300
|
{
|
|
5252
5301
|
"name": "part(message)",
|
|
5253
|
-
"description": "The hint / error message
|
|
5302
|
+
"description": "The hint / error message area below the checkbox (always reserved unless `hide-details`)"
|
|
5254
5303
|
},
|
|
5255
5304
|
{
|
|
5256
5305
|
"name": "part(root)",
|
|
@@ -5298,6 +5347,12 @@
|
|
|
5298
5347
|
"name": "part(root)",
|
|
5299
5348
|
"description": "The separator line element itself"
|
|
5300
5349
|
},
|
|
5350
|
+
{
|
|
5351
|
+
"name": "part(menu)",
|
|
5352
|
+
"description": "The positioned dialog surface holding the field and the list"
|
|
5353
|
+
},
|
|
5354
|
+
{ "name": "part(list)", "description": "The scrolling listbox" },
|
|
5355
|
+
{ "name": "part(item)", "description": "One option row" },
|
|
5301
5356
|
{
|
|
5302
5357
|
"name": "part(root)",
|
|
5303
5358
|
"description": "The `<svg>` element rendering the icon"
|
|
@@ -5362,9 +5417,13 @@
|
|
|
5362
5417
|
"name": "part(root)",
|
|
5363
5418
|
"description": "The anchor element forming the whole clickable card"
|
|
5364
5419
|
},
|
|
5420
|
+
{
|
|
5421
|
+
"name": "part(image-wrap)",
|
|
5422
|
+
"description": "The area above the title bar that centers the logo (default image or slotted content)"
|
|
5423
|
+
},
|
|
5365
5424
|
{
|
|
5366
5425
|
"name": "part(image)",
|
|
5367
|
-
"description": "The provider logo
|
|
5426
|
+
"description": "The default provider logo `<img>` (absent when the `image` slot is used)"
|
|
5368
5427
|
},
|
|
5369
5428
|
{
|
|
5370
5429
|
"name": "part(title)",
|
|
@@ -5519,6 +5578,18 @@
|
|
|
5519
5578
|
"name": "part(message)",
|
|
5520
5579
|
"description": "The hint/error message line below the radios"
|
|
5521
5580
|
},
|
|
5581
|
+
{
|
|
5582
|
+
"name": "part(menu)",
|
|
5583
|
+
"description": "The dropdown surface (the positioned dialog) holding the field and the list"
|
|
5584
|
+
},
|
|
5585
|
+
{
|
|
5586
|
+
"name": "part(list)",
|
|
5587
|
+
"description": "The scrolling listbox of options"
|
|
5588
|
+
},
|
|
5589
|
+
{
|
|
5590
|
+
"name": "part(item)",
|
|
5591
|
+
"description": "One option row in the list. Any `part` attribute set on content inside a slotted `<c-option>` is exported too, so `c-select::part(<name>)` reaches the consumer's own option markup"
|
|
5592
|
+
},
|
|
5522
5593
|
{ "name": "part(root)", "description": "The outer drawer container" },
|
|
5523
5594
|
{
|
|
5524
5595
|
"name": "part(nav)",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CSelectItem } from '../../types';
|
|
1
|
+
import type { CFieldSize, CSelectItem } from '../../types';
|
|
2
2
|
/**
|
|
3
3
|
* Custom filter predicate for `c-autocomplete`. Return `true` to keep the
|
|
4
4
|
* option for the current query. The default matches the start of the label.
|
|
@@ -93,6 +93,8 @@ export interface CAutocompleteProps {
|
|
|
93
93
|
returnObject?: boolean;
|
|
94
94
|
/** Shadow variant */
|
|
95
95
|
shadow?: boolean;
|
|
96
|
+
/** Field height: the 44px default or the 36px `small` box */
|
|
97
|
+
size?: CFieldSize;
|
|
96
98
|
/** Set the validity of the input */
|
|
97
99
|
valid?: boolean;
|
|
98
100
|
/** Selected value (scalar, or object when return-object is set) */
|
|
@@ -123,6 +125,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CAutoc
|
|
|
123
125
|
required: boolean;
|
|
124
126
|
returnObject: boolean;
|
|
125
127
|
shadow: boolean;
|
|
128
|
+
size: CFieldSize;
|
|
126
129
|
valid: boolean;
|
|
127
130
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
128
131
|
pre?: (props: {}) => any;
|
|
@@ -122,6 +122,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CButto
|
|
|
122
122
|
disabled: boolean;
|
|
123
123
|
hostId: string;
|
|
124
124
|
loading: boolean;
|
|
125
|
+
size: CButtonSize;
|
|
125
126
|
active: boolean;
|
|
126
127
|
danger: boolean;
|
|
127
128
|
fit: boolean;
|
|
@@ -130,7 +131,6 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CButto
|
|
|
130
131
|
inverted: boolean;
|
|
131
132
|
noRadius: boolean;
|
|
132
133
|
noRipple: boolean;
|
|
133
|
-
size: CButtonSize;
|
|
134
134
|
target: string;
|
|
135
135
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
136
136
|
icon?: (props: {}) => any;
|
|
@@ -15,8 +15,8 @@ interface CIconProps {
|
|
|
15
15
|
size?: number;
|
|
16
16
|
}
|
|
17
17
|
declare const __VLS_export: import("vue").DefineComponent<CIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CIconProps> & Readonly<{}>, {
|
|
18
|
-
color: string;
|
|
19
18
|
size: number;
|
|
19
|
+
color: string;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
22
22
|
export default _default;
|
|
@@ -74,10 +74,10 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CIconB
|
|
|
74
74
|
outlined: boolean;
|
|
75
75
|
disabled: boolean;
|
|
76
76
|
loading: boolean;
|
|
77
|
+
size: CIconButtonSize;
|
|
77
78
|
danger: boolean;
|
|
78
79
|
ghost: boolean;
|
|
79
80
|
inverted: boolean;
|
|
80
|
-
size: CIconButtonSize;
|
|
81
81
|
badge: null | number | string;
|
|
82
82
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
83
83
|
default?: (props: {}) => any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CFieldSize } from '../../types';
|
|
1
2
|
interface CInputProps {
|
|
2
3
|
/** Set by the wrapping form component when its input has focus or holds a value. */
|
|
3
4
|
active?: boolean;
|
|
@@ -61,6 +62,8 @@ interface CInputProps {
|
|
|
61
62
|
* @seeded from csc-ui — verify
|
|
62
63
|
*/
|
|
63
64
|
shadow?: boolean;
|
|
65
|
+
/** Field height: the 44px default or the 36px `small` box */
|
|
66
|
+
size?: CFieldSize;
|
|
64
67
|
/**
|
|
65
68
|
* Set the validíty of the input
|
|
66
69
|
*
|
|
@@ -85,6 +88,7 @@ declare const __VLS_base: import("vue").DefineComponent<CInputProps, {}, {}, {},
|
|
|
85
88
|
labelOnTop: boolean;
|
|
86
89
|
required: boolean;
|
|
87
90
|
shadow: boolean;
|
|
91
|
+
size: CFieldSize;
|
|
88
92
|
valid: boolean;
|
|
89
93
|
inputId: string;
|
|
90
94
|
active: boolean;
|
|
@@ -21,9 +21,11 @@ interface CLoginButtonProps {
|
|
|
21
21
|
*/
|
|
22
22
|
src?: string;
|
|
23
23
|
}
|
|
24
|
-
declare var __VLS_1: {};
|
|
24
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
25
25
|
type __VLS_Slots = {} & {
|
|
26
|
-
|
|
26
|
+
image?: (props: typeof __VLS_1) => any;
|
|
27
|
+
} & {
|
|
28
|
+
default?: (props: typeof __VLS_3) => any;
|
|
27
29
|
};
|
|
28
30
|
declare const __VLS_base: import("vue").DefineComponent<CLoginButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CLoginButtonProps> & Readonly<{}>, {
|
|
29
31
|
href: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CSelectItem } from '../../types';
|
|
1
|
+
import type { CFieldSize, CSelectItem } from '../../types';
|
|
2
2
|
interface CSelectProps {
|
|
3
3
|
/** Make the selected value clearable */
|
|
4
4
|
clearable?: boolean;
|
|
@@ -58,6 +58,8 @@ interface CSelectProps {
|
|
|
58
58
|
returnObject?: boolean;
|
|
59
59
|
/** Shadow variant */
|
|
60
60
|
shadow?: boolean;
|
|
61
|
+
/** Field height: the 44px default or the 36px `small` box */
|
|
62
|
+
size?: CFieldSize;
|
|
61
63
|
/** Set the validity of the input */
|
|
62
64
|
valid?: boolean;
|
|
63
65
|
/** Selected value (scalar, or object when return-object is set) */
|
|
@@ -91,6 +93,7 @@ declare const __VLS_base: import("vue").DefineComponent<CSelectProps, {
|
|
|
91
93
|
required: boolean;
|
|
92
94
|
returnObject: boolean;
|
|
93
95
|
shadow: boolean;
|
|
96
|
+
size: CFieldSize;
|
|
94
97
|
valid: boolean;
|
|
95
98
|
optionAsSelection: boolean;
|
|
96
99
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -21,8 +21,8 @@ interface CSpinnerProps {
|
|
|
21
21
|
}
|
|
22
22
|
declare const __VLS_export: import("vue").DefineComponent<CSpinnerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CSpinnerProps> & Readonly<{}>, {
|
|
23
23
|
width: number;
|
|
24
|
-
color: string;
|
|
25
24
|
size: number;
|
|
25
|
+
color: string;
|
|
26
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
28
28
|
export default _default;
|
|
@@ -39,8 +39,8 @@ declare const _default: typeof __VLS_export;
|
|
|
39
39
|
export default _default;
|
|
40
40
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CTagProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CTagProps> & Readonly<{}>, {
|
|
41
41
|
flat: boolean;
|
|
42
|
-
active: boolean;
|
|
43
42
|
size: CTagSize;
|
|
43
|
+
active: boolean;
|
|
44
44
|
badge: null | number | string;
|
|
45
45
|
closeable: boolean;
|
|
46
46
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CFieldSize } from '../../types';
|
|
1
2
|
/**
|
|
2
3
|
* Native `autocapitalize` behaviour of the input.
|
|
3
4
|
*/
|
|
@@ -118,6 +119,8 @@ export interface CTextFieldProps {
|
|
|
118
119
|
* @seeded from csc-ui — verify
|
|
119
120
|
*/
|
|
120
121
|
shadow?: boolean;
|
|
122
|
+
/** Field height: the 44px default or the 36px `small` box (single-line fields) */
|
|
123
|
+
size?: CFieldSize;
|
|
121
124
|
/**
|
|
122
125
|
* Step size on a numeric input
|
|
123
126
|
*
|
|
@@ -172,6 +175,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CTextF
|
|
|
172
175
|
placeholder: string;
|
|
173
176
|
required: boolean;
|
|
174
177
|
shadow: boolean;
|
|
178
|
+
size: CFieldSize;
|
|
175
179
|
valid: boolean;
|
|
176
180
|
autocomplete: string;
|
|
177
181
|
readonly: boolean;
|
package/dist-types/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export type { CToastsHorizontal, CToastsProps, CToastsVertical, } from './compon
|
|
|
19
19
|
export type * from './tag-name-map';
|
|
20
20
|
export { applyTheme, resetTheme, themeToCss } from './theme/applyTheme';
|
|
21
21
|
export type { Family, ThemeSeeds } from './theme/applyTheme';
|
|
22
|
-
export type { CSelectItem, CToastMessage, CToastType } from './types';
|
|
22
|
+
export type { CFieldSize, CSelectItem, CToastMessage, CToastType, } from './types';
|
|
23
23
|
export { h } from 'vue';
|
|
24
24
|
export type { VNode, VNodeChild } from 'vue';
|
|
25
25
|
/**
|
|
@@ -130,7 +130,7 @@ export interface CAutocompleteElementEventMap {
|
|
|
130
130
|
'update:value': CustomEvent<CAutocompleteItem | null | number | string>;
|
|
131
131
|
}
|
|
132
132
|
/** A filterable value-selection component: a readonly value field that opens a popover panel with a search input above the matching options. */
|
|
133
|
-
export interface CAutocompleteElement extends Omit<HTMLElement, 'clearable' | 'disabled' | 'errorMessage' | 'external' | 'filter' | 'hideDetails' | 'hint' | 'hostId' | 'items' | 'itemsPerPage' | 'label' | 'labelOnTop' | 'loading' | 'name' | 'noResultsText' | 'placeholder' | 'required' | 'returnObject' | 'shadow' | 'valid' | 'value'> {
|
|
133
|
+
export interface CAutocompleteElement extends Omit<HTMLElement, 'clearable' | 'disabled' | 'errorMessage' | 'external' | 'filter' | 'hideDetails' | 'hint' | 'hostId' | 'items' | 'itemsPerPage' | 'label' | 'labelOnTop' | 'loading' | 'name' | 'noResultsText' | 'placeholder' | 'required' | 'returnObject' | 'shadow' | 'size' | 'valid' | 'value'> {
|
|
134
134
|
/** Make the selected value clearable */
|
|
135
135
|
clearable?: boolean;
|
|
136
136
|
/** Disable the input */
|
|
@@ -173,6 +173,8 @@ export interface CAutocompleteElement extends Omit<HTMLElement, 'clearable' | 'd
|
|
|
173
173
|
returnObject?: boolean;
|
|
174
174
|
/** Shadow variant */
|
|
175
175
|
shadow?: boolean;
|
|
176
|
+
/** Field height: the 44px default or the 36px `small` box */
|
|
177
|
+
size?: 'default' | 'small';
|
|
176
178
|
/** Set the validity of the input */
|
|
177
179
|
valid?: boolean;
|
|
178
180
|
/** Selected value (scalar, or object when return-object is set) */
|
|
@@ -534,7 +536,7 @@ export interface CIconButtonElement extends Omit<HTMLElement, 'badge' | 'danger'
|
|
|
534
536
|
/** Text variant of the button */
|
|
535
537
|
text?: boolean;
|
|
536
538
|
}
|
|
537
|
-
export interface CInputElement extends Omit<HTMLElement, 'active' | 'disabled' | 'errorMessage' | 'filled' | 'hideDetails' | 'hint' | 'inputId' | 'isTextarea' | 'label' | 'labelOnTop' | 'required' | 'shadow' | 'valid'> {
|
|
539
|
+
export interface CInputElement extends Omit<HTMLElement, 'active' | 'disabled' | 'errorMessage' | 'filled' | 'hideDetails' | 'hint' | 'inputId' | 'isTextarea' | 'label' | 'labelOnTop' | 'required' | 'shadow' | 'size' | 'valid'> {
|
|
538
540
|
/** Set by the wrapping form component when its input has focus or holds a value. */
|
|
539
541
|
active?: boolean;
|
|
540
542
|
/** Disable the input */
|
|
@@ -559,6 +561,8 @@ export interface CInputElement extends Omit<HTMLElement, 'active' | 'disabled' |
|
|
|
559
561
|
required?: boolean;
|
|
560
562
|
/** Shadow variant of the input */
|
|
561
563
|
shadow?: boolean;
|
|
564
|
+
/** Field height: the 44px default or the 36px `small` box */
|
|
565
|
+
size?: 'default' | 'small';
|
|
562
566
|
/** Set the validíty of the input */
|
|
563
567
|
valid?: boolean;
|
|
564
568
|
}
|
|
@@ -946,7 +950,7 @@ export interface CSelectElementEventMap {
|
|
|
946
950
|
*/
|
|
947
951
|
'update:value': CustomEvent<CSelectItem | null | number | string>;
|
|
948
952
|
}
|
|
949
|
-
export interface CSelectElement extends Omit<HTMLElement, 'clearable' | 'disabled' | 'errorMessage' | 'hideDetails' | 'hint' | 'hostId' | 'items' | 'itemsPerPage' | 'label' | 'labelOnTop' | 'loading' | 'name' | 'optionAsSelection' | 'placeholder' | 'required' | 'returnObject' | 'shadow' | 'valid' | 'value'> {
|
|
953
|
+
export interface CSelectElement extends Omit<HTMLElement, 'clearable' | 'disabled' | 'errorMessage' | 'hideDetails' | 'hint' | 'hostId' | 'items' | 'itemsPerPage' | 'label' | 'labelOnTop' | 'loading' | 'name' | 'optionAsSelection' | 'placeholder' | 'required' | 'returnObject' | 'shadow' | 'size' | 'valid' | 'value'> {
|
|
950
954
|
/** Make the selected value clearable */
|
|
951
955
|
clearable?: boolean;
|
|
952
956
|
/** Disable the input */
|
|
@@ -981,6 +985,8 @@ export interface CSelectElement extends Omit<HTMLElement, 'clearable' | 'disable
|
|
|
981
985
|
returnObject?: boolean;
|
|
982
986
|
/** Shadow variant */
|
|
983
987
|
shadow?: boolean;
|
|
988
|
+
/** Field height: the 44px default or the 36px `small` box */
|
|
989
|
+
size?: 'default' | 'small';
|
|
984
990
|
/** Set the validity of the input */
|
|
985
991
|
valid?: boolean;
|
|
986
992
|
/** Selected value (scalar, or object when return-object is set) */
|
|
@@ -1367,7 +1373,7 @@ export interface CTextFieldElementEventMap {
|
|
|
1367
1373
|
*/
|
|
1368
1374
|
'update:value': CustomEvent<string>;
|
|
1369
1375
|
}
|
|
1370
|
-
export interface CTextFieldElement extends Omit<HTMLElement, 'autocomplete' | 'autocorrect' | 'automaticCapitalize' | 'disabled' | 'errorMessage' | 'hideDetails' | 'hint' | 'hostId' | 'label' | 'labelOnTop' | 'max' | 'min' | 'name' | 'placeholder' | 'readonly' | 'required' | 'rows' | 'shadow' | 'step' | 'trimWhitespace' | 'type' | 'valid' | 'value'> {
|
|
1376
|
+
export interface CTextFieldElement extends Omit<HTMLElement, 'autocomplete' | 'autocorrect' | 'automaticCapitalize' | 'disabled' | 'errorMessage' | 'hideDetails' | 'hint' | 'hostId' | 'label' | 'labelOnTop' | 'max' | 'min' | 'name' | 'placeholder' | 'readonly' | 'required' | 'rows' | 'shadow' | 'size' | 'step' | 'trimWhitespace' | 'type' | 'valid' | 'value'> {
|
|
1371
1377
|
/** HTML input autocomplete */
|
|
1372
1378
|
autocomplete?: string;
|
|
1373
1379
|
/**
|
|
@@ -1409,6 +1415,8 @@ export interface CTextFieldElement extends Omit<HTMLElement, 'autocomplete' | 'a
|
|
|
1409
1415
|
rows?: number;
|
|
1410
1416
|
/** Shadow variant of the input */
|
|
1411
1417
|
shadow?: boolean;
|
|
1418
|
+
/** Field height: the 44px default or the 36px `small` box (single-line fields) */
|
|
1419
|
+
size?: 'default' | 'small';
|
|
1412
1420
|
/** Step size on a numeric input */
|
|
1413
1421
|
step?: null | number;
|
|
1414
1422
|
/** Trim whitespace from the return value */
|
package/dist-types/types.d.ts
CHANGED
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
*
|
|
7
7
|
* import type { CSelectItem } from '@cscfi/csc-ui';
|
|
8
8
|
*/
|
|
9
|
+
/**
|
|
10
|
+
* Field height of the form controls built on `c-input`. `default` is the 44px
|
|
11
|
+
* field; `small` is the 36px field. Owned here because the value passes from
|
|
12
|
+
* the wrapping control (`c-select`) into `c-input`.
|
|
13
|
+
*/
|
|
14
|
+
export type CFieldSize = 'default' | 'small';
|
|
9
15
|
/**
|
|
10
16
|
* A selectable item for the value-selection components (`c-select`,
|
|
11
17
|
* `c-autocomplete`) when options are supplied via the `items` prop instead of
|
package/package.json
CHANGED