@cscfi/csc-ui 4.0.0-alpha.2 → 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.
@@ -2,6 +2,12 @@
2
2
  "schemaVersion": "1.0.0",
3
3
  "csc": {
4
4
  "types": [
5
+ {
6
+ "declaration": "export type CFieldSize = 'default' | 'small';",
7
+ "description": "Field height of the form controls built on `c-input`. `default` is the 44px\nfield; `small` is the 36px field. Owned here because the value passes from\nthe wrapping control (`c-select`) into `c-input`.",
8
+ "kind": "type-alias",
9
+ "name": "CFieldSize"
10
+ },
5
11
  {
6
12
  "declaration": "export interface CSelectItem {\n /** Disable the item so it cannot be selected. */\n disabled?: boolean;\n /** The item's display label. */\n name: string;\n /** The value emitted via v-model when the item is selected. */\n value: number | string;\n}",
7
13
  "description": "A selectable item for the value-selection components (`c-select`,\n`c-autocomplete`) when options are supplied via the `items` prop instead of\nslotted `<c-option>` elements.",
@@ -63,7 +69,7 @@
63
69
  "owner": "c-autocomplete"
64
70
  },
65
71
  {
66
- "declaration": "export interface CAutocompleteProps {\n /** Make the selected value clearable */\n clearable?: boolean;\n /** Disable the input */\n disabled?: boolean;\n /**\n * Error message shown in place of the hint while the autocomplete is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n /**\n * The consumer owns filtering: the component renders its options verbatim\n * and only emits `change:query` as the user types. Pair with `loading` and\n * an async data source feeding `items`\n */\n external?: boolean;\n /** Custom filter predicate; receives a normalized option + the query. Ignored when `external` is set */\n filter?: CAutocompleteFilter;\n /** Hide the hint and error messages */\n hideDetails?: boolean;\n /**\n * Hint text for the input\n *\n * @freeform\n */\n hint?: string;\n /**\n * Id of the element\n *\n * @freeform\n */\n hostId?: string;\n /** Dropdown items (when not using <c-option> elements) */\n items?: CAutocompleteItem[];\n /** Items per page before the list scrolls */\n itemsPerPage?: number;\n /**\n * Element label\n *\n * @freeform\n */\n label?: string;\n /** Label on top of the input */\n labelOnTop?: boolean;\n /** Show loading state */\n loading?: boolean;\n /**\n * Input field name\n *\n * @freeform\n */\n name?: string;\n /**\n * Message shown when the query matches no options\n *\n * @freeform\n */\n noResultsText?: string;\n /**\n * Placeholder for the in-panel search input\n *\n * @freeform\n */\n placeholder?: string;\n /** Set the autocomplete as required */\n required?: boolean;\n /** Return object instead of value */\n returnObject?: boolean;\n /** Shadow variant */\n shadow?: boolean;\n /** Set the validity of the input */\n valid?: boolean;\n /** Selected value (scalar, or object when return-object is set) */\n value?: CAutocompleteItem | null | number | string;\n}",
72
+ "declaration": "export interface CAutocompleteProps {\n /** Make the selected value clearable */\n clearable?: boolean;\n /** Disable the input */\n disabled?: boolean;\n /**\n * Error message shown in place of the hint while the autocomplete is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n /**\n * The consumer owns filtering: the component renders its options verbatim\n * and only emits `change:query` as the user types. Pair with `loading` and\n * an async data source feeding `items`\n */\n external?: boolean;\n /** Custom filter predicate; receives a normalized option + the query. Ignored when `external` is set */\n filter?: CAutocompleteFilter;\n /** Hide the hint and error messages */\n hideDetails?: boolean;\n /**\n * Hint text for the input\n *\n * @freeform\n */\n hint?: string;\n /**\n * Id of the element\n *\n * @freeform\n */\n hostId?: string;\n /** Dropdown items (when not using <c-option> elements) */\n items?: CAutocompleteItem[];\n /** Items per page before the list scrolls */\n itemsPerPage?: number;\n /**\n * Element label\n *\n * @freeform\n */\n label?: string;\n /** Label on top of the input */\n labelOnTop?: boolean;\n /** Show loading state */\n loading?: boolean;\n /**\n * Input field name\n *\n * @freeform\n */\n name?: string;\n /**\n * Message shown when the query matches no options\n *\n * @freeform\n */\n noResultsText?: string;\n /**\n * Placeholder for the in-panel search input\n *\n * @freeform\n */\n placeholder?: string;\n /** Set the autocomplete as required */\n required?: boolean;\n /** Return object instead of value */\n returnObject?: boolean;\n /** Shadow variant */\n shadow?: boolean;\n /** Field height: the 44px default or the 36px `small` box */\n size?: CFieldSize;\n /** Set the validity of the input */\n valid?: boolean;\n /** Selected value (scalar, or object when return-object is set) */\n value?: CAutocompleteItem | null | number | string;\n}",
67
73
  "description": "",
68
74
  "kind": "interface",
69
75
  "name": "CAutocompleteProps",
@@ -378,7 +384,7 @@
378
384
  "owner": "c-text-field"
379
385
  },
380
386
  {
381
- "declaration": "export interface CTextFieldProps {\n /**\n * HTML input autocomplete\n *\n * @seeded from csc-ui — verify\n * @freeform any HTML autocomplete token list\n */\n autocomplete?: string;\n /**\n * Enable native input autocorrection (Safari). Maps to the input's\n * `autocorrect=\"on\"`/`\"off\"` attribute; left unset (browser default per\n * input type) when not specified. Mirrors the platform\n * `HTMLElement.autocorrect` boolean.\n */\n autocorrect?: boolean;\n /**\n * HTML input autocapitalize\n *\n * @seeded from csc-ui — verify\n */\n automaticCapitalize?: CTextFieldAutocapitalize;\n /**\n * Disable the input\n *\n * @seeded from csc-ui — verify\n */\n disabled?: boolean;\n /**\n * Error message shown in place of the hint while the input is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n /**\n * Hide the hint and error messages\n *\n * @seeded from csc-ui — verify\n */\n hideDetails?: boolean;\n /**\n * Hint text for the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n hint?: string;\n /**\n * Id of the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n hostId?: string;\n /**\n * Label of the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n label?: string;\n /**\n * Label on top of the input\n *\n * @seeded from csc-ui — verify\n */\n labelOnTop?: boolean;\n /**\n * Maximum value on a numeric input\n *\n * @seeded from csc-ui — verify\n */\n max?: null | number;\n /**\n * Minimum value on a numeric input\n *\n * @seeded from csc-ui — verify\n */\n min?: null | number;\n /**\n * Name of the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n name?: string;\n /**\n * Placeholder of the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n placeholder?: string;\n /**\n * Mark as readonly\n *\n * @seeded from csc-ui — verify\n */\n readonly?: boolean;\n /**\n * Set the input as required\n *\n * @seeded from csc-ui — verify\n */\n required?: boolean;\n /**\n * Rows on the input\n *\n * @seeded from csc-ui — verify\n */\n rows?: number;\n /**\n * Shadow variant of the input\n *\n * @seeded from csc-ui — verify\n */\n shadow?: boolean;\n /**\n * Step size on a numeric input\n *\n * @seeded from csc-ui — verify\n */\n step?: null | number;\n /**\n * Trim whitespace from the return value\n *\n * @seeded from csc-ui — verify\n */\n trimWhitespace?: boolean;\n /**\n * Type of the input\n *\n * @seeded from csc-ui — verify\n */\n type?: CTextFieldType;\n /**\n * Set the validity of the input\n *\n * @seeded from csc-ui — verify\n */\n valid?: boolean;\n /**\n * Value of the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n value?: string;\n}",
387
+ "declaration": "export interface CTextFieldProps {\n /**\n * HTML input autocomplete\n *\n * @seeded from csc-ui — verify\n * @freeform any HTML autocomplete token list\n */\n autocomplete?: string;\n /**\n * Enable native input autocorrection (Safari). Maps to the input's\n * `autocorrect=\"on\"`/`\"off\"` attribute; left unset (browser default per\n * input type) when not specified. Mirrors the platform\n * `HTMLElement.autocorrect` boolean.\n */\n autocorrect?: boolean;\n /**\n * HTML input autocapitalize\n *\n * @seeded from csc-ui — verify\n */\n automaticCapitalize?: CTextFieldAutocapitalize;\n /**\n * Disable the input\n *\n * @seeded from csc-ui — verify\n */\n disabled?: boolean;\n /**\n * Error message shown in place of the hint while the input is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n /**\n * Hide the hint and error messages\n *\n * @seeded from csc-ui — verify\n */\n hideDetails?: boolean;\n /**\n * Hint text for the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n hint?: string;\n /**\n * Id of the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n hostId?: string;\n /**\n * Label of the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n label?: string;\n /**\n * Label on top of the input\n *\n * @seeded from csc-ui — verify\n */\n labelOnTop?: boolean;\n /**\n * Maximum value on a numeric input\n *\n * @seeded from csc-ui — verify\n */\n max?: null | number;\n /**\n * Minimum value on a numeric input\n *\n * @seeded from csc-ui — verify\n */\n min?: null | number;\n /**\n * Name of the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n name?: string;\n /**\n * Placeholder of the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n placeholder?: string;\n /**\n * Mark as readonly\n *\n * @seeded from csc-ui — verify\n */\n readonly?: boolean;\n /**\n * Set the input as required\n *\n * @seeded from csc-ui — verify\n */\n required?: boolean;\n /**\n * Rows on the input\n *\n * @seeded from csc-ui — verify\n */\n rows?: number;\n /**\n * Shadow variant of the input\n *\n * @seeded from csc-ui — verify\n */\n shadow?: boolean;\n /** Field height: the 44px default or the 36px `small` box (single-line fields) */\n size?: CFieldSize;\n /**\n * Step size on a numeric input\n *\n * @seeded from csc-ui — verify\n */\n step?: null | number;\n /**\n * Trim whitespace from the return value\n *\n * @seeded from csc-ui — verify\n */\n trimWhitespace?: boolean;\n /**\n * Type of the input\n *\n * @seeded from csc-ui — verify\n */\n type?: CTextFieldType;\n /**\n * Set the validity of the input\n *\n * @seeded from csc-ui — verify\n */\n valid?: boolean;\n /**\n * Value of the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n value?: string;\n}",
382
388
  "description": "",
383
389
  "kind": "interface",
384
390
  "name": "CTextFieldProps",
@@ -1021,6 +1027,18 @@
1021
1027
  },
1022
1028
  "default": "false"
1023
1029
  },
1030
+ {
1031
+ "fieldName": "size",
1032
+ "name": "size",
1033
+ "description": "Field height: the 44px default or the 36px `small` box",
1034
+ "type": {
1035
+ "text": "'default' | 'small'"
1036
+ },
1037
+ "default": "'default'",
1038
+ "csc": {
1039
+ "typeAlias": "CFieldSize"
1040
+ }
1041
+ },
1024
1042
  {
1025
1043
  "fieldName": "valid",
1026
1044
  "name": "valid",
@@ -1311,6 +1329,19 @@
1311
1329
  },
1312
1330
  "default": "false"
1313
1331
  },
