@norges-domstoler/dds-components 0.0.0-dev-20260409111023 → 0.0.0-dev-20260420110328
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/index.css +0 -10
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +3 -12
- package/dist/index.d.ts +3 -12
- package/dist/index.js +15 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -1837,21 +1837,7 @@ var focusVisibleInset = {
|
|
|
1837
1837
|
var scrollbarWidth = "thin";
|
|
1838
1838
|
var scrollbarStyling = {
|
|
1839
1839
|
scrollbarColor: "var(--dds-color-surface-scrollbar) transparent",
|
|
1840
|
-
scrollbarWidth
|
|
1841
|
-
/* Safari styling. TODO: fjernes når scrollbar styling blir standardisert */
|
|
1842
|
-
/* width */
|
|
1843
|
-
"&::-webkit-scrollbar": {
|
|
1844
|
-
width: "var(--dds-spacing-x0-5)",
|
|
1845
|
-
height: "var(--dds-spacing-x0-5)"
|
|
1846
|
-
},
|
|
1847
|
-
/* Track */
|
|
1848
|
-
"&::-webkit-scrollbar-track": {
|
|
1849
|
-
background: "transparent"
|
|
1850
|
-
},
|
|
1851
|
-
/* Handle */
|
|
1852
|
-
"&::-webkit-scrollbar-thumb": {
|
|
1853
|
-
background: "var(--dds-color-surface-scrollbar)"
|
|
1854
|
-
}
|
|
1840
|
+
scrollbarWidth
|
|
1855
1841
|
};
|
|
1856
1842
|
var hideInput = {
|
|
1857
1843
|
clip: "rect(0 0 0 0)",
|
|
@@ -3709,6 +3695,17 @@ var Typography_default = {
|
|
|
3709
3695
|
container: "Typography_container"
|
|
3710
3696
|
};
|
|
3711
3697
|
|
|
3698
|
+
// src/components/Typography/Typography/Typography.types.ts
|
|
3699
|
+
var TG_HEADING_TYPES = [
|
|
3700
|
+
"headingXxsmall",
|
|
3701
|
+
"headingXsmall",
|
|
3702
|
+
"headingSmall",
|
|
3703
|
+
"headingMedium",
|
|
3704
|
+
"headingLarge",
|
|
3705
|
+
"headingXlarge",
|
|
3706
|
+
"headingXxlarge"
|
|
3707
|
+
];
|
|
3708
|
+
|
|
3712
3709
|
// src/components/Typography/Typography/Typography.utils.ts
|
|
3713
3710
|
var getElementType = (element) => {
|
|
3714
3711
|
switch (element) {
|
|
@@ -3743,7 +3740,7 @@ var getElementType = (element) => {
|
|
|
3743
3740
|
}
|
|
3744
3741
|
};
|
|
3745
3742
|
var isHeading = (type) => {
|
|
3746
|
-
return
|
|
3743
|
+
return TG_HEADING_TYPES.includes(type);
|
|
3747
3744
|
};
|
|
3748
3745
|
var isLegend = (as) => {
|
|
3749
3746
|
return as === "legend";
|
|
@@ -15338,6 +15335,7 @@ export {
|
|
|
15338
15335
|
SunIcon,
|
|
15339
15336
|
SupportIcon,
|
|
15340
15337
|
SyncIcon,
|
|
15338
|
+
TG_HEADING_TYPES,
|
|
15341
15339
|
Tab,
|
|
15342
15340
|
TabList,
|
|
15343
15341
|
TabPanel,
|