@utrecht/component-library-css 3.0.1-alpha.9 → 3.2.0
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/CHANGELOG.md +21 -0
- package/dist/html.css +41 -18
- package/dist/html.js +1 -0
- package/dist/index.css +1795 -1354
- package/dist/index.js +1 -0
- package/package.json +8 -5
- package/rollup.config.mjs +37 -0
- package/src/html.scss +1 -1
- package/src/index.scss +1 -1
- package/LICENSE.txt +0 -287
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @utrecht/component-library-css
|
|
2
2
|
|
|
3
|
+
## 3.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8d8babe: Add 5 missing CSS components to CSS component library bundle.
|
|
8
|
+
|
|
9
|
+
- `utrecht-combobox`
|
|
10
|
+
- `utrecht-currency-data`
|
|
11
|
+
- `utrecht-data-placeholder`
|
|
12
|
+
- `utrecht-listbox`
|
|
13
|
+
- `utrecht-logo-image`
|
|
14
|
+
- `utrecht-preserve-data`
|
|
15
|
+
|
|
16
|
+
## 3.1.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- f9c23c6: Add `utrecht-accordion__button--utrecht` class name.
|
|
21
|
+
Add `utrecht-accordion__button-icon` class name.
|
|
22
|
+
- f9c23c6: Add `utrecht.accordion.button.icon.gap` design token.
|
|
23
|
+
|
|
3
24
|
## 3.0.0
|
|
4
25
|
|
|
5
26
|
### Major Changes
|
package/dist/html.css
CHANGED
|
@@ -810,10 +810,11 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
810
810
|
}
|
|
811
811
|
.utrecht-html code {
|
|
812
812
|
/* Use `monospace` as fallback both when the custom property isn't set and when the font is not available */
|
|
813
|
+
/* Use `inherit` as font-size, to override interfering CSS such as: `code { font-size: 16px }` */
|
|
813
814
|
background-color: var(--utrecht-code-background-color);
|
|
814
815
|
color: var(--utrecht-code-color);
|
|
815
816
|
font-family: var(--utrecht-code-font-family, monospace), monospace;
|
|
816
|
-
font-size: var(--utrecht-code-font-size);
|
|
817
|
+
font-size: var(--utrecht-code-font-size, inherit);
|
|
817
818
|
font-variant-ligatures: none;
|
|
818
819
|
line-height: var(--utrecht-code-line-height);
|
|
819
820
|
}
|
|
@@ -910,7 +911,6 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
910
911
|
}
|
|
911
912
|
.utrecht-html h1 {
|
|
912
913
|
break-inside: avoid-column;
|
|
913
|
-
page-break-after: avoid;
|
|
914
914
|
page-break-inside: avoid;
|
|
915
915
|
color: var(--utrecht-heading-1-color, var(--utrecht-heading-color, var(--utrecht-document-color, inherit)));
|
|
916
916
|
font-family: var(--utrecht-heading-1-font-family, var(--utrecht-heading-font-family, var(--utrecht-document-font-family)));
|
|
@@ -924,7 +924,6 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
924
924
|
}
|
|
925
925
|
.utrecht-html h2 {
|
|
926
926
|
break-inside: avoid-column;
|
|
927
|
-
page-break-after: avoid;
|
|
928
927
|
page-break-inside: avoid;
|
|
929
928
|
color: var(--utrecht-heading-2-color, var(--utrecht-heading-color, var(--utrecht-document-color, inherit)));
|
|
930
929
|
font-family: var(--utrecht-heading-2-font-family, var(--utrecht-heading-font-family, var(--utrecht-document-font-family)));
|
|
@@ -938,7 +937,6 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
938
937
|
}
|
|
939
938
|
.utrecht-html h3 {
|
|
940
939
|
break-inside: avoid-column;
|
|
941
|
-
page-break-after: avoid;
|
|
942
940
|
page-break-inside: avoid;
|
|
943
941
|
color: var(--utrecht-heading-3-color, var(--utrecht-heading-color, var(--utrecht-document-color, inherit)));
|
|
944
942
|
font-family: var(--utrecht-heading-3-font-family, var(--utrecht-heading-font-family, var(--utrecht-document-font-family)));
|
|
@@ -952,7 +950,6 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
952
950
|
}
|
|
953
951
|
.utrecht-html h4 {
|
|
954
952
|
break-inside: avoid-column;
|
|
955
|
-
page-break-after: avoid;
|
|
956
953
|
page-break-inside: avoid;
|
|
957
954
|
color: var(--utrecht-heading-4-color, var(--utrecht-heading-color, var(--utrecht-document-color, inherit)));
|
|
958
955
|
font-family: var(--utrecht-heading-4-font-family, var(--utrecht-heading-font-family, var(--utrecht-document-font-family)));
|
|
@@ -966,7 +963,6 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
966
963
|
}
|
|
967
964
|
.utrecht-html h5 {
|
|
968
965
|
break-inside: avoid-column;
|
|
969
|
-
page-break-after: avoid;
|
|
970
966
|
page-break-inside: avoid;
|
|
971
967
|
color: var(--utrecht-heading-5-color, var(--utrecht-heading-color, var(--utrecht-document-color, inherit)));
|
|
972
968
|
font-family: var(--utrecht-heading-5-font-family, var(--utrecht-heading-font-family, var(--utrecht-document-font-family)));
|
|
@@ -980,7 +976,6 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
980
976
|
}
|
|
981
977
|
.utrecht-html h6 {
|
|
982
978
|
break-inside: avoid-column;
|
|
983
|
-
page-break-after: avoid;
|
|
984
979
|
page-break-inside: avoid;
|
|
985
980
|
color: var(--utrecht-heading-6-color, var(--utrecht-heading-color, var(--utrecht-document-color, inherit)));
|
|
986
981
|
font-family: var(--utrecht-heading-6-font-family, var(--utrecht-heading-font-family, var(--utrecht-document-font-family)));
|
|
@@ -1104,10 +1099,11 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
1104
1099
|
}
|
|
1105
1100
|
.utrecht-html pre:has(> code:only-child) {
|
|
1106
1101
|
/* Use `monospace` as fallback both when the custom property isn't set and when the font is not available */
|
|
1102
|
+
/* Use `inherit` as font-size, to override interfering CSS such as: `code { font-size: 16px }` */
|
|
1107
1103
|
background-color: var(--utrecht-code-background-color);
|
|
1108
1104
|
color: var(--utrecht-code-color);
|
|
1109
1105
|
font-family: var(--utrecht-code-font-family, monospace), monospace;
|
|
1110
|
-
font-size: var(--utrecht-code-font-size);
|
|
1106
|
+
font-size: var(--utrecht-code-font-size, inherit);
|
|
1111
1107
|
font-variant-ligatures: none;
|
|
1112
1108
|
line-height: var(--utrecht-code-line-height);
|
|
1113
1109
|
--utrecht-code-color: var(--utrecht-code-block-color, inherit);
|
|
@@ -1117,7 +1113,7 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
1117
1113
|
--utrecht-code-font-family: var(--utrecht-code-block-font-family, monospace);
|
|
1118
1114
|
background-color: var(--utrecht-code-block-background-color);
|
|
1119
1115
|
display: block;
|
|
1120
|
-
font-size: var(--utrecht-code-block-font-size, var(--utrecht-code-font-size));
|
|
1116
|
+
font-size: var(--utrecht-code-block-font-size, var(--utrecht-code-font-size, inherit));
|
|
1121
1117
|
line-height: var(--utrecht-code-block-line-height, var(--utrecht-code-line-height));
|
|
1122
1118
|
margin-block-end: var(--utrecht-code-block-margin-block-end);
|
|
1123
1119
|
margin-block-start: var(--utrecht-code-block-margin-block-start);
|
|
@@ -1324,6 +1320,8 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
1324
1320
|
font-family: var(--utrecht-select-font-family, var(--utrecht-form-control-font-family));
|
|
1325
1321
|
font-size: var(--utrecht-select-font-size, var(--utrecht-form-control-font-size));
|
|
1326
1322
|
inline-size: 100%;
|
|
1323
|
+
min-block-size: var(--utrecht-select-min-block-size, var(--utrecht-pointer-target-min-size, 44px));
|
|
1324
|
+
min-inline-size: var(--utrecht-pointer-target-min-size, 44px);
|
|
1327
1325
|
max-inline-size: var(--utrecht-select-max-inline-size, var(--utrecht-form-control-max-inline-size));
|
|
1328
1326
|
padding-block-end: var(--utrecht-select-padding-block-end, var(--utrecht-form-control-padding-block-end));
|
|
1329
1327
|
padding-block-start: var(--utrecht-select-padding-block-start, var(--utrecht-form-control-padding-block-start));
|
|
@@ -1512,7 +1510,8 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
1512
1510
|
inline-size: 100%;
|
|
1513
1511
|
line-height: var(--utrecht-textarea-line-height, initial);
|
|
1514
1512
|
max-inline-size: var(--utrecht-textarea-max-inline-size, var(--utrecht-form-control-max-inline-size));
|
|
1515
|
-
min-block-size: var(--utrecht-textarea-min-block-size);
|
|
1513
|
+
min-block-size: var(--utrecht-textarea-min-block-size, var(--utrecht-pointer-target-min-size, 44px));
|
|
1514
|
+
min-inline-size: var(--utrecht-pointer-target-min-size, 44px);
|
|
1516
1515
|
padding-block-end: var(--utrecht-textarea-padding-block-end, var(--utrecht-form-control-padding-block-end, 0));
|
|
1517
1516
|
padding-block-start: var(--utrecht-textarea-padding-block-start, var(--utrecht-form-control-padding-block-start, 0));
|
|
1518
1517
|
padding-inline-end: var(--utrecht-textarea-padding-inline-end, var(--utrecht-form-control-padding-inline-end, initial));
|
|
@@ -1590,6 +1589,28 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
1590
1589
|
.utrecht-html input[type=time i],
|
|
1591
1590
|
.utrecht-html input[type=url i],
|
|
1592
1591
|
.utrecht-html input[type=week i] {
|
|
1592
|
+
/* The average character inline-size is an approximation, with a default that works for Dutch text.
|
|
1593
|
+
* The average might need to be configured specifically, for other scripts (CJK characters)
|
|
1594
|
+
* and very wide or very narrow fonts.
|
|
1595
|
+
* For monospace fonts it can be set to `1ch`.
|
|
1596
|
+
*/
|
|
1597
|
+
--_utrecht-textbox-value-char: 0.667em + 0.334ch;
|
|
1598
|
+
/* Because this element uses `border-box` box-sizing, we need to manually add up the
|
|
1599
|
+
* border width, padding width and the content width.
|
|
1600
|
+
*
|
|
1601
|
+
* Browsers and browser addons can add buttons inside the content box, for example
|
|
1602
|
+
* for autocomplete. To avoid overlap between the UI and the text, we reserve
|
|
1603
|
+
* some additional pixels to make space. We use 44px in accordance with the WCAG target size.
|
|
1604
|
+
*
|
|
1605
|
+
* When you are certain an element has no such UI, you can set the `autocomplete-ui-size` to `0px` (not to `0`).
|
|
1606
|
+
*/
|
|
1607
|
+
--_utrecht-textbox-max-inline-size: calc(
|
|
1608
|
+
calc(var(--utrecht-textbox-value-max-length) * var(--_utrecht-textbox-value-char)) +
|
|
1609
|
+
var(--utrecht-textbox-padding-inline-end, var(--utrecht-form-control-padding-inline-end, 0)) +
|
|
1610
|
+
var(--utrecht-textbox-padding-inline-start, var(--utrecht-form-control-padding-inline-start, 0)) +
|
|
1611
|
+
var(--utrecht-textbox-border-width, var(--utrecht-form-control-border-width, 0)) +
|
|
1612
|
+
var(--utrecht-textbox-autocomplete-ui-size, 44px)
|
|
1613
|
+
);
|
|
1593
1614
|
background-color: var(--utrecht-textbox-background-color, var(--utrecht-form-control-background-color));
|
|
1594
1615
|
block-size: initial; /* harden */
|
|
1595
1616
|
border-width: var(--utrecht-textbox-border-width, var(--utrecht-form-control-border-width));
|
|
@@ -1604,7 +1625,9 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
1604
1625
|
font-weight: initial; /* harden */
|
|
1605
1626
|
inline-size: 100%;
|
|
1606
1627
|
line-height: var(--utrecht-textbox-line-height, var(--utrecht-form-control-line-height, initial));
|
|
1607
|
-
|
|
1628
|
+
min-block-size: var(--utrecht-pointer-target-min-size, 44px);
|
|
1629
|
+
min-inline-size: var(--utrecht-pointer-target-min-size, 44px);
|
|
1630
|
+
max-inline-size: min(var(--_utrecht-textbox-max-inline-size, 100%), var(--utrecht-textbox-max-inline-size, var(--utrecht-form-control-max-inline-size)));
|
|
1608
1631
|
padding-block-end: var(--utrecht-textbox-padding-block-end, var(--utrecht-form-control-padding-block-end, 0));
|
|
1609
1632
|
padding-block-start: var(--utrecht-textbox-padding-block-start, var(--utrecht-form-control-padding-block-start, 0));
|
|
1610
1633
|
padding-inline-end: var(--utrecht-textbox-padding-inline-end, var(--utrecht-form-control-padding-inline-end, initial));
|
|
@@ -1629,9 +1652,9 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
1629
1652
|
.utrecht-html input[type=time i]:focus,
|
|
1630
1653
|
.utrecht-html input[type=url i]:focus,
|
|
1631
1654
|
.utrecht-html input[type=week i]:focus {
|
|
1632
|
-
background-color: var(--utrecht-textbox-focus-background-color, var(--utrecht-form-control-focus-background-color, var(--utrecht-
|
|
1633
|
-
border-color: var(--utrecht-textbox-focus-border-color, var(--utrecht-form-control-focus-border-color, var(--utrecht-
|
|
1634
|
-
color: var(--utrecht-textbox-focus-color, var(--utrecht-form-control-focus-color, var(--utrecht-
|
|
1655
|
+
background-color: var(--utrecht-textbox-focus-background-color, var(--utrecht-form-control-focus-background-color, var(--utrecht-textbox-background-color, var(--utrecht-form-control-background-color))));
|
|
1656
|
+
border-color: var(--utrecht-textbox-focus-border-color, var(--utrecht-form-control-focus-border-color, var(--utrecht-textbox-border-color, var(--utrecht-form-control-border-color))));
|
|
1657
|
+
color: var(--utrecht-textbox-focus-color, var(--utrecht-form-control-focus-color, var(--utrecht-textbox-color, var(--utrecht-form-control-color))));
|
|
1635
1658
|
/* - The browser default focus ring should apply when these CSS custom properties are not set.
|
|
1636
1659
|
* - Make the `box-shadow` value available, so components that have their own `box-shadow`
|
|
1637
1660
|
* can combine it with the focus ring box shadow.
|
|
@@ -1729,9 +1752,9 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
1729
1752
|
.utrecht-html input[type=time i]:disabled,
|
|
1730
1753
|
.utrecht-html input[type=url i]:disabled,
|
|
1731
1754
|
.utrecht-html input[type=week i]:disabled {
|
|
1732
|
-
background-color: var(--utrecht-textbox-disabled-background-color, var(--utrecht-form-control-disabled-background-color, var(--utrecht-
|
|
1733
|
-
border-color: var(--utrecht-textbox-disabled-border-color, var(--utrecht-form-control-disabled-border-color, var(--utrecht-
|
|
1734
|
-
color: var(--utrecht-textbox-disabled-color, var(--utrecht-form-control-disabled-color, var(--utrecht-
|
|
1755
|
+
background-color: var(--utrecht-textbox-disabled-background-color, var(--utrecht-form-control-disabled-background-color, var(--utrecht-textbox-background-color, var(--utrecht-form-control-background-color))));
|
|
1756
|
+
border-color: var(--utrecht-textbox-disabled-border-color, var(--utrecht-form-control-disabled-border-color, var(--utrecht-textbox-border-color, var(--utrecht-form-control-border-color))));
|
|
1757
|
+
color: var(--utrecht-textbox-disabled-color, var(--utrecht-form-control-disabled-color, var(--utrecht-textbox-color, var(--utrecht-form-control-color))));
|
|
1735
1758
|
cursor: var(--utrecht-action-disabled-cursor, not-allowed);
|
|
1736
1759
|
}
|
|
1737
1760
|
.utrecht-html input:not([type])::placeholder,
|
|
@@ -1809,4 +1832,4 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
1809
1832
|
.utrecht-html ul > li::marker {
|
|
1810
1833
|
color: var(--utrecht-unordered-list-marker-color);
|
|
1811
1834
|
content: "●";
|
|
1812
|
-
}
|
|
1835
|
+
}
|
package/dist/html.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var undefined$1 = undefined;export{undefined$1 as default};
|