1332
+ {
1333
+ "kind": "field",
1334
+ "name": "size",
1335
+ "privacy": "public",
1336
+ "description": "Field height: the 44px default or the 36px `small` box",
1337
+ "type": {
1338
+ "text": "'default' | 'small'"
1339
+ },
1340
+ "default": "'default'",
1341
+ "csc": {
1342
+ "typeAlias": "CFieldSize"
1343
+ }
1344
+ },
1314
1345
  {
1315
1346
  "kind": "field",
1316
1347
  "name": "valid",
@@ -2539,7 +2570,7 @@
2539
2570
  },
2540
2571
  {
2541
2572
  "name": "message",
2542
- "description": "The hint / error message line below the checkbox"
2573
+ "description": "The hint / error message area below the checkbox (always reserved unless `hide-details`)"
2543
2574
  }
2544
2575
  ],
2545
2576
  "cssProperties": [],
@@ -3410,7 +3441,20 @@
3410
3441
  }
3411
3442
  }
3412
3443
  ],
3413
- "cssParts": [],
3444
+ "cssParts": [
3445
+ {
3446
+ "name": "menu",
3447
+ "description": "The positioned dialog surface holding the field and the list"
3448
+ },
3449
+ {
3450
+ "name": "list",
3451
+ "description": "The scrolling listbox"
3452
+ },
3453
+ {
3454
+ "name": "item",
3455
+ "description": "One option row"
3456
+ }
3457
+ ],
3414
3458
  "cssProperties": [],
