@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
|
@@ -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",
|
|
@@ -2088,7 +2119,7 @@
|
|
|
2088
2119
|
"cssParts": [
|
|
2089
2120
|
{
|
|
2090
2121
|
"name": "root",
|
|
2091
|
-
"description": "The card's visible surface, carries the background, radius, shadow and section spacing"
|
|
2122
|
+
"description": "The card's visible surface, carries the background, border, radius, shadow and section spacing"
|
|
2092
2123
|
},
|
|
2093
2124
|
{
|
|
2094
2125
|
"name": "fullscreen-toggle",
|
|
@@ -2539,7 +2570,7 @@
|
|
|
2539
2570
|
},
|
|
2540
2571
|
{
|
|
2541
2572
|
"name": "message",
|
|
2542
|
-
"description": "The hint / error message
|
|
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
|
|
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": "
|
|
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",
|
|
@@ -73,17 +73,18 @@
|
|
|
73
73
|
--c-secondary-800: #4f002fff;
|
|
74
74
|
--c-secondary-900: #3e0024ff;
|
|
75
75
|
--c-secondary-950: #2f001aff;
|
|
76
|
-
--c-slate-100: #
|
|
76
|
+
--c-slate-100: #e9eceeff;
|
|
77
77
|
--c-slate-200: #cfd3d8ff;
|
|
78
|
-
--c-slate-300: #
|
|
79
|
-
--c-slate-400: #
|
|
78
|
+
--c-slate-300: #abb2b8ff;
|
|
79
|
+
--c-slate-400: #808890ff;
|
|
80
80
|
--c-slate-500: #5e6770ff;
|
|
81
81
|
--c-slate-rgb: 94, 103, 112;
|
|
82
|
-
--c-slate-600: #
|
|
83
|
-
--c-slate-700: #
|
|
84
|
-
--c-slate-800: #
|
|
85
|
-
--c-slate-
|
|
86
|
-
--c-slate-
|
|
82
|
+
--c-slate-600: #4b5158ff;
|
|
83
|
+
--c-slate-700: #3c4247ff;
|
|
84
|
+
--c-slate-800: #2b2f33ff;
|
|
85
|
+
--c-slate-850: #26292dff;
|
|
86
|
+
--c-slate-900: #24272aff;
|
|
87
|
+
--c-slate-950: #1b1e20ff;
|
|
87
88
|
--c-success-50: #f2ffecff;
|
|
88
89
|
--c-success-100: #d0efc3ff;
|
|
89
90
|
--c-success-200: #afdf99ff;
|
|
@@ -218,147 +219,147 @@
|
|
|
218
219
|
|
|
219
220
|
/* Explicit dark mode (wins over the OS preference). */
|
|
220
221
|
:root[data-theme='dark'] {
|
|
221
|
-
--c-surface: var(--c-slate-
|
|
222
|
-
--c-surface-raised: var(--c-slate-
|
|
223
|
-
--c-surface-overlay: var(--c-slate-
|
|
224
|
-
--c-surface-muted: var(--c-slate-
|
|
225
|
-
--c-surface-sunken: var(--c-slate-
|
|
226
|
-
--c-on-surface: var(--c-
|
|
227
|
-
--c-on-surface-muted: var(--c-slate-
|
|
222
|
+
--c-surface: var(--c-slate-800);
|
|
223
|
+
--c-surface-raised: var(--c-slate-800);
|
|
224
|
+
--c-surface-overlay: var(--c-slate-700);
|
|
225
|
+
--c-surface-muted: var(--c-slate-850);
|
|
226
|
+
--c-surface-sunken: var(--c-slate-900);
|
|
227
|
+
--c-on-surface: var(--c-slate-100);
|
|
228
|
+
--c-on-surface-muted: var(--c-slate-300);
|
|
228
229
|
--c-on-surface-faint: var(--c-slate-400);
|
|
229
|
-
--c-on-surface-sunken: var(--c-
|
|
230
|
+
--c-on-surface-sunken: var(--c-slate-100);
|
|
230
231
|
--c-border: var(--c-slate-700);
|
|
231
232
|
--c-border-strong: var(--c-slate-400);
|
|
232
|
-
--c-ring: var(--c-
|
|
233
|
-
--c-primary: var(--c-
|
|
234
|
-
--c-primary-hover: var(--c-
|
|
235
|
-
--c-on-primary: var(--c-primary-
|
|
233
|
+
--c-ring: var(--c-accent-400);
|
|
234
|
+
--c-primary: var(--c-accent-500);
|
|
235
|
+
--c-primary-hover: var(--c-accent-400);
|
|
236
|
+
--c-on-primary: var(--c-primary-950);
|
|
236
237
|
--c-primary-subtle: var(--c-primary-800);
|
|
237
|
-
--c-primary-subtle-hover: var(--c-primary-
|
|
238
|
-
--c-on-primary-subtle: var(--c-
|
|
238
|
+
--c-primary-subtle-hover: var(--c-primary-700);
|
|
239
|
+
--c-on-primary-subtle: var(--c-accent-300);
|
|
239
240
|
--c-secondary: var(--c-secondary-300);
|
|
240
241
|
--c-secondary-hover: var(--c-secondary-200);
|
|
241
242
|
--c-on-secondary: var(--c-secondary-900);
|
|
242
243
|
--c-secondary-subtle: var(--c-secondary-800);
|
|
243
|
-
--c-secondary-subtle-hover: var(--c-secondary-
|
|
244
|
+
--c-secondary-subtle-hover: var(--c-secondary-700);
|
|
244
245
|
--c-on-secondary-subtle: var(--c-secondary-200);
|
|
245
246
|
--c-accent: var(--c-accent-300);
|
|
246
247
|
--c-accent-hover: var(--c-accent-200);
|
|
247
248
|
--c-on-accent: var(--c-accent-900);
|
|
248
249
|
--c-accent-subtle: var(--c-accent-800);
|
|
249
|
-
--c-accent-subtle-hover: var(--c-accent-
|
|
250
|
+
--c-accent-subtle-hover: var(--c-accent-700);
|
|
250
251
|
--c-on-accent-subtle: var(--c-accent-200);
|
|
251
252
|
--c-success: var(--c-success-300);
|
|
252
253
|
--c-success-hover: var(--c-success-200);
|
|
253
254
|
--c-on-success: var(--c-success-900);
|
|
254
255
|
--c-success-subtle: var(--c-success-800);
|
|
255
|
-
--c-success-subtle-hover: var(--c-success-
|
|
256
|
+
--c-success-subtle-hover: var(--c-success-700);
|
|
256
257
|
--c-on-success-subtle: var(--c-success-200);
|
|
257
258
|
--c-info: var(--c-info-300);
|
|
258
259
|
--c-info-hover: var(--c-info-200);
|
|
259
260
|
--c-on-info: var(--c-info-900);
|
|
260
261
|
--c-info-subtle: var(--c-info-800);
|
|
261
|
-
--c-info-subtle-hover: var(--c-info-
|
|
262
|
+
--c-info-subtle-hover: var(--c-info-700);
|
|
262
263
|
--c-on-info-subtle: var(--c-info-200);
|
|
263
264
|
--c-warning: var(--c-warning-300);
|
|
264
265
|
--c-warning-hover: var(--c-warning-200);
|
|
265
266
|
--c-on-warning: var(--c-warning-900);
|
|
266
267
|
--c-warning-subtle: var(--c-warning-800);
|
|
267
|
-
--c-warning-subtle-hover: var(--c-warning-
|
|
268
|
+
--c-warning-subtle-hover: var(--c-warning-700);
|
|
268
269
|
--c-on-warning-subtle: var(--c-warning-200);
|
|
269
270
|
--c-error: var(--c-error-300);
|
|
270
271
|
--c-error-hover: var(--c-error-200);
|
|
271
272
|
--c-on-error: var(--c-error-900);
|
|
272
273
|
--c-error-subtle: var(--c-error-800);
|
|
273
|
-
--c-error-subtle-hover: var(--c-error-
|
|
274
|
+
--c-error-subtle-hover: var(--c-error-700);
|
|
274
275
|
--c-on-error-subtle: var(--c-error-200);
|
|
275
|
-
--c-link: var(--c-
|
|
276
|
-
--c-link-hover: var(--c-accent-
|
|
276
|
+
--c-link: var(--c-accent-400);
|
|
277
|
+
--c-link-hover: var(--c-accent-300);
|
|
277
278
|
--c-on-link: var(--c-link-900);
|
|
278
279
|
--c-link-subtle: var(--c-link-800);
|
|
279
|
-
--c-link-subtle-hover: var(--c-link-
|
|
280
|
+
--c-link-subtle-hover: var(--c-link-700);
|
|
280
281
|
--c-on-link-subtle: var(--c-link-200);
|
|
281
|
-
--c-nav-surface: var(--c-primary-
|
|
282
|
-
--c-nav-surface-hover: var(--c-primary-
|
|
282
|
+
--c-nav-surface: var(--c-primary-800);
|
|
283
|
+
--c-nav-surface-hover: var(--c-primary-700);
|
|
283
284
|
--c-on-nav: var(--c-primary-100);
|
|
284
|
-
--c-nav-active: var(--c-primary-
|
|
285
|
+
--c-nav-active: var(--c-primary-600);
|
|
285
286
|
--c-on-nav-active: var(--c-white);
|
|
286
|
-
--c-logo-wordmark: var(--c-
|
|
287
|
-
--c-logo-teal: var(--c-
|
|
288
|
-
--c-logo-magenta:
|
|
287
|
+
--c-logo-wordmark: var(--c-slate-100);
|
|
288
|
+
--c-logo-teal: var(--c-slate-100);
|
|
289
|
+
--c-logo-magenta: #c2447cff;
|
|
289
290
|
}
|
|
290
291
|
|
|
291
292
|
/* OS dark preference, only when no explicit data-theme is set. */
|
|
292
293
|
@media (prefers-color-scheme: dark) {
|
|
293
294
|
:root:not([data-theme]) {
|
|
294
|
-
--c-surface: var(--c-slate-
|
|
295
|
-
--c-surface-raised: var(--c-slate-
|
|
296
|
-
--c-surface-overlay: var(--c-slate-
|
|
297
|
-
--c-surface-muted: var(--c-slate-
|
|
298
|
-
--c-surface-sunken: var(--c-slate-
|
|
299
|
-
--c-on-surface: var(--c-
|
|
300
|
-
--c-on-surface-muted: var(--c-slate-
|
|
295
|
+
--c-surface: var(--c-slate-800);
|
|
296
|
+
--c-surface-raised: var(--c-slate-800);
|
|
297
|
+
--c-surface-overlay: var(--c-slate-700);
|
|
298
|
+
--c-surface-muted: var(--c-slate-850);
|
|
299
|
+
--c-surface-sunken: var(--c-slate-900);
|
|
300
|
+
--c-on-surface: var(--c-slate-100);
|
|
301
|
+
--c-on-surface-muted: var(--c-slate-300);
|
|
301
302
|
--c-on-surface-faint: var(--c-slate-400);
|
|
302
|
-
--c-on-surface-sunken: var(--c-
|
|
303
|
+
--c-on-surface-sunken: var(--c-slate-100);
|
|
303
304
|
--c-border: var(--c-slate-700);
|
|
304
305
|
--c-border-strong: var(--c-slate-400);
|
|
305
|
-
--c-ring: var(--c-
|
|
306
|
-
--c-primary: var(--c-
|
|
307
|
-
--c-primary-hover: var(--c-
|
|
308
|
-
--c-on-primary: var(--c-primary-
|
|
306
|
+
--c-ring: var(--c-accent-400);
|
|
307
|
+
--c-primary: var(--c-accent-500);
|
|
308
|
+
--c-primary-hover: var(--c-accent-400);
|
|
309
|
+
--c-on-primary: var(--c-primary-950);
|
|
309
310
|
--c-primary-subtle: var(--c-primary-800);
|
|
310
|
-
--c-primary-subtle-hover: var(--c-primary-
|
|
311
|
-
--c-on-primary-subtle: var(--c-
|
|
311
|
+
--c-primary-subtle-hover: var(--c-primary-700);
|
|
312
|
+
--c-on-primary-subtle: var(--c-accent-300);
|
|
312
313
|
--c-secondary: var(--c-secondary-300);
|
|
313
314
|
--c-secondary-hover: var(--c-secondary-200);
|
|
314
315
|
--c-on-secondary: var(--c-secondary-900);
|
|
315
316
|
--c-secondary-subtle: var(--c-secondary-800);
|
|
316
|
-
--c-secondary-subtle-hover: var(--c-secondary-
|
|
317
|
+
--c-secondary-subtle-hover: var(--c-secondary-700);
|
|
317
318
|
--c-on-secondary-subtle: var(--c-secondary-200);
|
|
318
319
|
--c-accent: var(--c-accent-300);
|
|
319
320
|
--c-accent-hover: var(--c-accent-200);
|
|
320
321
|
--c-on-accent: var(--c-accent-900);
|
|
321
322
|
--c-accent-subtle: var(--c-accent-800);
|
|
322
|
-
--c-accent-subtle-hover: var(--c-accent-
|
|
323
|
+
--c-accent-subtle-hover: var(--c-accent-700);
|
|
323
324
|
--c-on-accent-subtle: var(--c-accent-200);
|
|
324
325
|
--c-success: var(--c-success-300);
|
|
325
326
|
--c-success-hover: var(--c-success-200);
|
|
326
327
|
--c-on-success: var(--c-success-900);
|
|
327
328
|
--c-success-subtle: var(--c-success-800);
|
|
328
|
-
--c-success-subtle-hover: var(--c-success-
|
|
329
|
+
--c-success-subtle-hover: var(--c-success-700);
|
|
329
330
|
--c-on-success-subtle: var(--c-success-200);
|
|
330
331
|
--c-info: var(--c-info-300);
|
|
331
332
|
--c-info-hover: var(--c-info-200);
|
|
332
333
|
--c-on-info: var(--c-info-900);
|
|
333
334
|
--c-info-subtle: var(--c-info-800);
|
|
334
|
-
--c-info-subtle-hover: var(--c-info-
|
|
335
|
+
--c-info-subtle-hover: var(--c-info-700);
|
|
335
336
|
--c-on-info-subtle: var(--c-info-200);
|
|
336
337
|
--c-warning: var(--c-warning-300);
|
|
337
338
|
--c-warning-hover: var(--c-warning-200);
|
|
338
339
|
--c-on-warning: var(--c-warning-900);
|
|
339
340
|
--c-warning-subtle: var(--c-warning-800);
|
|
340
|
-
--c-warning-subtle-hover: var(--c-warning-
|
|
341
|
+
--c-warning-subtle-hover: var(--c-warning-700);
|
|
341
342
|
--c-on-warning-subtle: var(--c-warning-200);
|
|
342
343
|
--c-error: var(--c-error-300);
|
|
343
344
|
--c-error-hover: var(--c-error-200);
|
|
344
345
|
--c-on-error: var(--c-error-900);
|
|
345
346
|
--c-error-subtle: var(--c-error-800);
|
|
346
|
-
--c-error-subtle-hover: var(--c-error-
|
|
347
|
+
--c-error-subtle-hover: var(--c-error-700);
|
|
347
348
|
--c-on-error-subtle: var(--c-error-200);
|
|
348
|
-
--c-link: var(--c-
|
|
349
|
-
--c-link-hover: var(--c-accent-
|
|
349
|
+
--c-link: var(--c-accent-400);
|
|
350
|
+
--c-link-hover: var(--c-accent-300);
|
|
350
351
|
--c-on-link: var(--c-link-900);
|
|
351
352
|
--c-link-subtle: var(--c-link-800);
|
|
352
|
-
--c-link-subtle-hover: var(--c-link-
|
|
353
|
+
--c-link-subtle-hover: var(--c-link-700);
|
|
353
354
|
--c-on-link-subtle: var(--c-link-200);
|
|
354
|
-
--c-nav-surface: var(--c-primary-
|
|
355
|
-
--c-nav-surface-hover: var(--c-primary-
|
|
355
|
+
--c-nav-surface: var(--c-primary-800);
|
|
356
|
+
--c-nav-surface-hover: var(--c-primary-700);
|
|
356
357
|
--c-on-nav: var(--c-primary-100);
|
|
357
|
-
--c-nav-active: var(--c-primary-
|
|
358
|
+
--c-nav-active: var(--c-primary-600);
|
|
358
359
|
--c-on-nav-active: var(--c-white);
|
|
359
|
-
--c-logo-wordmark: var(--c-
|
|
360
|
-
--c-logo-teal: var(--c-
|
|
361
|
-
--c-logo-magenta:
|
|
360
|
+
--c-logo-wordmark: var(--c-slate-100);
|
|
361
|
+
--c-logo-teal: var(--c-slate-100);
|
|
362
|
+
--c-logo-magenta: #c2447cff;
|
|
362
363
|
}
|
|
363
364
|
}
|
|
364
365
|
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
"name": "::part(root)",
|
|
87
|
-
"description": "The card's visible surface, carries the background, radius, shadow and section spacing"
|
|
87
|
+
"description": "The card's visible surface, carries the background, border, radius, shadow and section spacing"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
"name": "::part(fullscreen-toggle)",
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
"name": "::part(message)",
|
|
143
|
-
"description": "The hint / error message
|
|
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
|
|
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)",
|