3415
3459
  "events": [
3416
3460
  {
@@ -4094,6 +4138,18 @@
4094
4138
  },
4095
4139
  "default": "false"
4096
4140
  },
4141
+ {
4142
+ "fieldName": "size",
4143
+ "name": "size",
4144
+ "description": "Field height: the 44px default or the 36px `small` box",
4145
+ "type": {
4146
+ "text": "'default' | 'small'"
4147
+ },
4148
+ "default": "'default'",
4149
+ "csc": {
4150
+ "typeAlias": "CFieldSize"
4151
+ }
4152
+ },
4097
4153
  {
4098
4154
  "fieldName": "valid",
4099
4155
  "name": "valid",
@@ -4261,6 +4317,19 @@
4261
4317
  },
4262
4318
  "default": "false"
4263
4319
  },
4320
+ {
4321
+ "kind": "field",
4322
+ "name": "size",
4323
+ "privacy": "public",
4324
+ "description": "Field height: the 44px default or the 36px `small` box",
4325
+ "type": {
4326
+ "text": "'default' | 'small'"
4327
+ },
4328
+ "default": "'default'",
4329
+ "csc": {
4330
+ "typeAlias": "CFieldSize"
4331
+ }
4332
+ },
4264
4333
  {
4265
4334
  "kind": "field",
4266
4335
  "name": "valid",
@@ -5009,9 +5078,13 @@
5009
5078
  "name": "root",
5010
5079
  "description": "The anchor element forming the whole clickable card"
5011
5080
  },
5081
+ {
5082
+ "name": "image-wrap",
5083
+ "description": "The area above the title bar that centers the logo (default image or slotted content)"
5084
+ },
5012
5085
  {
5013
5086
  "name": "image",
5014
- "description": "The provider logo image centered in the card"
5087
+ "description": "The default provider logo `<img>` (absent when the `image` slot is used)"
5015
5088
  },
5016
5089
  {
5017
5090
  "name": "title",
@@ -5064,7 +5137,11 @@
5064
5137
  "slots": [
5065
5138
  {
5066
5139
  "name": "default",
5067
- "description": "Default slot"
5140
+ "description": "The title shown in the bottom bar"
5141
+ },
5142
+ {
5143
+ "name": "image",
5144
+ "description": "Custom provider logo markup (an inline `<svg>`, a `<picture>`, …) replacing the default `<img>` rendered from `src`"
5068
5145
  }
5069
5146
  ]
5070
5147
  }
@@ -7730,6 +7807,18 @@
7730
7807
  },
7731
7808
  "default": "false"
7732
7809
  },
7810
+ {
7811
+ "fieldName": "size",
7812
+ "name": "size",
7813
+ "description": "Field height: the 44px default or the 36px `small` box",
7814
+ "type": {
7815
+ "text": "'default' | 'small'"
7816
+ },
7817
+ "default": "'default'",
7818
+ "csc": {
7819
+ "typeAlias": "CFieldSize"
7820
+ }
7821
+ },
7733
7822
  {
7734
7823
  "fieldName": "valid",
7735
7824
  "name": "valid",
@@ -7749,7 +7838,20 @@
7749
7838
  "default": "null"
7750
7839
  }
7751
7840
  ],
7752
- "cssParts": [],
7841
+ "cssParts": [
7842
+ {
7843
+ "name": "menu",
7844
+ "description": "The dropdown surface (the positioned dialog) holding the field and the list"
7845
+ },
7846
+ {
7847
+ "name": "list",
7848
+ "description": "The scrolling listbox of options"
7849
+ },
7850
+ {
7851
+ "name": "item",
7852
+ "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"
7853
+ }
7854
+ ],
7753
7855
  "cssProperties": [],
7754
7856
  "events": [
7755
7857
  {
@@ -7963,6 +8065,19 @@
7963
8065
  },
7964
8066
  "default": "false"
7965
8067
  },
8068
+ {
8069
+ "kind": "field",
8070
+ "name": "size",
8071
+ "privacy": "public",
8072
+ "description": "Field height: the 44px default or the 36px `small` box",
8073
+ "type": {
8074
+ "text": "'default' | 'small'"
8075
+ },
8076
+ "default": "'default'",
8077
+ "csc": {
8078
+ "typeAlias": "CFieldSize"
8079
+ }
8080
+ },
7966
8081
  {
7967
8082
  "kind": "field",
7968
8083
  "name": "valid",
@@ -10778,6 +10893,18 @@
10778
10893
  },
10779
10894
  "default": "false"
10780
10895
  },
10896
+ {
10897
+ "fieldName": "size",
10898
+ "name": "size",
10899
+ "description": "Field height: the 44px default or the 36px `small` box (single-line fields)",
10900
+ "type": {
10901
+ "text": "'default' | 'small'"
10902
+ },
10903
+ "default": "'default'",
10904
+ "csc": {
10905
+ "typeAlias": "CFieldSize"
10906
+ }
10907
+ },
10781
10908
  {
10782
10909
  "fieldName": "step",
10783
10910
  "name": "step",
@@ -11065,6 +11192,19 @@
11065
11192
  },
11066
11193
  "default": "false"
11067
11194
  },
11195
+ {
11196
+ "kind": "field",
11197
+ "name": "size",
11198
+ "privacy": "public",
11199
+ "description": "Field height: the 44px default or the 36px `small` box (single-line fields)",
11200
+ "type": {
11201
+ "text": "'default' | 'small'"
11202
+ },
11203
+ "default": "'default'",
11204
+ "csc": {
11205
+ "typeAlias": "CFieldSize"
11206
+ }
11207
+ },
11068
11208
  {
11069
11209
  "kind": "field",
11070
11210
  "name": "step",
@@ -140,7 +140,7 @@
140
140
  },
141
141
  {
142
142
  "name": "::part(message)",
143
- "description": "The hint / error message line below the checkbox"
143
+ "description": "The hint / error message area below the checkbox (always reserved unless `hide-details`)"
144
144
  },
145
145
  {
146
146
  "name": "::part(root)",
@@ -182,6 +182,12 @@
182
182
  "name": "::part(root)",
183
183
  "description": "The separator line element itself"
184
184
  },
185
+ {
186
+ "name": "::part(menu)",
187
+ "description": "The positioned dialog surface holding the field and the list"
188
+ },
189
+ { "name": "::part(list)", "description": "The scrolling listbox" },
190
+ { "name": "::part(item)", "description": "One option row" },
185
191
  {
186
192
  "name": "::part(root)",
187
193
  "description": "The `<svg>` element rendering the icon"
@@ -246,9 +252,13 @@
246
252
  "name": "::part(root)",
247
253
  "description": "The anchor element forming the whole clickable card"
248
254
  },
255
+ {
256
+ "name": "::part(image-wrap)",
257
+ "description": "The area above the title bar that centers the logo (default image or slotted content)"
258
+ },
249
259
  {
250
260
  "name": "::part(image)",
251
- "description": "The provider logo image centered in the card"
261
+ "description": "The default provider logo `<img>` (absent when the `image` slot is used)"
252
262
  },
253
263
  {
254
264
  "name": "::part(title)",
@@ -403,6 +413,18 @@
403
413
  "name": "::part(message)",
404
414
  "description": "The hint/error message line below the radios"
405
415
  },
416
+ {
417
+ "name": "::part(menu)",
418
+ "description": "The dropdown surface (the positioned dialog) holding the field and the list"
419
+ },
420
+ {
421
+ "name": "::part(list)",
422
+ "description": "The scrolling listbox of options"
423
+ },
424
+ {
425
+ "name": "::part(item)",
426
+ "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"
427
+ },
406
428
  { "name": "::part(root)", "description": "The outer drawer container" },
407
429
  {
408
430
  "name": "::part(nav)",
@@ -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",
@@ -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 line below the checkbox",
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** - Default slot\n\n### **CSS Parts:**\n - **root** - The anchor element forming the whole clickable card\n- **image** - The provider logo image centered in the card\n- **title** - The bottom title bar wrapping the slotted label",
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",
@@ -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.2",
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",
@@ -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 line below the checkbox",
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** - Default slot\n\n### **CSS Parts:**\n - **root** - The anchor element forming the whole clickable card\n- **image** - The provider logo image centered in the card\n- **title** - The bottom title bar wrapping the slotted label",
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": [{ "name": "default", "description": "Default slot" }],
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",
@@ -5250,7 +5299,7 @@
5250
5299
  },
5251
5300
  {
5252
5301
  "name": "part(message)",
5253
- "description": "The hint / error message line below the checkbox"
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 image centered in the card"
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)",